Gui::Dialog::DlgSettingsColorGradientImp Class Reference

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 ()
 

Detailed Description

The DlgSettingsColorGradientImp class implements a preference page to change settings for the color gradient bar.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ DlgSettingsColorGradientImp()

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::~DlgSettingsColorGradientImp ( )

Destroys the object and frees any allocated resources.

Member Function Documentation

◆ accept()

◆ colorModelChanged

void Gui::Dialog::DlgSettingsColorGradientImp::colorModelChanged ( )
signal

◆ getProfile()

◆ numberOfDecimals()

int DlgSettingsColorGradientImp::numberOfDecimals ( ) const

◆ setNumberOfDecimals()

void DlgSettingsColorGradientImp::setNumberOfDecimals ( int  val,
float  fMin,
float  fMax 
)

◆ setProfile()


The documentation for this class was generated from the following files: