summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-16 19:29:59 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-16 20:15:19 +0200
commitea406769262b5ebd7d9f775e26a8655a6ee94d00 (patch)
treeee13d3a143d977e3ff12d864dcdd795261944669 /plugingui/eventhandler.h
parent1b3d6c39ae120aa8a80a5330977d23906f87c621 (diff)
Add modal dialog primitive.
Diffstat (limited to 'plugingui/eventhandler.h')
-rw-r--r--plugingui/eventhandler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugingui/eventhandler.h b/plugingui/eventhandler.h
index bd79084..8d6f492 100644
--- a/plugingui/eventhandler.h
+++ b/plugingui/eventhandler.h
@@ -29,6 +29,7 @@
#include <notifier.h>
#include <memory>
#include <queue>
+#include <list>
#include "guievent.h"
#include "nativewindow.h"
@@ -37,6 +38,7 @@ namespace GUI
{
class Window;
+class Dialog;
class EventHandler
{
@@ -56,6 +58,9 @@ public:
//! \return A pointer to the event or nullptr if there are none.
std::shared_ptr<Event> getNextEvent();
+ void registerDialog(Dialog* dialog);
+ void unregisterDialog(Dialog* dialog);
+
Notifier<> closeNotifier;
private:
@@ -66,6 +71,8 @@ private:
bool lastWasDoubleClick;
EventQueue events;
+
+ std::list<Dialog*> dialogs;
};
} // GUI::