author | drw <drw> | 2003-03-19 02:48:27 (UTC) |
---|---|---|
committer | drw <drw> | 2003-03-19 02:48:27 (UTC) |
commit | f35989ef21fb5a27ebe6f6924ee2cc601318c1b8 (patch) (unidiff) | |
tree | f169286f925c01758d1456027eb43743bb0cd162 /noncore/settings/aqpkg/mainwin.h | |
parent | 06ddd131a6f33d341290617e71a14006fc9957a1 (diff) | |
download | opie-f35989ef21fb5a27ebe6f6924ee2cc601318c1b8.zip opie-f35989ef21fb5a27ebe6f6924ee2cc601318c1b8.tar.gz opie-f35989ef21fb5a27ebe6f6924ee2cc601318c1b8.tar.bz2 |
Fix for bug #741
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/mainwin.h b/noncore/settings/aqpkg/mainwin.h index d75e5d2..b2de871 100644 --- a/noncore/settings/aqpkg/mainwin.h +++ b/noncore/settings/aqpkg/mainwin.h | |||
@@ -1,93 +1,96 @@ | |||
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 <qpixmap.h> | 22 | #include <qpixmap.h> |
23 | 23 | ||
24 | class DataManager; | 24 | class DataManager; |
25 | class InstallData; | 25 | class InstallData; |
26 | class InstallDlgImpl; | 26 | class InstallDlgImpl; |
27 | 27 | ||
28 | class QAction; | 28 | class QAction; |
29 | class QCheckListItem; | 29 | class QCheckListItem; |
30 | class QComboBox; | 30 | class QComboBox; |
31 | class QLabel; | 31 | class QLabel; |
32 | class QLineEdit; | 32 | class QLineEdit; |
33 | class QListView; | 33 | class QListView; |
34 | class QPEToolBar; | 34 | class QPEToolBar; |
35 | class QProgressBar; | 35 | class QProgressBar; |
36 | class QWidgetStack; | 36 | class QWidgetStack; |
37 | 37 | ||
38 | class MainWindow :public QMainWindow | 38 | class MainWindow :public QMainWindow |
39 | { | 39 | { |
40 | Q_OBJECT | 40 | Q_OBJECT |
41 | public: | 41 | public: |
42 | 42 | ||
43 | MainWindow(); | 43 | MainWindow(); |
44 | ~MainWindow(); | 44 | ~MainWindow(); |
45 | 45 | ||
46 | protected: | ||
47 | void closeEvent( QCloseEvent* e ); | ||
48 | |||
46 | private: | 49 | private: |
47 | DataManager *mgr; | 50 | DataManager *mgr; |
48 | 51 | ||
49 | QWidgetStack *stack; | 52 | QWidgetStack *stack; |
50 | 53 | ||
51 | QPEToolBar *findBar; | 54 | QPEToolBar *findBar; |
52 | QPEToolBar *jumpBar; | 55 | QPEToolBar *jumpBar; |
53 | QLineEdit *findEdit; | 56 | QLineEdit *findEdit; |
54 | QAction *actionFindNext; | 57 | QAction *actionFindNext; |
55 | QAction *actionFilter; | 58 | QAction *actionFilter; |
56 | QAction *actionUpgrade; | 59 | QAction *actionUpgrade; |
57 | QAction *actionDownload; | 60 | QAction *actionDownload; |
58 | QAction *actionUninstalled; | 61 | QAction *actionUninstalled; |
59 | QAction *actionInstalled; | 62 | QAction *actionInstalled; |
60 | QAction *actionUpdated; | 63 | QAction *actionUpdated; |
61 | 64 | ||
62 | QPixmap iconDownload; | 65 | QPixmap iconDownload; |
63 | QPixmap iconRemove; | 66 | QPixmap iconRemove; |
64 | 67 | ||
65 | int mnuShowUninstalledPkgsId; | 68 | int mnuShowUninstalledPkgsId; |
66 | int mnuShowInstalledPkgsId; | 69 | int mnuShowInstalledPkgsId; |
67 | int mnuShowUpgradedPkgsId; | 70 | int mnuShowUpgradedPkgsId; |
68 | int mnuFilterByCategory; | 71 | int mnuFilterByCategory; |
69 | int mnuSetFilterCategory; | 72 | int mnuSetFilterCategory; |
70 | 73 | ||
71 | // Main package list widget | 74 | // Main package list widget |
72 | QWidget *networkPkgWindow; | 75 | QWidget *networkPkgWindow; |
73 | QComboBox *serversList; | 76 | QComboBox *serversList; |
74 | QListView *packagesList; | 77 | QListView *packagesList; |
75 | QPixmap installedIcon; | 78 | QPixmap installedIcon; |
76 | QPixmap updatedIcon; | 79 | QPixmap updatedIcon; |
77 | QString currentlySelectedServer; | 80 | QString currentlySelectedServer; |
78 | QString categoryFilter; | 81 | QString categoryFilter; |
79 | QString stickyOption; | 82 | QString stickyOption; |
80 | 83 | ||
81 | bool categoryFilterEnabled; | 84 | bool categoryFilterEnabled; |
82 | bool showJumpTo; | 85 | bool showJumpTo; |
83 | bool showUninstalledPkgs; | 86 | bool showUninstalledPkgs; |
84 | bool showInstalledPkgs; | 87 | bool showInstalledPkgs; |
85 | bool showUpgradedPkgs; | 88 | bool showUpgradedPkgs; |
86 | bool downloadEnabled; | 89 | bool downloadEnabled; |
87 | 90 | ||
88 | void initMainWidget(); | 91 | void initMainWidget(); |
89 | void updateData(); | 92 | void updateData(); |
90 | void serverSelected( int index, bool showProgress ); | 93 | void serverSelected( int index, bool showProgress ); |
91 | void searchForPackage( const QString & ); | 94 | void searchForPackage( const QString & ); |
92 | bool filterByCategory( bool val ); | 95 | bool filterByCategory( bool val ); |
93 | void downloadSelectedPackages(); | 96 | void downloadSelectedPackages(); |