korganizer
MonthViewCell Class Reference
#include <komonthview.h>
Detailed Description
This class represents one day in KOrganizer's month view.
- See also:
- KOMonthView
Definition at line 129 of file komonthview.h.
Public Slots | |
void | select () |
Signals | |
void | defaultAction (Incidence *) |
void | newEventSignal (const QDate &date) |
Public Member Functions | |
MonthViewCell (KOMonthView *) | |
void | setDate (const QDate &) |
QDate | date () const |
void | setPrimary (bool primary) |
bool | isPrimary () const |
void | setHoliday (bool) |
void | setHolidayString (const QString &name) |
void | updateCell () |
void | addIncidence (Incidence *incidence, MonthViewCell::CreateItemVisitor &v, int multiDay=0) |
void | removeIncidence (Incidence *) |
void | updateConfig () |
void | enableScrollBars (bool) |
Incidence * | selectedIncidence () |
QDate | selectedIncidenceDate () |
void | deselect () |
void | setCalendar (Calendar *cal) |
Protected Slots | |
void | defaultAction (QListBoxItem *) |
void | contextMenu (QListBoxItem *) |
Protected Member Functions | |
void | setFrameWidth () |
void | resizeEvent (QResizeEvent *) |
Member Function Documentation
void MonthViewCell::setDate | ( | const QDate & | ) |
QDate MonthViewCell::date | ( | ) | const |
void MonthViewCell::setPrimary | ( | bool | primary | ) |
Set this cell as primary if primary
is true.
A primary cell belongs to the current month. A non-primary cell belongs to the month before or after the current month.
- Parameters:
-
primary If true, the cell will be set as primary. Else it will be set as non-primary.
Definition at line 377 of file komonthview.cpp.
bool MonthViewCell::isPrimary | ( | ) | const |
void MonthViewCell::setHoliday | ( | bool | ) |
void MonthViewCell::setHolidayString | ( | const QString & | name | ) |
Sets the holiday name to this cell.
This will not call setHoliday( true ).
- Parameters:
-
name The name of the holiday.
Definition at line 406 of file komonthview.cpp.
void MonthViewCell::addIncidence | ( | Incidence * | incidence, | |
MonthViewCell::CreateItemVisitor & | v, | |||
int | multiDay = 0 | |||
) |
Adds an incidence to the cell.
Sets the right text and icons for this incidence.
- Parameters:
-
incidence The incidence to be added. v A visitor which creates a MonthViewItem for the given incidence
multiDay Specifies which day of a multi-day event is added to the cell. The first day is 0 (default).
Definition at line 542 of file komonthview.cpp.
void MonthViewCell::removeIncidence | ( | Incidence * | ) |
Removes an incidence from the cell.
- Returns:
- True if successful, false if deletion failed (e.g. when given incidence doesn't exist in the cell.
Definition at line 575 of file komonthview.cpp.
void MonthViewCell::newEventSignal | ( | const QDate & | date | ) | [signal] |
Notify the view manager that we want to create a new event, so an editor will pop up.
- Parameters:
-
date The date of the event we want create.
The documentation for this class was generated from the following files: