// -*- 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