view ui/mainwindow.h @ 12:9121eea6d93f

Fix constructor usage. Too much Java.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Feb 2014 11:30:55 +0000
parents cf88cc432b9d
children 225a5ec20dad
line wrap: on
line source
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QSystemTrayIcon>
#include <QDialog>
class QMenu;
class QAction;

class MainWindow : public QDialog
{
    Q_OBJECT

public:
    MainWindow();

    void setMessage(const QString message) {mCurMessage = message;}
    QString getMessage() {return mCurMessage;}

private slots:
    void showMessage();
    void iconActivated(QSystemTrayIcon::ActivationReason reason);
    void manualCheck();

private:
    void createTrayIcon();
    void createActions();

    QString mCurMessage;

    QSystemTrayIcon *mTrayIcon;

    QMenu *mTrayMenu;
    QAction *mCheckUpdates;
    QAction *mQuitAction;
};

#endif // MAINWINDOW_H

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