korganizer

#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
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 639 of file komonthview.cpp.

◆ date()

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

Definition at line 455 of file komonthview.cpp.

◆ isPrimary()

bool MonthViewCell::isPrimary ( ) const
Returns
True if this cell is primary, else false.

Definition at line 483 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 672 of file komonthview.cpp.

◆ setDate()

void MonthViewCell::setDate ( const TQDate &  date)

Sets the date of the cell.

Definition at line 426 of file komonthview.cpp.

◆ setHoliday()

void MonthViewCell::setHoliday ( bool  holiday)

Make this cell show as a holiday.

Definition at line 488 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 499 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 470 of file komonthview.cpp.


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