YIntField Class Reference

Implementation of the IntField widget. More...

#include <YIntField.h>

Inheritance diagram for YIntField:

YWidget List of all members.

Public Member Functions

 YIntField (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)
virtual int value ()
int minValue ()
int maxValue ()
YCPString label ()
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 IntField widget.


Constructor & Destructor Documentation

YIntField::YIntField ( const YWidgetOpt opt,
const YCPString label,
int  minValue,
int  maxValue,
int  initialValue 
)

Constructor


Member Function Documentation

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

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

Reimplemented from YWidget.

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

Implements the ChangeWidget() UI command.

Reimplemented from YWidget.

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

Implements the QueryWidget() UI command.

Reimplemented from YWidget.

void YIntField::setLabel ( const YCPString label  )  [virtual]

Change the IntField label.

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

void YIntField::setValue ( int  newValue  )  [virtual]

Change the slider value.

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

virtual int YIntField::value (  )  [inline, virtual]

int YIntField::minValue (  )  [inline]

int YIntField::maxValue (  )  [inline]

YCPString YIntField::label (  )  [inline]

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

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

Reimplemented from YWidget.

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

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

Reimplemented from YWidget.

void YIntField::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 YIntField::_label [private]

int YIntField::_minValue [private]

int YIntField::_maxValue [private]

int YIntField::_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