X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Fevents.h;h=e425fa7beae234bae1e28169cddc631a0d51c737;hb=616ddd1b189837e5a7d1d6953534115be44f477b;hp=cab29b39216b7fa303484c56a7c5b4b7f3cd189e;hpb=30cbe48e8a3eb7ecbff5d9bf0b2ad69bcd7dbd47;p=xestiacalendar%2F.git diff --git a/source/common/events.h b/source/common/events.h index cab29b3..e425fa7 100644 --- a/source/common/events.h +++ b/source/common/events.h @@ -1,3 +1,21 @@ +// events.h - Events header. +// +// (c) 2016-2017 Xestia Software Development. +// +// This file is part of Xestia Calendar. +// +// Xestia Calendar is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by the +// Free Software Foundation, version 3 of the license. +// +// Xestia Calendar is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with Xestia Calendar. If not, see + #ifndef __COMMON_EVENTS_H__ #define __COMMON_EVENTS_H__ @@ -19,6 +37,14 @@ DECLARE_EVENT_TYPE(XCMAIN_DELETEEVENT, wxID_ANY) DECLARE_EVENT_TYPE(XCMAIN_ADDEVENT, wxID_ANY) DECLARE_EVENT_TYPE(XCMAIN_UPDATEEVENT, wxID_ANY) +DEFINE_EVENT_TYPE(XCMAIN_ADDWINDOWINFO) +DEFINE_EVENT_TYPE(XCMAIN_UPDATEWINDOWINFO) +DEFINE_EVENT_TYPE(XCMAIN_DELETEWINDOWINFO) + +DECLARE_EVENT_TYPE(XCMAIN_ADDWINDOWINFO, wxID_ANY) +DECLARE_EVENT_TYPE(XCMAIN_UPDATEWINDOWINFO, wxID_ANY) +DECLARE_EVENT_TYPE(XCMAIN_DELETEWINDOWINFO, wxID_ANY) + DEFINE_EVENT_TYPE(XCCALENDARDAY_UPDATEICONS) DEFINE_EVENT_TYPE(XCCALENDARDAY_DESELECTOTHERENTRIES) DEFINE_EVENT_TYPE(XCCALENDARDAY_DESELECTALLENTRIES) @@ -150,5 +176,16 @@ DECLARE_EVENT_TYPE(XCCALENDARMONTH_DISPLAYEVENTMENU, wxID_ANY) #define ID_ADDENTRY 7018 #define ID_UPDATEENTRY 7019 #define ID_UPDATECOLOUR 7020 +#define ID_ADDWINDOW 7021 +#define ID_UPDATEWINDOW 7022 +#define ID_DELETEWINDOW 7023 + +struct WindowData{ + + int DataType; + void *WindowPointer; + int WindowID; + +}; #endif \ No newline at end of file