diff 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
line wrap: on
line diff
--- a/ui/mainwindow.h	Fri Jul 04 16:13:40 2014 +0200
+++ b/ui/mainwindow.h	Fri Jul 04 16:15:59 2014 +0200
@@ -194,8 +194,21 @@
 
     void createTrayIcon();
     void createActions();
+    void loadCertificateList();
+
+    /** @brief UI setup */
     void setupGUI();
-    void loadCertificateList();
+
+    /** @brief create and set up the info widget (accessible via button panel) */
+    QWidget *createInfoWidget();
+    /** @brief create and set up the updates widget (accessible via button panel) */
+    QWidget *createUpdatesWidget();
+    /** @brief create and set up the certifcates to install widget
+     * (accessible via button panel) */
+    QWidget *createInstallWidget();
+    /** @brief create and set up the certifcates to remove widget
+     * (accessible via button panel) */
+    QWidget *createRemoveWidget();
 
     /* Are we running in tray mode ?*/
     const bool mTrayMode;
@@ -227,11 +240,10 @@
     QLabel *mNewListDate;
 
     QButtonGroup *mButtonGroup;
-    QScrollArea *mUpdatesPanel;
     QWidget *mUpdatesWidget;
-    QScrollArea *mInstallPanel;
-    QScrollArea *mRemovePanel;
-    QScrollArea *mInfoPanel;
+    QWidget *mInstallWidget;
+    QWidget *mRemoveWidget;
+    QWidget *mInfoWidget;
 
     QLabel *mUpdatesHeader;
     QLabel *mLastCertUpdate;
@@ -242,6 +254,10 @@
     QLabel *mUpdatesManualCertificates;
     QLabel *mUpdatesTip;
 
+    /* These are a bit of a pattern break, they should
+     * be accessed over the according page widgets.
+     *
+     * They are initialized in the create*widget functions.*/
     CertificateListWidget *mUpdatesNew;
     CertificateListWidget *mUpdatesRemove;
     CertificateListWidget *mUpdatesManual;

http://wald.intevation.org/projects/trustbridge/