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