Wtx ~ Wt Extension Library
WtxLib
|
#include <Widget.h>
Public Types | |
enum | View { DAY = 0, WEEK = 1, MONTH = 2, YEAR = 3, SCHEDULE = 4, FOURDAYS = 5, FIVEDAYS = 6, TABLE = 7 } |
Public Member Functions | |
Widget (int firstDayOfWeek, Database &database) | |
ctor More... | |
Wtx::Web::Calendar::YearView * | yearView () const |
Wtx::Web::Calendar::MonthView * | monthView () const |
Wtx::Web::Calendar::WeekView * | weekView () const |
Wtx::Web::Calendar::DayView * | dayView () const |
const Wt::WDate & | selectedDate () const |
void | setSelectedDate (const Wt::WDate &date) |
void | setView (int value) |
int | view () const |
ToolBar * | toolBar () const |
SideBar * | sideBar () const |
Wt::Signal< Wt::WDate > & | itemNew () |
Wt::Signal< Wt::WModelIndex > & | itemClicked () |
Wt::Signal< Wt::WModelIndex > & | itemDoubleClicked () |
void | updateView () |
std::shared_ptr< Wt::WAbstractItemModel > | getModel (const Wt::WDate &date, const std::vector< std::string > &fieldList) |
Get a Model by Date. More... | |
Wtx::Web::Calendar::Widget::Widget | ( | int | firstDayOfWeek, |
Database & | database | ||
) |
ctor
Be sure to specify the first day of the week. Possible values are 1 to 7. The default value is 1 ("Monday").
Definition at line 102 of file Widget.cpp.
std::shared_ptr< Wt::WAbstractItemModel > Wtx::Web::Calendar::Widget::getModel | ( | const Wt::WDate & | date, |
const std::vector< std::string > & | fList | ||
) |
Get a Model by Date.
This will construct - or cache-return - a shared model.
Definition at line 385 of file Widget.cpp.