#include <YDate.h>
Inheritance diagram for YDate:

Public Member Functions | |
| YDate (const YWidgetOpt &opt, const YCPString &label) | |
| virtual char * | widgetClass () |
| YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newvalue) |
| YCPValue | queryWidget (const YCPSymbol &property) |
| virtual void | setNewDate (const YCPString &text)=0 |
| virtual YCPString | getDate ()=0 |
| virtual void | setLabel (const YCPString &label) |
Protected Attributes | |
| YCPString | label |
Implementation of the Date and Heading widgets
| YDate::YDate | ( | const YWidgetOpt & | opt, | |
| const YCPString & | label | |||
| ) |
Creates a new date
| text | the initial text of the date |
| virtual char* YDate::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
Implements the ui command changeWidget.
Reimplemented from YWidget.
Implements the ui command queryWidget
Reimplemented from YWidget.
| virtual void YDate::setNewDate | ( | const YCPString & | text | ) | [pure virtual] |
Set the date in the entry to a new value
| virtual YCPString YDate::getDate | ( | ) | [pure virtual] |
get the date currently entered in the Date entry
| void YDate::setLabel | ( | const YCPString & | label | ) | [virtual] |
change the label of the Date entry. Overload this, but call YDate::setLabel at the end of your own function.
YCPString YDate::label [protected] |
Current label
1.5.0