Definition at line 174 of file dateselect.h.
OSB_GUI::MonthDays::MonthDays | ( | const QDate & | date, | |
QWidget * | parent, | |||
const char * | name = "monthDays_" , |
|||
WFlags | f = 0 | |||
) |
Constructor with selected date and Qt arguments.
If date is not valid selected_ is set to the current date.
void OSB_GUI::MonthDays::calcMonth | ( | ) | [private] |
Determine the column of the frist day of the month.
void OSB_GUI::MonthDays::calcWidth | ( | ) | [private] |
Determine the width of the widget.
bool OSB_GUI::MonthDays::cursorKey | ( | Qt::Key | key | ) | [private] |
Add days: wraps in the current month.
int OSB_GUI::MonthDays::day | ( | int | x, | |
int | y | |||
) | [private] |
Get clicked day from x- and y-coordinates.
QRect OSB_GUI::MonthDays::dayRect | ( | int | d, | |
bool | withBorder | |||
) | [private] |
Determine the rectangle for a day.
int OSB_GUI::MonthDays::height | ( | ) | const |
Total height.
void OSB_GUI::MonthDays::keyPressEvent | ( | QKeyEvent * | e | ) | [private] |
Process keys.
void OSB_GUI::MonthDays::mousePressEvent | ( | QMouseEvent * | e | ) | [private] |
Process left clicks.
void OSB_GUI::MonthDays::nextMonth | ( | ) | [signal] |
PageDown pressed: show next month.
void OSB_GUI::MonthDays::paintEvent | ( | QPaintEvent * | ) | [private] |
Paint the widget.
void OSB_GUI::MonthDays::polish | ( | ) | [private] |
Deferred initialisation (see Qt manual).
void OSB_GUI::MonthDays::prevMonth | ( | ) | [signal] |
PageUp pressed: show prev. month.
QDate OSB_GUI::MonthDays::selected | ( | ) | const |
Get the selected date, it may be null.
SelectMode OSB_GUI::MonthDays::selectMode | ( | ) | const |
Get the selection mode.
void OSB_GUI::MonthDays::setMonth | ( | int | m | ) | [slot] |
Set the month.
void OSB_GUI::MonthDays::setSelected | ( | const QDate & | date | ) |
Set the selected date.
void OSB_GUI::MonthDays::setSelectMode | ( | SelectMode | mode | ) |
Set the selection mode.
void OSB_GUI::MonthDays::setYear | ( | int | y | ) | [slot] |
Set the year.
void OSB_GUI::MonthDays::setYearMonth | ( | const QDate & | date | ) | [private] |
Set displayed year and month.
void OSB_GUI::MonthDays::showCurrent | ( | QPainter & | p | ) | [private] |
Show the current date.
void OSB_GUI::MonthDays::showSelected | ( | QPainter & | p | ) | [private] |
Show the selected date.
bool OSB_GUI::MonthDays::showSelected | ( | ) | const |
Show selected date?
The return value depends on mode_.
QRect OSB_GUI::MonthDays::wdayRect | ( | int | wd, | |
bool | withBorder | |||
) | [private] |
Determine the rectangle needed for the weekdays header.
int OSB_GUI::MonthDays::width | ( | ) | const |
Total width.
QDate OSB_GUI::MonthDays::curMonthYear_ [private] |
Currently displayed month and year (day is not relevant).
Definition at line 254 of file dateselect.h.
int OSB_GUI::MonthDays::dayHeight_ [private] |
int OSB_GUI::MonthDays::dayWidth_ [private] |
const int OSB_GUI::MonthDays::dh_ = 0 [static, private] |
const int OSB_GUI::MonthDays::dw_ = 2 [static, private] |
int OSB_GUI::MonthDays::firstDay_ [private] |
SelectMode OSB_GUI::MonthDays::mode_ [private] |
int OSB_GUI::MonthDays::numRows_ [private] |
QDate OSB_GUI::MonthDays::selected_ [private] |
int OSB_GUI::MonthDays::selectedDay_ [private] |
The selected day.
This member is needed to remember the selected day while changing the months: it allows to go from 30-Jan to 30-Mar via 28-Feb.
Definition at line 266 of file dateselect.h.
int OSB_GUI::MonthDays::wdayHeight_ [private] |
int OSB_GUI::MonthDays::wdayWidth_ [private] |