SGSolve
|
Class for changing boolean parameters. More...
#include <sgsettingshandler.hpp>
Public Member Functions | |
SGBoolParamBox (QWidget *parent, SGEnv *_env, SG::BOOL_PARAM _param) | |
Constructor. | |
Private Slots | |
void | changeParam () |
Slot called when the check is modified. | |
void | resetParam () |
Slot called when resetting to default values. | |
Private Member Functions | |
void | setCheck (bool tf) |
The set method. | |
Private Attributes | |
SG::BOOL_PARAM | param |
The boolean parameter associated with the box. | |
SGEnv * | env |
The associated environment. | |
Class for changing boolean parameters.
A customized version of QCheckBox for modifying boolean parameters in an SGEnv object that is used by the SGSettingsHandler. It has a private members which are the particular SG::BOOL_PARAM that is associated with this edit and a pointer to an associated SGEnv object. There are also mutator methods for setting the parameter value and resetting to the default value of the given parameter.