TaskView Class Reference
Container and interface for the tasks. More...
#include <taskview.h>
Collaboration diagram for TaskView:

Public Slots | |
void | save () |
void | startCurrentTimer () |
void | stopCurrentTimer () |
void | stopAllTimers () |
void | changeTimer (QListViewItem *=0) |
void | newTask () |
void | newTask (QString caption, Task *parent) |
void | loadFromFlatFile () |
void | exportcsvFile () |
void | exportcsvHistory () |
void | newSubTask () |
void | editTask () |
void | deleteTask (bool markingascomplete=false) |
void | markTaskAsComplete () |
void | extractTime (int minutes) |
void | taskTotalTimesChanged (long session, long total) |
void | adaptColumns () |
void | deletingTask (Task *deletedTask) |
void | startTimerFor (Task *task) |
void | stopTimerFor (Task *task) |
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) | |
Task * | first_child () const |
Task * | current_item () const |
Task * | item_at_index (int i) |
void | load () |
void | closeStorage () |
void | startNewSession () |
void | resetTimeForAllTasks () |
long | count () |
QValueList< HistoryEvent > | getHistory (const QDate &from, const QDate &to) const |
void | scheduleSave () |
Preferences * | preferences () |
bool | isReadOnly () const |
Protected Slots | |
void | autoSaveChanged (bool) |
void | autoSavePeriodChanged (int period) |
void | minuteUpdate () |
void | itemStateChanged (QListViewItem *item) |
void | deleteItemState (QListViewItem *item) |
Detailed Description
Container and interface for the tasks.
Definition at line 36 of file taskview.h.
Member Function Documentation
|
Return the first item in the view, cast to a Task pointer.
Definition at line 118 of file taskview.cpp. Referenced by deleteTask(), load(), loadFromFlatFile(), KarmStorage::loadFromFlatFileCumulative(), resetTimeForAllTasks(), and startNewSession(). |
|
Return the current item in the view, cast to a Task pointer.
Definition at line 123 of file taskview.cpp. Referenced by changeTimer(), clipTotals(), deleteTask(), exportcsvFile(), exportcsvHistory(), TimeKard::historyAsText(), newSubTask(), startCurrentTimer(), stopCurrentTimer(), and TimeKard::totalsAsText(). |
|
Return the i'th item (zero-based), cast to a Task pointer.
Definition at line 128 of file taskview.cpp. Referenced by count(), load(), and loadFromFlatFile(). |
|
Load the view from storage.
Definition at line 133 of file taskview.cpp. References first_child(), Task::getDesktops(), item_at_index(), KarmStorage::load(), DesktopTracker::registerForDesktops(), and DesktopTracker::startTracking(). Referenced by iCalFileChanged(). |
|
Close the storage and release lock.
Definition at line 188 of file taskview.cpp. References KarmStorage::closeStorage(). |
|
Reset session time to zero for all tasks.
Definition at line 326 of file taskview.cpp. References first_child(), and Task::startNewSession(). |
|
Reset session and total time to zero for all tasks.
Definition at line 335 of file taskview.cpp. References first_child(), and Task::resetTimes(). |
|
Return the total number if items in the view.
Definition at line 293 of file taskview.cpp. References item_at_index(). |
|
Return list of start/stop events for given date range.
Definition at line 658 of file taskview.cpp. References KarmStorage::getHistory(). Referenced by TimeKard::historyAsText(). |
|
Schedule that we should save very soon.
Definition at line 252 of file taskview.cpp. |
|
Return preferences user selected on settings dialog. * Definition at line 257 of file taskview.cpp. |
|
Return true if storage is readonly.
Definition at line 79 of file taskview.h. References KarmStorage::isReadOnly(). Referenced by changeTimer(). |
|
Save to persistent storage.
Definition at line 259 of file taskview.cpp. References KarmStorage::save(). Referenced by deleteTask(), and newTask(). |
|
Start the timer on the current item (task) in view.
Definition at line 288 of file taskview.cpp. References current_item(). Referenced by changeTimer(). |
|
Stop the timer for the current item in the view.
Definition at line 358 of file taskview.cpp. References current_item(). Referenced by changeTimer(). |
|
Stop all running timers.
Definition at line 314 of file taskview.cpp. References IdleTimeDetector::stopIdleDetection(). Referenced by iCalFileChanged(). |
|
Stop all running timers, and start timer on current item.
Definition at line 364 of file taskview.cpp. References current_item(), isReadOnly(), Task::setRunning(), startCurrentTimer(), and stopCurrentTimer(). |
|
Calls newTask with caption "New Task".
Definition at line 394 of file taskview.cpp. Referenced by newSubTask(). |
|
Display edit task dialog and create a new task with results.
Definition at line 399 of file taskview.cpp. References KarmStorage::addTask(), DesktopTracker::desktopCount(), DesktopTracker::registerForDesktops(), save(), Task::setUid(), EditTaskDialog::status(), EditTaskDialog::taskName(), and Task::uid(). |
|
Used to import a legacy file format.
Definition at line 191 of file taskview.cpp. References first_child(), Task::getDesktops(), item_at_index(), KarmStorage::loadFromFlatFile(), DesktopTracker::registerForDesktops(), and DesktopTracker::startTracking(). |
|
Export comma separated values format for task time totals.
Definition at line 224 of file taskview.cpp. References current_item(), Task::isRoot(), and KarmStorage::report(). |
|
Export comma-separated values format for task history.
Definition at line 238 of file taskview.cpp. References current_item(), Task::isRoot(), and KarmStorage::report(). |
|
Calls newTask with caption "New Sub Task".
Definition at line 452 of file taskview.cpp. References current_item(), and newTask(). |
|
Delete task (and children) from view.
Definition at line 520 of file taskview.cpp. References current_item(), first_child(), Task::name(), Task::nextSibling(), Preferences::promptDelete(), Task::remove(), Task::removeFromView(), save(), Task::setPercentComplete(), and IdleTimeDetector::stopIdleDetection(). |
|
Subtracts time from all active tasks, and does not log event.
Definition at line 591 of file taskview.cpp. |
|
receiving signal that a task is being deleted
Definition at line 640 of file taskview.cpp. References DesktopTracker::registerForDesktops(). |
|
User has picked a new iCalendar file on preferences screen.
Definition at line 650 of file taskview.cpp. References load(), KarmStorage::save(), and stopAllTimers(). |
|
Copy totals for current and all sub tasks to clipboard.
Definition at line 676 of file taskview.cpp. References current_item(), Task::isRoot(), and TimeKard::totalsAsText(). |
|
Copy history for current and all sub tasks to clipboard.
Definition at line 700 of file taskview.cpp. References TimeKard::historyAsText(). |
The documentation for this class was generated from the following files: