2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dateevt.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of wxDateEvent
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
2010-07-13 13:29:13 +00:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxDateEvent
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
This event class holds information about a date change and is used together
|
|
|
|
with wxDatePickerCtrl. It also serves as a base class
|
|
|
|
for wxCalendarEvent.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxadv}
|
|
|
|
@category{events}
|
|
|
|
*/
|
|
|
|
class wxDateEvent : public wxCommandEvent
|
|
|
|
{
|
|
|
|
public:
|
2012-04-10 03:27:50 +00:00
|
|
|
wxDateEvent();
|
|
|
|
wxDateEvent(wxWindow *win, const wxDateTime& dt, wxEventType type);
|
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
/**
|
|
|
|
Returns the date.
|
|
|
|
*/
|
2008-09-29 10:52:37 +00:00
|
|
|
const wxDateTime& GetDate() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the date carried by the event, normally only used by the library
|
|
|
|
internally.
|
|
|
|
*/
|
|
|
|
void SetDate(const wxDateTime& date);
|
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|
2012-04-10 03:27:50 +00:00
|
|
|
wxEventType wxEVT_DATE_CHANGED;
|
|
|
|
wxEventType wxEVT_TIME_CHANGED;
|