From da7524b73ad9d7e63277e28dd7585ccabf1e43e8 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 26 Jun 2016 13:12:47 +0100 Subject: [PATCH] Added code for application to display XCCalendarMonthView on it's own --- ...xestiacalendar_testxccalendarmonthview.cpp | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 source/tests/xestiacalendar_testxccalendarmonthview.cpp diff --git a/source/tests/xestiacalendar_testxccalendarmonthview.cpp b/source/tests/xestiacalendar_testxccalendarmonthview.cpp new file mode 100644 index 0000000..00a3b4a --- /dev/null +++ b/source/tests/xestiacalendar_testxccalendarmonthview.cpp @@ -0,0 +1,35 @@ +#include +#include "../widgets/XCCalendarMonthView.h" +#include "../common/monthviewgen.h" + +class XCCalendarMonthViewTest: public wxApp +{ + virtual bool OnInit(); +}; + +/*class MyFrame: public wxFrame +{ + private: + XCCalendarDay *XCCalWidget = nullptr; + wxBoxSizer *WindowSizer = new wxBoxSizer(wxVERTICAL); + public: + MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size); +};*/ + +IMPLEMENT_APP(XCCalendarMonthViewTest); + +using namespace std; + +bool XCCalendarMonthViewTest::OnInit() +{ + + XCCalendarMonthViewGrid MonthViewGrid = GenerateMonthGrid(6, 2016); + + XCCalendarMonthView *frmMain = new XCCalendarMonthView("XCCalendarMonthView Test", wxPoint(50, 50), wxSize(200, 200), &MonthViewGrid); + + frmMain->Show(); + SetTopWindow(frmMain); + + return true; + +} \ No newline at end of file -- 2.39.2