45 #ifndef __WTX_CALENDARMONTHVIEW_H___ 46 #define __WTX_CALENDARMONTHVIEW_H___ 48 #include <Wt/WModelIndex.h> 50 #include <Wtx/Addons/Web/Calendar/BaseView.h> 51 #include <Wtx/Addons/Web/Calendar/DayWidget.h> 66 const std::vector< Wtx::Web::Calendar::DayWidget * > & dayWidgets()
const;
68 void setSelectedDate(
const Wt::WDate & date );
70 const Wt::WDate today()
const;
72 Wt::Signal< Wt::WDate > & clicked();
73 Wt::Signal< Wt::WDate > & doubleClicked();
74 Wt::Signal< Wt::WModelIndex > & itemClicked();
75 Wt::Signal< Wt::WModelIndex > & itemDoubleClicked();
81 virtual void updateView();
83 std::vector< Wtx::Web::Calendar::DayWidget * > m_dayWidgets;
85 Wt::Signal< Wt::WDate > m_clicked;
86 Wt::Signal< Wt::WDate > m_doubleClicked;
87 Wt::Signal< Wt::WModelIndex > m_itemClicked;
88 Wt::Signal< Wt::WModelIndex > m_itemDoubleClicked;
90 int m_firstDayOfWeek = 1;
100 #endif // #ifndef __WTX_CALENDARMONTHVIEW_H___
MonthView(int firstDayOfWeek, Wtx::Web::Calendar::Widget *widget)