33 #include <Base/Common/W32Compat.hh>
37 #include <Gui/ParamGUI.hh>
38 #include <Gui/StringConv.hh>
39 #include <Utils/Param.hh>
47 class MyApp :
public wxApp
50 virtual bool OnInit();
62 param_.
AddParamInt(
"SampleInt1",
"Hilfetext zu SampleInt1",0,-100,100,0,1);
63 param_.
AddParamInt(
"SampleInt2",
"Hilfetext zu SampleInt2");
64 param_.
AddParamBool(
"SampleBool1",
"Hilfetext zu SampleBool1",
false,0,1);
65 param_.
AddParamBool(
"SampleBool2",
"Hilfetext zu SampleBool2");
66 param_.
AddParamDouble(
"SampleDouble1",
"Hilfetext zu SampleDouble1");
67 param_.
AddParamString(
"SampleString1",
"Hilfetext zu SampleString1");
71 wxFrame *frame = param_.
GetFrame(NULL);
The main Parameter Gui interface, derived from BIAS::Param and extends this class.
bool * AddParamBool(const std::string &name, const std::string &help, bool deflt=false, char cmdshort=0, int Group=GRP_NOSHOW)
double * AddParamDouble(const std::string &name, const std::string &help, double deflt=0.0, double min=-DBL_MAX, double max=DBL_MAX, char cmdshort=0, int Group=GRP_NOSHOW)
int ParseCommandLine(int &argc, char *argv[])
scan command line arguments for valid parameters
wxFrame * GetFrame(wxWindow *parent)
Builds up a standalone wxFrame with a notebook embedded in it.
Class for converting an array of wxStrings to an array of non-const ASCII strings.
int * AddParamInt(const std::string &name, const std::string &help, int deflt=0, int min=std::numeric_limits< int >::min(), int max=std::numeric_limits< int >::max(), char cmdshort=0, int Group=GRP_NOSHOW)
For all adding routines:
std::string * AddParamString(const std::string &name, const std::string &help, std::string deflt="", char cmdshort=0, int Group=GRP_NOSHOW)