The DlgSettingsColorGradientImp class implements a preference page to change settings for the color gradient bar. More...
#include <DlgSettingsColorGradientImp.h>
Public Member Functions | |
void | accept () |
DlgSettingsColorGradientImp (QWidget *parent=0, Qt::WFlags fl=0) | |
Constructs a DlgSettingsColorGradientImp as a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
~DlgSettingsColorGradientImp () | |
Destroys the object and frees any allocated resources. | |
Color model | |
App::ColorGradient::TColorModel | colorModel () const |
void | setColorModel (App::ColorGradient::TColorModel tModel) |
Color style | |
App::ColorGradient::TStyle | colorStyle () const |
void | setColorStyle (App::ColorGradient::TStyle tStyle) |
Parameter range and scale | |
void | getRange (float &fMin, float &fMax) const |
int | numberOfDecimals () const |
int | numberOfLabels () const |
void | setNumberOfDecimals (int) |
void | setNumberOfLabels (int) |
void | setRange (float fMin, float fMax) |
Display mode | |
bool | isOutGrayed () const |
bool | isOutInvisible () const |
void | setOutGrayed (bool grayed) |
void | setOutInvisible (bool invisible) |
The DlgSettingsColorGradientImp class implements a preference page to change settings for the color gradient bar.
Definition at line 39 of file DlgSettingsColorGradientImp.h.
DlgSettingsColorGradientImp::DlgSettingsColorGradientImp | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) |
Constructs a DlgSettingsColorGradientImp as a child of 'parent', with the name 'name' and widget flags set to 'f'.
Definition at line 46 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::floatLineEditMax, Gui::Dialog::Ui_DlgSettingsColorGradient::floatLineEditMin, Gui::Dialog::Ui_DlgSettingsColorGradient::setupUi(), and Gui::Dialog::Ui_DlgSettingsColorGradient::spinBoxDecimals.
DlgSettingsColorGradientImp::~DlgSettingsColorGradientImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 59 of file DlgSettingsColorGradientImp.cpp.
void DlgSettingsColorGradientImp::accept | ( | void | ) |
Definition at line 170 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::floatLineEditMax, and Gui::Dialog::Ui_DlgSettingsColorGradient::floatLineEditMin.
App::ColorGradient::TColorModel DlgSettingsColorGradientImp::colorModel | ( | ) | const |
Definition at line 83 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::comboBoxModel, App::ColorGradient::GRAY, App::ColorGradient::INVERSE_GRAY, App::ColorGradient::INVERSE_TRIA, and App::ColorGradient::TRIA.
Referenced by Gui::SoFCColorGradient::customize().
App::ColorGradient::TStyle DlgSettingsColorGradientImp::colorStyle | ( | ) | const |
Definition at line 109 of file DlgSettingsColorGradientImp.cpp.
References App::ColorGradient::FLOW, Gui::Dialog::Ui_DlgSettingsColorGradient::radioButtonZero, and App::ColorGradient::ZERO_BASED.
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::getRange | ( | float & | fMin, | |
float & | fMax | |||
) | const |
Definition at line 144 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::floatLineEditMax, and Gui::Dialog::Ui_DlgSettingsColorGradient::floatLineEditMin.
Referenced by Gui::SoFCColorGradient::customize().
bool DlgSettingsColorGradientImp::isOutGrayed | ( | ) | const |
Definition at line 119 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::checkBoxGrayed.
Referenced by Gui::SoFCColorGradient::customize().
bool DlgSettingsColorGradientImp::isOutInvisible | ( | ) | const |
Definition at line 129 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::checkBoxInvisible.
Referenced by Gui::SoFCColorGradient::customize().
int DlgSettingsColorGradientImp::numberOfDecimals | ( | ) | const |
Definition at line 165 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::spinBoxDecimals.
Referenced by Gui::SoFCColorGradient::customize(), and setRange().
int DlgSettingsColorGradientImp::numberOfLabels | ( | ) | const |
Definition at line 155 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::spinBoxLabel.
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setColorModel | ( | App::ColorGradient::TColorModel | tModel | ) |
Definition at line 64 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::comboBoxModel, App::ColorGradient::GRAY, App::ColorGradient::INVERSE_GRAY, App::ColorGradient::INVERSE_TRIA, and App::ColorGradient::TRIA.
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setColorStyle | ( | App::ColorGradient::TStyle | tStyle | ) |
Definition at line 96 of file DlgSettingsColorGradientImp.cpp.
References App::ColorGradient::FLOW, Gui::Dialog::Ui_DlgSettingsColorGradient::radioButtonFlow, Gui::Dialog::Ui_DlgSettingsColorGradient::radioButtonZero, and App::ColorGradient::ZERO_BASED.
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setNumberOfDecimals | ( | int | val | ) |
Definition at line 160 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::spinBoxDecimals.
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setNumberOfLabels | ( | int | val | ) |
Definition at line 150 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::spinBoxLabel.
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setOutGrayed | ( | bool | grayed | ) |
Definition at line 114 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::checkBoxGrayed.
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setOutInvisible | ( | bool | invisible | ) |
Definition at line 124 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::checkBoxInvisible.
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setRange | ( | float | fMin, | |
float | fMax | |||
) |
Definition at line 134 of file DlgSettingsColorGradientImp.cpp.
References Gui::Dialog::Ui_DlgSettingsColorGradient::floatLineEditMax, Gui::Dialog::Ui_DlgSettingsColorGradient::floatLineEditMin, and numberOfDecimals().
Referenced by Gui::SoFCColorGradient::customize().