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, 2 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/mainwin.h b/noncore/settings/aqpkg/mainwin.h index 46b5fae..be30668 100644 --- a/noncore/settings/aqpkg/mainwin.h +++ b/noncore/settings/aqpkg/mainwin.h | |||
@@ -1,133 +1,134 @@ | |||
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 | 26 | ||
27 | class QAction; | 27 | class QAction; |
28 | class QCheckListItem; | 28 | class QCheckListItem; |
29 | class QComboBox; | 29 | class QComboBox; |
30 | class QLabel; | 30 | class QLabel; |
31 | class QLineEdit; | 31 | class QLineEdit; |
32 | class QListView; | 32 | class QListView; |
33 | class QPEToolBar; | 33 | class QPEToolBar; |
34 | class QProgressBar; | 34 | class QProgressBar; |
35 | class QWidgetStack; | 35 | class QWidgetStack; |
36 | 36 | ||
37 | class MainWindow :public QMainWindow | 37 | class MainWindow :public QMainWindow |
38 | { | 38 | { |
39 | Q_OBJECT | 39 | Q_OBJECT |
40 | public: | 40 | public: |
41 | 41 | ||
42 | MainWindow(); | 42 | MainWindow(); |
43 | ~MainWindow(); | 43 | ~MainWindow(); |
44 | 44 | ||
45 | private: | 45 | private: |
46 | DataManager *mgr; | 46 | DataManager *mgr; |
47 | 47 | ||
48 | QWidgetStack *stack; | 48 | QWidgetStack *stack; |
49 | 49 | ||
50 | QPEToolBar *findBar; | 50 | QPEToolBar *findBar; |
51 | QLineEdit *findEdit; | 51 | QLineEdit *findEdit; |
52 | QAction *actionFindNext; | 52 | QAction *actionFindNext; |
53 | QAction *actionFilter; | 53 | QAction *actionFilter; |
54 | QAction *actionUpgrade; | 54 | QAction *actionUpgrade; |
55 | QAction *actionDownload; | 55 | QAction *actionDownload; |
56 | QAction *actionUninstalled; | 56 | QAction *actionUninstalled; |
57 | QAction *actionInstalled; | 57 | QAction *actionInstalled; |
58 | QAction *actionUpdated; | 58 | QAction *actionUpdated; |
59 | 59 | ||
60 | QPixmap iconDownload; | 60 | QPixmap iconDownload; |
61 | QPixmap iconRemove; | 61 | QPixmap iconRemove; |
62 | 62 | ||
63 | int mnuShowUninstalledPkgsId; | 63 | int mnuShowUninstalledPkgsId; |
64 | int mnuShowInstalledPkgsId; | 64 | int mnuShowInstalledPkgsId; |
65 | int mnuShowUpgradedPkgsId; | 65 | int mnuShowUpgradedPkgsId; |
66 | int mnuFilterByCategory; | 66 | int mnuFilterByCategory; |
67 | int mnuSetFilterCategory; | 67 | int mnuSetFilterCategory; |
68 | 68 | ||
69 | // Main package list widget | 69 | // Main package list widget |
70 | QWidget *networkPkgWindow; | 70 | QWidget *networkPkgWindow; |
71 | QComboBox *serversList; | 71 | QComboBox *serversList; |
72 | QListView *packagesList; | 72 | QListView *packagesList; |
73 | QPixmap installedIcon; | 73 | QPixmap installedIcon; |
74 | QPixmap updatedIcon; | 74 | QPixmap updatedIcon; |
75 | QString currentlySelectedServer; | 75 | QString currentlySelectedServer; |
76 | QString categoryFilter; | 76 | QString categoryFilter; |
77 | QString stickyOption; | 77 | QString stickyOption; |
78 | 78 | ||
79 | bool categoryFilterEnabled; | 79 | bool categoryFilterEnabled; |
80 | bool showJumpTo; | 80 | bool showJumpTo; |
81 | bool showUninstalledPkgs; | 81 | bool showUninstalledPkgs; |
82 | bool showInstalledPkgs; | 82 | bool showInstalledPkgs; |
83 | bool showUpgradedPkgs; | 83 | bool showUpgradedPkgs; |
84 | bool downloadEnabled; | 84 | bool downloadEnabled; |
85 | 85 | ||
86 | void initMainWidget(); | 86 | void initMainWidget(); |
87 | void updateData(); | 87 | void updateData(); |
88 | void serverSelected( int index, bool showProgress ); | 88 | void serverSelected( int index, bool showProgress ); |
89 | void searchForPackage( const QString & ); | 89 | void searchForPackage( const QString & ); |
90 | bool filterByCategory( bool val ); | 90 | bool filterByCategory( bool val ); |
91 | void downloadSelectedPackages(); | 91 | void downloadSelectedPackages(); |
92 | void downloadRemotePackage(); | 92 | void downloadRemotePackage(); |
93 | InstallData dealWithItem( QCheckListItem *item ); | 93 | InstallData dealWithItem( QCheckListItem *item ); |
94 | void reloadData(); | ||
94 | 95 | ||
95 | // Progress widget | 96 | // Progress widget |
96 | QWidget *progressWindow; | 97 | QWidget *progressWindow; |
97 | QLabel *m_status; | 98 | QLabel *m_status; |
98 | QProgressBar *m_progress; | 99 | QProgressBar *m_progress; |
99 | 100 | ||
100 | void initProgressWidget(); | 101 | void initProgressWidget(); |
101 | 102 | ||
102 | public slots: | 103 | public slots: |
103 | void setDocument( const QString &doc ); | 104 | // void setDocument( const QString &doc ); |
104 | void displayHelp(); | 105 | void displayHelp(); |
105 | void displayFindBar(); | 106 | void displayFindBar(); |
106 | void repeatFind(); | 107 | void repeatFind(); |
107 | void findPackage( const QString & ); | 108 | void findPackage( const QString & ); |
108 | void hideFindBar(); | 109 | void hideFindBar(); |
109 | void displayAbout(); | 110 | void displayAbout(); |
110 | void displaySettings(); | 111 | void displaySettings(); |
111 | void filterUninstalledPackages(); | 112 | void filterUninstalledPackages(); |
112 | void filterInstalledPackages(); | 113 | void filterInstalledPackages(); |
113 | void filterUpgradedPackages(); | 114 | void filterUpgradedPackages(); |
114 | void filterCategory(); | 115 | void filterCategory(); |
115 | bool setFilterCategory(); | 116 | bool setFilterCategory(); |
116 | void raiseMainWidget(); | 117 | void raiseMainWidget(); |
117 | void raiseProgressWidget(); | 118 | void raiseProgressWidget(); |
118 | void enableUpgrade( bool ); | 119 | void enableUpgrade( bool ); |
119 | void enableDownload( bool ); | 120 | void enableDownload( bool ); |
120 | 121 | ||
121 | private slots: | 122 | private slots: |
122 | void init(); | 123 | void init(); |
123 | void setProgressSteps( int ); | 124 | void setProgressSteps( int ); |
124 | void setProgressMessage( const QString & ); | 125 | void setProgressMessage( const QString & ); |
125 | void updateProgress( int ); | 126 | void updateProgress( int ); |
126 | void serverSelected( int index ); | 127 | void serverSelected( int index ); |
127 | void updateServer(); | 128 | void updateServer(); |
128 | void upgradePackages(); | 129 | void upgradePackages(); |
129 | void downloadPackage(); | 130 | void downloadPackage(); |
130 | void applyChanges(); | 131 | void applyChanges(); |
131 | void letterPushed( QString t ); | 132 | void letterPushed( QString t ); |
132 | }; | 133 | }; |
133 | #endif | 134 | #endif |