11 #include <wx/datetime.h>
12 #include "../../headers/Date.h"
13 #include "../../headers/Declare.h"
32 DateDialog( wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxString& title = wxT(
"Select Date"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxSize( 200,110 ),
long style = wxCAPTION|wxSYSTEM_MENU );
36 DateDialog::DateDialog( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) : wxDialog( parent, id, title, pos, size, style )
38 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
44 this->SetForegroundColour( wxColor(ColorRed[8],ColorGreen[8],ColorBlue[8]) );
45 this->SetBackgroundColour( wxColor(ColorRed[7],ColorGreen[7],ColorBlue[7]) );
48 bSizer1 =
new wxBoxSizer( wxVERTICAL );
53 dateDialogSaveButton =
new wxButton(
this,wxID_ANY,
l(
"Select"), wxDefaultPosition, wxDefaultSize, 0 );
56 this->SetSizer( bSizer1 );
59 this->Centre( wxBOTH );
std::string l(std::string Text)
A Helper Function For HK_Language.
This Dialog Allows The User To Select A Date.
HK_Date GetDate()
Returns Selected Date.
wxButton * dateDialogSaveButton
DateDialog(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Select Date"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(200, 110), long style=wxCAPTION|wxSYSTEM_MENU)
Constructor.
wxDatePickerCtrl * dateCalPicker
void OnDateSave(wxCommandEvent &)
Sets Date To ReturnDate And Closes Dialog.
A Class For Managing Dates.
void SetMonth(int Month)
Sets Month Value, Doesn't Check If Its Valid.
void SetDay(int Days)
Sets Day Value, Doesn't Check If Its Valid.
void SetYear(int Year)
Sets Year Value, Doesn't Check If Its Valid.
vector< int > GetIntArray(int Selection)
Returns The Selected Value As An Array Of Integers.