diff options
Diffstat (limited to 'plugingui/eventhandler.h')
-rw-r--r-- | plugingui/eventhandler.h | 7 |
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:: |