X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=blobdiff_plain;f=source%2Fwidgets%2FXCCalendarListCalendarCtrl.h;h=39c982aaca672b963b422ecad253a99b4dc610a6;hp=3463f94e26aef48fcb186090d1012dc6c191af00;hb=c5716d0f27f0f917282df9121aa97eab7a1bf6b8;hpb=4d0316bf5312ee073aef9f2199f43b70aa147e7a diff --git a/source/widgets/XCCalendarListCalendarCtrl.h b/source/widgets/XCCalendarListCalendarCtrl.h index 3463f94..39c982a 100644 --- a/source/widgets/XCCalendarListCalendarCtrl.h +++ b/source/widgets/XCCalendarListCalendarCtrl.h @@ -26,6 +26,7 @@ #include "types.h" #include "colour.h" #include "events.h" +#include "XCCalendarMenu.h" class XCCalendarListCalendarCtrl: public wxPanel{ @@ -34,18 +35,23 @@ class XCCalendarListCalendarCtrl: public wxPanel{ wxCheckBox *chkShowCalendar = nullptr; wxStaticText *lblCalendarName = nullptr; wxStaticBitmap *imgCalendarIcon = nullptr; + XCCalendarMenu *calendarMenu = nullptr; wxPanel *pnlColour = nullptr; + int accountPreferencesID = 0; protected: int calendarID = 0; std::string calendarName = ""; bool showCalendar = true; void ShowAllCheckboxClick( wxMouseEvent &mouseEvent ); + void PopupMenu( wxMouseEvent &mouseEvent ); public: XCCalendarListCalendarCtrl(wxWindow* parent, string calendarName, Colour calendarColour); ~XCCalendarListCalendarCtrl(); wxCheckBoxState GetShowCheckboxState(); int GetCalendarID(); void SetCalendarID(int calendarID); + void SetAccountPreferencesID(int accountID); + void SetCheckBoxValue(wxCheckBoxState newValue); };