korganizer
KOAgenda Class Reference
List of all members.Detailed Description
Definition at line 71 of file koagenda.h.
Public Slots | |
void | scrollUp () |
void | scrollDown () |
void | checkScrollBoundaries (int) |
void | deselectItem () |
void | clearSelection () |
void | selectItem (KOAgendaItem *) |
void | selectItemByUID (const QString &uid) |
bool | removeAgendaItem (KOAgendaItem *item) |
void | showAgendaItem (KOAgendaItem *item) |
Signals | |
void | newEventSignal () |
void | newTimeSpanSignal (const QPoint &, const QPoint &) |
void | newStartSelectSignal () |
void | showIncidenceSignal (Incidence *) |
void | editIncidenceSignal (Incidence *) |
void | deleteIncidenceSignal (Incidence *) |
void | showIncidencePopupSignal (Incidence *, const QDate &) |
void | showNewEventPopupSignal () |
void | itemModified (KOAgendaItem *item) |
void | incidenceSelected (Incidence *) |
void | startMultiModify (const QString &) |
void | endMultiModify () |
void | lowerYChanged (int) |
void | upperYChanged (int) |
void | startDragSignal (Incidence *) |
void | droppedToDo (Todo *todo, const QPoint &gpos, bool allDay) |
void | enableAgendaUpdate (bool enable) |
void | zoomView (const int delta, const QPoint &pos, const Qt::Orientation) |
void | mousePosSignal (const QPoint &pos) |
void | enterAgenda () |
void | leaveAgenda () |
void | gridSpacingYChanged (double) |
Public Member Functions | |
KOAgenda (int columns, int rows, int columnSize, QWidget *parent=0, const char *name=0, WFlags f=0) | |
KOAgenda (int columns, QWidget *parent=0, const char *name=0, WFlags f=0) | |
virtual | ~KOAgenda () |
Incidence * | selectedIncidence () const |
QDate | selectedIncidenceDate () const |
const QString | lastSelectedUid () const |
virtual bool | eventFilter (QObject *, QEvent *) |
QPoint | contentsToGrid (const QPoint &pos) const |
QPoint | gridToContents (const QPoint &gpos) const |
int | timeToY (const QTime &time) |
QTime | gyToTime (int y) |
QMemArray< int > | minContentsY () |
QMemArray< int > | maxContentsY () |
int | visibleContentsYMin () |
int | visibleContentsYMax () |
void | setStartTime (const QTime &startHour) |
KOAgendaItem * | insertItem (Incidence *incidence, const QDate &qd, int X, int YTop, int YBottom) |
KOAgendaItem * | insertAllDayItem (Incidence *event, const QDate &qd, int XBegin, int XEnd) |
void | insertMultiItem (Event *event, const QDate &qd, int XBegin, int XEnd, int YTop, int YBottom) |
void | removeIncidence (Incidence *incidence) |
void | changeColumns (int columns) |
int | columns () |
int | rows () |
double | gridSpacingX () const |
double | gridSpacingY () const |
void | clear () |
virtual int | minimumWidth () const |
void | updateConfig () |
void | checkScrollBoundaries () |
void | setHolidayMask (QMemArray< bool > *) |
void | setDateList (const DateList &selectedDates) |
DateList | dateList () const |
void | setTypeAheadReceiver (QObject *) |
QObject * | typeAheadReceiver () const |
void | finishTypeAhead () |
void | setCalendar (Calendar *cal) |
void | setIncidenceChanger (IncidenceChangerBase *changer) |
Protected Slots | |
void | deleteItemsToDelete () |
void | resizeAllContents () |
Protected Member Functions | |
void | drawContents (QPainter *p, int cx, int cy, int cw, int ch) |
int | columnWidth (int column) |
virtual void | resizeEvent (QResizeEvent *) |
virtual bool | eventFilter_mouse (QObject *, QMouseEvent *) |
virtual bool | eventFilter_wheel (QObject *, QWheelEvent *) |
virtual bool | eventFilter_key (QObject *, QKeyEvent *) |
virtual bool | eventFilter_drag (QObject *, QDropEvent *) |
MouseActionType | isInResizeArea (bool horizontal, const QPoint &pos, KOAgendaItem *item) |
bool | ptInSelection (QPoint gpos) const |
void | startSelectAction (const QPoint &viewportPos) |
void | performSelectAction (const QPoint &viewportPos) |
void | endSelectAction (const QPoint &viewportPos) |
void | startItemAction (const QPoint &viewportPos) |
void | performItemAction (const QPoint &viewportPos) |
void | endItemAction () |
void | setNoActionCursor (KOAgendaItem *moveItem, const QPoint &viewportPos) |
void | setActionCursor (int actionType, bool acting=false) |
double | calcSubCellWidth (KOAgendaItem *item) |
void | placeAgendaItem (KOAgendaItem *item, double subCellWidth) |
void | placeSubCells (KOAgendaItem *placeItem) |
void | adjustItemPosition (KOAgendaItem *item) |
void | keyPressEvent (QKeyEvent *) |
void | calculateWorkingHours () |
virtual void | contentsMousePressEvent (QMouseEvent *) |
void | emitNewEventForSelection () |
Member Function Documentation
const QString KOAgenda::lastSelectedUid | ( | ) | const |
Returns the uid of the last incidence that was selected.
This persists across reloads and clear, so that if the same uid reappears, it can be reselected.
Definition at line 207 of file koagenda.cpp.
void KOAgenda::removeIncidence | ( | Incidence * | incidence | ) |
remove an event and all its multi-items from the agenda.
This function removes the items from the view, but doesn't delete them immediately. Instead, they are queued in mItemsToDelete and later deleted by the slot deleteItemsToDelete() (called by QTimer::singleShot )
Definition at line 1695 of file koagenda.cpp.
int KOAgenda::minimumWidth | ( | ) | const [virtual] |
void KOAgenda::updateConfig | ( | ) |
void KOAgenda::deselectItem | ( | ) | [slot] |
Deselect selected items.
This function does not emit any signals.
Definition at line 1896 of file koagenda.cpp.
void KOAgenda::selectItem | ( | KOAgendaItem * | ) | [slot] |
Select item.
If the argument is 0, the currently selected item gets deselected. This function emits the itemSelected(bool) signal to inform about selection/deselection of events.
Definition at line 1903 of file koagenda.cpp.
void KOAgenda::selectItemByUID | ( | const QString & | uid | ) | [slot] |
Select the item associated with a given uid.
Linear search, use carefully.
Definition at line 1918 of file koagenda.cpp.
bool KOAgenda::eventFilter_mouse | ( | QObject * | , | |
QMouseEvent * | ||||
) | [protected, virtual] |
bool KOAgenda::eventFilter_wheel | ( | QObject * | , | |
QWheelEvent * | ||||
) | [protected, virtual] |
bool KOAgenda::eventFilter_key | ( | QObject * | , | |
QKeyEvent * | ||||
) | [protected, virtual] |
bool KOAgenda::eventFilter_drag | ( | QObject * | , | |
QDropEvent * | ||||
) | [protected, virtual] |
KOAgenda::MouseActionType KOAgenda::isInResizeArea | ( | bool | horizontal, | |
const QPoint & | pos, | |||
KOAgendaItem * | item | |||
) | [protected] |
returns RESIZELEFT if pos is near the lower edge of the action item, RESIZERIGHT if pos is near the higher edge, and MOVE otherwise.
If --reverse is used, RESIZELEFT still means resizing the beginning of the event, although that means moving to the right! horizontal is the same as mAllDayAgenda.
Definition at line 790 of file koagenda.cpp.
bool KOAgenda::ptInSelection | ( | QPoint | gpos | ) | const [protected] |
Return whether the cell specified by the grid point belongs to the current select.
Definition at line 704 of file koagenda.cpp.
void KOAgenda::startSelectAction | ( | const QPoint & | viewportPos | ) | [protected] |
void KOAgenda::performSelectAction | ( | const QPoint & | viewportPos | ) | [protected] |
void KOAgenda::endSelectAction | ( | const QPoint & | viewportPos | ) | [protected] |
void KOAgenda::startItemAction | ( | const QPoint & | viewportPos | ) | [protected] |
void KOAgenda::performItemAction | ( | const QPoint & | viewportPos | ) | [protected] |
void KOAgenda::endItemAction | ( | ) | [protected] |
void KOAgenda::setNoActionCursor | ( | KOAgendaItem * | moveItem, | |
const QPoint & | viewportPos | |||
) | [protected] |
void KOAgenda::setActionCursor | ( | int | actionType, | |
bool | acting = false | |||
) | [protected] |
Sets the cursor according to the given action type.
If acting==true, the corresponding action is running (i.e. the item is really moved). If acting==false the cursor should just indicate that the corresponding action is possible
Definition at line 1160 of file koagenda.cpp.
double KOAgenda::calcSubCellWidth | ( | KOAgendaItem * | item | ) | [protected] |
calculate the width of the column subcells of the given item
Definition at line 1200 of file koagenda.cpp.
void KOAgenda::placeAgendaItem | ( | KOAgendaItem * | item, | |
double | subCellWidth | |||
) | [protected] |
Move and resize the given item to the correct position.
Definition at line 1229 of file koagenda.cpp.
void KOAgenda::placeSubCells | ( | KOAgendaItem * | placeItem | ) | [protected] |
Place agenda item in agenda and adjust other cells if necessary.
Definition at line 1280 of file koagenda.cpp.
void KOAgenda::adjustItemPosition | ( | KOAgendaItem * | item | ) | [protected] |
Place the agenda item at the correct position (ignoring conflicting items).
Definition at line 1217 of file koagenda.cpp.
void KOAgenda::keyPressEvent | ( | QKeyEvent * | ) | [protected] |
Process the keyevent, including the ignored keyevents of eventwidgets.
Implements pgup/pgdn and cursor key navigation in the view.
Definition at line 1930 of file koagenda.cpp.
void KOAgenda::deleteItemsToDelete | ( | ) | [protected, slot] |
void KOAgenda::resizeAllContents | ( | ) | [protected, slot] |
Resizes all the child elements after the size of the agenda changed.
This is needed because Qt seems to have a bug when the resizeEvent of one of the widgets in a splitter takes a lot of time / does a lot of resizes.... see bug 80114
Definition at line 1797 of file koagenda.cpp.
The documentation for this class was generated from the following files: