SGSolve
|
Class for changing integer parameters. More...
#include <sgsettingshandler.hpp>
Public Member Functions | |
SGIntParamEdit (QWidget *parent, SGEnv *_env, SG::INT_PARAM _param) | |
Constructor. | |
Private Slots | |
void | changeParam (const QString &text) |
Slot called when the QLineEdit is edited. | |
void | resetParam () |
Slot called when resetting to default values. | |
Private Attributes | |
SG::INT_PARAM | param |
The int parameter associated with this edit. | |
SGEnv * | env |
The associated SGEnv object. | |
Class for changing integer parameters.
A customized version of QLineEdit for modifying int parameters in an SGEnv object that is used by the SGSettingsHandler. It has a private members which are the particular SG::INT_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.