1 #ifndef MSP_GLTK_DIALOG_H_
2 #define MSP_GLTK_DIALOG_H_
12 A Dialog is used for temporary interaction with the user. When any of the
13 Dialog's action buttons are clicked, it will emit a signal and delete itself.
15 class Dialog: public Panel
18 class Loader: public DataFile::DerivedObjectLoader<Dialog, Panel::Loader>
21 Loader(Dialog &, WidgetMap &);
23 void action_button(const std::string &, int);
26 sigc::signal<void, int> signal_response;
34 /** Adds an action button to the dialog. Pressing the button will invoke
35 response handlers and delete the dialog. */
36 void add_button(Button &, int);
38 virtual void button_release(int, int, unsigned);
39 virtual bool key_release(unsigned, unsigned);
43 /** Called when an action button is pressed. */
44 virtual void on_response(int) { }