1 #ifndef GPMG_EnvironmentWindow_H
2 #define GPMG_EnvironmentWindow_H
5 #include "GUI_ChildWindow.h"
26 map<tString,SP::GPM_Variable> mGlobalEnvironment;
29 static const tFlag VALIDATE;
30 static const tFlag OK;
31 static const tFlag CANCEL;
32 static const tFlag FUNCTIONS;
33 static const tFlag SHOW_FUNCTIONS;
41 SP::GPMG_Project mProject;
42 SP::GPMG_EnvironmentPanel mEnvironmentPanel;
69 static inline SP::GPMG_EnvironmentWindow
New() {
79 GUI_ChildWindow::toDoAfterThisSetting();
90 GUI_ActionComponent *compo=getActionComponent(SHOW_FUNCTIONS);
91 if (compo!=
null) compo->setIsEnabled(mProject->areCompositorFunctionsAvailabled());
96 void setEnvironment(
const map<tString,SP::GPM_Variable>& env);
100 virtual void setFunctions(SV::GPM_CompositorFunction fs);
105 void setFunctionsPanel();
109 void showFunctions();
134 void createComponents();
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: GPMG_EnvironmentWindow.cpp:121
virtual ~GPMG_EnvironmentWindow(void)
destroy a GPMG_EnvironmentWindow
Definition: GPMG_EnvironmentWindow.cpp:39
virtual void toDoAfterThisSetting()
method called after this setting
Definition: GPMG_EnvironmentWindow.h:78
#define null
Definition: types.h:13
this class describes a window to display environment
Definition: GPMG_EnvironmentWindow.h:19
void setProject(SP::GPMG_Project project)
set the graph
Definition: GPMG_EnvironmentWindow.h:86
this class describes a caller of GPMG_FunctionWindow
Definition: GPMG_FunctionWindowCaller.h:15
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: GPMG_EnvironmentWindow.cpp:116
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a component are clicked on
Definition: GPMG_EnvironmentWindow.cpp:143
static SP::GPMG_EnvironmentWindow New()
create a visualization window
Definition: GPMG_EnvironmentWindow.h:69
DEFINE_SPTR(GPMG_EnvironmentWindow)
static const tFlag GLOBAL_ENVIRONMENT
Definition: GPMG_Project.h:30
GPMG_EnvironmentWindow()
build a GPMG_EnvironmentWindow
Definition: GPMG_EnvironmentWindow.cpp:33
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14