2 #include <Wt/WAbstractItemModel.h> 7 Wtx::Web::Calendar::DayWidget::DayWidget(
int index )
10 addStyleClass(
"divTableCell" );
12 m_templt = addNew<Wt::WTemplate>( Wt::WString::tr(
"Wtx.Calendar.day.cell" ) );
14 m_day = m_templt-> bindNew<Wt::WText>(
"day" );
15 m_day-> addStyleClass(
"divDay" );
17 m_header = m_templt-> bindNew<Wt::WText>(
"header" );
18 m_header-> addStyleClass(
"divHeader" );
20 m_body = m_templt-> bindNew<Wt::WContainerWidget>(
"body" );
21 m_body-> addStyleClass(
"divBody" );
23 m_footer = m_templt-> bindNew<Wt::WText>(
"footer" );
24 m_footer-> addStyleClass(
"divFooter" );
28 int Wtx::Web::Calendar::DayWidget::index()
const 33 void Wtx::Web::Calendar::DayWidget::setDate(
const Wt::WDate & value )
37 if( date().day() == 1 )
41 Wt::WString(
"{1} {2} {3}")
42 .arg( Wt::WDate::shortMonthName( date().month() ) )
51 Wt::WString(
"{1}").arg( date().day() )
57 const Wt::WDate & Wtx::Web::Calendar::DayWidget::date()
const 62 Wt::WTemplate * Wtx::Web::Calendar::DayWidget::templt()
67 Wt::WText * Wtx::Web::Calendar::DayWidget::day()
72 Wt::WText * Wtx::Web::Calendar::DayWidget::header()
77 Wt::WContainerWidget * Wtx::Web::Calendar::DayWidget::body()
82 Wt::WText * Wtx::Web::Calendar::DayWidget::footer()
93 Wt::Signal<> & Wtx::Web::Calendar::DayWidget::clicked()
98 Wt::Signal<> & Wtx::Web::Calendar::DayWidget::doubleClicked()
100 return m_doubleClicked;