Game Develop Core: ChooseAutomatismDialog.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
ChooseAutomatismDialog.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6
7 #ifndef ChooseAutomatismDialog_H
8 #define ChooseAutomatismDialog_H
9
10 //(*Headers(ChooseAutomatismDialog)
11 #include <wx/sizer.h>
12 #include <wx/stattext.h>
13 #include <wx/textctrl.h>
14 #include <wx/listbox.h>
15 #include <wx/statline.h>
16 #include <wx/panel.h>
17 #include <wx/statbmp.h>
18 #include <wx/button.h>
19 #include <wx/dialog.h>
20 //*)
21 #include <wx/srchctrl.h>
22 #include <string>
23 namespace gd { class Project; }
24 namespace gd { class Layout; }
25
26 namespace gd
27 {
28
34 class GD_CORE_API ChooseAutomatismDialog: public wxDialog
35 {
36 public:
37
47 ChooseAutomatismDialog(wxWindow* parent, Project & project, gd::Layout & layout, std::string parentObject_, std::string automatismTypeAllowed_);
48 virtual ~ChooseAutomatismDialog();
49
53 const std::string & GetChosenAutomatism() const { return automatismChosen; }
54
55 //(*Declarations(ChooseAutomatismDialog)
56 wxSearchCtrl* searchCtrl;
57 wxButton* ChoisirBt;
58 wxPanel* Panel1;
59 wxStaticText* StaticText1;
60 wxStaticLine* StaticLine2;
61 wxButton* AnnulerBt;
62 wxListBox* automatismsList;
63 wxStaticBitmap* StaticBitmap3;
64 //*)
65
66 protected:
67
68 //(*Identifiers(ChooseAutomatismDialog)
69 static const long ID_STATICBITMAP3;
70 static const long ID_STATICTEXT1;
71 static const long ID_PANEL1;
72 static const long ID_STATICLINE2;
73 static const long ID_LISTBOX1;
74 static const long ID_TEXTCTRL1;
75 static const long ID_BUTTON1;
76 static const long ID_BUTTON2;
77 //*)
78
79 private:
80
81 //(*Handlers(ChooseAutomatismDialog)
82 void OnChoisirBtClick(wxCommandEvent& event);
83 void OnCancelBtClick(wxCommandEvent& event);
84 void OnsearchCtrlText(wxCommandEvent& event);
85 void OnsearchCtrlTextEnter(wxCommandEvent& event);
86 //*)
87
88 void RefreshList();
89 Project & project;
90 gd::Layout & layout;
91 std::string parentObject;
92 std::string automatismTypeAllowed;
93 std::string automatismChosen;
94
95 DECLARE_EVENT_TABLE()
96 };
97
98 }
99 #endif
100 #endif