korganizer
KOAgendaItem Class Reference
#include <koagendaitem.h>

Detailed Description
This class describes the widgets that represent the various calendar items in the agenda view.The KOAgendaItem has to make sure that it receives all mouse events, which are to be used for dragging and resizing. That means it has to be installed as event filter for its children, if it has children, and it has to pass mouse events from the children to itself. See eventFilter().
Some comments on the movement of multi-day items: Basically, the agenda items are arranged in two implicit double-linked lists. The mMultiItemInfo works like before to describe the currently viewed multi-item. When moving, new events might need to be added to the beginning or the end of the multi-item sequence, or events might need to be hidden. I cannot just delete this items, since I have to restore/show them if the move is reset (i.e. if a drag started). So internally, I keep another doubly-linked list which is longer than the one defined by mMultiItemInfo, but includes the multi-item sequence, too.
The mStartMoveInfo stores the first and last item of the multi-item sequence when the move started. The prev and next members of mStartMoveInfo are used for that longer sequence including all (shown and hidden) items.
Definition at line 83 of file koagendaitem.h.
Constructor & Destructor Documentation
Definition at line 77 of file koagendaitem.cpp.
Member Function Documentation
| void KOAgendaItem::addAttendee | ( | const QString & | newAttendee | ) | [slot] |
Definition at line 601 of file koagendaitem.cpp.
| void KOAgendaItem::addConflictItem | ( | KOAgendaItem * | ci | ) |
Definition at line 669 of file koagendaitem.cpp.
| KOAgendaItem * KOAgendaItem::appendMoveItem | ( | KOAgendaItem * | e | ) |
Definition at line 297 of file koagendaitem.cpp.
| int KOAgendaItem::cellHeight | ( | ) | const |
Definition at line 197 of file koagendaitem.cpp.
| int KOAgendaItem::cellWidth | ( | ) | const |
Definition at line 205 of file koagendaitem.cpp.
| int KOAgendaItem::cellXLeft | ( | ) | const [inline] |
Definition at line 89 of file koagendaitem.h.
| int KOAgendaItem::cellXRight | ( | ) | const [inline] |
Definition at line 90 of file koagendaitem.h.
| int KOAgendaItem::cellYBottom | ( | ) | const [inline] |
Definition at line 92 of file koagendaitem.h.
| int KOAgendaItem::cellYTop | ( | ) | const [inline] |
Definition at line 91 of file koagendaitem.h.
| QList< KOAgendaItem * > & KOAgendaItem::conflictItems | ( | ) |
Definition at line 655 of file koagendaitem.cpp.
| bool KOAgendaItem::dissociateFromMultiItem | ( | ) |
Definition at line 157 of file koagendaitem.cpp.
| void KOAgendaItem::dragEnterEvent | ( | QDragEnterEvent * | e | ) | [protected] |
| void KOAgendaItem::dropEvent | ( | QDropEvent * | e | ) | [protected] |
| void KOAgendaItem::endMove | ( | ) |
| void KOAgendaItem::endMovePrivate | ( | ) | [protected] |
Definition at line 498 of file koagendaitem.cpp.
| bool KOAgendaItem::event | ( | QEvent * | event | ) | [protected] |
| void KOAgendaItem::expandBottom | ( | int | dy | ) |
Definition at line 554 of file koagendaitem.cpp.
| void KOAgendaItem::expandLeft | ( | int | dx | ) |
Definition at line 564 of file koagendaitem.cpp.
| void KOAgendaItem::expandRight | ( | int | dx | ) |
Definition at line 574 of file koagendaitem.cpp.
| void KOAgendaItem::expandTop | ( | int | dy | ) |
Definition at line 544 of file koagendaitem.cpp.
| KOAgendaItem* KOAgendaItem::firstMultiItem | ( | ) | const [inline] |
Definition at line 132 of file koagendaitem.h.
| Incidence* KOAgendaItem::incidence | ( | ) | const [inline] |
Definition at line 147 of file koagendaitem.h.
| bool KOAgendaItem::isMultiItem | ( | ) |
Definition at line 251 of file koagendaitem.cpp.
| QDate KOAgendaItem::itemDate | ( | ) | [inline] |
Definition at line 148 of file koagendaitem.h.
| QString KOAgendaItem::label | ( | ) | const |
Definition at line 676 of file koagendaitem.cpp.
| KOAgendaItem* KOAgendaItem::lastMultiItem | ( | ) | const [inline] |
Definition at line 141 of file koagendaitem.h.
| MultiItemInfo* KOAgendaItem::moveInfo | ( | ) | const [inline] |
Definition at line 121 of file koagendaitem.h.
| void KOAgendaItem::moveRelative | ( | int | dx, | |
| int | dy | |||
| ) |
Definition at line 534 of file koagendaitem.cpp.
| KOAgendaItem* KOAgendaItem::nextMoveItem | ( | ) | const [inline] |
Definition at line 118 of file koagendaitem.h.
| KOAgendaItem* KOAgendaItem::nextMultiItem | ( | ) | const [inline] |
Definition at line 138 of file koagendaitem.h.
| bool KOAgendaItem::overlaps | ( | KOrg::CellItem * | o | ) | const |
| void KOAgendaItem::paintEvent | ( | QPaintEvent * | e | ) | [protected] |
| KOAgendaItem * KOAgendaItem::prependMoveItem | ( | KOAgendaItem * | e | ) |
Definition at line 256 of file koagendaitem.cpp.
| KOAgendaItem* KOAgendaItem::prevMoveItem | ( | ) | const [inline] |
Definition at line 115 of file koagendaitem.h.
| KOAgendaItem* KOAgendaItem::prevMultiItem | ( | ) | const [inline] |
Definition at line 135 of file koagendaitem.h.
| void KOAgendaItem::removeAgendaItem | ( | KOAgendaItem * | ) | [signal] |
| KOAgendaItem * KOAgendaItem::removeMoveItem | ( | KOAgendaItem * | e | ) |
Definition at line 337 of file koagendaitem.cpp.
| void KOAgendaItem::resetMove | ( | ) |
| void KOAgendaItem::resetMovePrivate | ( | ) | [protected] |
Definition at line 427 of file koagendaitem.cpp.
| QColor KOAgendaItem::resourceColor | ( | ) | [inline] |
Definition at line 166 of file koagendaitem.h.
| void KOAgendaItem::select | ( | bool | selected = true |
) | [slot] |
Definition at line 147 of file koagendaitem.cpp.
| void KOAgendaItem::setCellX | ( | int | XLeft, | |
| int | XRight | |||
| ) |
Definition at line 227 of file koagendaitem.cpp.
| void KOAgendaItem::setCellXRight | ( | int | XRight | ) |
Definition at line 222 of file koagendaitem.cpp.
| void KOAgendaItem::setCellXY | ( | int | X, | |
| int | YTop, | |||
| int | YBottom | |||
| ) |
Definition at line 215 of file koagendaitem.cpp.
| void KOAgendaItem::setCellY | ( | int | YTop, | |
| int | YBottom | |||
| ) |
Definition at line 233 of file koagendaitem.cpp.
| void KOAgendaItem::setConflictItems | ( | QList< KOAgendaItem * > | ci | ) |
Definition at line 660 of file koagendaitem.cpp.
| bool KOAgendaItem::setIncidence | ( | Incidence * | i | ) |
Definition at line 187 of file koagendaitem.cpp.
| void KOAgendaItem::setItemDate | ( | const QDate & | qd | ) |
Update the date of this item's occurrence (not in the event).
Definition at line 210 of file koagendaitem.cpp.
| void KOAgendaItem::setMultiItem | ( | KOAgendaItem * | first, | |
| KOAgendaItem * | prev, | |||
| KOAgendaItem * | next, | |||
| KOAgendaItem * | last | |||
| ) |
Definition at line 239 of file koagendaitem.cpp.
| void KOAgendaItem::setResourceColor | ( | const QColor & | color | ) | [inline] |
Definition at line 165 of file koagendaitem.h.
| void KOAgendaItem::setText | ( | const QString & | text | ) | [inline] |
Definition at line 153 of file koagendaitem.h.
| void KOAgendaItem::showAgendaItem | ( | KOAgendaItem * | ) | [signal] |
| void KOAgendaItem::startMove | ( | ) |
| void KOAgendaItem::startMovePrivate | ( | ) | [protected] |
private movement functions.
startMove needs to be called of only one of the multitems. it will then loop through the whole series using startMovePrivate. Same for resetMove and endMove
Definition at line 393 of file koagendaitem.cpp.
| QString KOAgendaItem::text | ( | ) | [inline] |
Definition at line 154 of file koagendaitem.h.
| void KOAgendaItem::updateIcons | ( | ) | [slot] |
Definition at line 103 of file koagendaitem.cpp.
Member Data Documentation
QColor KOAgendaItem::mResourceColor [protected] |
Definition at line 221 of file koagendaitem.h.
MultiItemInfo* KOAgendaItem::mStartMoveInfo [protected] |
Definition at line 219 of file koagendaitem.h.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference