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

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

Implements the ChangeWidget() UI command.

Reimplemented from YWidget.

YCPString YIntField::label  )  [inline]
 

int YIntField::maxValue  )  [inline]
 

int YIntField::minValue  )  [inline]
 

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

Implements the QueryWidget() UI command.

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.

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.

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.

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

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

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

Reimplemented from YWidget.


Member Data Documentation

YCPString YIntField::_label [private]
 

int YIntField::_maxValue [private]
 

int YIntField::_minValue [private]
 

int YIntField::_value [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6