// XCCalendarManipulator.h - Xestia Calendar XCCalendarManipulator header file.
//
// (c) 2016 Xestia Software Development.
//
// This file is part of Xestia Calendar.
//
// Xestia Address Book 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,
// 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.
//
// 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
#include
#include "events.h"
#include "XCCalendarMonthSelect.h"
#include "XCCalendarList.h"
#include "../bitmaps.h"
#include "../libraries/CalendarDataStorage/CalendarDataStorage.h"
class XCCalendarManipulator: public wxPanel
{
private:
wxBoxSizer *szrMain = nullptr;
wxBoxSizer *szrNavigation = nullptr;
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:
void DateTextMouseover(wxMouseEvent &event);
void DateTextMouseout(wxMouseEvent &event);
void DateTextClick(wxCommandEvent &event);
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, CalendarDataStorage *dataStorage);
~XCCalendarManipulator();
int GetMonth();
int GetYear();
std::vector GetHiddenAccountsList();
std::vector GetHiddenCalendarsList();
DECLARE_EVENT_TABLE()
};
#endif