diff options
Diffstat (limited to 'src/gui_about.hh')
| -rw-r--r-- | src/gui_about.hh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/gui_about.hh b/src/gui_about.hh new file mode 100644 index 0000000..5f592f0 --- /dev/null +++ b/src/gui_about.hh @@ -0,0 +1,33 @@ +// -*- mode: c++; c-basic-offset: 2; -*- + +#ifndef GUI_ABOUT_HH +#define GUI_ABOUT_HH + +#include <string> + +#include "gui_window.hh" + +class GuiAbout : public GuiWindow { +public: + class Listener : public GuiWindow::Listener { + public: + virtual ~Listener() {} + + protected: + Listener() {} + }; + + static GuiAbout* create(std::string const& title, + std::string const& version, + char const* author_name, + char const* author_email, + ...); + + virtual void add_listener(Listener* listener) = 0; + virtual void remove_listener(Listener* listener) = 0; + +protected: + GuiAbout() {} +}; + +#endif // GUI_ABOUT_HH |
