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.

Constructor & Destructor Documentation

◆ MonthViewCell()

MonthViewCell::MonthViewCell ( KOMonthView *  parent)

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

◆ contextMenu

void MonthViewCell::contextMenu ( TQListBoxItem *  item)
protectedslot

Definition at line 806 of file komonthview.cpp.

◆ date()

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

Definition at line 455 of file komonthview.cpp.

◆ defaultAction

void MonthViewCell::defaultAction ( TQListBoxItem *  item)
protectedslot

Definition at line 793 of file komonthview.cpp.

◆ deselect()

void MonthViewCell::deselect ( )

Definition at line 777 of file komonthview.cpp.

◆ enableScrollBars()

void MonthViewCell::enableScrollBars ( bool  enabled)

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

◆ resizeEvent()

void MonthViewCell::resizeEvent ( TQResizeEvent *  )
protected

Definition at line 788 of file komonthview.cpp.

◆ select

void MonthViewCell::select ( )
slot

Definition at line 759 of file komonthview.cpp.

◆ selectedIncidence()

Incidence * MonthViewCell::selectedIncidence ( )

Definition at line 732 of file komonthview.cpp.

◆ selectedIncidenceDate()

TQDate MonthViewCell::selectedIncidenceDate ( )

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

◆ setFrameWidth()

void MonthViewCell::setFrameWidth ( )
protected

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

◆ updateCell()

void MonthViewCell::updateCell ( )

Definition at line 504 of file komonthview.cpp.

◆ updateConfig()

void MonthViewCell::updateConfig ( )

Definition at line 684 of file komonthview.cpp.


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