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
|
Place the agenda item at the correct position (ignoring conflicting items).
Definition at line 1219 of file koagenda.cpp. |
|
calculate the width of the column subcells of the given item
Definition at line 1202 of file koagenda.cpp. |
|
delete the items that are queued for deletion
Definition at line 1755 of file koagenda.cpp. |
|
Deselect selected items. This function does not emit any signals. Definition at line 1899 of file koagenda.cpp. |
|
End moving/resizing agenda item.
Definition at line 1039 of file koagenda.cpp. |
|
Emd selecting time span.
Definition at line 774 of file koagenda.cpp. |
|
Handles drag and drop events. Called from eventFilter Definition at line 389 of file koagenda.cpp. |
|
Handles key events. Called from eventFilter Definition at line 454 of file koagenda.cpp. |
|
Handles mouse events. Called from eventFilter Definition at line 564 of file koagenda.cpp. |
|
Handles mousewheel events. Called from eventFilter Definition at line 530 of file koagenda.cpp. |
|
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 791 of file koagenda.cpp. |
|
Process the keyevent, including the ignored keyevents of eventwidgets. Implements pgup/pgdn and cursor key navigation in the view. Definition at line 1933 of file koagenda.cpp. |
|
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 208 of file koagenda.cpp. |
|
Calculates the minimum width.
Definition at line 1835 of file koagenda.cpp. |
|
Move/resize agenda item.
Definition at line 855 of file koagenda.cpp. |
|
Select time span.
Definition at line 739 of file koagenda.cpp. |
|
Move and resize the given item to the correct position.
Definition at line 1231 of file koagenda.cpp. |
|
Place agenda item in agenda and adjust other cells if necessary.
Definition at line 1282 of file koagenda.cpp. |
|
Return whether the cell specified by the grid point belongs to the current select.
Definition at line 705 of file koagenda.cpp. |
|
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 1697 of file koagenda.cpp. |
|
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 1800 of file koagenda.cpp. |
|
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 1906 of file koagenda.cpp. |
|
Select the item associated with a given uid. Linear search, use carefully. Definition at line 1921 of file koagenda.cpp. |
|
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 1162 of file koagenda.cpp. |
|
Set cursor, when no item action is in progress.
Definition at line 1182 of file koagenda.cpp. |
|
Start moving/resizing agenda item.
Definition at line 837 of file koagenda.cpp. |
|
Start selecting time span.
Definition at line 719 of file koagenda.cpp. |
|
Update configuration from preference settings.
Definition at line 1843 of file koagenda.cpp. |
The documentation for this class was generated from the following files: