QGuiSlider Class Reference
[Apollo GuiApollo]

Inheritance diagram for QGuiSlider:

QGuiCompositeFrame

List of all members.


Detailed Description

slider widget with number input box

Author:
Sergio Di Domizio The number shown in the input box is updated automatically when the slider is moved with the mouse and viceversa

Public Member Functions

 QGuiSlider (const TGWindow *parent, UInt_t min, UInt_t max, UInt_t startingPoint)
 ctor
virtual ~QGuiSlider ()
 dtor
UInt_t GetValue () const
 get currently displayed value
bool SetValue (UInt_t value)
 set value to be shown
UInt_t GetMin () const
 get minimum allowed value
UInt_t GetMax () const
 get maximum allowed value
bool SetRange (UInt_t min, UInt_t max)
 set slider widget range
void UpdateNumberFrame ()
void UpdateSlider ()
void Lock ()
void Unlock ()
void ValueChanged ()

Private Attributes

UInt_t fMin
UInt_t fMax
UInt_t fCurrVal
TGNumberEntryField * fNumberFrame
TGHSlider * fSliderFrame

Constructor & Destructor Documentation

QGuiSlider::QGuiSlider ( const TGWindow *  parent,
UInt_t  min,
UInt_t  max,
UInt_t  startingPoint 
)

ctor

Parameters:
min slider lower bound
max slider upper bound
startingPoint initial value to be set


Member Function Documentation

bool QGuiSlider::SetValue ( UInt_t  value  ) 

set value to be shown

Returns:
true unless value is out of bounds

Referenced by QGPTimingFrame::SetDelay(), QGEOffsetFrame::SetOffsetDac(), QGEOffsetFrame::SetOffsetHi(), and QGPTimingFrame::SetPeriod().

bool QGuiSlider::SetRange ( UInt_t  min,
UInt_t  max 
)

set slider widget range

Returns:
true unless min is greater than max

References UpdateSlider().

Referenced by QGPTimingFrame::SetDelayRange(), and QGPTimingFrame::SetPeriodRange().

void QGuiSlider::UpdateNumberFrame (  ) 

updates number input box -- for internal use

References ValueChanged().

void QGuiSlider::UpdateSlider (  ) 

updates slider -- for internal use

References ValueChanged().

Referenced by SetRange().

void QGuiSlider::Lock (  ) 

inhibit user input

Referenced by QGPTimingFrame::Lock(), and QGEOffsetFrame::Lock().

void QGuiSlider::Unlock (  ) 

restore user input

Referenced by QGEOffsetFrame::Lock(), and QGPTimingFrame::Unlock().

void QGuiSlider::ValueChanged (  )  [inline]

emits signal when user changes the value in this widget

Referenced by UpdateNumberFrame(), and UpdateSlider().


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

Generated on Tue Nov 16 10:50:07 2010 for CUORE Software by  doxygen 1.5.6