From 30cbe48e8a3eb7ecbff5d9bf0b2ad69bcd7dbd47 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 11 Jan 2017 19:33:32 +0000 Subject: [PATCH] events: Added more events for processing calendar/event data --- source/common/events.h | 76 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/source/common/events.h b/source/common/events.h index 0b679b1..cab29b3 100644 --- a/source/common/events.h +++ b/source/common/events.h @@ -3,6 +3,22 @@ #include +DEFINE_EVENT_TYPE(XCMAIN_PROCESSCALENDAR) +DEFINE_EVENT_TYPE(XCMAIN_EDITCALENDAR) +DEFINE_EVENT_TYPE(XCMAIN_DELETECALENDAR) +DEFINE_EVENT_TYPE(XCMAIN_EDITEVENT) +DEFINE_EVENT_TYPE(XCMAIN_DELETEEVENT) +DEFINE_EVENT_TYPE(XCMAIN_ADDEVENT) +DEFINE_EVENT_TYPE(XCMAIN_UPDATEEVENT) + +DECLARE_EVENT_TYPE(XCMAIN_PROCESSCALENDAR, wxID_ANY) +DECLARE_EVENT_TYPE(XCMAIN_EDITCALENDAR, wxID_ANY) +DECLARE_EVENT_TYPE(XCMAIN_DELETECALENDAR, wxID_ANY) +DECLARE_EVENT_TYPE(XCMAIN_EDITEVENT, wxID_ANY) +DECLARE_EVENT_TYPE(XCMAIN_DELETEEVENT, wxID_ANY) +DECLARE_EVENT_TYPE(XCMAIN_ADDEVENT, wxID_ANY) +DECLARE_EVENT_TYPE(XCMAIN_UPDATEEVENT, wxID_ANY) + DEFINE_EVENT_TYPE(XCCALENDARDAY_UPDATEICONS) DEFINE_EVENT_TYPE(XCCALENDARDAY_DESELECTOTHERENTRIES) DEFINE_EVENT_TYPE(XCCALENDARDAY_DESELECTALLENTRIES) @@ -29,18 +45,63 @@ DECLARE_EVENT_TYPE(XCCALENDARCTRL_HIDEACCOUNTENTRIES, wxID_ANY) DEFINE_EVENT_TYPE(XCCALENDARCTRL_SHOWACCOUNTENTRIES); DECLARE_EVENT_TYPE(XCCALENDARCTRL_SHOWACCOUNTENTRIES, wxID_ANY) +DEFINE_EVENT_TYPE(XCCALENDARCTRL_DELETECALENDARENTRIES); +DECLARE_EVENT_TYPE(XCCALENDARCTRL_DELETECALENDARENTRIES, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARCTRL_DELETEENTRY); +DECLARE_EVENT_TYPE(XCCALENDARCTRL_DELETEENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARCTRL_ADDENTRY); +DECLARE_EVENT_TYPE(XCCALENDARCTRL_ADDENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARCTRL_UPDATEENTRY); +DECLARE_EVENT_TYPE(XCCALENDARCTRL_UPDATEENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARCTRL_UPDATECALENDARCOLOUR); +DECLARE_EVENT_TYPE(XCCALENDARCTRL_UPDATECALENDARCOLOUR, wxID_ANY) + DEFINE_EVENT_TYPE(XCCALENDARMONTH_HIDEACCOUNTENTRIES); DECLARE_EVENT_TYPE(XCCALENDARMONTH_HIDEACCOUNTENTRIES, wxID_ANY) DEFINE_EVENT_TYPE(XCCALENDARMONTH_SHOWACCOUNTENTRIES); DECLARE_EVENT_TYPE(XCCALENDARMONTH_SHOWACCOUNTENTRIES, wxID_ANY) +DEFINE_EVENT_TYPE(XCCALENDARMONTH_DELETECALENDARENTRIES); +DECLARE_EVENT_TYPE(XCCALENDARMONTH_DELETECALENDARENTRIES, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARMONTH_DELETEENTRY) +DECLARE_EVENT_TYPE(XCCALENDARMONTH_DELETEENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARMONTH_ADDENTRY); +DECLARE_EVENT_TYPE(XCCALENDARMONTH_ADDENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARMONTH_UPDATEENTRY); +DECLARE_EVENT_TYPE(XCCALENDARMONTH_UPDATEENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARMONTH_UPDATECALENDARCOLOUR); +DECLARE_EVENT_TYPE(XCCALENDARMONTH_UPDATECALENDARCOLOUR, wxID_ANY) + DEFINE_EVENT_TYPE(XCCALENDARDAY_HIDEACCOUNTENTRIES); DECLARE_EVENT_TYPE(XCCALENDARDAY_HIDEACCOUNTENTRIES, wxID_ANY) DEFINE_EVENT_TYPE(XCCALENDARDAY_SHOWACCOUNTENTRIES); DECLARE_EVENT_TYPE(XCCALENDARDAY_SHOWACCOUNTENTRIES, wxID_ANY) +DEFINE_EVENT_TYPE(XCCALENDARDAY_DELETECALENDARENTRIES); +DECLARE_EVENT_TYPE(XCCALENDARDAY_DELETECALENDARENTRIES, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARDAY_DELETEENTRY); +DECLARE_EVENT_TYPE(XCCALENDARDAY_DELETEENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARDAY_ADDENTRY) +DECLARE_EVENT_TYPE(XCCALENDARDAY_ADDENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARDAY_UPDATEENTRY) +DECLARE_EVENT_TYPE(XCCALENDARDAY_UPDATEENTRY, wxID_ANY) + +DEFINE_EVENT_TYPE(XCCALENDARDAY_UPDATECALENDARCOLOUR); +DECLARE_EVENT_TYPE(XCCALENDARDAY_UPDATECALENDARCOLOUR, wxID_ANY) + DEFINE_EVENT_TYPE(XCCALENDARDAYENTRY_HIDEACCOUNTENTRIES); DECLARE_EVENT_TYPE(XCCALENDARDAYENTRY_HIDEACCOUNTENTRIES, wxID_ANY) @@ -65,7 +126,8 @@ DECLARE_EVENT_TYPE(XCCALENDARMONTH_SHOWCALENDARENTRIES, wxID_ANY) DEFINE_EVENT_TYPE(XCCALENDARMONTH_HIDECALENDARENTRIES); DECLARE_EVENT_TYPE(XCCALENDARMONTH_HIDECALENDARENTRIES, wxID_ANY) - +DEFINE_EVENT_TYPE(XCCALENDARMONTH_DISPLAYEVENTMENU); +DECLARE_EVENT_TYPE(XCCALENDARMONTH_DISPLAYEVENTMENU, wxID_ANY) #define ID_MONTHVIEWCLEARSELECTION 7000 #define ID_DESELECTALLITEMS 7001 @@ -76,5 +138,17 @@ DECLARE_EVENT_TYPE(XCCALENDARMONTH_HIDECALENDARENTRIES, wxID_ANY) #define ID_CHANGEGRID 7006 #define ID_ENTRYDESELECT 7007 #define ID_DESELECTOTHERENTRIES 7008 +#define ID_PROCESSCALENDAR 7009 +#define ID_EDITCALENDAR 7010 +#define ID_DELETECALENDAR 7011 +#define ID_DELETECALENDARENTRIES 7012 +#define ID_EDITEVENT 7013 +#define ID_DELETEEVENT 7014 +#define ID_DISPLAYEVENTMENU 7015 +#define ID_EDITENTRY 7016 +#define ID_DELETEENTRY 7017 +#define ID_ADDENTRY 7018 +#define ID_UPDATEENTRY 7019 +#define ID_UPDATECOLOUR 7020 #endif \ No newline at end of file -- 2.39.5