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 (const App::ColorGradient &cg, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags()) | |
Constructs a DlgSettingsColorGradientImp as a child of 'parent', with the name 'name' and widget flags set to 'f'. More... | |
~DlgSettingsColorGradientImp () | |
Destroys the object and frees any allocated resources. More... | |
Color profile | |
App::ColorGradientProfile | getProfile () const |
void | setProfile (const App::ColorGradientProfile &pro) |
Parameter range and scale | |
void | setNumberOfDecimals (int, float fMin, float fMax) |
int | numberOfDecimals () const |
void | colorModelChanged () |
The DlgSettingsColorGradientImp class implements a preference page to change settings for the color gradient bar.
DlgSettingsColorGradientImp::DlgSettingsColorGradientImp | ( | const App::ColorGradient & | cg, |
QWidget * | parent = nullptr , |
||
Qt::WindowFlags | fl = Qt::WindowFlags() |
||
) |
Constructs a DlgSettingsColorGradientImp as a child of 'parent', with the name 'name' and widget flags set to 'f'.
References App::ColorGradient::getColorModelNames(), App::ColorGradient::getProfile(), Gui::QtTools::horizontalAdvance(), and setProfile().
DlgSettingsColorGradientImp::~DlgSettingsColorGradientImp | ( | ) |
Destroys the object and frees any allocated resources.
void DlgSettingsColorGradientImp::accept | ( | void | ) |
|
signal |
Referenced by Gui::SoFCColorGradient::customize().
App::ColorGradientProfile DlgSettingsColorGradientImp::getProfile | ( | ) | const |
References App::ColorGradientProfile::ctColors, App::ColorGradientProfile::fMax, App::ColorGradientProfile::fMin, App::Grayed, App::Invisible, Base::Flags< Enum >::setFlag(), App::ColorGradientProfile::tColorModel, App::ColorGradientProfile::tStyle, and App::ColorGradientProfile::visibility.
Referenced by Gui::SoFCColorGradient::customize().
int DlgSettingsColorGradientImp::numberOfDecimals | ( | ) | const |
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setNumberOfDecimals | ( | int | val, |
float | fMin, | ||
float | fMax | ||
) |
Referenced by Gui::SoFCColorGradient::customize().
void DlgSettingsColorGradientImp::setProfile | ( | const App::ColorGradientProfile & | pro | ) |
References App::ColorGradientProfile::ctColors, App::ColorGradientProfile::fMax, App::ColorGradientProfile::fMin, App::Grayed, App::Invisible, App::ColorGradientProfile::tColorModel, Base::Flags< Enum >::testFlag(), App::ColorGradientProfile::tStyle, and App::ColorGradientProfile::visibility.
Referenced by Gui::SoFCColorGradient::customize(), and DlgSettingsColorGradientImp().