21 #ifndef __ANTARES_APPLICATION_WINDOW_CONSTRAINTSBUILDER_H__
22 #define __ANTARES_APPLICATION_WINDOW_CONSTRAINTSBUILDER_H__
25 #include <ui/common/component/spotlight.h>
26 #include <wx/checkbox.h>
27 #include <wx/dialog.h>
28 #include <wx/radiobut.h>
32 #include <yuni/core/event.h>
33 #include <yuni/thread/thread.h>
35 #include "antares/solver/constraints-builder/cbuilder.h"
37 #include "../../toolbox/components/datagrid/component.h"
38 #include "../../toolbox/components/datagrid/renderer/constraintsbuilder/links.h"
40 namespace Antares::Window
54 mnIDCancel = wxID_HIGHEST + 1,
60 mnIDUpdateFileMapping,
73 void onIncludeLoopFlow(wxCommandEvent& evt);
74 void onUsePhaseShift(wxCommandEvent& evt);
75 void onUpdateLinesStatus(
void*);
76 void onCheckNodalLoopFlow(wxCommandEvent& evt);
77 void onUpdateInfiniteValue(wxCommandEvent& evt);
90 bool saveToFile(
const Yuni::String& filename)
const;
92 const Yuni::String& cBuilderInfoFile()
const
97 void cBuilderInfoFile(
const Yuni::String& f)
102 void beforeUpdate(
int,
int);
103 void afterUpdate(
int,
int);
106 void onCancel(
void*);
108 void onDelete(
void*);
111 void evtPrefixChanged(wxCommandEvent& evt);
112 void enableAll(
bool v);
114 void gridAppend(wxFlexGridSizer& sizer,
115 const wxString& title,
120 void updateBeginningHourLabel(wxEvent& evt);
122 void updateEndHourLabel(wxEvent& evt);
125 wxStaticText* mapName;
126 wxStaticText* startingHourLabel;
127 wxStaticText* endHourLabel;
128 wxTextCtrl* startingHourCtrl;
129 wxTextCtrl* endHourCtrl;
130 wxSizer* startingHourSizer;
131 wxSizer* endHourSizer;
132 wxFlexGridSizer* pFlexSizer;
134 wxCheckBox* pIncludeLoopFlow;
135 wxCheckBox* pIncludePhaseShifts;
136 wxCheckBox* pCheckNodalLoopFlow;
137 wxTextCtrl* pInfiniteValue;
139 Yuni::String pInfoFilename;
141 wxButton* pBtnDelete;
144 wxTimer* pProceedTimer;
148 wxRadioButton* pPrefixMesh;
149 wxRadioButton* pPrefixGrid;
150 wxRadioButton* pPrefixNetwork;
153 wxStaticText* pTextDelete;
158 RendererType* pRenderer;
162 DECLARE_EVENT_TABLE()
Definition: cbuilder.h:218
A datagrid with virtual values.
Definition: component.h:84
std::map< Yuni::String, Yuni::String > Map
Map of string.
Definition: links.h:41
Definition: constraintsbuilder.h:43
ConstraintsBuilderWizard(wxFrame *parent)
Default constructor, with a parent frame.
Definition: constraintsbuilder.cpp:74
bool saveToFile(const Yuni::String &filename) const
Export all infos into an INI file.
Definition: constraintsbuilder.cpp:718
Component::Datagrid::Renderer::ConstraintsBuilder::Links::Map FileMapping
File mapping.
Definition: constraintsbuilder.h:46
virtual ~ConstraintsBuilderWizard()
Destructor.
Definition: constraintsbuilder.cpp:462
std::shared_ptr< FileMapping > FileMappingPtr
Smartptr for file mapping.
Definition: constraintsbuilder.h:50
void refreshGrid()
Force the refresh of the grid.