diff ui/mainwindow.h @ 155:c0fdb8d336cf

Added menubar/menu and method stubs to mainwindow.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 25 Mar 2014 09:22:55 +0100
parents 252ffe6e27fd
children 0c06a608e15f
line wrap: on
line diff
--- a/ui/mainwindow.h	Tue Mar 25 08:59:58 2014 +0100
+++ b/ui/mainwindow.h	Tue Mar 25 09:22:55 2014 +0100
@@ -9,6 +9,7 @@
 #include <QSystemTrayIcon>
 #include <QMainWindow>
 #include <QSettings>
+#include <QMenuBar>
 
 #include "downloader.h"
 #include "certificatelist.h"
@@ -45,6 +46,9 @@
     void downloaderError(const QString &message, SSLConnection::ErrorCode error);
     /** @brief Trigger the appropiate action depending on the state */
     void messageClicked();
+    void showSettings();
+    void showHelp();
+    void showAbout();
 
 private:
     /** @brief check the integrity of available files.
@@ -58,6 +62,7 @@
     void verifyAvailableData();
     void createTrayIcon();
     void createActions();
+    void createMenuBar();
 
     QString mCurMessage;
     QString mInstalledSWVersion;
@@ -71,6 +76,7 @@
     QAction *mCheckUpdates;
     QAction *mQuitAction;
     CurrentState mCurState;
+    QMenuBar *mMenuBar;
 
     CertificateList mListToInstall;
 };

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