+}
+
+void XCCalendarListAccountCtrl::ShowAllCheckboxClick( wxMouseEvent &mouseEvent ){
+
+ if (chkShowAll->Get3StateValue() == wxCHK_CHECKED){
+
+ wxCommandEvent event(XCCALENDARCTRL_SHOWACCOUNTENTRIES);
+ event.SetInt(accountID);
+ event.SetId(ID_SHOWENTRIES);
+ wxPostEvent(this->GetParent()->GetParent()->GetParent(), event);
+
+ } else {
+
+ wxCommandEvent event(XCCALENDARCTRL_HIDEACCOUNTENTRIES);
+ event.SetInt(accountID);
+ event.SetId(ID_HIDEENTRIES);
+ wxPostEvent(this->GetParent()->GetParent()->GetParent(), event);
+
+ }
+
+}
+
+wxCheckBoxState XCCalendarListAccountCtrl::GetShowCheckboxState(){
+
+ return chkShowAll->Get3StateValue();
+
+}
+
+int XCCalendarListAccountCtrl::GetAccountID(){
+
+ return accountID;
+
+}
+
+void XCCalendarListAccountCtrl::SetAccountID(int accountID){
+
+ this->accountID = accountID;
+
+}
+
+void XCCalendarListAccountCtrl::SetAccountPreferencesID(int accountID){
+
+ this->accountPreferencesID = accountPreferencesID;
+
+}
+
+vector<int> XCCalendarListAccountCtrl::GetHiddenCalendarList(){
+
+ vector<int> calendarList;
+
+ for (vector<XCCalendarListCalendarCtrl*>::iterator calendarControlListIter = calendarControlList.begin();
+ calendarControlListIter != calendarControlList.end(); calendarControlListIter++){
+
+ if ((*calendarControlListIter)->GetShowCheckboxState() == wxCHK_UNCHECKED){
+
+ calendarList.push_back((*calendarControlListIter)->GetCalendarID());
+
+ }
+
+ }
+
+ return calendarList;
+
+}
+
+void XCCalendarListAccountCtrl::SetCheckBoxValue(wxCheckBoxState newValue){
+
+ if (newValue == wxCHK_CHECKED){
+ showAccounts = true;
+ } else {
+ showAccounts = false;
+ }
+
+ chkShowAll->SetValue(newValue);
+