Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Events: Now using wxDEFINE_EVENT, wxDECLARE_EVENT and Bind
[xestiacalendar/.git] / source / common / events.h
1 // events.h - Events header.
2 //
3 // (c) 2016-2017 Xestia Software Development.
4 //
5 // This file is part of Xestia Calendar.
6 //
7 // Xestia Calendar is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
10 //
11 // Xestia Calendar is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Calendar. If not, see <http://www.gnu.org/licenses/> 
19 #ifndef __COMMON_EVENTS_H__
20 #define __COMMON_EVENTS_H__
22 #include <wx/wx.h>
24 wxDECLARE_EVENT(XCMAIN_PROCESSCALENDAR, wxCommandEvent);
25 wxDECLARE_EVENT(XCMAIN_EDITCALENDAR, wxCommandEvent);
26 wxDECLARE_EVENT(XCMAIN_DELETECALENDAR, wxCommandEvent);
27 wxDECLARE_EVENT(XCMAIN_EDITEVENT, wxCommandEvent);
28 wxDECLARE_EVENT(XCMAIN_DELETEEVENT, wxCommandEvent);
29 wxDECLARE_EVENT(XCMAIN_ADDEVENT, wxCommandEvent);
30 wxDECLARE_EVENT(XCMAIN_UPDATEEVENT, wxCommandEvent);
32 wxDECLARE_EVENT(XCMAIN_ADDWINDOWINFO, wxCommandEvent);
33 wxDECLARE_EVENT(XCMAIN_UPDATEWINDOWINFO, wxCommandEvent);
34 wxDECLARE_EVENT(XCMAIN_DELETEWINDOWINFO, wxCommandEvent);
36 wxDECLARE_EVENT(XCCALENDARDAY_UPDATEICONS, wxCommandEvent);
37 wxDECLARE_EVENT(XCCALENDARDAY_DESELECTOTHERENTRIES, wxCommandEvent);
38 wxDECLARE_EVENT(XCCALENDARDAY_DESELECTALLENTRIES, wxCommandEvent);
40 wxDECLARE_EVENT(XCCALENDARDAYENTRY_DESELECT, wxCommandEvent);
42 wxDECLARE_EVENT(XCCALENDARMONTH_DESELECTOTHERENTRIES, wxCommandEvent);
44 wxDECLARE_EVENT(XCCALENDARMANIPULATOR_CHANGEGRID, wxCommandEvent);
46 wxDECLARE_EVENT(XCCALENDARCTRL_CHANGEGRID, wxCommandEvent);
47 wxDECLARE_EVENT(XCCALENDARCTRL_HIDEACCOUNTENTRIES, wxCommandEvent);
48 wxDECLARE_EVENT(XCCALENDARCTRL_SHOWACCOUNTENTRIES, wxCommandEvent);
49 wxDECLARE_EVENT(XCCALENDARCTRL_DELETECALENDARENTRIES, wxCommandEvent);
50 wxDECLARE_EVENT(XCCALENDARCTRL_DELETEENTRY, wxCommandEvent);
51 wxDECLARE_EVENT(XCCALENDARCTRL_ADDENTRY, wxCommandEvent);
52 wxDECLARE_EVENT(XCCALENDARCTRL_UPDATEENTRY, wxCommandEvent);
53 wxDECLARE_EVENT(XCCALENDARCTRL_UPDATECALENDARCOLOUR, wxCommandEvent);
55 wxDECLARE_EVENT(XCCALENDARMONTH_HIDEACCOUNTENTRIES, wxCommandEvent);
56 wxDECLARE_EVENT(XCCALENDARMONTH_SHOWACCOUNTENTRIES, wxCommandEvent);
57 wxDECLARE_EVENT(XCCALENDARMONTH_DELETECALENDARENTRIES, wxCommandEvent);
58 wxDECLARE_EVENT(XCCALENDARMONTH_DELETEENTRY, wxCommandEvent);
59 wxDECLARE_EVENT(XCCALENDARMONTH_ADDENTRY, wxCommandEvent);
60 wxDECLARE_EVENT(XCCALENDARMONTH_UPDATEENTRY, wxCommandEvent);
61 wxDECLARE_EVENT(XCCALENDARMONTH_UPDATECALENDARCOLOUR, wxCommandEvent);
62 wxDECLARE_EVENT(XCCALENDARMONTH_SHOWCALENDARENTRIES, wxCommandEvent);
63 wxDECLARE_EVENT(XCCALENDARMONTH_HIDECALENDARENTRIES, wxCommandEvent);
64 wxDECLARE_EVENT(XCCALENDARMONTH_DISPLAYEVENTMENU, wxCommandEvent);
66 wxDECLARE_EVENT(XCCALENDARDAY_HIDEACCOUNTENTRIES, wxCommandEvent);
67 wxDECLARE_EVENT(XCCALENDARDAY_SHOWACCOUNTENTRIES, wxCommandEvent);
68 wxDECLARE_EVENT(XCCALENDARDAY_DELETECALENDARENTRIES, wxCommandEvent);
69 wxDECLARE_EVENT(XCCALENDARDAY_DELETEENTRY, wxCommandEvent);
70 wxDECLARE_EVENT(XCCALENDARDAY_ADDENTRY, wxCommandEvent);
71 wxDECLARE_EVENT(XCCALENDARDAY_UPDATEENTRY, wxCommandEvent);
72 wxDECLARE_EVENT(XCCALENDARDAY_UPDATECALENDARCOLOUR, wxCommandEvent);
74 wxDECLARE_EVENT(XCCALENDARDAYENTRY_HIDEACCOUNTENTRIES, wxCommandEvent);
75 wxDECLARE_EVENT(XCCALENDARDAYENTRY_SHOWACCOUNTENTRIES, wxCommandEvent);
76 wxDECLARE_EVENT(XCCALENDARCTRL_HIDECALENDARENTRIES, wxCommandEvent);
77 wxDECLARE_EVENT(XCCALENDARCTRL_SHOWCALENDARENTRIES, wxCommandEvent);
78 wxDECLARE_EVENT(XCCALENDARDAY_HIDECALENDARENTRIES, wxCommandEvent);
79 wxDECLARE_EVENT(XCCALENDARDAY_SHOWCALENDARENTRIES, wxCommandEvent);
81 #define ID_MONTHVIEWCLEARSELECTION 7000
82 #define ID_DESELECTALLITEMS 7001
83 #define ID_HIDEENTRIES 7002
84 #define ID_SHOWENTRIES 7003
85 #define ID_HIDECALENDARENTRIES 7004
86 #define ID_SHOWCALENDARENTRIES 7005
87 #define ID_CHANGEGRID 7006
88 #define ID_ENTRYDESELECT 7007
89 #define ID_DESELECTOTHERENTRIES 7008
90 #define ID_PROCESSCALENDAR 7009
91 #define ID_EDITCALENDAR 7010
92 #define ID_DELETECALENDAR 7011
93 #define ID_DELETECALENDARENTRIES 7012
94 #define ID_EDITEVENT 7013
95 #define ID_DELETEEVENT 7014
96 #define ID_DISPLAYEVENTMENU 7015
97 #define ID_EDITENTRY 7016
98 #define ID_DELETEENTRY 7017
99 #define ID_ADDENTRY 7018
100 #define ID_UPDATEENTRY 7019
101 #define ID_UPDATECOLOUR 7020
102 #define ID_ADDWINDOW 7021
103 #define ID_UPDATEWINDOW 7022
104 #define ID_DELETEWINDOW 7023
106 struct WindowData{
108         int DataType;
109         void *WindowPointer;
110         int WindowID;
112 };
114 #endif
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy