Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YSlider Class Reference

Implementation of the Slider widget. More...

#include <YSlider.h>

Inheritance diagram for YSlider:

YWidget List of all members.

Public Member Functions

 YSlider (const YWidgetOpt &opt, const YCPString &label, int minValue, int maxValue, int initialValue)
virtual char * widgetClass ()
YCPValue changeWidget (const YCPSymbol &property, const YCPValue &newValue)
YCPValue queryWidget (const YCPSymbol &property)
virtual void setLabel (const YCPString &label)
virtual void setValue (int newValue)
YCPString label ()
int value ()
int minValue ()
int maxValue ()
const char * shortcutProperty ()

Private Member Functions

virtual void saveUserInput (YMacroRecorder *macroRecorder)

Private Attributes

YCPString _label
int _minValue
int _maxValue
int _value

Detailed Description

Implementation of the Slider widget.


Constructor & Destructor Documentation

YSlider::YSlider const YWidgetOpt opt,
const YCPString label,
int  minValue,
int  maxValue,
int  initialValue
 

Constructor


Member Function Documentation

YCPValue YSlider::changeWidget const YCPSymbol property,
const YCPValue newValue
[virtual]
 

Implements the ChangeWidget() UI command.

integer Value the numerical value

string Label the slider label

Reimplemented from YWidget.

YCPString YSlider::label  )  [inline]
 

int YSlider::maxValue  )  [inline]
 

int YSlider::minValue  )  [inline]
 

YCPValue YSlider::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the QueryWidget() UI command.

Reimplemented from YWidget.

void YSlider::saveUserInput YMacroRecorder macroRecorder  )  [private, virtual]
 

Save the widget's user input to a macro recorder. Intentionally declared as "private" so all macro recording internals are handled by the abstract libyui level, not by a specific UI.

Reimplemented from YWidget.

void YSlider::setLabel const YCPString label  )  [virtual]
 

Change the Slider label.

Overwrite this, but call YSlider::setLabel at the end of your own method.

void YSlider::setValue int  newValue  )  [virtual]
 

Change the slider value.

Overload this, but call YSlider::setValue() at the end of your own method.

const char* YSlider::shortcutProperty  )  [inline, virtual]
 

The name of the widget property that holds the keyboard shortcut. Inherited from YWidget.

Reimplemented from YWidget.

int YSlider::value  )  [inline]
 

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

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

Reimplemented from YWidget.


Member Data Documentation

YCPString YSlider::_label [private]
 

int YSlider::_maxValue [private]
 

int YSlider::_minValue [private]
 

int YSlider::_value [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6