TaskView Class Reference
Container and interface for the tasks. More...
#include <taskview.h>
Inherits KListView.
Public Slots
- QString save ()
- void startCurrentTimer ()
- void stopCurrentTimer ()
- void stopAllTimers ()
- void changeTimer (QListViewItem *=0)
- void newTask ()
- void newTask (QString caption, Task *parent)
- void refresh ()
- void loadFromFlatFile ()
- void importPlanner ()
- void exportcsvFile ()
- QString exportcsvHistory ()
- void newSubTask ()
- void editTask ()
- KarmStorage * storage ()
- 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, const QString &icsfile="")
- 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 ()
- 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 *)
Detailed Description
Container and interface for the tasks.
Member Function Documentation
|
Return the first item in the view, cast to a Task pointer.
|
|
Return the current item in the view, cast to a Task pointer.
|
|
Return the i'th item (zero-based), cast to a Task pointer.
|
|
Load the view from storage.
|
|
Close the storage and release lock.
|
|
Reset session time to zero for all tasks.
|
|
Reset session and total time to zero for all tasks.
|
|
Return the total number if items in the view.
|
|
Return list of start/stop events for given date range.
|
|
Schedule that we should save very soon.
|
|
Return preferences user selected on settings dialog.
|
|
Add a task to view and storage.
|
|
Save to persistent storage.
|
|
Start the timer on the current item (task) in view.
|
|
Stop the timer for the current item in the view.
|
|
Stop all running timers.
|
|
Stop all running timers, and start timer on current item.
|
|
Calls newTask with caption "New Task".
|
|
Display edit task dialog and create a new task with results.
|
|
Used to refresh (e.g. after import) |
|
Used to import a legacy file format.
|
|
used to import tasks from imendio planner
|
|
Export comma separated values format for task time totals.
|
|
Export comma-separated values format for task history.
|
|
Calls newTask with caption "New Sub Task".
|
|
Delete task (and children) from view.
|
|
Subtracts time from all active tasks, and does not log event.
|
|
receiving signal that a task is being deleted
|
|
User has picked a new iCalendar file on preferences screen.
|
|
Copy totals for current and all sub tasks to clipboard.
|
|
Copy history for current and all sub tasks to clipboard.
|
The documentation for this class was generated from the following files:
- taskview.h
- taskview.cpp