X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fwidgets%2FXCCalendarManipulator.h;h=1b1348802c66361b35cfeb92d0e3709f92b42478;hb=e931cd1ed2b20f567559577646dccc1aec23ef16;hp=bce03cc4dd64940ae50c0e2fa30c7a5e0728df43;hpb=f1ecf412b80a5c25421595fde8f1e86131414f4c;p=xestiacalendar%2F.git
diff --git a/source/widgets/XCCalendarManipulator.h b/source/widgets/XCCalendarManipulator.h
index bce03cc..1b13488 100644
--- a/source/widgets/XCCalendarManipulator.h
+++ b/source/widgets/XCCalendarManipulator.h
@@ -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
{
@@ -35,12 +41,16 @@ class XCCalendarManipulator: public wxPanel
wxPanel *pnlMain = nullptr;
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,17 @@ 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