summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/mainwin.h
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/mainwin.h3
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
24class DataManager; 24class DataManager;
25class InstallData; 25class InstallData;
26class InstallDlgImpl; 26class InstallDlgImpl;
27 27
28class QAction; 28class QAction;
29class QCheckListItem; 29class QCheckListItem;
30class QComboBox; 30class QComboBox;
31class QLabel; 31class QLabel;
32class QLineEdit; 32class QLineEdit;
33class QListView; 33class QListView;
34class QPEToolBar; 34class QPEToolBar;
35class QProgressBar; 35class QProgressBar;
36class QWidgetStack; 36class QWidgetStack;
37 37
38class MainWindow :public QMainWindow 38class MainWindow :public QMainWindow
39{ 39{
40 Q_OBJECT 40 Q_OBJECT
41public: 41public:
42 42
43 MainWindow(); 43 MainWindow();
44 ~MainWindow(); 44 ~MainWindow();
45 45
46protected:
47 void closeEvent( QCloseEvent* e );
48
46private: 49private:
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();