SGSolve
|
Class for changing double parameters. More...
#include <sgsettingshandler.hpp>
Public Member Functions | |
SGDblParamEdit (QWidget *parent, SGEnv *_env, SG::DBL_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::DBL_PARAM | param |
The double parameter associated with this edit. | |
SGEnv * | env |
The associated SGEnv object. | |
Class for changing double parameters.
A customized version of QLineEdit for modifying double parameters in an SGEnv object that is used by the SGSettingsHandler. It has a private members which are the particular SG::DBL_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.