Game Develop C++ Platform: EditCppCodeEvent.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
EditCppCodeEvent.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6
7 #ifndef EDITCPPCODEEVENT_H
8 #define EDITCPPCODEEVENT_H
9
10 //(*Headers(EditCppCodeEvent)
11 #include <wx/sizer.h>
12 #include <wx/stattext.h>
13 #include <wx/textctrl.h>
14 #include <wx/checklst.h>
15 #include <wx/checkbox.h>
16 #include <wx/statline.h>
17 #include <wx/panel.h>
18 #include <wx/bmpbuttn.h>
19 #include <wx/statbmp.h>
20 #include <wx/button.h>
21 #include <wx/dialog.h>
22 #include <wx/stc/stc.h>
23 //*)
24 class CppCodeEvent;
25 namespace gd { class Project; }
26 namespace gd { class Layout; }
27
28 class EditCppCodeEvent: public wxDialog
29 {
30 public:
31
32 EditCppCodeEvent(wxWindow* parent, CppCodeEvent & event_, gd::Project & game_, gd::Layout & scene_);
33 virtual ~EditCppCodeEvent();
34
35 //(*Declarations(EditCppCodeEvent)
36 wxTextCtrl* displayedNameEdit;
37 wxStaticText* functionPrototypeTxt;
38 wxCheckBox* objectsListCheck;
39 wxCheckBox* displayCodeCheck;
40 wxTextCtrl* objectPassedAsParameterEdit;
41 wxPanel* Panel1;
42 wxStaticText* StaticText1;
43 wxStaticText* StaticText3;
44 wxButton* cancelBt;
45 wxCheckBox* sceneRefCheck;
46 wxStaticLine* StaticLine2;
47 wxBitmapButton* objectBt;
48 wxCheckListBox* dependenciesList;
49 wxStaticLine* StaticLine1;
50 wxStyledTextCtrl* codeEdit;
51 wxTextCtrl* includeTextCtrl;
52 wxStaticText* StaticText4;
53 wxButton* okBt;
54 wxStaticBitmap* StaticBitmap3;
55 //*)
56
57 protected:
58
59 //(*Identifiers(EditCppCodeEvent)
60 static const long ID_STATICBITMAP3;
61 static const long ID_STATICTEXT3;
62 static const long ID_PANEL1;
63 static const long ID_STATICLINE2;
64 static const long ID_CHECKBOX2;
65 static const long ID_CHECKBOX1;
66 static const long ID_TEXTCTRL3;
67 static const long ID_BITMAPBUTTON1;
68 static const long ID_CHECKLISTBOX1;
69 static const long ID_STATICTEXT1;
70 static const long ID_TEXTCTRL1;
71 static const long ID_CHECKBOX3;
72 static const long ID_TEXTCTRL2;
73 static const long ID_STATICTEXT5;
74 static const long ID_CUSTOM1;
75 static const long ID_STATICTEXT4;
76 static const long ID_STATICLINE1;
77 static const long ID_BUTTON1;
78 static const long ID_BUTTON2;
79 //*)
80
81 private:
82
83 //(*Handlers(EditCppCodeEvent)
84 void OnokBtClick(wxCommandEvent& event);
85 void OncancelBtClick(wxCommandEvent& event);
86 void OnobjectBtClick(wxCommandEvent& event);
87 void OnobjectPassedAsParameterEditText(wxCommandEvent& event);
88 void OnobjectsListCheckClick(wxCommandEvent& event);
89 void OnsceneRefCheckClick(wxCommandEvent& event);
90 //*)
91 void UpdateTextCtrl(wxStyledTextEvent& event);
92
93 void UpdateFunctionPrototype();
94
95 CppCodeEvent & editedEvent;
96 gd::Project & game;
97 gd::Layout & scene;
98
99 DECLARE_EVENT_TABLE()
100 };
101
102 #endif
103 #endif
104