From ea406769262b5ebd7d9f775e26a8655a6ee94d00 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 16 Apr 2017 19:29:59 +0200 Subject: Add modal dialog primitive. --- plugingui/eventhandler.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugingui/eventhandler.h') 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 #include #include +#include #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 getNextEvent(); + void registerDialog(Dialog* dialog); + void unregisterDialog(Dialog* dialog); + Notifier<> closeNotifier; private: @@ -66,6 +71,8 @@ private: bool lastWasDoubleClick; EventQueue events; + + std::list dialogs; }; } // GUI:: -- cgit v1.2.3