21 #ifndef __ANTARES_WINDOWS_INSPECTOR_GRID_H__
22 #define __ANTARES_WINDOWS_INSPECTOR_GRID_H__
24 #include <antares/study/study.h>
25 #include <wx/propgrid/propgrid.h>
26 #include <wx/propgrid/advprops.h>
27 #include <wx/propgrid/manager.h>
28 #include <wx/propgrid/editors.h>
31 namespace Antares::Window::Inspector
41 wxWindowID
id = wxID_ANY,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
46 wxPropertyGrid(parent,
id, pos, size, style),
57 pCurrentSelection = data;
61 using PropertyNameType = Yuni::CString<128, false>;
63 void OnPropertyChanging(wxPropertyGridEvent& event);
64 bool onPropertyChanging_A(wxPGProperty*,
const PropertyNameType& name,
const wxVariant& value);
65 bool onPropertyChanging_C(wxPGProperty*,
const PropertyNameType& name,
const wxVariant& value);
66 bool onPropertyChanging_Constraint(wxPGProperty*,
67 const PropertyNameType& name,
68 const wxVariant& value);
69 bool onPropertyChanging_ThermalCluster(wxPGProperty*,
70 const PropertyNameType& name,
71 const wxVariant& value);
72 bool onPropertyChanging_RenewableClusters(
const PropertyNameType& name,
const wxVariant& value);
73 bool onPropertyChanging_L(wxPGProperty*,
const PropertyNameType& name,
const wxVariant& value);
74 bool onPropertyChanging_S(wxPGProperty*,
const PropertyNameType& name,
const wxVariant& value);
std::shared_ptr< InspectorData > Ptr
The most suitable smart pointer for the class.
Definition: data.h:40
Custom implementation of a property grid.
Definition: grid.h:37