From cb17c3035bbd80bd8ea6718bae4c57cfb2555653 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 15 Jun 2017 23:20:00 +0200 Subject: Initial monitor GUI Basic monitor functionality, GTK-3.0 and QT5 backends --- src/gui_formapply.hh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/gui_formapply.hh (limited to 'src/gui_formapply.hh') diff --git a/src/gui_formapply.hh b/src/gui_formapply.hh new file mode 100644 index 0000000..6e4af11 --- /dev/null +++ b/src/gui_formapply.hh @@ -0,0 +1,30 @@ +// -*- mode: c++; c-basic-offset: 2; -*- + +#ifndef GUI_FORMAPPLY_HH +#define GUI_FORMAPPLY_HH + +#include "gui_form.hh" + +class GuiFormApply : public virtual GuiForm { +public: + class Delegate { + public: + virtual ~Delegate() {} + + virtual void apply(GuiFormApply* connect) = 0; + + protected: + Delegate() {} + }; + + static GuiFormApply* create(std::string const& title, std::string const& text, + std::string const& apply_button, + Delegate* delegate); + + virtual void applied(bool success) = 0; + +protected: + GuiFormApply() {} +}; + +#endif // GUI_FORMAPPLY_HH -- cgit v1.2.3-70-g09d2