9 :
Wtx::Web::
Calendar::BaseView( firstDayOfWeek, widget )
11 addStyleClass(
"divTable" );
12 addStyleClass(
"blueTable" );
15 auto cwHeader = addNew<Wt::WContainerWidget>();
16 cwHeader-> addStyleClass(
"divTableHeading" );
18 auto cwRow = cwHeader-> addNew<Wt::WContainerWidget>();
19 cwRow-> addStyleClass(
"divTableRow" );
21 auto cwTime = cwRow-> addNew<Wt::WContainerWidget>();
23 for(
int weekday = 0; weekday < 7; weekday++ )
25 auto cwDay = cwRow-> addNew<Wt::WContainerWidget>();
26 cwDay-> addStyleClass(
"divTableHead" );
28 cwDay-> addNew<Wt::WText>(
daynames().at(weekday) );
32 for(
int hour = 0; hour < 24; hour++ )
34 auto cwRow = addNew<Wt::WContainerWidget>();
35 cwRow-> addStyleClass(
"divTableRow" );
43 auto cwTime = cwRow-> addNew<Wt::WContainerWidget>();
44 cwTime-> addStyleClass(
"divHour" );
49 cwTime-> addNew<Wt::WText>( Wt::WString(
"noon") );
53 cwTime-> addNew<Wt::WText>( Wt::WString(
"{1} {2}").arg( hour%12 ).arg( ap ) );
58 cwTime-> addNew<Wt::WText>( Wt::WString(
"12am") );
62 for(
int day = 0; day < 7; day++ )
64 auto cwHour = cwRow-> addNew<Wt::WContainerWidget>();
65 cwHour-> addStyleClass(
"divTableCell" );
const std::vector< std::string > & daynames()
Long Day Names.