]> git.tdb.fi Git - r2c2.git/blob - source/engineer/dialog.h
Rename the project to R²C²
[r2c2.git] / source / engineer / dialog.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2009 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef DIALOG_H_
9 #define DIALOG_H_
10
11 #include <msp/gltk/button.h>
12 #include <msp/gltk/panel.h>
13
14 class Dialog: public Msp::GLtk::Panel
15 {
16 public:
17         sigc::signal<void> signal_ok;
18         sigc::signal<void> signal_cancel;
19
20 protected:
21         Msp::GLtk::Button *btn_ok;
22         Msp::GLtk::Button *btn_cancel;
23         bool stale;
24
25         Dialog();
26
27         virtual void button_release(int, int, unsigned);
28         virtual void on_geometry_change();
29
30         virtual void on_ok_clicked() { }
31         void dismiss();
32 };
33
34 #endif