21 #ifndef __ANTARES_WINDOWS_INSPECTOR_FRAME_H__
22 #define __ANTARES_WINDOWS_INSPECTOR_FRAME_H__
24 #include <wx/propgrid/propgrid.h>
26 #include <antares/study/study.h>
29 #include <ui/common/component/panel.h>
31 namespace Antares::Window::Inspector
47 explicit Frame(wxWindow* parent,
bool allowAnyObject =
false);
87 void onSelectAllLinks(wxCommandEvent& evt);
88 void onSelectLink(wxCommandEvent& evt);
89 void onSelectAllLinksFromArea(wxCommandEvent& evt);
91 void onSelectAllPlants(wxCommandEvent& evt);
92 void onSelectPlant(wxCommandEvent& evt);
94 void clearAssociatinsBetweenIDAndPtr()
99 void assign(
int id,
const void* p)
101 mapIDPointer[id] =
const_cast<void*
>(p);
105 void onDelayApplyGlobalSelection();
107 void onStudyClosed();
108 void onSelectProperties(
void*);
109 void onSelectNotes(
void*);
110 void onPropertyChanging(wxPropertyGridEvent& event);
111 void onLoadUserNotes();
112 void onInternalRefresh(
const void* sender);
116 wxPropertyGrid* pPropertyGrid;
123 bool pAllowAnyObject;
131 wxPGProperty* pPGCommonStudyName;
132 wxPGProperty* pPGCommonStudyAuthor;
135 wxPGProperty* pPGStudySpace1;
136 wxPGProperty* pPGStudySpace2;
137 wxPGProperty* pPGStudyTitle;
138 wxPGProperty* pPGStudyGrpSimulation;
139 wxPGProperty* pPGStudyGrpCalendar;
140 wxPGProperty* pPGStudyMCScenarios;
141 wxPGProperty* pPGStudyOutputProfile;
142 wxPGProperty* pPGSimulationMode;
143 wxPGProperty* pPGStudyYears;
144 wxPGProperty* pPGStudyCalendarBegin;
145 wxPGProperty* pPGStudyCalendarEnd;
146 wxPGProperty* pPGStudy1rstJanuary;
147 wxPGProperty* pPGStudyHorizon;
148 wxPGProperty* pPGStudyCalendarMonth;
149 wxPGProperty* pPGStudyLeapYear;
150 wxPGProperty* pPGStudyCalendarWeek;
151 wxPGProperty* pPGStudyBuildMode;
152 wxPGProperty* pPGStudyPlaylist;
153 wxPGProperty* pPGStudySimulationSynthesis;
154 wxPGProperty* pPGStudyYearByYear;
155 wxPGProperty* pPGGeographicTrimming;
156 wxPGProperty* pPGThematicTrimming;
157 wxPGProperty* pPGStudyUseMCScenarios;
160 wxPGProperty* pPGAreaSeparator;
161 wxPGProperty* pPGAreaTitle;
162 wxPGProperty* pPGAreaGeneral;
163 wxPGProperty* pPGAreaOptimization;
164 wxPGProperty* pPGAreaLocalization;
165 wxPGProperty* pPGAreaFilteringStatus;
166 wxPGProperty* pPGAreaFilteringSynthesis[5];
167 wxPGProperty* pPGAreaFilteringYbY[5];
168 wxPGProperty* pPGAreaDeps;
169 wxPGProperty* pPGAreaResort;
170 wxPGProperty* pPGAreaResortNon;
171 wxPGProperty* pPGAreaResortHydroPower;
172 wxPGProperty* pPGAreaResortOther;
173 wxPGProperty* pPGUnsupplied;
174 wxPGProperty* pPGSpilled;
175 wxPGProperty* pPGAreaName;
176 wxPGProperty* pPGAreaAdequacyPatchTitle;
177 wxPGProperty* pPGAreaAdequacyPatchMode;
178 wxPGProperty* pPGAreaColor;
179 wxPGProperty* pPGAreaLinks;
180 wxPGProperty* pPGAreaPlants;
183 wxPGProperty* pPGLinkSeparator;
184 wxPGProperty* pPGLinkFilteringStatus;
185 wxPGProperty* pPGLinkFilteringSynthesis[5];
186 wxPGProperty* pPGLinkFilteringYbY[5];
187 wxPGProperty* pPGLinkColor;
188 wxPGProperty* pPGLinkStyle;
189 wxPGProperty* pPGLinkWidth;
192 wxPGProperty* pPGThClusterSeparator;
193 wxPGProperty* pPGThClusterGeneral;
194 wxPGProperty* pPGThClusterParams;
195 wxPGProperty* pPGThClusterReliabilityModel;
196 wxPGProperty* pPGThClusterCosts;
197 wxPGProperty* pPGThClusterName;
198 wxPGProperty* pPGThClusterDoGenerateTS;
201 wxPGProperty* pPGThClusterNominalCapacity;
202 wxPGProperty* pPGThClusterUnitCount;
203 wxPGProperty* pPGThClusterInstalled;
206 wxPGProperty* pPGThClusterEnabled;
207 wxPGProperty* pPGThClusterMustRun;
208 wxPGProperty* pPGThClusterGroup;
209 wxPGProperty* pPGThClusterArea;
210 wxPGProperty* pPGThClusterCO2;
211 wxPGProperty* pPGThClusterVolatilityForced;
212 wxPGProperty* pPGThClusterVolatilityPlanned;
213 wxPGProperty* pPGThClusterLawForced;
214 wxPGProperty* pPGThClusterLawPlanned;
215 wxPGProperty* pPGThClusterSpinning;
216 wxPGProperty* pPGThClusterEfficiency;
218 wxPGProperty* pPGThClusterCostGeneration;
219 wxPGProperty* pPGThClusterMarginalCost;
220 wxPGProperty* pPGThClusterFixedCost;
221 wxPGProperty* pPGThClusterStartupCost;
222 wxPGProperty* pPGThClusterOperatingCost;
223 wxPGProperty* pPGThClusterRandomSpread;
224 wxPGProperty* pPGThClusterVariableOMcost;
226 wxPGProperty* pPGThClusterMinStablePower;
227 wxPGProperty* pPGThClusterMinUpTime;
228 wxPGProperty* pPGThClusterMinDownTime;
231 wxPGProperty* pPGRnClusterSeparator;
232 wxPGProperty* pPGRnClusterGeneral;
233 wxPGProperty* pPGRnClusterName;
234 wxPGProperty* pPGRnClusterGroup;
235 wxPGProperty* pPGRnClusterArea;
236 wxPGProperty* pPGRnClusterParams;
239 wxPGProperty* pPGRnClusterUnitCount;
240 wxPGProperty* pPGRnClusterInstalled;
241 wxPGProperty* pPGRnClusterNominalCapacity;
244 wxPGProperty* pPGRnClusterEnabled;
245 wxPGProperty* pPGRnClusterTSMode;
248 wxPGProperty* pPGConstraintSeparator;
249 wxPGProperty* pPGConstraintTitle;
250 wxPGProperty* pPGConstraintName;
251 wxPGProperty* pPGConstraintGeneral;
252 wxPGProperty* pPGConstraintComments;
253 wxPGProperty* pPGConstraintEnabled;
254 wxPGProperty* pPGConstraintType;
259 std::map<int, void*> mapIDPointer;
262 bool pAlreadyConnectedToSimulationChangesEvent;
270 extern Frame* gInspector;
Panel implementation.
Definition: panel.h:34
Frame(wxWindow *parent, bool allowAnyObject=false)
Default constructor.
Definition: frame.cpp:200
void delayApplyGlobalSelection()
Apply the global selection (delayed)
Definition: frame.cpp:89
void detachFromTheMainForm()
Detach this inspector from the main form.
Definition: frame.cpp:633
void apply(const InspectorData::Ptr &data)
Prepare the inspector with the given selection of objects.
Definition: frame.cpp:702
virtual ~Frame()
Destructor.
Definition: frame.cpp:611
void delayApply()
Apply the current selection (delayed)
Definition: frame.cpp:79
void attachToTheMainForm()
Attach this inspector to the main form.
Definition: frame.cpp:643
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
Save As Dialog
Definition: notes.h:34