Game Develop Core: InitialInstancesPropgridHelper.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
InitialInstancesPropgridHelper.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6 #ifndef INITIALINSTANCESPROPGRIDHELPER_H
7 #define INITIALINSTANCESPROPGRIDHELPER_H
8 #include <wx/propgrid/propgrid.h>
9 #include <vector>
10 #include <wx/propgrid/propgrid.h>
11 namespace gd { class InitialInstance; }
12 namespace gd { class Project; }
13 namespace gd { class Layout; }
14
15 namespace gd
16 {
17
64 class GD_CORE_API InitialInstancesPropgridHelper
65 {
66 public:
67
74 InitialInstancesPropgridHelper(gd::Project & project_, gd::Layout & layout_) : grid(NULL), project(project_), layout(layout_) {};
75 virtual ~InitialInstancesPropgridHelper() {};
76
81 void RefreshFrom(const std::vector<gd::InitialInstance*> & selectedInitialInstances);
82
88 void OnPropertySelected(const std::vector<gd::InitialInstance*> & selectedInitialInstances, wxPropertyGridEvent& event);
89
95 void OnPropertyChanged(const std::vector<gd::InitialInstance*> & selectedInitialInstances, wxPropertyGridEvent& event);
96
100 void SetGrid(wxPropertyGrid * grid_) { grid = grid_; }
101
102 private:
103 wxPropertyGrid * grid;
104 gd::Project & project;
105 gd::Layout & layout;
106 };
107
108 }
109
110 #endif // INITIALINSTANCESPROPGRIDHELPER_H
111 #endif