Mercurial > trustbridge
comparison ui/mainwindow.h @ 584:ebfe1128ee97 trustbridge-refactor
Started trustbridge mainwindow refactoring.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 27 May 2014 16:25:33 +0200 |
parents | aee3eb10bbba |
children | 3a9c0f38bbad |
comparison
equal
deleted
inserted
replaced
583:7d6026424f37 | 584:ebfe1128ee97 |
---|---|
20 #include <QListWidget> | 20 #include <QListWidget> |
21 #include <QTextEdit> | 21 #include <QTextEdit> |
22 #include <QPushButton> | 22 #include <QPushButton> |
23 #include <QLabel> | 23 #include <QLabel> |
24 #include <QCheckBox> | 24 #include <QCheckBox> |
25 #include <QScrollArea> | |
25 | 26 |
26 #include "downloader.h" | 27 #include "downloader.h" |
27 #include "certificatelist.h" | 28 #include "certificatelist.h" |
29 #include "certificatelistwidget.h" | |
28 class QMenu; | 30 class QMenu; |
29 class QAction; | 31 class QAction; |
30 class QTimer; | 32 class QTimer; |
31 | 33 |
32 Q_DECLARE_METATYPE(Certificate); | |
33 | 34 |
34 class MainWindow : public QMainWindow | 35 class MainWindow : public QMainWindow |
35 { | 36 { |
36 Q_OBJECT | 37 Q_OBJECT |
37 | 38 |
79 void installCerts(); | 80 void installCerts(); |
80 | 81 |
81 void saveAutoUpdate(int state); | 82 void saveAutoUpdate(int state); |
82 void saveAutoStart(int state); | 83 void saveAutoStart(int state); |
83 | 84 |
85 void togglePages(int button); | |
86 void toggleUpdatesNew(); | |
87 void toggleUpdatesRemove(); | |
88 void toggleUpdatesManual(); | |
89 | |
84 /** @brief get the last modified date on the download server for | 90 /** @brief get the last modified date on the download server for |
85 * the current version. | 91 * the current version. |
86 * | 92 * |
87 * After the initial installation this function can be used to | 93 * After the initial installation this function can be used to |
88 * determine the DateTime that corresponds to the currently installed | 94 * determine the DateTime that corresponds to the currently installed |
143 * and mInstalledList. | 149 * and mInstalledList. |
144 */ | 150 */ |
145 void verifyAvailableData(); | 151 void verifyAvailableData(); |
146 void createTrayIcon(); | 152 void createTrayIcon(); |
147 void createActions(); | 153 void createActions(); |
148 void createMenuBar(); | |
149 void createContent(); | 154 void createContent(); |
150 void loadCertificateList(); | 155 void loadCertificateList(); |
151 | 156 |
152 /** @brief Create a separator item for the certificate list. | 157 /** @brief Create a separator item for the certificate list. |
153 * | 158 * |
215 QCheckBox *mAutoUpdateOption; | 220 QCheckBox *mAutoUpdateOption; |
216 QCheckBox *mAutoStartOption; | 221 QCheckBox *mAutoStartOption; |
217 | 222 |
218 QPushButton *installButton; | 223 QPushButton *installButton; |
219 QPushButton *quitButton; | 224 QPushButton *quitButton; |
225 | |
226 QButtonGroup *mButtonGroup; | |
227 QScrollArea *mUpdatesPanel; | |
228 QWidget *mUpdatesWidget; | |
229 QScrollArea *mInstallPanel; | |
230 QScrollArea *mRemovePanel; | |
231 QScrollArea *mInfoPanel; | |
232 | |
233 CertificateListWidget *mUpdatesNew; | |
234 CertificateListWidget *mUpdatesRemove; | |
235 CertificateListWidget *mUpdatesManual; | |
236 CertificateListWidget *mInstallList; | |
220 }; | 237 }; |
221 | 238 |
222 #endif // MAINWINDOW_H | 239 #endif // MAINWINDOW_H |