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 sigc::signal<void, int> signal_response;
26 /** Adds an action button to the dialog. Pressing the button will invoke
27 response handlers and delete the dialog. */
28 void add_button(Button &, int);
30 virtual void button_release(int, int, unsigned);
31 virtual void key_release(unsigned, unsigned);
35 /** Called when an action button is pressed. */
36 virtual void on_response(int) { }