diff 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
line wrap: on
line diff
--- a/ui/mainwindow.h	Tue May 27 16:17:09 2014 +0200
+++ b/ui/mainwindow.h	Tue May 27 16:25:33 2014 +0200
@@ -22,14 +22,15 @@
 #include <QPushButton>
 #include <QLabel>
 #include <QCheckBox>
+#include <QScrollArea>
 
 #include "downloader.h"
 #include "certificatelist.h"
+#include "certificatelistwidget.h"
 class QMenu;
 class QAction;
 class QTimer;
 
-Q_DECLARE_METATYPE(Certificate);
 
 class MainWindow : public QMainWindow
 {
@@ -81,6 +82,11 @@
     void saveAutoUpdate(int state);
     void saveAutoStart(int state);
 
+    void togglePages(int button);
+    void toggleUpdatesNew();
+    void toggleUpdatesRemove();
+    void toggleUpdatesManual();
+
     /** @brief get the last modified date on the download server for
      * the current version.
      *
@@ -145,7 +151,6 @@
     void verifyAvailableData();
     void createTrayIcon();
     void createActions();
-    void createMenuBar();
     void createContent();
     void loadCertificateList();
 
@@ -217,6 +222,18 @@
 
     QPushButton *installButton;
     QPushButton *quitButton;
+
+    QButtonGroup *mButtonGroup;
+    QScrollArea *mUpdatesPanel;
+    QWidget *mUpdatesWidget;
+    QScrollArea *mInstallPanel;
+    QScrollArea *mRemovePanel;
+    QScrollArea *mInfoPanel;
+
+    CertificateListWidget *mUpdatesNew;
+    CertificateListWidget *mUpdatesRemove;
+    CertificateListWidget *mUpdatesManual;
+    CertificateListWidget *mInstallList;
 };
 
 #endif // MAINWINDOW_H

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