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 ()
const char * userInputProperty ()

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

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

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

Reimplemented from YWidget.

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

Implements the ChangeWidget() UI command.

Reimplemented from YWidget.

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

Implements the QueryWidget() UI command.

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.

YCPString YSlider::label (  )  [inline]

int YSlider::value (  )  [inline]

int YSlider::minValue (  )  [inline]

int YSlider::maxValue (  )  [inline]

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

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

Reimplemented from YWidget.

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

The name of the widget property that will return user input. Inherited from YWidget.

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.


Member Data Documentation

YCPString YSlider::_label [private]

int YSlider::_minValue [private]

int YSlider::_maxValue [private]

int YSlider::_value [private]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:20:23 2007 for yast2-core by  doxygen 1.5.0