comparison ui/mainwindow.h @ 1061:db831a204a6b

(issue38) Show error message as messagebox if the window is visible
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 10 Sep 2014 11:05:34 +0200
parents 879a634d0a40
children 75a5bfe0525e
comparison
equal deleted inserted replaced
1060:317ee9dc4684 1061:db831a204a6b
167 * 167 *
168 * Once the installer process is started this function terminates 168 * Once the installer process is started this function terminates
169 * the application. */ 169 * the application. */
170 void installNewSW(const QString& fileName, const QDateTime& modDate); 170 void installNewSW(const QString& fileName, const QDateTime& modDate);
171 171
172 /** @brief show an error message
173 *
174 * This is a wrapper around QMessageBox to allow for central
175 * styling of error messages.
176 */
177 void showErrorMessage(const QString &msg);
178
172 signals: 179 signals:
173 /** @brief emits the changecount as a string when it changes */ 180 /** @brief emits the changecount as a string when it changes */
174 void changesChanged(const QString& cnt); 181 void changesChanged(const QString& cnt);
175 182
176 private: 183 private:
215 QWidget *createInstallWidget(); 222 QWidget *createInstallWidget();
216 /** @brief create and set up the certifcates to remove widget 223 /** @brief create and set up the certifcates to remove widget
217 * (accessible via button panel) */ 224 * (accessible via button panel) */
218 QWidget *createRemoveWidget(); 225 QWidget *createRemoveWidget();
219 226
220 /* Are we running in tray mode ?*/ 227 /** @brief true if the software is running in tray mode*/
221 const bool mTrayMode; 228 const bool mTrayMode;
222 /* The message currently shown at intervals */ 229
230 /** @brief The currently shown message */
223 QString mCurMessage; 231 QString mCurMessage;
232 /** @brief The version the Software thinks is installed */
224 QString mInstalledSWVersion; 233 QString mInstalledSWVersion;
234 /** @brief The certificate list the Software thinks is installed */
225 QString mInstalledListVersion; 235 QString mInstalledListVersion;
226 236
227 QSettings mSettings; 237 QSettings mSettings;
228 238
229 TrayIcon *mTrayIcon; 239 TrayIcon *mTrayIcon;

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