XGP::XDate Class Reference

Class to show a dialog to enter a date (year, month, day, hour, minute, second or any combination of those). More...

Inherits XGP::XDialog.

List of all members.

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 XDatecreate (const Glib::ustring &title, YGP::ATimestamp &date, int showFields=SHOW_ALL)


Detailed Description

Class to show a dialog to enter a date (year, month, day, hour, minute, second or any combination of those).

Which parts of the date should be displayed/entered is specified by one of:

(which are hopefully self explainatory).


Member Enumeration Documentation

anonymous enum

Possible values to show.

Enumerator:
SHOW_HOUR  Add a field to change the hour.
SHOW_MINUTE  Add a field to change the minute.
SHOW_SECOND  Add a field to change the second.
SHOW_DAY  Add a calendar control.
SHOW_MONTH  Enables to change month (and year) in the calender control.
SHOW_YEAR  Enables to change year (and month) in the calender control.
SHOW_ALL  Show all fields the dialog has to offer.


Constructor & Destructor Documentation

XGP::XDate::XDate ( const Glib::ustring &  title,
YGP::ATimestamp &  date,
int  showFields = SHOW_ALL 
)

Constructor.

Constructor; adds all controls to the dialog.

Parameters:
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.
Only the specified fields are shown.
Parameters:
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.


Member Function Documentation

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.

Parameters:
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.


The documentation for this class was generated from the following files:

XGP Version 0.9.31 - Generated on Wed Nov 18 11:25:30 2009 by doxygen 1.5.8