korganizer

MonthViewCell Class Reference

#include <komonthview.h>

List of all members.


Detailed Description

This class represents one day in KOrganizer's month view.

See also:
KOMonthView

Definition at line 126 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 *, MonthViewCell::CreateItemVisitor &)
bool removeIncidence (Incidence *)
void updateConfig ()
void enableScrollBars (bool)
IncidenceselectedIncidence ()
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::addIncidence Incidence ,
MonthViewCell::CreateItemVisitor & 
 

Adds an incidence to the cell.

Sets the right text and icons for this incidence.

Definition at line 528 of file komonthview.cpp.

QDate MonthViewCell::date  )  const
 

Returns:
Date of cell

Definition at line 357 of file komonthview.cpp.

bool MonthViewCell::isPrimary  )  const
 

Returns:
True if this cell is primary, else false.

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

bool 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 561 of file komonthview.cpp.

void MonthViewCell::setDate const QDate &   ) 
 

Sets the date of the cell.

Definition at line 333 of file komonthview.cpp.

void MonthViewCell::setHoliday bool   ) 
 

Make this cell show as a holiday.

Definition at line 389 of file komonthview.cpp.

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

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


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys