comparison ui/mainwindow.h @ 369:78eec57bc133

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 15 Apr 2014 09:44:54 +0200
parents 75f7288ad67b
children 6cc124e79066
comparison
equal deleted inserted replaced
368:f9c98f9e9f76 369:78eec57bc133
23 class MainWindow : public QMainWindow 23 class MainWindow : public QMainWindow
24 { 24 {
25 Q_OBJECT 25 Q_OBJECT
26 26
27 public: 27 public:
28 MainWindow(); 28 /**@brief create a new Main Window object
29 *
30 * In tray mode this window is not shown and only shows
31 * notification messages if there is some actionable state
32 * reached. If tray mode is true it also exits after
33 * an update check.
34 *
35 * @param[in] trayMode set the tray mode
36 * */
37 MainWindow(bool trayMode);
29 38
30 void setMessage(const QString message) {mCurMessage = message;} 39 void setMessage(const QString message) {mCurMessage = message;}
31 QString getMessage() {return mCurMessage;} 40 QString getMessage() {return mCurMessage;}
32 41
33 enum CurrentState { 42 enum CurrentState {
53 void showStatus(); 62 void showStatus();
54 void showHelp(); 63 void showHelp();
55 void showAbout(); 64 void showAbout();
56 void showDetails(QListWidgetItem*); 65 void showDetails(QListWidgetItem*);
57 void resizeButtons(); 66 void resizeButtons();
67 void installerError(const QString& errMsg);
68 void installCerts();
58 69
59 private: 70 private:
60 /** @brief check the integrity of available files. 71 /** @brief check the integrity of available files.
61 * 72 *
62 * Do not use this as a trust check as this only works on 73 * Do not use this as a trust check as this only works on
70 void createActions(); 81 void createActions();
71 void createMenuBar(); 82 void createMenuBar();
72 void createContent(); 83 void createContent();
73 void loadCertificateList(); 84 void loadCertificateList();
74 85
86 /* Are we running in tray mode ?*/
87 const bool mTrayMode;
88 /* The message currently shown at intervals */
75 QString mCurMessage; 89 QString mCurMessage;
76 QString mInstalledSWVersion; 90 QString mInstalledSWVersion;
77 QString mInstalledListVersion; 91 QString mInstalledListVersion;
78 92
79 QSettings mSettings; 93 QSettings mSettings;
86 CurrentState mCurState; 100 CurrentState mCurState;
87 QMenuBar *mMenuBar; 101 QMenuBar *mMenuBar;
88 102
89 CertificateList mListToInstall; 103 CertificateList mListToInstall;
90 104
91 QListWidget *certificateList; 105 QListWidget *mCertListWidget;
92 QTextEdit *certificateDetails; 106 QTextEdit *certificateDetails;
93 QPushButton *installButton; 107 QPushButton *installButton;
94 QPushButton *quitButton; 108 QPushButton *quitButton;
95 }; 109 };
96 110

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