Diffstat (limited to 'noncore/settings/aqpkg/mainwin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp index 4e9cc12..5ccd3c3 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp | |||
@@ -6,24 +6,26 @@ | |||
6 | email : andy.qua@blueyonder.co.uk | 6 | email : andy.qua@blueyonder.co.uk |
7 | ***************************************************************************/ | 7 | ***************************************************************************/ |
8 | 8 | ||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 14 | * (at your option) any later version. * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | #include <iostream> | ||
19 | |||
18 | #include <qmenubar.h> | 20 | #include <qmenubar.h> |
19 | #include <qpopupmenu.h> | 21 | #include <qpopupmenu.h> |
20 | #include <qmessagebox.h> | 22 | #include <qmessagebox.h> |
21 | 23 | ||
22 | #include "mainwin.h" | 24 | #include "mainwin.h" |
23 | #include "datamgr.h" | 25 | #include "datamgr.h" |
24 | #include "networkpkgmgr.h" | 26 | #include "networkpkgmgr.h" |
25 | #include "settingsimpl.h" | 27 | #include "settingsimpl.h" |
26 | #include "helpwindow.h" | 28 | #include "helpwindow.h" |
27 | #include "utils.h" | 29 | #include "utils.h" |
28 | #include "global.h" | 30 | #include "global.h" |
29 | 31 | ||
@@ -72,25 +74,25 @@ MainWindow :: MainWindow( QWidget *p, char *name ) | |||
72 | stack->raiseWidget( networkPkgWindow ); | 74 | stack->raiseWidget( networkPkgWindow ); |
73 | } | 75 | } |
74 | 76 | ||
75 | MainWindow :: ~MainWindow() | 77 | MainWindow :: ~MainWindow() |
76 | { | 78 | { |
77 | delete networkPkgWindow; | 79 | delete networkPkgWindow; |
78 | } | 80 | } |
79 | 81 | ||
80 | void MainWindow :: setDocument( const QString &doc ) | 82 | void MainWindow :: setDocument( const QString &doc ) |
81 | { | 83 | { |
82 | // Remove path from package | 84 | // Remove path from package |
83 | QString package = Utils::getPackageNameFromIpkFilename( doc ); | 85 | QString package = Utils::getPackageNameFromIpkFilename( doc ); |
84 | cout << "Selecting package " << package << endl; | 86 | std::cout << "Selecting package " << package << std::endl; |
85 | networkPkgWindow->selectLocalPackage( package ); | 87 | networkPkgWindow->selectLocalPackage( package ); |
86 | } | 88 | } |
87 | 89 | ||
88 | void MainWindow :: displaySettings() | 90 | void MainWindow :: displaySettings() |
89 | { | 91 | { |
90 | SettingsImpl *dlg = new SettingsImpl( mgr, this, "Settings", true ); | 92 | SettingsImpl *dlg = new SettingsImpl( mgr, this, "Settings", true ); |
91 | if ( dlg->showDlg( 0 ) ) | 93 | if ( dlg->showDlg( 0 ) ) |
92 | networkPkgWindow->updateData(); | 94 | networkPkgWindow->updateData(); |
93 | delete dlg; | 95 | delete dlg; |
94 | } | 96 | } |
95 | 97 | ||
96 | void MainWindow :: displayHelp() | 98 | void MainWindow :: displayHelp() |