2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dateevt.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxDateEvent
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxDateEvent
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05: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 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxadv}
|
|
|
|
@category{events}
|
|
|
|
*/
|
|
|
|
class wxDateEvent : public wxCommandEvent
|
|
|
|
{
|
|
|
|
public:
|
2012-04-09 23:27:50 -04:00
|
|
|
wxDateEvent();
|
|
|
|
wxDateEvent(wxWindow *win, const wxDateTime& dt, wxEventType type);
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
|
|
|
Returns the date.
|
|
|
|
*/
|
2008-09-29 06:52:37 -04:00
|
|
|
const wxDateTime& GetDate() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the date carried by the event, normally only used by the library
|
|
|
|
internally.
|
|
|
|
*/
|
|
|
|
void SetDate(const wxDateTime& date);
|
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|
2012-04-09 23:27:50 -04:00
|
|
|
wxEventType wxEVT_DATE_CHANGED;
|
|
|
|
wxEventType wxEVT_TIME_CHANGED;
|