libyui  3.0.10
YSlider Class Reference

#include <YSlider.h>

Inheritance diagram for YSlider:
Collaboration diagram for YSlider:

List of all members.

Public Member Functions

virtual ~YSlider ()
virtual const char * widgetClass () const

Protected Member Functions

 YSlider (YWidget *parent, const std::string &label, int minValue, int maxValue)

Detailed Description

Slider: Input widget for an integer value between a minimum and a maximum value. Very similar to IntField in semantics, but with a graphical slider that can be dragged to the desired value. It also contains an IntField to allow entering the value directly.

Don't confuse this widget with ProgressBar: ProgressBar is output-only.

This is an optional widget, i.e. not all UIs support it.

Definition at line 44 of file YSlider.h.


Constructor & Destructor Documentation

YSlider::YSlider ( YWidget parent,
const std::string &  label,
int  minValue,
int  maxValue 
) [protected]

Constructor.

Create a Slider with 'label' as the caption, and the specified minimum and maximum values.

Note that YWidgetFactory::createSlider() also has an 'initialValue' parameter that is not used here (because the current value is not stored in this base class, but in the derived class).

Definition at line 43 of file YSlider.cc.

Here is the call graph for this function:

YSlider::~YSlider ( ) [virtual]

Destructor.

Definition at line 57 of file YSlider.cc.


Member Function Documentation

virtual const char* YSlider::widgetClass ( ) const [inline, virtual]

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YIntField.

Definition at line 72 of file YSlider.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends