22 #ifndef SGSETTINGSHANDLER_HPP
23 #define SGSETTINGSHANDLER_HPP
28 #include <QFormLayout>
30 #include <QPushButton>
62 connect(
this,SIGNAL(textChanged(
const QString &)),
64 connect(parent,SIGNAL(restoreDefaultSignal()),
72 double newValue = text.toDouble();
108 connect(
this,SIGNAL(textChanged(
const QString &)),
110 connect(parent,SIGNAL(restoreDefaultSignal()),
118 double newValue = text.toInt();
149 setCheckState(Qt::Checked);
151 setCheckState(Qt::Unchecked);
165 connect(
this,SIGNAL(clicked(
bool)),
167 connect(parent,SIGNAL(restoreDefaultSignal()),
SGEnv * env
The associated SGEnv object.
Definition: sgsettingshandler.hpp:98
double getParam(SG::DBL_PARAM param) const
Method for getting double parameters.
Definition: sgenv.cpp:96
SG::DBL_PARAM param
The double parameter associated with this edit.
Definition: sgsettingshandler.hpp:47
@ PRINTTOCOUT
Definition: sgnamespace.hpp:126
virtual ~SGSettingsHandler()
Destructor.
Definition: sgsettingshandler.hpp:207
SGEnv * env
Pointer to the associated SGEnv object.
Definition: sgsettingshandler.hpp:196
SGIntParamEdit(QWidget *parent, SGEnv *_env, SG::INT_PARAM _param)
Constructor.
Definition: sgsettingshandler.hpp:101
void setCheck(bool tf)
The set method.
Definition: sgsettingshandler.hpp:146
Class for changing boolean parameters.
Definition: sgsettingshandler.hpp:138
void closeSettingsHandler()
Signals to SGSolutionHandler to delete this widget.
void resetParam()
Slot called when resetting to default values.
Definition: sgsettingshandler.hpp:122
A widget for setting parameters of the algorithm.
Definition: sgsettingshandler.hpp:195
INT_PARAM
Integer parameters.
Definition: sgnamespace.hpp:142
SGBoolParamBox(QWidget *parent, SGEnv *_env, SG::BOOL_PARAM _param)
Constructor.
Definition: sgsettingshandler.hpp:156
void changeParam(const QString &text)
Slot called when the QLineEdit is edited.
Definition: sgsettingshandler.hpp:116
DBL_PARAM
Double parameters.
Definition: sgnamespace.hpp:68
void restoreDefaults()
Definition: sgsettingshandler.hpp:219
SGSettingsHandler(QWidget *parent, SGEnv *_env)
Constructor.
Definition: sgsettingshandler.cpp:24
void closeWindow()
Closes the window by sending signal to SGSolutionHandler.
Definition: sgsettingshandler.hpp:216
void changeParam()
Slot called when the check is modified.
Definition: sgsettingshandler.hpp:174
void restoreDefaultSignal()
Signals all of the edits and check boxes to reset to default values.
SGEnv * env
The associated SGEnv object.
Definition: sgsettingshandler.hpp:52
Manages parameters for algorithm behavior.
Definition: sgenv.hpp:35
SGDblParamEdit(QWidget *parent, SGEnv *_env, SG::DBL_PARAM _param)
Constructor.
Definition: sgsettingshandler.hpp:55
void setParam(SG::DBL_PARAM param, double value)
Method for setting double parameters.
Definition: sgenv.cpp:68
BOOL_PARAM
Boolean parameters.
Definition: sgnamespace.hpp:116
Class for changing integer parameters.
Definition: sgsettingshandler.hpp:92
void resetParam()
Slot called when resetting to default values.
Definition: sgsettingshandler.hpp:180
void resetParam()
Slot called when resetting to default values.
Definition: sgsettingshandler.hpp:76
void restoreDefaults()
Method for restoring default values for all parameters.
Definition: sgenv.cpp:32
SG::INT_PARAM param
The int parameter associated with this edit.
Definition: sgsettingshandler.hpp:93
Class for changing double parameters.
Definition: sgsettingshandler.hpp:46
void changeParam(const QString &text)
Slot called when the QLineEdit is edited.
Definition: sgsettingshandler.hpp:70
SG::BOOL_PARAM param
The boolean parameter associated with the box.
Definition: sgsettingshandler.hpp:139
SGEnv * env
The associated environment.
Definition: sgsettingshandler.hpp:144