Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
pqDoubleSliderWidget Class Reference

A widget with a tied slider and line edit for editing a double property. More...

#include <pqDoubleSliderWidget.h>

Inheritance diagram for pqDoubleSliderWidget:
Inheritance graph
[legend]

Public Slots

void setValue (double val)
 set the value More...
 
void setNotation (pqDoubleLineEdit::RealNumberNotation _notation)
 Set the notation used to display the number. More...
 
void setPrecision (int precision)
 Set the precision used to display the number. More...
 
void setUseGlobalPrecisionAndNotation (bool value)
 Set whether to use global precision and notation values. More...
 

Signals

void valueChanged (double)
 signal the value changed More...
 
void valueEdited (double)
 signal the value was edited this means the user is done changing text or the user is done moving the slider. More...
 

Public Member Functions

 pqDoubleSliderWidget (QWidget *parent=nullptr)
 
 ~pqDoubleSliderWidget () override
 
double value () const
 get the value More...
 
pqDoubleLineEdit::RealNumberNotation notation () const
 Return the notation used to display the number. More...
 
int precision () const
 Return the precision used to display the number. More...
 
bool useGlobalPrecisionAndNotation () const
 useGlobalPrecisionAndNotation indicates if the pqDoubleLineEdit used by this widget should use global precision and notation values instead of the parameters specified on this instance. More...
 

Protected Member Functions

virtual int valueToSliderPos (double val)
 
virtual double sliderPosToValue (int pos)
 
void setValidator (QDoubleValidator *validator)
 
const QDoubleValidator * validator () const
 
void setSliderRange (int min, int max)
 
void updateSlider ()
 

Properties

double value
 
pqDoubleLineEdit::RealNumberNotation notation
 
int precision
 
bool useGlobalPrecisionAndNotation
 

Detailed Description

A widget with a tied slider and line edit for editing a double property.

Definition at line 28 of file pqDoubleSliderWidget.h.

Constructor & Destructor Documentation

◆ pqDoubleSliderWidget()

pqDoubleSliderWidget::pqDoubleSliderWidget ( QWidget *  parent = nullptr)

◆ ~pqDoubleSliderWidget()

pqDoubleSliderWidget::~pqDoubleSliderWidget ( )
override

Member Function Documentation

◆ value()

double pqDoubleSliderWidget::value ( ) const

get the value

◆ notation()

pqDoubleLineEdit::RealNumberNotation pqDoubleSliderWidget::notation ( ) const

Return the notation used to display the number.

See also
setNotation()

◆ precision()

int pqDoubleSliderWidget::precision ( ) const

Return the precision used to display the number.

See also
setPrecision()

◆ useGlobalPrecisionAndNotation()

bool pqDoubleSliderWidget::useGlobalPrecisionAndNotation ( ) const

useGlobalPrecisionAndNotation indicates if the pqDoubleLineEdit used by this widget should use global precision and notation values instead of the parameters specified on this instance.

◆ valueChanged

void pqDoubleSliderWidget::valueChanged ( double  )
signal

signal the value changed

◆ valueEdited

void pqDoubleSliderWidget::valueEdited ( double  )
signal

signal the value was edited this means the user is done changing text or the user is done moving the slider.

It implies value was changed and editing has finished.

◆ setValue

void pqDoubleSliderWidget::setValue ( double  val)
slot

set the value

◆ setNotation

void pqDoubleSliderWidget::setNotation ( pqDoubleLineEdit::RealNumberNotation  _notation)
slot

Set the notation used to display the number.

See also
notation()

◆ setPrecision

void pqDoubleSliderWidget::setPrecision ( int  precision)
slot

Set the precision used to display the number.

See also
precision()

◆ setUseGlobalPrecisionAndNotation

void pqDoubleSliderWidget::setUseGlobalPrecisionAndNotation ( bool  value)
slot

Set whether to use global precision and notation values.

See also
useGlobalPrecisionAndNotation()

◆ valueToSliderPos()

virtual int pqDoubleSliderWidget::valueToSliderPos ( double  val)
protectedvirtual

◆ sliderPosToValue()

virtual double pqDoubleSliderWidget::sliderPosToValue ( int  pos)
protectedvirtual

◆ setValidator()

void pqDoubleSliderWidget::setValidator ( QDoubleValidator *  validator)
protected

◆ validator()

const QDoubleValidator* pqDoubleSliderWidget::validator ( ) const
protected

◆ setSliderRange()

void pqDoubleSliderWidget::setSliderRange ( int  min,
int  max 
)
protected

◆ updateSlider()

void pqDoubleSliderWidget::updateSlider ( )
protected

Property Documentation

◆ value

double pqDoubleSliderWidget::value
readwrite

Definition at line 31 of file pqDoubleSliderWidget.h.

◆ notation

pqDoubleLineEdit::RealNumberNotation pqDoubleSliderWidget::notation
readwrite

Definition at line 32 of file pqDoubleSliderWidget.h.

◆ precision

int pqDoubleSliderWidget::precision
readwrite

Definition at line 33 of file pqDoubleSliderWidget.h.

◆ useGlobalPrecisionAndNotation

bool pqDoubleSliderWidget::useGlobalPrecisionAndNotation
readwrite

Definition at line 35 of file pqDoubleSliderWidget.h.


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