1 #ifndef __ParamGUI_hh__
2 #define __ParamGUI_hh__
4 #include <bias_config.h>
5 #include <Base/Common/BIASpragmaStart.hh>
11 #include <Utils/ParamTypes.hh>
12 #include <Utils/Param.hh>
16 #include <wx/spinctrl.h>
17 #include <wx/notebook.h>
50 std::map<unsigned int, struct ItemAndWidget> WidgetIDs_;
55 void OnSpinCtrl(wxSpinEvent &event);
56 void OnCheckBox(wxCommandEvent &event);
57 void OnTextEnter(wxCommandEvent &event);
58 void OnChoice(wxCommandEvent &event);
74 const wxPoint &p,
const wxSize &s,
ParamGUI *pg,
75 bool bChancelButton=
true);
98 wxPanel* GetPanel(
wxWindow *parent,
int GroupID=GRP_ALL);
108 wxNotebook* GetNotebook(
wxWindow *parent);
114 wxFrame* GetFrame(
wxWindow *parent);
122 bool bChancelButton=
true);
132 const wxPoint &pos=wxDefaultPosition,
133 const wxSize &size=wxDefaultSize,
int n=0,
134 const wxString choices[]=NULL,
long style=0,
135 const wxValidator &validator=wxDefaultValidator,
136 const wxString &name=wxChoiceNameStr) :
137 wxChoice(parent,id,pos,size,n,choices,style,validator,name) {};
139 const wxPoint &pos,
const wxSize &size,
140 const wxArrayString &choices,
long style=0,
141 const wxValidator &validator=wxDefaultValidator,
142 const wxString &name=wxChoiceNameStr):
143 wxChoice(parent,id,pos,size, choices,style,validator,name) {};
157 #include <Base/Common/BIASpragmaEnd.hh>
The main Parameter Gui interface, derived from BIAS::Param and extends this class.
class BIASGui_EXPORT ParamGUI
wxChoiceWithMemory(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=NULL, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxChoiceNameStr)
int GetSelectionForIndex(int index)
wxChoiceWithMemory(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxChoiceNameStr)
This file holds the definitions of the parameter types used by BIAS::Param.
std::map< int, int > memoryIndexToSelection_
std::map< int, int > memorySelectionToIndex_
this provides a gui interface for the BIAS::Param class.
This class Param provides generic support for parameters.
this provides a gui interface for the BIAS::Param class.
int GetIndexForSelection(int selection)
void AddDataToMemory(int index)