45 #ifndef __WTX_CALENDARBASEVIEW_H___ 46 #define __WTX_CALENDARBASEVIEW_H___ 48 #include <Wt/WModelIndex.h> 49 #include <Wt/WContainerWidget.h> 58 :
public Wt::WContainerWidget
64 virtual void setSelectionMode( Wt::SelectionMode mode );
65 virtual void browseToPreviousYear();
66 virtual void browseToPreviousMonth();
67 virtual void browseToNextYear();
68 virtual void browseToNextMonth();
69 virtual void browseTo(
const Wt::WDate & date );
70 int currentDay()
const;
71 int currentMonth()
const;
72 int currentYear()
const;
73 virtual void clearSelection();
74 virtual void select(
const Wt::WDate & date );
75 virtual void select(
const std::set< Wt::WDate > & dates );
76 virtual void setFirstDayOfWeek(
int dayOfWeek );
77 virtual const std::set< Wt::WDate > & selection()
const;
78 virtual Wt::Signal<> & selectionChanged();
79 virtual Wt::Signal< Wt::WDate > & activated();
80 virtual Wt::Signal< Wt::WDate > & clicked();
81 virtual Wt::Signal< int, int > & currentPageChanged();
82 virtual void setSingleClickSelect(
bool single );
83 virtual void setBottom(
const Wt::WDate & bottom );
84 virtual const Wt::WDate & bottom()
const;
85 virtual void setTop(
const Wt::WDate & top );
86 virtual const Wt::WDate & top()
const;
88 const Wt::WDate & selectedDate()
const;
89 virtual void setSelectedDate(
const Wt::WDate & date );
93 std::shared_ptr<Wt::WAbstractItemModel> getModel(
const Wt::WDate & date,
const std::vector<std::string> & fieldList );
99 int m_firstDayOfWeek = 1;
101 Wt::WDate m_selectedDate;
102 Wt::Signal<> m_selectionChanged;
103 Wt::Signal< Wt::WDate > m_activated;
104 Wt::Signal< Wt::WDate > m_clicked;
105 Wt::Signal< int, int > m_currentPageChanged;
114 #endif // #ifndef __WTX_CALENDARBASEVIEW_H___