author | andyq <andyq> | 2002-11-17 20:03:25 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-11-17 20:03:25 (UTC) |
commit | d94c9d39ab6e744f848a04c07eac03f20c91987c (patch) (unidiff) | |
tree | a9f32cca7c59ae565ab9caa3caf567100ed07cb4 /noncore/settings/aqpkg/mainwin.h | |
parent | a94877f543bf0ebc2ec9c4c931cb5f21713b7872 (diff) | |
download | opie-d94c9d39ab6e744f848a04c07eac03f20c91987c.zip opie-d94c9d39ab6e744f848a04c07eac03f20c91987c.tar.gz opie-d94c9d39ab6e744f848a04c07eac03f20c91987c.tar.bz2 |
Added filter by category, and added extra fields to package display (Section and size)
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.h | 131 |
1 files changed, 68 insertions, 63 deletions
diff --git a/noncore/settings/aqpkg/mainwin.h b/noncore/settings/aqpkg/mainwin.h index 7b6e0ba..92aba4d 100644 --- a/noncore/settings/aqpkg/mainwin.h +++ b/noncore/settings/aqpkg/mainwin.h | |||
@@ -1,63 +1,68 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | mainwin.h - description | 2 | mainwin.h - description |
3 | ------------------- | 3 | ------------------- |
4 | begin : Mon Aug 26 13:32:30 BST 2002 | 4 | begin : Mon Aug 26 13:32:30 BST 2002 |
5 | copyright : (C) 2002 by Andy Qua | 5 | copyright : (C) 2002 by Andy Qua |
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 | #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 <qwidgetstack.h> |
23 | 23 | ||
24 | 24 | ||
25 | class NetworkPackageManager; | 25 | class NetworkPackageManager; |
26 | class DataManager; | 26 | class DataManager; |
27 | 27 | ||
28 | class MainWindow :public QMainWindow | 28 | class MainWindow :public QMainWindow |
29 | { | 29 | { |
30 | Q_OBJECT | 30 | Q_OBJECT |
31 | public: | 31 | public: |
32 | 32 | ||
33 | MainWindow( QWidget *p = 0, char *name = 0 ); | 33 | MainWindow( QWidget *p = 0, char *name = 0 ); |
34 | ~MainWindow(); | 34 | ~MainWindow(); |
35 | 35 | ||
36 | private: | 36 | private: |
37 | DataManager *mgr; | 37 | DataManager *mgr; |
38 | 38 | ||
39 | QMenuBar *menu; | 39 | QMenuBar *menu; |
40 | QPopupMenu *help; | 40 | QPopupMenu *help; |
41 | QPopupMenu *settings; | 41 | QPopupMenu *settings; |
42 | QPopupMenu *edit; | 42 | QPopupMenu *edit; |
43 | QPopupMenu *filter; | 43 | QPopupMenu *filter; |
44 | QWidgetStack *stack; | 44 | QWidgetStack *stack; |
45 | 45 | ||
46 | NetworkPackageManager *networkPkgWindow; | 46 | NetworkPackageManager *networkPkgWindow; |
47 | 47 | ||
48 | int mnuShowUninstalledPkgsId; | 48 | int mnuShowUninstalledPkgsId; |
49 | int mnuShowInstalledPkgsId; | 49 | int mnuShowInstalledPkgsId; |
50 | int mnuShowUpgradedPkgsId; | 50 | int mnuShowUpgradedPkgsId; |
51 | 51 | int mnuFilterByCategory; | |
52 | public slots: | 52 | int mnuSetFilterCategory; |
53 | void setDocument( const QString &doc ); | 53 | |
54 | void displayHelp(); | 54 | public slots: |
55 | void searchForPackage(); | 55 | void setDocument( const QString &doc ); |
56 | void repeatSearchForPackage(); | 56 | void displayHelp(); |
57 | void displayAbout(); | 57 | void searchForPackage(); |
58 | void displaySettings(); | 58 | void repeatSearchForPackage(); |
59 | void filterUninstalledPackages(); | 59 | void displayAbout(); |
60 | void filterInstalledPackages(); | 60 | void displaySettings(); |
61 | void filterUpgradedPackages(); | 61 | void filterUninstalledPackages(); |
62 | }; | 62 | void filterInstalledPackages(); |
63 | #endif | 63 | void filterUpgradedPackages(); |
64 | void filterCategory(); | ||
65 | void setFilterCategory(); | ||
66 | |||
67 | }; | ||
68 | #endif | ||