TMDDateTimePicker Class Reference

#include <TMDDateTimePicker.h>

Inheritance diagram for TMDDateTimePicker:

Inheritance graph
[legend]
Collaboration diagram for TMDDateTimePicker:

Collaboration graph
[legend]

List of all members.


Detailed Description

TMDDateTimePicker class is used to pick date and time.

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 ()

Constructor & Destructor Documentation

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

Returns:
None

Definition at line 36 of file TMDDateTimePicker.cpp.


Member Function Documentation

bool TMDDateTimePicker::Validate (  )  [virtual]

Interface: External

Validate function not used.

Returns:
None

Definition at line 94 of file TMDDateTimePicker.cpp.

bool TMDDateTimePicker::TransferDataToWindow (  )  [virtual]

Interface: External

Nothing is done here since SetDate() does all this work

Returns:
None

Definition at line 106 of file TMDDateTimePicker.cpp.

bool TMDDateTimePicker::TransferDataFromWindow (  )  [virtual]

Interface: External

Nothing is done here since GetDate() does all this work

Returns:
None

Definition at line 118 of file TMDDateTimePicker.cpp.

wxString TMDDateTimePicker::GetDate ( void   )  [virtual]

Interface: External

This function returns date as string

Returns:
String representation of date

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.

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

Returns:
None
Parameters:
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

Returns:
Smart pointer to CPKIFTime class

Definition at line 130 of file TMDDateTimePicker.cpp.

Referenced by GetDate().


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

Generated on Mon Nov 15 11:21:10 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6