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

A wrapper for a VSlider and a VIntLineEdit, 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 VIntLineEdit. More...

#include <VIntSliderEdit.h>

Inheritance diagram for VIntSliderEdit:
VSliderEditInterface VHBoxWidget

Public Slots

void SetValue (int value)
 Set the current value displayed by the slider and line edit.
 
- 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 (int value)
 
void ValueChangedIntermediate (int value)
 
void MinimumChanged (int min)
 
void MaximumChanged (int max)
 
void DynamicUpdateChanged (bool enabled)
 
- Signals inherited from VSliderEditInterface
void FormatChanged ()
 

Public Member Functions

 VIntSliderEdit (int min=0, int max=10, int value=3, bool rangeChangable=false)
 
virtual void SetDynamicUpdate (bool enabled)
 Set the dynamic update menu item's toggle state.
 
void SetMinimum (int min)
 Set the minimum allowable value for the VSlider and VIntLineEdit.
 
void SetMaximum (int max)
 Set the maximum allowable value for the VSlider and VIntLineEdit.
 
void AllowUserRange (bool allowed=true)
 
void AllowDynamicUpdate () const
 Allow the toggling of dynamic updating widgets.
 
int GetValue () const
 Get the value associated with the VSlider and VIntLineEdit.
 
int GetMinimum () const
 Get the minimum allowable value for the VSlider and VIntLineEdit.
 
int GetMaximum () const
 Get the maximum allowable value for the VSlider and VIntLineEdit.
 
virtual int GetNumDigits () const
 Get the number of digits displayed by the VIntLineEdit.
 
virtual void SetNumDigits (int numDigits)
 Set the number of digits displayed by the VIntLineEdit.
 
virtual bool GetSciNotation () const
 Get whether the VIntLineEdit is being displayed with scientific notation.
 
virtual void SetSciNotation (bool sciNotation)
 Set whether the VIntLineEdit is being displayed with scientific notation.
 
virtual void ShowContextMenu (const QPoint &pos)
 Show the context menu options for the entire widget, triggered on right-click.
 
- 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 (int value)
 
void _sliderChangedIntermediate (int value)
 
- Protected Member Functions inherited from VSliderEditInterface
 VSliderEditInterface ()
 
virtual void _makeContextMenu ()=0
 
- Protected Member Functions inherited from VHBoxWidget
 VHBoxWidget ()
 

Protected Attributes

int _value
 
bool _rangeChangable
 
VIntSliderEditMenu_menu
 
VIntLineEdit_lineEdit
 
- Protected Attributes inherited from VSliderEditInterface
VSlider_slider
 

Detailed Description

A wrapper for a VSlider and a VIntLineEdit, 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 VIntLineEdit.

Definition at line 17 of file VIntSliderEdit.h.

Constructor & Destructor Documentation

◆ VIntSliderEdit()

VIntSliderEdit::VIntSliderEdit ( int  min = 0,
int  max = 10,
int  value = 3,
bool  rangeChangable = false 
)

Member Function Documentation

◆ _makeContextMenu()

virtual void VIntSliderEdit::_makeContextMenu ( )
protectedvirtual

Implements VSliderEditInterface.

◆ _sliderChanged()

void VIntSliderEdit::_sliderChanged ( int  value)
protected

◆ _sliderChangedIntermediate()

void VIntSliderEdit::_sliderChangedIntermediate ( int  value)
protected

◆ AllowDynamicUpdate()

void VIntSliderEdit::AllowDynamicUpdate ( ) const
virtual

Allow the toggling of dynamic updating widgets.

Implements VSliderEditInterface.

◆ AllowUserRange()

void VIntSliderEdit::AllowUserRange ( bool  allowed = true)

◆ DynamicUpdateChanged

void VIntSliderEdit::DynamicUpdateChanged ( bool  enabled)
signal

◆ GetMaximum()

int VIntSliderEdit::GetMaximum ( ) const

Get the maximum allowable value for the VSlider and VIntLineEdit.

◆ GetMinimum()

int VIntSliderEdit::GetMinimum ( ) const

Get the minimum allowable value for the VSlider and VIntLineEdit.

◆ GetNumDigits()

virtual int VIntSliderEdit::GetNumDigits ( ) const
virtual

Get the number of digits displayed by the VIntLineEdit.

Implements VSliderEditInterface.

◆ GetSciNotation()

virtual bool VIntSliderEdit::GetSciNotation ( ) const
virtual

Get whether the VIntLineEdit is being displayed with scientific notation.

Implements VSliderEditInterface.

◆ GetValue()

int VIntSliderEdit::GetValue ( ) const

Get the value associated with the VSlider and VIntLineEdit.

◆ MaximumChanged

void VIntSliderEdit::MaximumChanged ( int  max)
signal

◆ MinimumChanged

void VIntSliderEdit::MinimumChanged ( int  min)
signal

◆ SetDynamicUpdate()

virtual void VIntSliderEdit::SetDynamicUpdate ( bool  enabled)
virtual

Set the dynamic update menu item's toggle state.

Implements VSliderEditInterface.

◆ SetMaximum()

void VIntSliderEdit::SetMaximum ( int  max)

Set the maximum allowable value for the VSlider and VIntLineEdit.

◆ SetMinimum()

void VIntSliderEdit::SetMinimum ( int  min)

Set the minimum allowable value for the VSlider and VIntLineEdit.

◆ SetNumDigits()

virtual void VIntSliderEdit::SetNumDigits ( int  numDigits)
virtual

Set the number of digits displayed by the VIntLineEdit.

Implements VSliderEditInterface.

◆ SetSciNotation()

virtual void VIntSliderEdit::SetSciNotation ( bool  sciNotation)
virtual

Set whether the VIntLineEdit is being displayed with scientific notation.

Implements VSliderEditInterface.

◆ SetValue

void VIntSliderEdit::SetValue ( int  value)
slot

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

◆ ShowContextMenu()

virtual void VIntSliderEdit::ShowContextMenu ( const QPoint &  pos)
virtual

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

Implements VSliderEditInterface.

◆ ValueChanged

void VIntSliderEdit::ValueChanged ( int  value)
signal

◆ ValueChangedIntermediate

void VIntSliderEdit::ValueChangedIntermediate ( int  value)
signal

Member Data Documentation

◆ _lineEdit

VIntLineEdit* VIntSliderEdit::_lineEdit
protected

Definition at line 74 of file VIntSliderEdit.h.

◆ _menu

VIntSliderEditMenu* VIntSliderEdit::_menu
protected

Definition at line 73 of file VIntSliderEdit.h.

◆ _rangeChangable

bool VIntSliderEdit::_rangeChangable
protected

Definition at line 71 of file VIntSliderEdit.h.

◆ _value

int VIntSliderEdit::_value
protected

Definition at line 70 of file VIntSliderEdit.h.


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