Diffstat (limited to 'noncore/settings/aqpkg/mainwin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/noncore/settings/aqpkg/mainwin.h b/noncore/settings/aqpkg/mainwin.h index 39799f9..028ef5b 100644 --- a/noncore/settings/aqpkg/mainwin.h +++ b/noncore/settings/aqpkg/mainwin.h | |||
@@ -10,64 +10,74 @@ | |||
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 | #ifndef MAINWIN_H | 18 | #ifndef MAINWIN_H |
19 | #define MAINWIN_H | 19 | #define MAINWIN_H |
20 | 20 | ||
21 | #include <qmainwindow.h> | 21 | #include <qmainwindow.h> |
22 | #include <qwidgetstack.h> | 22 | #include <qpixmap.h> |
23 | //#include <qwidgetstack.h> | ||
23 | 24 | ||
25 | class QWidgetStack; | ||
26 | class QPEToolBar; | ||
27 | class QAction; | ||
24 | class ProgressWidget; | 28 | class ProgressWidget; |
25 | class NetworkPackageManager; | 29 | class NetworkPackageManager; |
26 | class DataManager; | 30 | class DataManager; |
27 | 31 | ||
28 | class MainWindow :public QMainWindow | 32 | class MainWindow :public QMainWindow |
29 | { | 33 | { |
30 | Q_OBJECT | 34 | Q_OBJECT |
31 | public: | 35 | public: |
32 | 36 | ||
33 | MainWindow( QWidget *p = 0, char *name = 0 ); | 37 | MainWindow(); |
34 | ~MainWindow(); | 38 | ~MainWindow(); |
35 | 39 | ||
36 | private: | 40 | private: |
37 | DataManager *mgr; | 41 | DataManager *mgr; |
38 | 42 | ||
39 | QMenuBar *menu; | 43 | QMenuBar *menu; |
40 | QPopupMenu *help; | 44 | QPopupMenu *help; |
41 | QPopupMenu *settings; | 45 | QPopupMenu *settings; |
42 | QPopupMenu *edit; | 46 | QPopupMenu *edit; |
43 | QPopupMenu *filter; | 47 | QPopupMenu *filter; |
44 | QWidgetStack *stack; | 48 | QWidgetStack *stack; |
45 | 49 | QAction *actionUpgrade; | |
50 | QAction *actionDownload; | ||
51 | QPixmap iconDownload; | ||
52 | QPixmap iconRemove; | ||
53 | |||
46 | NetworkPackageManager *networkPkgWindow; | 54 | NetworkPackageManager *networkPkgWindow; |
47 | ProgressWidget *progressWindow; | 55 | ProgressWidget *progressWindow; |
48 | 56 | ||
49 | int mnuShowUninstalledPkgsId; | 57 | int mnuShowUninstalledPkgsId; |
50 | int mnuShowInstalledPkgsId; | 58 | int mnuShowInstalledPkgsId; |
51 | int mnuShowUpgradedPkgsId; | 59 | int mnuShowUpgradedPkgsId; |
52 | int mnuFilterByCategory; | 60 | int mnuFilterByCategory; |
53 | int mnuSetFilterCategory; | 61 | int mnuSetFilterCategory; |
54 | 62 | ||
55 | public slots: | 63 | public slots: |
56 | void setDocument( const QString &doc ); | 64 | void setDocument( const QString &doc ); |
57 | void displayHelp(); | 65 | void displayHelp(); |
58 | void searchForPackage(); | 66 | void searchForPackage(); |
59 | void repeatSearchForPackage(); | 67 | void repeatSearchForPackage(); |
60 | void displayAbout(); | 68 | void displayAbout(); |
61 | void displaySettings(); | 69 | void displaySettings(); |
62 | void filterUninstalledPackages(); | 70 | void filterUninstalledPackages(); |
63 | void filterInstalledPackages(); | 71 | void filterInstalledPackages(); |
64 | void filterUpgradedPackages(); | 72 | void filterUpgradedPackages(); |
65 | void filterCategory(); | 73 | void filterCategory(); |
66 | void setFilterCategory(); | 74 | void setFilterCategory(); |
67 | void raiseMainWidget(); | 75 | void raiseMainWidget(); |
68 | void raiseProgressWidget(); | 76 | void raiseProgressWidget(); |
77 | void enableUpgrade( bool ); | ||
78 | void enableDownload( bool ); | ||
69 | 79 | ||
70 | private slots: | 80 | private slots: |
71 | void init(); | 81 | void init(); |
72 | }; | 82 | }; |
73 | #endif | 83 | #endif |