X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;ds=sidebyside;f=source%2Fwidgets%2FXCCalendarManipulator.h;h=a06c726ab3936e3798177147324467f6988b9616;hb=fcc4024e7e27ed30e444cbf811671a3a7f41471d;hp=bce03cc4dd64940ae50c0e2fa30c7a5e0728df43;hpb=f1ecf412b80a5c25421595fde8f1e86131414f4c;p=xestiacalendar%2F.git
diff --git a/source/widgets/XCCalendarManipulator.h b/source/widgets/XCCalendarManipulator.h
index bce03cc..a06c726 100644
--- a/source/widgets/XCCalendarManipulator.h
+++ b/source/widgets/XCCalendarManipulator.h
@@ -1,14 +1,14 @@
// XCCalendarManipulator.h - Xestia Calendar XCCalendarManipulator header file.
//
-// (c) 2016 Xestia Software Development.
+// (c) 2016-2017 Xestia Software Development.
//
// This file is part of Xestia Calendar.
//
-// Xestia Address Book is free software: you can redistribute it and/or modify
+// Xestia Calendar is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by the
// Free Software Foundation, version 3 of the license.
//
-// Xestia Address Book is distributed in the hope that it will be useful,
+// Xestia Calendar is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
@@ -16,7 +16,11 @@
// You should have received a copy of the GNU General Public License along
// with Xestia Calendar. If not, see
+#ifndef __WIDGETS_XCCALENDARMANIPULATOR_H__
+#define __WIDGETS_XCCALENDARMANIPULATOR_H__
+
#include
+#include
#include
#include
@@ -24,7 +28,9 @@
#include "events.h"
#include "XCCalendarMonthSelect.h"
+#include "XCCalendarList.h"
#include "../bitmaps.h"
+#include "../libraries/CalendarDataStorage/CalendarDataStorage.h"
class XCCalendarManipulator: public wxPanel
{
@@ -33,14 +39,18 @@ class XCCalendarManipulator: public wxPanel
wxBoxSizer *szrMain = nullptr;
wxBoxSizer *szrNavigation = nullptr;
wxPanel *pnlMain = nullptr;
- wxButton *PreviousButton = nullptr;
- wxButton *NextButton = nullptr;
- wxButton *DateButton = nullptr;
- XCCalendarMonthSelect *Moo = nullptr;
- int Month = 0;
- int Year = 2016;
- wxBitmap NextIconBitmap;
- wxBitmap PreviousIconBitmap;
+ wxButton *previousButton = nullptr;
+ wxButton *nextButton = nullptr;
+ wxButton *calendarsButton = nullptr;
+ wxButton *dateButton = nullptr;
+ XCCalendarMonthSelect *moo = nullptr;
+ XCCalendarList *calendarList = nullptr;
+ CalendarDataStorage *dataStorage = nullptr;
+ int month = 0;
+ int year = 2016;
+ wxBitmap nextIconBitmap;
+ wxBitmap previousIconBitmap;
+ wxBitmap calendarsIconBitmap;
void UpdateDateButtonText();
protected:
@@ -50,12 +60,15 @@ class XCCalendarManipulator: public wxPanel
void ChangeGrid(wxCommandEvent &event);
void NextMonth(wxCommandEvent &event);
void PreviousMonth(wxCommandEvent &event);
+ void ShowCalendarsList(wxCommandEvent &event);
public:
- XCCalendarManipulator(wxWindow* parent, const wxString& title, const wxPoint& pos, const wxSize& size);
+ XCCalendarManipulator(wxWindow* parent, const wxString& title, const wxPoint& pos, const wxSize& size, CalendarDataStorage *dataStorage);
~XCCalendarManipulator();
int GetMonth();
int GetYear();
+ std::vector GetHiddenAccountsList();
+ std::vector GetHiddenCalendarsList();
- DECLARE_EVENT_TABLE()
-
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file