#include <TMDDateTimePicker.h>
TSP-enforcing: No
Definition at line 41 of file TMDDateTimePicker.h.
Public Member Functions | |
TMDDateTimePicker (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE) | |
virtual bool | Validate () |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
virtual wxString | GetDate (void) |
virtual void | SetDate (CPKIFTimePtr &t) |
virtual void | SetMorningOrNight (bool b) |
virtual CPKIFTimePtr | GetDateAsPKIFTime () |
TMDDateTimePicker::TMDDateTimePicker | ( | wxWindow * | parent, | |
wxWindowID | id, | |||
const wxString & | title, | |||
const wxPoint & | position = wxDefaultPosition , |
|||
const wxSize & | size = wxDefaultSize , |
|||
long | style = wxDEFAULT_DIALOG_STYLE | |||
) |
Interface: External
Dialog constructor
Definition at line 36 of file TMDDateTimePicker.cpp.
bool TMDDateTimePicker::Validate | ( | ) | [virtual] |
Interface: External
Validate function not used.
Definition at line 94 of file TMDDateTimePicker.cpp.
bool TMDDateTimePicker::TransferDataToWindow | ( | ) | [virtual] |
Interface: External
Nothing is done here since SetDate() does all this work
Definition at line 106 of file TMDDateTimePicker.cpp.
bool TMDDateTimePicker::TransferDataFromWindow | ( | ) | [virtual] |
Interface: External
Nothing is done here since GetDate() does all this work
Definition at line 118 of file TMDDateTimePicker.cpp.
wxString TMDDateTimePicker::GetDate | ( | void | ) | [virtual] |
Interface: External
This function returns date as string
Definition at line 210 of file TMDDateTimePicker.cpp.
References GetDateAsPKIFTime(), and MakeTimePurty().
void TMDDateTimePicker::SetDate | ( | CPKIFTimePtr & | t | ) | [virtual] |
Interface: External
This function parses the date from the strings we sling around in our XML and populates the calendar control and the time spinners.
t | [in] Date to be set |
Definition at line 231 of file TMDDateTimePicker.cpp.
References GetMonth().
void TMDDateTimePicker::SetMorningOrNight | ( | bool | b | ) | [virtual] |
Interface: External
This function sets the time to start of day if b is true and sets it to the end of day if b is false.
b | [in] Boolean value indicating if its a start of the day (true) or end of the day (false) |
Definition at line 250 of file TMDDateTimePicker.cpp.
CPKIFTimePtr TMDDateTimePicker::GetDateAsPKIFTime | ( | ) | [virtual] |
Interface: External
This function returns date in PKIFTime form
Definition at line 130 of file TMDDateTimePicker.cpp.
Referenced by GetDate().