#include <wx/app.h>#include <wx/aui/auibook.h>#include <wx/hashmap.h>#include <wx/spinbutt.h>#include "environment.h"Go to the source code of this file.
Namespaces | |
| namespace | VRUT |
Classes | |
| class | VRUT::GUIEnvironment |
| GUI managment for environment parameters. More... | |
| struct | VRUT::GUIEnvironment::GUIParamInfo |
| Identificator and GUI properties of a parameter. More... | |
Defines | |
| #define | REGISTER_PARAM_GUI_TEXTCONTROL(paramId, pName, value, pDescription) |
| Register module's parameter with its default value using events and show in GUI, extended version. | |
| #define | REGISTER_PARAM_GUI_CHECKBOX(paramId, pName, value, pDescription) |
| Register module's parameter with its default value using events and show in GUI. | |
| #define | REGISTER_PARAM_GUI_SLIDER(paramId, pName, value, minValue, maxValue, pDescription) |
| Register module's parameter with its default value using events and show in GUI. | |
| #define | REGISTER_PARAM_GUI_SPINCONTROL(paramId, pName, value, minValue, maxValue, pDescription) |
| Register module's parameter with its default value using events and show in GUI. | |
| #define | REGISTER_PARAM_GUI_COMBOBOX(paramId, pName, value, possibilities, pDescription) |
| Register module's parameter with its default value using events and show in GUI. | |
| #define | REGISTER_PARAM_GUI_BUTTON(paramId, pName, pDescription) |
| Register module's parameter with its default value using events and show in GUI, extended version. | |
| #define REGISTER_PARAM_GUI_BUTTON | ( | paramId, | |||
| pName, | |||||
| pDescription | ) |
Value:
{ paramId.poolName=GetName();\
paramId.paramName=pName;\
paramId.instName=wxString::Format(wxT("%i"), GetID().GetInstanceID());\
paramId.description=pDescription;\
REGISTER_PARAM(paramId, wxT("0")); \
GUIEnvironment::GUIParamInfo guiPI(paramId, GUIEnvironment::GUIParamInfo::GUI_TYPE_BUTTON); \
wxCommandEvent paramGuiEvt = Event::GET_EVT_PARAM_GUIREGISTER(guiPI, wxT("0")); \
PostToKernel(paramGuiEvt); }
Definition at line 107 of file guienvironment.h.
| #define REGISTER_PARAM_GUI_CHECKBOX | ( | paramId, | |||
| pName, | |||||
| value, | |||||
| pDescription | ) |
Value:
{ paramId.poolName=GetName();\
paramId.paramName=pName;\
paramId.instName=wxString::Format(wxT("%i"), GetID().GetInstanceID());\
paramId.description=pDescription;\
REGISTER_PARAM(paramId, value); \
GUIEnvironment::GUIParamInfo guiPI(paramId, GUIEnvironment::GUIParamInfo::GUI_TYPE_CHECKBOX); \
wxCommandEvent paramGuiEvt = Event::GET_EVT_PARAM_GUIREGISTER(guiPI, value); \
PostToKernel(paramGuiEvt); }
Definition at line 36 of file guienvironment.h.
| #define REGISTER_PARAM_GUI_COMBOBOX | ( | paramId, | |||
| pName, | |||||
| value, | |||||
| possibilities, | |||||
| pDescription | ) |
Value:
{ paramId.poolName=GetName();\
paramId.paramName=pName;\
paramId.instName=wxString::Format(wxT("%i"), GetID().GetInstanceID());\
paramId.description=pDescription;\
REGISTER_PARAM(paramId, value); \
GUIEnvironment::GUIParamInfo guiPI(paramId, GUIEnvironment::GUIParamInfo::GUI_TYPE_COMBOBOX); \
guiPI.values = possibilities; \
wxCommandEvent paramGuiEvt = Event::GET_EVT_PARAM_GUIREGISTER(guiPI, value); \
PostToKernel(paramGuiEvt); }
Definition at line 93 of file guienvironment.h.
| #define REGISTER_PARAM_GUI_SLIDER | ( | paramId, | |||
| pName, | |||||
| value, | |||||
| minValue, | |||||
| maxValue, | |||||
| pDescription | ) |
Value:
{ paramId.poolName=GetName();\
paramId.paramName=pName;\
paramId.instName=wxString::Format(wxT("%i"), GetID().GetInstanceID());\
paramId.description=pDescription;\
REGISTER_PARAM(paramId, value); \
GUIEnvironment::GUIParamInfo guiPI(paramId, GUIEnvironment::GUIParamInfo::GUI_TYPE_SLIDER); \
guiPI.minval = minValue; \
guiPI.maxval = maxValue; \
wxCommandEvent paramGuiEvt = Event::GET_EVT_PARAM_GUIREGISTER(guiPI, value); \
PostToKernel(paramGuiEvt); }
Definition at line 49 of file guienvironment.h.
| #define REGISTER_PARAM_GUI_SPINCONTROL | ( | paramId, | |||
| pName, | |||||
| value, | |||||
| minValue, | |||||
| maxValue, | |||||
| pDescription | ) |
Value:
{ paramId.poolName=GetName();\
paramId.paramName=pName;\
paramId.instName=wxString::Format(wxT("%i"), GetID().GetInstanceID());\
paramId.description=pDescription;\
REGISTER_PARAM(paramId, value); \
GUIEnvironment::GUIParamInfo guiPI(paramId, GUIEnvironment::GUIParamInfo::GUI_TYPE_SPINCONTROL); \
guiPI.minval = minValue; \
guiPI.maxval = maxValue; \
wxCommandEvent paramGuiEvt = Event::GET_EVT_PARAM_GUIREGISTER(guiPI, value); \
PostToKernel(paramGuiEvt); }
Definition at line 64 of file guienvironment.h.
| #define REGISTER_PARAM_GUI_TEXTCONTROL | ( | paramId, | |||
| pName, | |||||
| value, | |||||
| pDescription | ) |
Value:
{ paramId.poolName=GetName();\
paramId.paramName=pName;\
paramId.instName=wxString::Format(wxT("%i"), GetID().GetInstanceID());\
paramId.description=pDescription;\
REGISTER_PARAM(paramId, value);\
GUIEnvironment::GUIParamInfo guiPI(paramId, GUIEnvironment::GUIParamInfo::GUI_TYPE_TEXTCONTROL); \
wxCommandEvent paramGuiEvt = Event::GET_EVT_PARAM_GUIREGISTER(guiPI, value); \
PostToKernel(paramGuiEvt); }
Definition at line 23 of file guienvironment.h.
1.5.5