1 #ifndef GPMG_VariablePanel_H
2 #define GPMG_VariablePanel_H
5 #include "GUI_GroupBoxPanel.h"
24 static const tFlag VAR_NAME;
25 static const tFlag VAR_TYPE;
26 static const tFlag VAR_CARD;
27 static const tFlag VAR_VALUE;
36 SP::GPM_Variable mVariable;
64 static inline SP::GPMG_VariablePanel
New() {
66 GPMG_VariablePanel::Delete());
74 GUI_GroupBoxPanel::toDoAfterThisSetting();
128 void createComponents();
133 tString variableValueToGuiString()
const;
138 void guiStringToVariableValue(
const tString& value)
const;
#define tBoolean
Definition: types.h:35
DEFINE_SPTR(GPMG_VariablePanel)
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: GPMG_VariablePanel.cpp:110
GPMG_VariablePanel()
build a GPMG_VariablePanel
Definition: GPMG_VariablePanel.cpp:31
SP::GPM_Variable getVariable(tString &name) const
get the urrent variable
Definition: GPMG_VariablePanel.h:92
virtual void enableComponents(const tBoolean &isWritten)
enable the components
Definition: GPMG_VariablePanel.cpp:229
this class describes a window to display a variable
Definition: GPMG_VariablePanel.h:17
virtual void toDoAfterThisSetting()
method called after this setting
Definition: GPMG_VariablePanel.h:73
void setVariable(const tString &varName, SP::GPM_Variable var)
set the graph
Definition: GPMG_VariablePanel.h:82
#define tString
Definition: types.h:36
virtual ~GPMG_VariablePanel(void)
destroy a GPMG_VariablePanel
Definition: GPMG_VariablePanel.cpp:38
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a component are clicked on
Definition: GPMG_VariablePanel.cpp:174
static SP::GPMG_VariablePanel New()
create a visualization window
Definition: GPMG_VariablePanel.h:64
virtual void updateValues()
update the components values put the values of model object to gui components
Definition: GPMG_VariablePanel.cpp:120
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: GPMG_VariablePanel.cpp:115
#define tFlag
Definition: types.h:14