Game Develop Core: AdvancedEntryDialog.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
AdvancedEntryDialog.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6
7 #ifndef AdvancedTextEntryDialog_H
8 #define AdvancedTextEntryDialog_H
9
10 //(*Headers(AdvancedTextEntryDialog)
11 #include <wx/sizer.h>
12 #include <wx/stattext.h>
13 #include <wx/textctrl.h>
14 #include <wx/statline.h>
15 #include <wx/button.h>
16 #include <wx/dialog.h>
17 //*)
18 namespace gd { class Project; }
19 namespace gd { class Layout; }
20
21 namespace gd
22 {
23
24 class AdvancedTextEntryDialog: public wxDialog
25 {
26 public:
27 enum MoreButtonType { None, MathExpression, TextExpression };
28
29 AdvancedTextEntryDialog(wxWindow* parent, std::string caption, std::string description, std::string defaultText, MoreButtonType moreButtonType = None, gd::Project * project_ = NULL, gd::Layout * layout_ = NULL);
30 virtual ~AdvancedTextEntryDialog();
31
32 //(*Declarations(AdvancedTextEntryDialog)
33 wxStaticText* descriptionTxt;
34 wxTextCtrl* textEdit;
35 wxButton* cancelBt;
36 wxButton* moreBt;
37 wxStaticLine* StaticLine1;
38 wxButton* okBt;
39 //*)
40
41 std::string text;
42
43 protected:
44
45 //(*Identifiers(AdvancedTextEntryDialog)
46 static const long ID_STATICTEXT1;
47 static const long ID_TEXTCTRL1;
48 static const long ID_STATICLINE1;
49 static const long ID_BUTTON1;
50 static const long ID_BUTTON2;
51 static const long ID_BUTTON3;
52 //*)
53
54 private:
55
56 //(*Handlers(AdvancedTextEntryDialog)
57 void OnmoreBtClick(wxCommandEvent& event);
58 void OnokBtClick(wxCommandEvent& event);
59 void OncancelBtClick(wxCommandEvent& event);
60 //*)
61
62 MoreButtonType moreButtonType;
63 gd::Project * project;
64 gd::Layout * layout;
65
66 DECLARE_EVENT_TABLE()
67 };
68
69 }
70 #endif
71 #endif