VAPOR3 3.9.4
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VDoubleSliderEdit Class Reference

A wrapper for a VSlider and a VDoubleLineEdit, that provides synchronization between the two widgets, and support for a menu that allows setting and getting the VSlider range, and the numeric representation of the VDoubleLineEdit. More...

#include <VDoubleSliderEdit.h>

Inheritance diagram for VDoubleSliderEdit:
VSliderEditInterface VHBoxWidget

Public Slots

void SetValue (double value)
 Set the current value displayed by the slider and line edit.
 
virtual void SetNumDigits (int numDigits)
 Set the number of digits displayed by the VDoubleLineEdit.
 
virtual void SetSciNotation (bool sciNotation)
 Set whether the VDoubleLineEdit is being displayed with scientific notation.
 
virtual void SetDynamicUpdate (bool enabled)
 Set the dynamic update menu item's toggle state.
 
virtual void ShowContextMenu (const QPoint &pos)
 Show the context menu options for the entire widget, triggered on right-click.
 
- Public Slots inherited from VSliderEditInterface
virtual void SetDynamicUpdate (bool enabled)=0
 Emit signal when dynamic update checkbox is toggled.
 
virtual void SetSciNotation (bool sci)=0
 Set use of scientific notation on the current type of line edit.
 
virtual void SetNumDigits (int digits)=0
 Set the number of digits shown on the current line edit.
 
virtual void ShowContextMenu (const QPoint &)=0
 Show the context menu for the slider-edit, triggered on right-click.
 

Signals

void ValueChanged (double value)
 
void ValueChangedIntermediate (double value)
 
void MinimumChanged (double min)
 
void MaximumChanged (double max)
 
void DynamicUpdateChanged (bool enabled)
 
- Signals inherited from VSliderEditInterface
void FormatChanged ()
 

Public Member Functions

 VDoubleSliderEdit (double min=0, double max=10, double value=3, bool rangeChangable=false)
 
void SetMinimum (double min)
 Set the minimum allowable value for the VSlider and VDoubleLineEdit.
 
void SetMaximum (double max)
 Set the maximum allowable value for the VSlider and VDoubleLineEdit.
 
void AllowUserRange (bool allowed=true)
 
void AllowDynamicUpdate () const
 Retrieve whether dynamic updates are toggled.
 
double GetValue () const
 Get the value associated with the VSlider and VDoubleLineEdit.
 
double GetMinimum () const
 Get the minimum allowable value for the VSlider and VDoubleLineEdit.
 
double GetMaximum () const
 Get the maximum allowable value for the VSlider and VDoubleLineEdit.
 
virtual int GetNumDigits () const
 Get the number of digits displayed by the VDoubleLineEdit.
 
virtual bool GetSciNotation () const
 Get whether the VDoubleLineEdit is being displayed with scientific notation.
 
- Public Member Functions inherited from VSliderEditInterface
virtual void AllowDynamicUpdate () const =0
 Retrieve whether dynamic updates are toggled.
 
virtual bool GetSciNotation () const =0
 Retrieve whether the currnet line edit is using scientific notation.
 
virtual int GetNumDigits () const =0
 Get the number of digits in use by the current line edit.
 
virtual QSize sizeHint () const
 Return the size-hint for the current slider-edit.
 

Protected Member Functions

virtual void _makeContextMenu ()
 
void _sliderChanged (double value)
 
void _sliderChangedIntermediate (double value)
 
- Protected Member Functions inherited from VSliderEditInterface
 VSliderEditInterface ()
 
virtual void _makeContextMenu ()=0
 
- Protected Member Functions inherited from VHBoxWidget
 VHBoxWidget ()
 

Protected Attributes

double _value
 
bool _rangeChangable
 
VDoubleLineEdit_lineEdit
 
VDoubleSliderEditMenu_menu
 
- Protected Attributes inherited from VSliderEditInterface
VSlider_slider
 

Detailed Description

A wrapper for a VSlider and a VDoubleLineEdit, that provides synchronization between the two widgets, and support for a menu that allows setting and getting the VSlider range, and the numeric representation of the VDoubleLineEdit.

Definition at line 18 of file VDoubleSliderEdit.h.

Constructor & Destructor Documentation

◆ VDoubleSliderEdit()

