1 #ifndef GPMG_FunctionWindow_H
2 #define GPMG_FunctionWindow_H
7 #include "GUI_ChildWindow.h"
28 static const tFlag FUNCTIONS;
29 static const tFlag ADD_FUNCTION;
30 static const tFlag REMOVE_FUNCTION;
31 static const tFlag FUNCTION_NAME;
32 static const tFlag FUNCTION_BODY;
33 static const tFlag FUNCTION_PARAMETERS;
34 static const tFlag RETURN_TYPE;
36 static const tFlag ADD_PARAMETER;
37 static const tFlag REMOVE_PARAMETER;
38 static const tFlag PARAMETER_NAME;
39 static const tFlag PARAMETER_TYPE;
40 static const tFlag PARAMETER_UP;
41 static const tFlag PARAMETER_DOWN;
45 static const tFlag VALIDATE;
46 static const tFlag OK;
47 static const tFlag CANCEL;
49 static const tFlag PAR_CONST_REAL_ARRAY;
50 static const tFlag PAR_REAL_ARRAY;
51 static const tFlag PAR_CONST_REAL;
52 static const tFlag PAR_REAL;
53 static const tFlag PAR_STRING;
55 static const tFlag RET_REAL;
56 static const tFlag RET_STRING;
60 int mLastSelectedFunctionIndex;
62 SP::GUI_Label mOutLabel;
63 SV::GPM_CompositorFunction mWorkingFunctions;
64 WP::GPMG_FunctionWindowCaller mCaller;
90 static inline SP::GPMG_FunctionWindow
New() {
92 GPMG_FunctionWindow::Delete());
100 GUI_ChildWindow::toDoAfterThisSetting();
109 inline void setCaller(SP::GPMG_FunctionWindowCaller caller) {
138 void createComponents();
146 void enableComponents();
150 void validateBody(
const int& index);
164 int getSelectedParameter()
const;
167 void getParameterSignature(
tString& name,
virtual ~GPMG_FunctionWindow(void)
destroy a GPMG_FunctionWindow
Definition: GPMG_FunctionWindow.cpp:65
void setFunctions(SVC::GPM_CompositorFunction fs)
Definition: GPMG_FunctionWindow.cpp:244
#define tBoolean
Definition: types.h:35
void setCaller(SP::GPMG_FunctionWindowCaller caller)
set the caller
Definition: GPMG_FunctionWindow.h:109
DEFINE_SPTR(GPMG_FunctionWindowCaller)
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: GPMG_FunctionWindow.cpp:234
This class describes a compositor function used in rules.
Definition: GPM_CompositorFunction.h:18
static SP::GPMG_FunctionWindow New()
create a visualization window
Definition: GPMG_FunctionWindow.h:90
this class describes a caller of GPMG_FunctionWindow
Definition: GPMG_FunctionWindowCaller.h:15
this class describes a window to display function
Definition: GPMG_FunctionWindow.h:19
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a component are clicked on
Definition: GPMG_FunctionWindow.cpp:415
#define tString
Definition: types.h:36
GPMG_FunctionWindow()
build a GPMG_FunctionWindow
Definition: GPMG_FunctionWindow.cpp:59
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: GPMG_FunctionWindow.cpp:239
#define tFlag
Definition: types.h:14
virtual void toDoAfterThisSetting()
method called after this setting
Definition: GPMG_FunctionWindow.h:99