diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-06-15 23:20:00 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-07-22 22:08:54 +0200 |
| commit | cb17c3035bbd80bd8ea6718bae4c57cfb2555653 (patch) | |
| tree | f454181a2f58071f5f2ba4408e7e179838ed3fb4 /src/gui_formapply.hh | |
| parent | face8e0a7d5f530ee3e5e63ab1e3d6ecd497326b (diff) | |
Initial monitor GUI
Basic monitor functionality, GTK-3.0 and QT5 backends
Diffstat (limited to 'src/gui_formapply.hh')
| -rw-r--r-- | src/gui_formapply.hh | 30 |
1 files changed, 30 insertions, 0 deletions
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 |
