author | drw <drw> | 2003-01-10 21:07:59 (UTC) |
---|---|---|
committer | drw <drw> | 2003-01-10 21:07:59 (UTC) |
commit | 3d5b0fdc15ed9b3ee392e52254aa9db73e2b7dac (patch) (unidiff) | |
tree | a6cb5e1cc109fc9ec54aca9b61726111771f08bf /noncore/settings/aqpkg/mainwin.h | |
parent | 1c7ae0ce09caf37c3c7d5d284eee390940143a26 (diff) | |
download | opie-3d5b0fdc15ed9b3ee392e52254aa9db73e2b7dac.zip opie-3d5b0fdc15ed9b3ee392e52254aa9db73e2b7dac.tar.gz opie-3d5b0fdc15ed9b3ee392e52254aa9db73e2b7dac.tar.bz2 |
Made find dialog a toolbar, fixed show options under View menu
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/noncore/settings/aqpkg/mainwin.h b/noncore/settings/aqpkg/mainwin.h index 028ef5b..ef67cc9 100644 --- a/noncore/settings/aqpkg/mainwin.h +++ b/noncore/settings/aqpkg/mainwin.h | |||
@@ -11,69 +11,75 @@ | |||
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 <qpixmap.h> | 22 | #include <qpixmap.h> |
23 | //#include <qwidgetstack.h> | ||
24 | 23 | ||
25 | class QWidgetStack; | 24 | class QWidgetStack; |
26 | class QPEToolBar; | 25 | class QPEToolBar; |
26 | class QLineEdit; | ||
27 | class QAction; | 27 | class QAction; |
28 | class ProgressWidget; | 28 | class ProgressWidget; |
29 | class NetworkPackageManager; | 29 | class NetworkPackageManager; |
30 | class DataManager; | 30 | class DataManager; |
31 | 31 | ||
32 | class MainWindow :public QMainWindow | 32 | class MainWindow :public QMainWindow |
33 | { | 33 | { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | public: | 35 | public: |
36 | 36 | ||
37 | MainWindow(); | 37 | MainWindow(); |
38 | ~MainWindow(); | 38 | ~MainWindow(); |
39 | 39 | ||
40 | private: | 40 | private: |
41 | DataManager *mgr; | 41 | DataManager *mgr; |
42 | 42 | ||
43 | QMenuBar *menu; | ||
44 | QPopupMenu *help; | ||
45 | QPopupMenu *settings; | ||
46 | QPopupMenu *edit; | ||
47 | QPopupMenu *filter; | ||
48 | QWidgetStack *stack; | 43 | QWidgetStack *stack; |
44 | |||
45 | QPEToolBar *findBar; | ||
46 | QLineEdit *findEdit; | ||
47 | QAction *actionFindNext; | ||
48 | QAction *actionFilter; | ||
49 | QAction *actionUpgrade; | 49 | QAction *actionUpgrade; |
50 | QAction *actionDownload; | 50 | QAction *actionDownload; |
51 | QAction *actionUninstalled; | ||
52 | QAction *actionInstalled; | ||
53 | QAction *actionUpdated; | ||
54 | |||
51 | QPixmap iconDownload; | 55 | QPixmap iconDownload; |
52 | QPixmap iconRemove; | 56 | QPixmap iconRemove; |
53 | 57 | ||
54 | NetworkPackageManager *networkPkgWindow; | 58 | NetworkPackageManager *networkPkgWindow; |
55 | ProgressWidget *progressWindow; | 59 | ProgressWidget *progressWindow; |
56 | 60 | ||
57 | int mnuShowUninstalledPkgsId; | 61 | int mnuShowUninstalledPkgsId; |
58 | int mnuShowInstalledPkgsId; | 62 | int mnuShowInstalledPkgsId; |
59 | int mnuShowUpgradedPkgsId; | 63 | int mnuShowUpgradedPkgsId; |
60 | int mnuFilterByCategory; | 64 | int mnuFilterByCategory; |
61 | int mnuSetFilterCategory; | 65 | int mnuSetFilterCategory; |
62 | 66 | ||
63 | public slots: | 67 | public slots: |
64 | void setDocument( const QString &doc ); | 68 | void setDocument( const QString &doc ); |
65 | void displayHelp(); | 69 | void displayHelp(); |
66 | void searchForPackage(); | 70 | void displayFindBar(); |
67 | void repeatSearchForPackage(); | 71 | void repeatFind(); |
72 | void findPackage( const QString & ); | ||
73 | void hideFindBar(); | ||
68 | void displayAbout(); | 74 | void displayAbout(); |
69 | void displaySettings(); | 75 | void displaySettings(); |
70 | void filterUninstalledPackages(); | 76 | void filterUninstalledPackages(); |
71 | void filterInstalledPackages(); | 77 | void filterInstalledPackages(); |
72 | void filterUpgradedPackages(); | 78 | void filterUpgradedPackages(); |
73 | void filterCategory(); | 79 | void filterCategory(); |
74 | void setFilterCategory(); | 80 | void setFilterCategory(); |
75 | void raiseMainWidget(); | 81 | void raiseMainWidget(); |
76 | void raiseProgressWidget(); | 82 | void raiseProgressWidget(); |
77 | void enableUpgrade( bool ); | 83 | void enableUpgrade( bool ); |
78 | void enableDownload( bool ); | 84 | void enableDownload( bool ); |
79 | 85 | ||