X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fwidgets%2FXCCalendarListCalendarCtrl.h;h=b4e4ee99c6adba2e370c6d3c3f353b0e0a4ed2d1;hb=902d948e5e45ad483c8e235690dda8f2bf596ad5;hp=9df84cdc686e74d7a63921fa6de4150956263143;hpb=339434b90a0a03c3102b82a5dc45334b338bc59c;p=xestiacalendar%2F.git diff --git a/source/widgets/XCCalendarListCalendarCtrl.h b/source/widgets/XCCalendarListCalendarCtrl.h index 9df84cd..b4e4ee9 100644 --- a/source/widgets/XCCalendarListCalendarCtrl.h +++ b/source/widgets/XCCalendarListCalendarCtrl.h @@ -1,6 +1,6 @@ // XCCalendarListCalendarCtrl.h - XCCalendarListCalendarCtrl class header // -// (c) 2016 Xestia Software Development. +// (c) 2016-2017 Xestia Software Development. // // This file is part of Xestia Calendar. // @@ -25,6 +25,8 @@ #include "types.h" #include "colour.h" +#include "events.h" +#include "XCCalendarMenu.h" class XCCalendarListCalendarCtrl: public wxPanel{ @@ -33,14 +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); };