ktimetracker
TaskView Class Reference
#include <taskview.h>

Detailed Description
Container and interface for the tasks.Definition at line 53 of file taskview.h.
Constructor & Destructor Documentation
| TaskView::TaskView | ( | QWidget * | parent = 0 |
) | [explicit] |
Definition at line 153 of file taskview.cpp.
| TaskView::~TaskView | ( | ) | [virtual] |
Definition at line 365 of file taskview.cpp.
Member Function Documentation
| QString TaskView::addTask | ( | const QString & | taskame, | |
| long | total = 0, |
|||
| long | session = 0, |
|||
| const DesktopList & | desktops = QVector<int>(0,0), |
|||
| Task * | parent = 0 | |||
| ) |
| bool TaskView::allEventsHaveEndTiMe | ( | ) |
Deliver if all events from the storage have and end time.
Definition at line 477 of file taskview.cpp.
| void TaskView::clearActiveTasks | ( | ) | [slot] |
clears all active tasks.
Needed e.g. if iCal file was modified by another program and taskview is cleared without stopping tasks IF YOU DO NOT KNOW WHAT YOU ARE DOING, CALL stopAllTimers INSTEAD
Definition at line 684 of file taskview.cpp.
| QString TaskView::clipTotals | ( | const ReportCriteria & | rc | ) | [slot] |
Copy totals for current and all sub tasks to clipboard.
Definition at line 1020 of file taskview.cpp.
| void TaskView::closeStorage | ( | ) |
| void TaskView::contextMenuRequested | ( | const QPoint & | ) | [signal] |
| long TaskView::count | ( | ) |
| Task * TaskView::currentItem | ( | ) | const |
Return the current item in the view, cast to a Task pointer.
Definition at line 372 of file taskview.cpp.
| void TaskView::deleteTask | ( | Task * | task = 0 |
) | [slot] |
Deletes the given or the current task (and children) from the view.
Depending on configuration, there may be a user dialog.
- Parameters:
-
task Task to be deleted. If empty, the current task is deleted. if non-existant, an error message is displayed.
Definition at line 943 of file taskview.cpp.
| void TaskView::deleteTaskBatch | ( | Task * | task = 0 |
) | [slot] |
Deletes the given or the current task (and children) from the view.
It does this in batch mode, no user dialog.
- Parameters:
-
task Task to be deleted. If empty, the current task is deleted. if non-existant, an error message is displayed.
Definition at line 925 of file taskview.cpp.
| void TaskView::deletingTask | ( | Task * | deletedTask | ) | [slot] |
| void TaskView::editTask | ( | ) | [slot] |
| void TaskView::exportcsvFile | ( | ) | [slot] |
Export comma separated values format for task time totals.
Definition at line 585 of file taskview.cpp.
| QString TaskView::exportcsvHistory | ( | ) | [slot] |
| void TaskView::extractTime | ( | int | minutes | ) | [slot] |
Subtracts time from all active tasks, and does not log event.
Definition at line 993 of file taskview.cpp.
| QList< HistoryEvent > TaskView::getHistory | ( | const QDate & | from, | |
| const QDate & | to | |||
| ) | const |
Return list of start/stop events for given date range.
Definition at line 1009 of file taskview.cpp.
| void TaskView::iCalFileModified | ( | ResourceCalendar * | rc | ) | [protected, slot] |
React on another process having modified the iCal file we rely on.
This is not iCalFileChanged.
Definition at line 482 of file taskview.cpp.
| void TaskView::importPlanner | ( | const QString & | fileName = "" |
) | [slot] |
| bool TaskView::isFocusTrackingActive | ( | ) | const |
Returns whether the focus tracking is currently active.
Definition at line 1114 of file taskview.cpp.
| Task * TaskView::itemAt | ( | int | i | ) |
Return the i'th item (zero-based), cast to a Task pointer.
Definition at line 378 of file taskview.cpp.
| void TaskView::itemStateChanged | ( | QTreeWidgetItem * | item | ) | [protected, slot] |
item state stores if a task is expanded so you can see the subtasks
Definition at line 466 of file taskview.cpp.
| void TaskView::load | ( | const QString & | filename | ) |
| void TaskView::markTaskAsComplete | ( | ) | [slot] |
Definition at line 980 of file taskview.cpp.
| void TaskView::markTaskAsIncomplete | ( | ) | [slot] |
Definition at line 1015 of file taskview.cpp.
| void TaskView::minuteUpdate | ( | ) | [protected, slot] |
Definition at line 776 of file taskview.cpp.
| void TaskView::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 296 of file taskview.cpp.
| void TaskView::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 331 of file taskview.cpp.
| void TaskView::newFocusWindowDetected | ( | const QString & | taskName | ) | [protected, slot] |
| void TaskView::newSubTask | ( | ) | [slot] |
Display edit task dialog and create a new task with results.
- Parameters:
-
caption Window title of the edit task dialog
Definition at line 792 of file taskview.cpp.
| void TaskView::newTask | ( | ) | [slot] |
| void TaskView::reconfigure | ( | ) | [slot] |
Reconfigures taskView depending on current configuration.
Definition at line 1124 of file taskview.cpp.
| void TaskView::refresh | ( | ) | [slot] |
| QString TaskView::reFreshTimes | ( | ) | [slot] |
Refresh the times of the tasks, e.g.
when the history has been changed by the user
Definition at line 513 of file taskview.cpp.
| void TaskView::reinstateTask | ( | int | completion | ) | [slot] |
Reinstates the current task as incomplete.
- Parameters:
-
completion The percentage complete to mark the task as.
Definition at line 907 of file taskview.cpp.
| QString TaskView::report | ( | const ReportCriteria & | rc | ) | [slot] |
| void TaskView::resetTimeForAllTasks | ( | ) |
| void TaskView::reSetTimes | ( | ) | [signal] |
| QString TaskView::save | ( | ) | [slot] |
| void TaskView::scheduleSave | ( | ) |
| void TaskView::setStatusBarText | ( | QString | ) | [signal] |
| void TaskView::slotColumnToggled | ( | int | column | ) | [protected, slot] |
Definition at line 1053 of file taskview.cpp.
| void TaskView::slotCustomContextMenuRequested | ( | const QPoint & | pos | ) | [protected, slot] |
Definition at line 1079 of file taskview.cpp.
| void TaskView::slotItemDoubleClicked | ( | QTreeWidgetItem * | item, | |
| int | ||||
| ) | [protected, slot] |
Definition at line 1038 of file taskview.cpp.
| void TaskView::slotSetPercentage | ( | QAction * | action | ) | [protected, slot] |
Definition at line 1099 of file taskview.cpp.
| void TaskView::slotSetPriority | ( | QAction * | action | ) | [protected, slot] |
Definition at line 1107 of file taskview.cpp.
| void TaskView::startCurrentTimer | ( | ) | [slot] |
| void TaskView::startNewSession | ( | ) |
| void TaskView::startTimerFor | ( | Task * | task, | |
| const QDateTime & | startTime = QDateTime::currentDateTime() | |||
| ) | [slot] |
starts timer for task.
- Parameters:
-
task task to start timer of startTime if taskview has been modified by another program, we have to set the starting time to not-now.
Definition at line 665 of file taskview.cpp.
| void TaskView::stopAllTimers | ( | const QDateTime & | when = QDateTime::currentDateTime() |
) | [slot] |
Stop all running timers.
- Parameters:
-
when When the timer stopped - this makes sense if the idletime- detector detects the user stopped working 5 minutes ago.
Definition at line 689 of file taskview.cpp.
| void TaskView::stopCurrentTimer | ( | ) | [slot] |
| void TaskView::stopTimerFor | ( | Task * | task | ) | [slot] |
Definition at line 750 of file taskview.cpp.
| KarmStorage * TaskView::storage | ( | ) | [slot] |
Returns a pointer to storage object.
This is poor object oriented design--the task view should expose wrappers around the storage methods we want to access instead of giving clients full access to objects that we own.
Hopefully, this will be redesigned as part of the Qt4 migration.
Definition at line 360 of file taskview.cpp.
| QStringList TaskView::tasks | ( | ) |
| void TaskView::taskTotalTimesChanged | ( | long | session, | |
| long | total | |||
| ) | [inline, slot] |
Definition at line 197 of file taskview.h.
| void TaskView::timersActive | ( | ) | [signal] |
| void TaskView::timersInactive | ( | ) | [signal] |
| void TaskView::toggleFocusTracking | ( | ) | [slot] |
| void TaskView::totalTimesChanged | ( | long | session, | |
| long | total | |||
| ) | [signal] |
| void TaskView::updateButtons | ( | ) | [signal] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference