Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added the XCCalendarMonthViewDayTitle class
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 26 Jun 2016 11:06:46 +0000 (12:06 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 26 Jun 2016 11:06:46 +0000 (12:06 +0100)
source/widgets/XCCalendarMonthViewDayTitle.cpp [new file with mode: 0644]
source/widgets/XCCalendarMonthViewDayTitle.h [new file with mode: 0644]

diff --git a/source/widgets/XCCalendarMonthViewDayTitle.cpp b/source/widgets/XCCalendarMonthViewDayTitle.cpp
new file mode 100644 (file)
index 0000000..f67ea77
--- /dev/null
@@ -0,0 +1,42 @@
+// XCCalendarMonthViewDayTitle.cpp - Xestia Calendar month view day title widget.
+//
+// (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 <http://www.gnu.org/licenses/>
+
+#include "XCCalendarMonthViewDayTitle.h"
+
+XCCalendarMonthViewDayTitle::XCCalendarMonthViewDayTitle(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size)
+        : wxPanel(parent, wxID_ANY, pos, size, wxTAB_TRAVERSAL, title)
+{
+       
+       WindowSizer->Add(DayPanel, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
+       DayPanel->SetSizer(DaySizer);
+       
+       DayText = new wxStaticText(DayPanel, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE);
+       DaySizer->Add(DayText, 1, wxALL, 0);
+       DayPanel->Layout();
+       
+       this->SetSizer(WindowSizer);
+       this->Layout();
+       
+}
+
+XCCalendarMonthViewDayTitle::~XCCalendarMonthViewDayTitle()
+{
+       
+       // Delete the objects.
+       
+}
\ No newline at end of file
diff --git a/source/widgets/XCCalendarMonthViewDayTitle.h b/source/widgets/XCCalendarMonthViewDayTitle.h
new file mode 100644 (file)
index 0000000..ea0bef0
--- /dev/null
@@ -0,0 +1,42 @@
+// XCCalendarMonthViewDayTitle.h - Xestia Calendar month view day title widget.
+//
+// (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 <http://www.gnu.org/licenses/>
+
+#ifndef __WIDGETS_XCCALENDARMONTHVIEWDAYTITLE_H__
+#define __WIDGETS_XCCALENDARMONTHVIEWDAYTITLE_H__
+
+#include <vector>
+#include <wx/wx.h>
+
+class XCCalendarMonthViewDayTitle: public wxPanel
+{
+       
+       private:
+       
+               wxBoxSizer *WindowSizer = new wxBoxSizer(wxHORIZONTAL);
+               wxBoxSizer *DaySizer = new wxBoxSizer(wxHORIZONTAL);
+               wxPanel *DayPanel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, "Test");
+               wxStaticText *DayText = nullptr;
+       
+       public:
+       
+               XCCalendarMonthViewDayTitle(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size);
+               ~XCCalendarMonthViewDayTitle();
+       
+};
+
+#endif
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy