libyui-qt  2.43.5
 All Classes Functions Variables
YQSlider Class Reference
Inheritance diagram for YQSlider:
Collaboration diagram for YQSlider:

Public Slots

void valueChangedSlot (int newValue)
 

Signals

void valueChanged (int newValue)
 

Public Member Functions

 YQSlider (YWidget *parent, const std::string &label, int minValue, int maxValue, int initialValue, bool reverseLayout=false)
 
virtual ~YQSlider ()
 
virtual int value ()
 
virtual void setLabel (const std::string &label)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Member Functions

virtual void setValueInternal (int val)
 

Protected Attributes

YQWidgetCaption_caption
 
QSlider * _qt_slider
 
QSpinBox * _qt_spinBox
 
QFrame * _hbox
 

Detailed Description

Definition at line 36 of file YQSlider.h.

Constructor & Destructor Documentation

YQSlider::YQSlider ( YWidget *  parent,
const std::string &  label,
int  minValue,
int  maxValue,
int  initialValue,
bool  reverseLayout = false 
)

Constructor.

'reverseLayout' creates the QSpinBox to the left and the QSlider to the right.

Definition at line 41 of file YQSlider.cc.

Here is the call graph for this function:

YQSlider::~YQSlider ( )
virtual

Destructor.

Definition at line 120 of file YQSlider.cc.

Member Function Documentation

int YQSlider::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 174 of file YQSlider.cc.

int YQSlider::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 164 of file YQSlider.cc.

void YQSlider::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 154 of file YQSlider.cc.

bool YQSlider::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Definition at line 196 of file YQSlider.cc.

void YQSlider::setLabel ( const std::string &  label)
virtual

Set the label (the caption above the input field).

Reimplemented from YSlider / YIntField.

Definition at line 188 of file YQSlider.cc.

Here is the call graph for this function:

void YQSlider::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 181 of file YQSlider.cc.

void YQSlider::setValueInternal ( int  val)
protectedvirtual

Set the current value (the number entered by the user or set from the outside) of this slider. 'val' is guaranteed to be between minValue and maxValue; no further checks are required.

Implemented from YSlider/ YIntField.

Definition at line 134 of file YQSlider.cc.

int YQSlider::value ( )
virtual

Get the current value (the number entered by the user or set from the outside) of this slider.

Implemented from YSlider / YIntField.

Definition at line 127 of file YQSlider.cc.

void YQSlider::valueChanged ( int  newValue)
signal

Emitted when the value changes (regardless of the notify flag).

void YQSlider::valueChangedSlot ( int  newValue)
slot

Slot for "value changed". This will send a ValueChanged event if 'notify' is set.

Definition at line 144 of file YQSlider.cc.

Here is the call graph for this function:


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