+
+int XCCalendarListCalendarCtrl::GetCalendarID(){
+
+ return calendarID;
+
+}
+
+void XCCalendarListCalendarCtrl::SetCalendarID(int calendarID){
+
+ this->calendarID = calendarID;
+ calendarMenu->SetCalendarID(this->calendarID);
+
+}
+
+void XCCalendarListCalendarCtrl::SetAccountPreferencesID(int accountPreferencesID){
+
+ this->accountPreferencesID = accountPreferencesID;
+ calendarMenu->SetAccountPreferencesID(this->accountPreferencesID);
+
+}
+
+void XCCalendarListCalendarCtrl::ShowAllCheckboxClick( wxMouseEvent &mouseEvent ){
+
+ if (chkShowCalendar->Get3StateValue() == wxCHK_CHECKED){
+
+ wxCommandEvent event(XCCALENDARCTRL_SHOWCALENDARENTRIES);
+ event.SetInt(calendarID);
+ event.SetId(ID_SHOWCALENDARENTRIES);
+ wxPostEvent(this->GetParent()->GetParent()->GetParent(), event);
+
+ } else {
+
+ wxCommandEvent event(XCCALENDARCTRL_HIDECALENDARENTRIES);
+ event.SetInt(calendarID);
+ event.SetId(ID_HIDECALENDARENTRIES);
+ wxPostEvent(this->GetParent()->GetParent()->GetParent(), event);
+
+ }
+
+}
+
+void XCCalendarListCalendarCtrl::SetCheckBoxValue(wxCheckBoxState newValue){
+
+ if (newValue == wxCHK_CHECKED){
+ showCalendar = true;
+ } else {
+ showCalendar = false;
+ }
+
+ chkShowCalendar->SetValue(newValue);
+
+}
+
+void XCCalendarListCalendarCtrl::PopupMenu( wxMouseEvent &mouseEvent ){
+
+ this->GetParent()->GetParent()->GetParent()->GetParent()->PopupMenu(calendarMenu->MenuPointer(), wxDefaultPosition);
+
+}
\ No newline at end of file