// XCCalendarListAccountCtrl.h - XCCalendarListAccountCtrl class header
//
-// (c) 2016 Xestia Software Development.
+// (c) 2016-2017 Xestia Software Development.
//
// This file is part of Xestia Calendar.
//
#include "types.h"
#include "colour.h"
+#include "events.h"
#include "XCCalendarListCalendarCtrl.h"
class XCCalendarListAccountCtrl: public wxPanel{
protected:
std::vector<XCCalendarListCalendarCtrl*> calendarControlList;
int accountID = 0;
+ int accountPreferencesID = 0;
AccountType accountType = ACCOUNTTYPE_UNKNOWN;
std::string accountName = "";
bool showAccounts = true;
+
+ void ShowAllCheckboxClick( wxMouseEvent &mouseEvent );
public:
XCCalendarListAccountCtrl(wxWindow* parent, string accountName);
~XCCalendarListAccountCtrl();
void AddCalendar(XCCalendarListCalendarCtrl *calendarControl);
+ wxCheckBoxState GetShowCheckboxState();
+ int GetAccountID();
+ void SetAccountID(int accountID);
+ void SetAccountPreferencesID(int accountID);
+ void SetCheckBoxValue(wxCheckBoxState newValue);
+ std::vector<int> GetHiddenCalendarList();
+
+ DECLARE_EVENT_TABLE();
};