Mercurial > trustbridge
comparison ui/mainwindow.h @ 743:a467204a35f5
Rework User Interface.
Certificate lists are now plain lists of widgets and no longer
a ListWidget. Details are no longer shown extra but included
in the list. List entries are somewhat larger accordingly.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 04 Jul 2014 16:15:59 +0200 |
parents | 5f0fca113ff4 |
children | 27043d74dc90 |
comparison
equal
deleted
inserted
replaced
742:627e8d678b6d | 743:a467204a35f5 |
---|---|
192 */ | 192 */ |
193 void verifySWData(); | 193 void verifySWData(); |
194 | 194 |
195 void createTrayIcon(); | 195 void createTrayIcon(); |
196 void createActions(); | 196 void createActions(); |
197 void loadCertificateList(); | |
198 | |
199 /** @brief UI setup */ | |
197 void setupGUI(); | 200 void setupGUI(); |
198 void loadCertificateList(); | 201 |
202 /** @brief create and set up the info widget (accessible via button panel) */ | |
203 QWidget *createInfoWidget(); | |
204 /** @brief create and set up the updates widget (accessible via button panel) */ | |
205 QWidget *createUpdatesWidget(); | |
206 /** @brief create and set up the certifcates to install widget | |
207 * (accessible via button panel) */ | |
208 QWidget *createInstallWidget(); | |
209 /** @brief create and set up the certifcates to remove widget | |
210 * (accessible via button panel) */ | |
211 QWidget *createRemoveWidget(); | |
199 | 212 |
200 /* Are we running in tray mode ?*/ | 213 /* Are we running in tray mode ?*/ |
201 const bool mTrayMode; | 214 const bool mTrayMode; |
202 /* The message currently shown at intervals */ | 215 /* The message currently shown at intervals */ |
203 QString mCurMessage; | 216 QString mCurMessage; |
225 | 238 |
226 QLabel *mCurrentListDate; | 239 QLabel *mCurrentListDate; |
227 QLabel *mNewListDate; | 240 QLabel *mNewListDate; |
228 | 241 |
229 QButtonGroup *mButtonGroup; | 242 QButtonGroup *mButtonGroup; |
230 QScrollArea *mUpdatesPanel; | |
231 QWidget *mUpdatesWidget; | 243 QWidget *mUpdatesWidget; |
232 QScrollArea *mInstallPanel; | 244 QWidget *mInstallWidget; |
233 QScrollArea *mRemovePanel; | 245 QWidget *mRemoveWidget; |
234 QScrollArea *mInfoPanel; | 246 QWidget *mInfoWidget; |
235 | 247 |
236 QLabel *mUpdatesHeader; | 248 QLabel *mUpdatesHeader; |
237 QLabel *mLastCertUpdate; | 249 QLabel *mLastCertUpdate; |
238 QLabel *mSoftwareVersionLabel; | 250 QLabel *mSoftwareVersionLabel; |
239 QLabel *mLastUpdateCheck; | 251 QLabel *mLastUpdateCheck; |
240 QLabel *mUpdatesNewCertificates; | 252 QLabel *mUpdatesNewCertificates; |
241 QLabel *mUpdatesRemoveCertificates; | 253 QLabel *mUpdatesRemoveCertificates; |
242 QLabel *mUpdatesManualCertificates; | 254 QLabel *mUpdatesManualCertificates; |
243 QLabel *mUpdatesTip; | 255 QLabel *mUpdatesTip; |
244 | 256 |
257 /* These are a bit of a pattern break, they should | |
258 * be accessed over the according page widgets. | |
259 * | |
260 * They are initialized in the create*widget functions.*/ | |
245 CertificateListWidget *mUpdatesNew; | 261 CertificateListWidget *mUpdatesNew; |
246 CertificateListWidget *mUpdatesRemove; | 262 CertificateListWidget *mUpdatesRemove; |
247 CertificateListWidget *mUpdatesManual; | 263 CertificateListWidget *mUpdatesManual; |
248 CertificateListWidget *mInstallList; | 264 CertificateListWidget *mInstallList; |
249 CertificateListWidget *mRemoveList; | 265 CertificateListWidget *mRemoveList; |