Inherits XGP::XDialog.
Public Types | |
| enum | { SHOW_HOUR = 1, SHOW_MINUTE = 2, SHOW_SECOND = 4, SHOW_DAY = 8, SHOW_MONTH = 16, SHOW_YEAR = 32, SHOW_ALL = -1 } |
Public Member Functions | |
| XDate (const Glib::ustring &title, YGP::ATimestamp &date, int showFields=SHOW_ALL) | |
| ~XDate () | |
Static Public Member Functions | |
| static XDate * | create (const Glib::ustring &title, YGP::ATimestamp &date, int showFields=SHOW_ALL) |
Which parts of the date should be displayed/entered is specified by one of:
(which are hopefully self explainatory).
| anonymous enum |
Possible values to show.
| XGP::XDate::XDate | ( | const Glib::ustring & | title, | |
| YGP::ATimestamp & | date, | |||
| int | showFields = SHOW_ALL | |||
| ) |
Constructor.
Constructor; adds all controls to the dialog.
| title | Title to display for the dialog | |
| date | Date/time to preselect in the dialog | |
| showFields | Which fields to display; a combination of the SHOW_* values. |
| title | Text to display in the titlebar of the dialog | |
| date | Default date to display; will be overwritten with the input (if the dialog is leaved with OK) | |
| showFields | Bitfield describing wich fields to show |
| XGP::XDate::~XDate | ( | ) |
Destructor.
| static XDate* XGP::XDate::create | ( | const Glib::ustring & | title, | |
| YGP::ATimestamp & | date, | |||
| int | showFields = SHOW_ALL | |||
| ) | [inline, static] |
Method to display the dialog; caring about freeing it afterwards.
| title | Title to display for the dialog | |
| date | Date/time to preselect in the dialog | |
| showFields | Which fields to display; a combination of the SHOW_* values. |