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

Public Member Functions | |
| YTime (const YWidgetOpt &opt, const YCPString &label) | |
| virtual char * | widgetClass () |
| YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newvalue) |
| YCPValue | queryWidget (const YCPSymbol &property) |
| virtual void | setNewTime (const YCPString &text)=0 |
| virtual YCPString | getTime ()=0 |
| virtual void | setLabel (const YCPString &label) |
Protected Attributes | |
| YCPString | label |
| bool | autoAdvance |
Implementation of the Time and Heading widgets
| YTime::YTime | ( | const YWidgetOpt & | opt, | |
| const YCPString & | label | |||
| ) |
Creates a new date
| text | the initial text of the date |
| virtual char* YTime::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 YTime::setNewTime | ( | const YCPString & | text | ) | [pure virtual] |
Set the date in the entry to a new value
| virtual YCPString YTime::getTime | ( | ) | [pure virtual] |
get the date currently entered in the Time entry
| void YTime::setLabel | ( | const YCPString & | label | ) | [virtual] |
change the label of the Time entry. Overload this, but call YTime::setLabel at the end of your own function.
YCPString YTime::label [protected] |
Current label
bool YTime::autoAdvance [protected] |
Flag: This property holds whether the editor automatically advances to the next section.
1.5.0