Image Component Library (ICL)
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
icl::qt::DoubleSlider Class Reference

A utiltiy class which implements a labeld, double valued QSlider. More...

#include <DoubleSlider.h>

Inheritance diagram for icl::qt::DoubleSlider:

Public Slots

void receiveValueChanged (int i)
 internally used slot to process when the corresponding QSlider is moved More...
 

Signals

void doubleValueChanged (const QString &id, double doubleValue)
 emitted when the slider values is changed More...
 

Public Member Functions

 DoubleSlider (QWidget *parent, const QString &id)
 Create a new QSlider object. More...
 
void setMinDouble (double dmin)
 sets the min. double value More...
 
void setMaxDouble (double dmax)
 sets the max. double value More...
 
double getDoubleValue ()
 returns the current double value More...
 
void setDoubleValue (double d)
 sets the current double value More...
 
void setDoubleStepping (double s)
 sets the current double stepping More...
 

Private Attributes

QSlider * m_poSlider
 wrapped QSlider (int-valued) More...
 
QLabel * m_poLabel
 label More...
 
QGridLayout * m_poLayout
 layout More...
 
double m_dMin
 current min value More...
 
double m_dMax
 current max value More...
 
double m_dStepping
 current stepping More...
 
QString m_qsID
 current label text More...
 

Detailed Description

A utiltiy class which implements a labeld, double valued QSlider.

Constructor & Destructor Documentation

◆ DoubleSlider()

icl::qt::DoubleSlider::DoubleSlider ( QWidget *  parent,
const QString &  id 
)

Create a new QSlider object.

Parameters
parentparent widget
idlabel

Member Function Documentation

◆ doubleValueChanged

void icl::qt::DoubleSlider::doubleValueChanged ( const QString &  id,
double  doubleValue 
)
signal

emitted when the slider values is changed

◆ getDoubleValue()

double icl::qt::DoubleSlider::getDoubleValue ( )

returns the current double value

◆ receiveValueChanged

void icl::qt::DoubleSlider::receiveValueChanged ( int  i)
slot

internally used slot to process when the corresponding QSlider is moved

Parameters
ivalue

◆ setDoubleStepping()

void icl::qt::DoubleSlider::setDoubleStepping ( double  s)

sets the current double stepping

◆ setDoubleValue()

void icl::qt::DoubleSlider::setDoubleValue ( double  d)

sets the current double value

◆ setMaxDouble()

void icl::qt::DoubleSlider::setMaxDouble ( double  dmax)

sets the max. double value

◆ setMinDouble()

void icl::qt::DoubleSlider::setMinDouble ( double  dmin)

sets the min. double value

Member Data Documentation

◆ m_dMax

double icl::qt::DoubleSlider::m_dMax
private

current max value

◆ m_dMin

double icl::qt::DoubleSlider::m_dMin
private

current min value

◆ m_dStepping

double icl::qt::DoubleSlider::m_dStepping
private

current stepping

◆ m_poLabel

QLabel* icl::qt::DoubleSlider::m_poLabel
private

label

◆ m_poLayout

QGridLayout* icl::qt::DoubleSlider::m_poLayout
private

layout

◆ m_poSlider

QSlider* icl::qt::DoubleSlider::m_poSlider
private

wrapped QSlider (int-valued)

◆ m_qsID

QString icl::qt::DoubleSlider::m_qsID
private

current label text


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