Game Develop Core: ObjectsPropgridHelper.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
ObjectsPropgridHelper.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6 #ifndef OBJECTSPROPGRIDHELPER_H
7 #define OBJECTSPROPGRIDHELPER_H
8
9 #include <wx/propgrid/propgrid.h>
10 #include <vector>
11 namespace gd { class MainFrameWrapper; }
12 namespace gd { class Object; }
13 namespace gd { class Project; }
14 namespace gd { class Layout; }
15
16 namespace gd
17 {
18
27 class GD_CORE_API ObjectsPropgridHelper
28 {
29 public:
30
36 ObjectsPropgridHelper(gd::Project & project_, gd::MainFrameWrapper & mainFrameWrapper_) : grid(NULL), project(project_), mainFrameWrapper(mainFrameWrapper_) {};
37 virtual ~ObjectsPropgridHelper() {};
38
44 void RefreshFrom(const gd::Object * object, bool displayedAfterInstanceProperties = false);
45
53 bool OnPropertySelected(gd::Object * object, gd::Layout * layout, wxPropertyGridEvent& event);
54
62 bool OnPropertyChanged(gd::Object * object, gd::Layout * layout, wxPropertyGridEvent& event);
63
67 void SetGrid(wxPropertyGrid * grid_) { grid = grid_; }
68
69 private:
70
75 void UpdateAutomatismsSharedData(gd::Project & project, gd::Layout * layout) const;
76
77 wxPropertyGrid * grid;
78 gd::Project & project;
79 gd::MainFrameWrapper & mainFrameWrapper;
80 };
81
82 }
83
84 #endif // OBJECTSPROPGRIDHELPER_H
85 #endif