diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-02-26 16:07:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-27 06:31:06 +0100 |
commit | 59ab849854bec7f61a527c4b6e5a1f063c57abb8 (patch) | |
tree | 9edc9025f935ab46d55c9eb72f0b38a47ac119fa /qt-ui/mainwindow.h | |
parent | e6482bbdc8a1359d51c70aaf847d3aac7895b960 (diff) | |
download | subsurface-59ab849854bec7f61a527c4b6e5a1f063c57abb8.tar.gz |
Creating a Notification widget in the Main Window.
The main error message bar can be used to show exporting information and
other notification.
So a new Notification handler object is created in the main window
<NotificationWidget> that inherits <KMessageWidget> that shows different
type of notifications, ex. (Warning, Error and information)
Also this class contains a QFutureWatcher object that is set to handle
the QFuture variable returned from the exporting thread. this will allow
the UI to be updated when the thread finishes execution.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 7514a0938..06b180a39 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -13,6 +13,7 @@ #include <QUuid> #include "ui_mainwindow.h" +#include "notificationwidget.h" struct DiveList; class QSortFilterProxyModel; @@ -92,6 +93,7 @@ public: void setApplicationState(const QByteArray& state); void showV2Dialog(); QUndoStack *undoStack; + NotificationWidget *getNotificationWidget(); private slots: /* file menu action */ |