Debian Codegraph @

Examples/GUIStyle/MenuSystem/NS_MessageBox.h

raw
1 // NS_MessageBox.h: interface for the NS_MessageBox class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_NS_MESSAGEBOX_H__543C9C0A_F4E2_4410_A105_8C4D957CBF93__INCLUDED_)
6 #define AFX_NS_MESSAGEBOX_H__543C9C0A_F4E2_4410_A105_8C4D957CBF93__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include <ClanLib/gui.h>
13 #include <ClanLib/gui.h>
14 #include <ClanLib/signals.h>
15 #include <ClanLib/signals.h>
16
17 #include <map>
18 #include <string>
19
20 class CL_Font;
21
22 class NS_MessageBox : public CL_Window
23 {
24 public:
25 NS_MessageBox(CL_Component * parent,
26 std::string const & title,
27 std::string const & text,
28 std::string const & button1,
29 std::string const & button2,
30 std::string const & button3);
31 ~NS_MessageBox();
32 public:
33 void on_button1();
34 void on_button2();
35 void on_button3();
36 static int info(CL_Component * parent,
37 std::string const & title,
38 std::string const & text,
39 std::string const & button1,
40 std::string const & button2 = "",
41 std::string const & button3 = "");
42 int get_result() const;
43 void on_key_down(CL_InputEvent const & key);
44 void on_end_paint();
45 private:
46 std::map<std::string, CL_Component * > components;
47 int result;
48 CL_SlotContainer slots;
49 std::string title;
50 std::string text;
51 std::string button1_text;
52 std::string button2_text;
53 std::string button3_text;
54 CL_Font * font;
55 };
56
57 #endif // !defined(AFX_NS_MESSAGEBOX_H__543C9C0A_F4E2_4410_A105_8C4D957CBF93__INCLUDED_)