Wtx ~ Wt Extension Library
WtxLib
Classes | Public Types | Public Member Functions | List of all members
Wtx::Web::Calendar::Widget Class Reference

Calendar Widget. More...

#include <Widget.h>

+ Inheritance diagram for Wtx::Web::Calendar::Widget:

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::YearViewyearView () const
 
Wtx::Web::Calendar::MonthViewmonthView () const
 
Wtx::Web::Calendar::WeekViewweekView () const
 
Wtx::Web::Calendar::DayViewdayView () 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...
 

Detailed Description

Calendar Widget.

Definition at line 66 of file Widget.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.


The documentation for this class was generated from the following files: