#include <komonthview.h>
Inherits TQWidget.
Public Slots | |
void | select () |
Signals | |
void | defaultAction (Incidence *) |
void | newEventSignal (ResourceCalendar *res, const TQString &subResource, const TQDate &date) |
Public Member Functions | |
MonthViewCell (KOMonthView *) | |
void | setDate (const TQDate &) |
TQDate | date () const |
KOMonthView * | monthView () |
void | setPrimary (bool primary) |
bool | isPrimary () const |
void | setHoliday (bool) |
void | setHolidayString (const TQString &name) |
void | updateCell () |
void | addIncidence (Incidence *incidence, MonthViewCell::CreateItemVisitor &v, int multiDay=0) |
void | removeIncidence (Incidence *) |
void | updateConfig () |
void | enableScrollBars (bool) |
Incidence * | selectedIncidence () |
TQDate | selectedIncidenceDate () |
void | deselect () |
Protected Slots | |
void | defaultAction (TQListBoxItem *) |
void | contextMenu (TQListBoxItem *) |
Protected Member Functions | |
void | setFrameWidth () |
void | resizeEvent (TQResizeEvent *) |
Detailed Description
This class represents one day in KOrganizer's month view.
- See also
- KOMonthView
Definition at line 135 of file komonthview.h.
Member Function Documentation
◆ addIncidence()
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 630 of file komonthview.cpp.
◆ date()
TQDate MonthViewCell::date | ( | ) | const |
- Returns
- Date of cell
Definition at line 446 of file komonthview.cpp.
◆ isPrimary()
bool MonthViewCell::isPrimary | ( | ) | const |
- Returns
- True if this cell is primary, else false.
Definition at line 474 of file komonthview.cpp.
◆ monthView()
|
inline |
- Returns
- MonthView parent
Definition at line 149 of file komonthview.h.
◆ newEventSignal
|
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.
◆ removeIncidence()
void MonthViewCell::removeIncidence | ( | Incidence * | 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 663 of file komonthview.cpp.
◆ setDate()
void MonthViewCell::setDate | ( | const TQDate & | date | ) |
Sets the date of the cell.
Definition at line 417 of file komonthview.cpp.
◆ setHoliday()
void MonthViewCell::setHoliday | ( | bool | holiday | ) |
Make this cell show as a holiday.
Definition at line 479 of file komonthview.cpp.
◆ setHolidayString()
void MonthViewCell::setHolidayString | ( | const TQString & | name | ) |
Sets the holiday name to this cell.
This will not call setHoliday( true ).
- Parameters
-
name The name of the holiday.
Definition at line 490 of file komonthview.cpp.
◆ setPrimary()
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 461 of file komonthview.cpp.
The documentation for this class was generated from the following files: