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

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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
DebuggerGUI.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY)
6 #ifndef DEBUGGERGUI_H
7 #define DEBUGGERGUI_H
8
9 //(*Headers(DebuggerGUI)
10 #include <wx/listctrl.h>
11 #include <wx/treectrl.h>
12 #include <wx/notebook.h>
13 #include <wx/sizer.h>
14 #include <wx/stattext.h>
15 #include <wx/aui/aui.h>
16 #include <wx/panel.h>
17 #include <wx/bmpbuttn.h>
18 //*)
19 #include <wx/toolbar.h>
20
21 #include "GDCpp/RuntimeScene.h"
22 #include "GDCpp/Project.h"
23 #include "GDCpp/IDE/BaseDebugger.h"
24
25 #ifdef ___WXMSW___
26 #include <wx/msw/winundef.h>
27 #endif
28
29 class GD_API DebuggerGUI: public wxPanel, public BaseDebugger
30 {
31 public:
32
33 DebuggerGUI(wxWindow* parent, RuntimeScene & scene_);
34 virtual ~DebuggerGUI();
35
36 //(*Declarations(DebuggerGUI)
37 wxAuiManager* AuiManager1;
38 wxPanel* toolbarPanel;
39 wxAuiToolBar* toolbar;
40 wxListCtrl* generalList;
41 wxNotebook* Notebook1;
42 wxTreeCtrl* objectsTree;
43 wxBitmapButton* deleteBt;
44 wxPanel* Panel1;
45 wxStaticText* StaticText1;
46 wxStaticText* objectName;
47 wxListCtrl* objectList;
48 wxPanel* Panel2;
49 //*)
50
51 void Pause();
52 void Play();
53 protected:
54
55 //(*Identifiers(DebuggerGUI)
56 static const long ID_AUITOOLBARITEM1;
57 static const long ID_AUITOOLBARITEM2;
58 static const long ID_AUITOOLBARITEM3;
59 static const long ID_AUITOOLBARITEM5;
60 static const long ID_AUITOOLBARITEM6;
61 static const long ID_AUITOOLBARITEM4;
62 static const long ID_AUITOOLBAR1;
63 static const long ID_PANEL3;
64 static const long ID_LISTCTRL2;
65 static const long ID_PANEL1;
66 static const long ID_TREECTRL1;
67 static const long ID_STATICTEXT1;
68 static const long ID_STATICTEXT2;
69 static const long ID_BITMAPBUTTON1;
70 static const long ID_LISTCTRL1;
71 static const long ID_PANEL2;
72 static const long ID_NOTEBOOK1;
73 //*)
74 static const long ID_PLAYBT;
75 static const long ID_PAUSEBT;
76 static const long ID_STEPBT;
77 static const long ID_CONSOLEBT;
78 static const long ID_VARSCENEBT;
79 static const long ID_VARGLOBALBT;
80 static const long ID_ADDOBJBT;
81 static const long ID_EXTLIST;
82
83 private:
84
85 //(*Handlers(DebuggerGUI)
86 void OntoolbarPanelResize(wxSizeEvent& event);
87 void OnobjectsTreeSelectionChanged(wxTreeEvent& event);
88 void OnobjectsTreeItemActivated(wxTreeEvent& event);
89 void OnobjectListItemActivated(wxListEvent& event);
90 void OnBitmapButton1Click(wxCommandEvent& event);
91 void OndeleteBtClick(wxCommandEvent& event);
92 void OngeneralListItemActivated(wxListEvent& event);
93 void OnResize(wxSizeEvent& event);
94 void OnPlayBtClick(wxCommandEvent& event);
95 void OnPauseBtClick(wxCommandEvent& event);
96 void OnStepBtClick(wxCommandEvent& event);
97 void OnAddObjBtClick(wxCommandEvent& event);
98 void OnAddVarGlobalBtClick(wxCommandEvent& event);
99 void OnAddVarSceneBtClick(wxCommandEvent& event);
100 //*)
101 void UpdateGUI();
102 void OnExtensionListItemActivated(wxListEvent& event);
103 void UpdateListCtrlColumnsWidth();
104
105 void RecreateListForObject(const RuntimeObjSPtr & object);
106
107 RuntimeScene & scene;
108
109 std::map < boost::weak_ptr<RuntimeObject>, std::pair<std::string, wxTreeItemId> > objectsInTree;
110 std::map < std::string, wxTreeItemId > initialObjects;
111 bool mustRecreateTree;
112
113 std::vector<wxListCtrl*> extensionsListCtrls;
114
115 unsigned int baseItemCount;
116 unsigned int generalBaseItemCount;
117 unsigned int generalBaseAndVariablesItemCount;
118 bool doMAJ;
119 bool objectChanged;
120
121 wxFont font;
122
123 DECLARE_EVENT_TABLE()
124 };
125
126 #endif
127 #endif