]> git.tdb.fi Git - r2c2.git/blob - source/engineer/dialog.h
266a76a7613cc73970ffe5ceee2a99ae0e240f43
[r2c2.git] / source / engineer / dialog.h
1 #ifndef DIALOG_H_
2 #define DIALOG_H_
3
4 #include <msp/gltk/button.h>
5 #include <msp/gltk/panel.h>
6
7 class Dialog: public Msp::GLtk::Panel
8 {
9 public:
10         sigc::signal<void> signal_ok;
11         sigc::signal<void> signal_cancel;
12
13 protected:
14         Msp::GLtk::Button *btn_ok;
15         Msp::GLtk::Button *btn_cancel;
16         bool stale;
17
18         Dialog();
19
20         virtual void button_release(int, int, unsigned);
21         virtual void on_geometry_change();
22
23         virtual void on_ok_clicked() { }
24         void dismiss();
25 };
26
27 #endif