VDoubleSliderEdit::VDoubleSliderEdit ( double  min = 0,
double  max = 10,
double  value = 3,
bool  rangeChangable = false 
)

Member Function Documentation

◆ _makeContextMenu()

virtual void VDoubleSliderEdit::_makeContextMenu ( )
protectedvirtual

Implements VSliderEditInterface.

◆ _sliderChanged()

void VDoubleSliderEdit::_sliderChanged ( double  value)
protected

◆ _sliderChangedIntermediate()

void VDoubleSliderEdit::_sliderChangedIntermediate ( double  value)
protected

◆ AllowDynamicUpdate()

void VDoubleSliderEdit::AllowDynamicUpdate ( ) const
virtual

Retrieve whether dynamic updates are toggled.

Implements VSliderEditInterface.

◆ AllowUserRange()

void VDoubleSliderEdit::AllowUserRange ( bool  allowed = true)

◆ DynamicUpdateChanged

void VDoubleSliderEdit::DynamicUpdateChanged ( bool  enabled)
signal

◆ GetMaximum()

double VDoubleSliderEdit::GetMaximum ( ) const

Get the maximum allowable value for the VSlider and VDoubleLineEdit.

◆ GetMinimum()

double VDoubleSliderEdit::GetMinimum ( ) const

Get the minimum allowable value for the VSlider and VDoubleLineEdit.

◆ GetNumDigits()

virtual int VDoubleSliderEdit::GetNumDigits ( ) const
virtual

Get the number of digits displayed by the VDoubleLineEdit.

Implements VSliderEditInterface.

◆ GetSciNotation()

virtual bool VDoubleSliderEdit::GetSciNotation ( ) const
virtual

Get whether the VDoubleLineEdit is being displayed with scientific notation.

Implements VSliderEditInterface.

◆ GetValue()

double VDoubleSliderEdit::GetValue ( ) const

Get the value associated with the VSlider and VDoubleLineEdit.

◆ MaximumChanged

void VDoubleSliderEdit::MaximumChanged ( double  max)
signal

◆ MinimumChanged

void VDoubleSliderEdit::MinimumChanged ( double  min)
signal

◆ SetDynamicUpdate

virtual void VDoubleSliderEdit::SetDynamicUpdate ( bool  enabled)
virtualslot

Set the dynamic update menu item's toggle state.

◆ SetMaximum()

void VDoubleSliderEdit::SetMaximum ( double  max)

Set the maximum allowable value for the VSlider and VDoubleLineEdit.

◆ SetMinimum()

void VDoubleSliderEdit::SetMinimum ( double  min)

Set the minimum allowable value for the VSlider and VDoubleLineEdit.

◆ SetNumDigits

virtual void VDoubleSliderEdit::SetNumDigits ( int  numDigits)
virtualslot

Set the number of digits displayed by the VDoubleLineEdit.

◆ SetSciNotation

virtual void VDoubleSliderEdit::SetSciNotation ( bool  sciNotation)
virtualslot

Set whether the VDoubleLineEdit is being displayed with scientific notation.

◆ SetValue

void VDoubleSliderEdit::SetValue ( double  value)
slot

Set the current value displayed by the slider and line edit.

◆ ShowContextMenu

virtual void VDoubleSliderEdit::ShowContextMenu ( const QPoint &  pos)
virtualslot

Show the context menu options for the entire widget, triggered on right-click.

◆ ValueChanged

void VDoubleSliderEdit::ValueChanged ( double  value)
signal

◆ ValueChangedIntermediate

void VDoubleSliderEdit::ValueChangedIntermediate ( double  value)
signal

Member Data Documentation

◆ _lineEdit

VDoubleLineEdit* VDoubleSliderEdit::_lineEdit
protected

Definition at line 72 of file VDoubleSliderEdit.h.

◆ _menu

VDoubleSliderEditMenu* VDoubleSliderEdit::_menu
protected

Definition at line 73 of file VDoubleSliderEdit.h.

◆ _rangeChangable

bool VDoubleSliderEdit::_rangeChangable
protected

Definition at line 70 of file VDoubleSliderEdit.h.

◆ _value

double VDoubleSliderEdit::_value
protected

Definition at line 69 of file VDoubleSliderEdit.h.


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