karm
TaskView Class Reference
#include <taskview.h>
Inheritance diagram for TaskView:

Detailed Description
Container and interface for the tasks.
Definition at line 41 of file taskview.h.
Public Slots | |
QString | save () |
void | startCurrentTimer () |
void | stopCurrentTimer () |
void | stopAllTimers () |
void | newTask () |
void | newTask (QString caption, Task *parent) |
void | refresh () |
void | loadFromFlatFile () |
QString | importPlanner (QString fileName="") |
QString | report (const ReportCriteria &rc) |
void | exportcsvFile () |
QString | exportcsvHistory () |
void | newSubTask () |
void | editTask () |
KarmStorage * | storage () |
void | deleteTask (bool markingascomplete=false) |
void | reinstateTask (int completion) |
void | markTaskAsComplete () |
void | markTaskAsIncomplete () |
void | extractTime (int minutes) |
void | taskTotalTimesChanged (long session, long total) |
void | adaptColumns () |
void | deletingTask (Task *deletedTask) |
void | startTimerFor (Task *task, QDateTime startTime=QDateTime::currentDateTime()) |
void | stopTimerFor (Task *task) |
void | clearActiveTasks () |
void | iCalFileChanged (QString file) |
void | clipTotals () |
void | clipHistory () |
Signals | |
void | totalTimesChanged (long session, long total) |
void | updateButtons () |
void | timersActive () |
void | timersInactive () |
void | tasksChanged (QPtrList< Task > activeTasks) |
Public Member Functions | |
TaskView (QWidget *parent=0, const char *name=0, const QString &icsfile="") | |
Task * | first_child () const |
Task * | current_item () const |
Task * | item_at_index (int i) |
void | load (QString filename="") |
void | closeStorage () |
void | startNewSession () |
void | resetTimeForAllTasks () |
long | count () |
QValueList< HistoryEvent > | getHistory (const QDate &from, const QDate &to) const |
void | scheduleSave () |
Preferences * | preferences () |
QString | addTask (const QString &taskame, long total, long session, const DesktopList &desktops, Task *parent=0) |
Protected Slots | |
void | autoSaveChanged (bool) |
void | autoSavePeriodChanged (int period) |
void | minuteUpdate () |
void | itemStateChanged (QListViewItem *item) |
void | iCalFileModified (ResourceCalendar *) |
Member Function Documentation
|
Add a task to view and storage.
Definition at line 516 of file taskview.cpp. |
|
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 415 of file taskview.cpp. |
|
Copy history for current and all sub tasks to clipboard.
Definition at line 818 of file taskview.cpp. |
|
Copy totals for current and all sub tasks to clipboard.
Definition at line 794 of file taskview.cpp. |
|
Close the storage and release lock.
Definition at line 235 of file taskview.cpp. |
|
Return the total number if items in the view.
Definition at line 394 of file taskview.cpp. |
|
Return the current item in the view, cast to a Task pointer.
Definition at line 176 of file taskview.cpp. |
|
Delete task (and children) from view.
Definition at line 633 of file taskview.cpp. |
|
receiving signal that a task is being deleted
Definition at line 746 of file taskview.cpp. |
|
Export comma separated values format for task time totals.
Definition at line 324 of file taskview.cpp. |
|
Export comma-separated values format for task history.
Definition at line 338 of file taskview.cpp. |
|
Subtracts time from all active tasks, and does not log event.
Definition at line 697 of file taskview.cpp. |
|
Return the first item in the view, cast to a Task pointer.
Definition at line 171 of file taskview.cpp. |
|
Return list of start/stop events for given date range.
Definition at line 764 of file taskview.cpp. |
|
User has picked a new iCalendar file on preferences screen.
Definition at line 756 of file taskview.cpp. |
|
used to import tasks from imendio planner
Definition at line 305 of file taskview.cpp. |
|
Return the i'th item (zero-based), cast to a Task pointer.
Definition at line 181 of file taskview.cpp. |
|
item state stores if a task is expanded so you can see the subtasks
Definition at line 225 of file taskview.cpp. |
|
Load the view from storage.
Definition at line 186 of file taskview.cpp. |
|
Used to import a legacy file format.
Definition at line 273 of file taskview.cpp. |
|
Calls newTask dialog with caption "New Sub Task".
Definition at line 548 of file taskview.cpp. |
|
Display edit task dialog and create a new task with results.
Definition at line 485 of file taskview.cpp. |
|
Calls newTask dialog with caption "New Task".
Definition at line 480 of file taskview.cpp. |
|
Return preferences user selected on settings dialog.
Definition at line 358 of file taskview.cpp. |
|
Used to refresh (e.g. after import) Definition at line 246 of file taskview.cpp. |
|
Reinstates the current task as incomplete.
Definition at line 615 of file taskview.cpp. |
|
call export function for csv totals or history
Definition at line 319 of file taskview.cpp. |
|
Reset session and total time to zero for all tasks.
Definition at line 441 of file taskview.cpp. |
|
Save to persistent storage.
Definition at line 360 of file taskview.cpp. |
|
Schedule that we should save very soon.
Definition at line 353 of file taskview.cpp. |
|
Start the timer on the current item (task) in view.
Definition at line 389 of file taskview.cpp. |
|
Reset session time to zero for all tasks.
Definition at line 432 of file taskview.cpp. |
|
starts timer for task.
Definition at line 401 of file taskview.cpp. |
|
Stop all running timers.
Definition at line 420 of file taskview.cpp. |
|
Stop the timer for the current item in the view.
Definition at line 464 of file taskview.cpp. |
|
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 114 of file taskview.cpp. |
The documentation for this class was generated from the following files: