korganizer

#include <komonthview.h>

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
KOMonthViewmonthView ()
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)
IncidenceselectedIncidence ()
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.

Constructor & Destructor Documentation

◆ MonthViewCell()

MonthViewCell::MonthViewCell ( KOMonthView * parent)

Definition at line 381 of file komonthview.cpp.

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
incidenceThe incidence to be added.
vA visitor which creates a MonthViewItem for the given incidence
multiDaySpecifies 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.

◆ contextMenu

void MonthViewCell::contextMenu ( TQListBoxItem * item)
protectedslot

Definition at line 797 of file komonthview.cpp.

◆ date()

TQDate MonthViewCell::date ( ) const
Returns
Date of cell

Definition at line 446 of file komonthview.cpp.

◆ defaultAction

void MonthViewCell::defaultAction ( TQListBoxItem * item)
protectedslot

Definition at line 784 of file komonthview.cpp.

◆ deselect()

void MonthViewCell::deselect ( )

Definition at line 768 of file komonthview.cpp.

◆ enableScrollBars()

void MonthViewCell::enableScrollBars ( bool enabled)

Definition at line 712 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()

KOMonthView * MonthViewCell::monthView ( )
inline
Returns
MonthView parent

Definition at line 149 of file komonthview.h.

◆ newEventSignal

void MonthViewCell::newEventSignal ( ResourceCalendar * res,
const TQString & subResource,
const TQDate & date )
signal

Notify the view manager that we want to create a new event, so an editor will pop up.

Parameters
dateThe 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.

◆ resizeEvent()

void MonthViewCell::resizeEvent ( TQResizeEvent * )
protected

Definition at line 779 of file komonthview.cpp.

◆ select

void MonthViewCell::select ( )
slot

Definition at line 750 of file komonthview.cpp.

◆ selectedIncidence()

Incidence * MonthViewCell::selectedIncidence ( )

Definition at line 723 of file komonthview.cpp.

◆ selectedIncidenceDate()

TQDate MonthViewCell::selectedIncidenceDate ( )

Definition at line 736 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.

◆ setFrameWidth()

void MonthViewCell::setFrameWidth ( )
protected

Definition at line 451 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
nameThe 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
primaryIf true, the cell will be set as primary. Else it will be set as non-primary.

Definition at line 461 of file komonthview.cpp.

◆ updateCell()

void MonthViewCell::updateCell ( )

Definition at line 495 of file komonthview.cpp.

◆ updateConfig()

void MonthViewCell::updateConfig ( )

Definition at line 675 of file komonthview.cpp.


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