ktimetracker
#include <timetrackerwidget.h>
|
QStringList | activeTasks () const |
|
void | addSubTask (const QString &taskName, const QString &taskId) |
|
void | addTask (const QString &taskName) |
|
int | changeTime (const QString &taskId, int minutes) |
|
bool | closeAllFiles () |
|
bool | closeFile () |
|
void | deleteTask () |
|
void | deleteTask (const QString &taskId) |
|
void | editHistory () |
|
void | editTask () |
|
QString | error (int errorCode) const |
|
void | exportcsvFile () |
|
QString | exportCSVFile (const QString &filename, const QString &from, const QString &to, int type, bool decimalMinutes, bool allTasks, const QString &delimiter, const QString "e) |
|
void | exportcsvHistory () |
|
int | focusSearchBar () |
|
void | focusTracking () |
|
void | importPlanner (const QString &fileName="") |
|
void | importPlannerFile (const QString &filename) |
|
bool | isActive (const QString &taskId) const |
|
bool | isIdleDetectionPossible () const |
|
bool | isTaskNameActive (const QString &taskId) const |
|
void | markTaskAsComplete () |
|
void | markTaskAsIncomplete () |
|
void | newSubTask () |
|
void | newTask () |
|
void | openFile (const QString &fileName=QString()) |
|
void | openFile (const KUrl &fileName) |
|
void | quit () |
|
void | resetAllTimes () |
|
void | saveAll () |
|
void | saveFile () |
|
void | setPercentComplete (const QString &taskId, int percent) |
|
void | showSearchBar (bool visible) |
|
void | slotSearchBar () |
|
void | startCurrentTimer () |
|
void | startNewSession () |
|
void | startTimerFor (const QString &taskId) |
|
bool | startTimerForTaskName (const QString &taskName) |
|
void | stopAllTimers (const QDateTime &when=QDateTime::currentDateTime()) |
|
void | stopAllTimersDBUS () |
|
void | stopCurrentTimer () |
|
void | stopTimerFor (const QString &taskId) |
|
bool | stopTimerForTaskName (const QString &taskName) |
|
QStringList | taskIdsFromName (const QString &taskName) const |
|
QStringList | tasks () const |
|
int | totalMinutesForTaskId (const QString &taskId) const |
|
QString | version () const |
|
|
bool | event (QEvent *event) |
|
Definition at line 36 of file timetrackerwidget.h.
TimetrackerWidget::TimetrackerWidget |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
TimetrackerWidget::~TimetrackerWidget |
( |
| ) |
|
KAction * TimetrackerWidget::action |
( |
const QString & |
name | ) |
const |
returns a generated action by name.
You have to call setupActions before.
- Parameters
-
name | The name of the action |
- Returns
- A pointer to a KAction instance
Definition at line 338 of file timetrackerwidget.cpp.
bool TimetrackerWidget::allEventsHaveEndTiMe |
( |
| ) |
|
Delivers if all task have an end time.
This is useful e.g. at the start of the program to see if a timer needs to be resumed. This function checks all (TaskView) mTabWidget->widget() to see if any task is open.
Definition at line 125 of file timetrackerwidget.cpp.
bool TimetrackerWidget::closeAllFiles |
( |
| ) |
|
|
slot |
tries to close all files.
This slot has to be called before quitting the application to ensure that no data is lost.
- Returns
- true if the user has saved or consciously not saved all files, otherwise false.
Definition at line 395 of file timetrackerwidget.cpp.
bool TimetrackerWidget::closeFile |
( |
| ) |
|
|
slot |
closes the current opened tab widget and saves the data of the corresponding taskview.
- Returns
- whether the file has been closed.
Definition at line 363 of file timetrackerwidget.cpp.
void TimetrackerWidget::contextMenuRequested |
( |
const QPoint & |
pos | ) |
|
|
signal |
Task * TimetrackerWidget::currentTask |
( |
| ) |
|
void TimetrackerWidget::currentTaskChanged |
( |
| ) |
|
|
signal |
TaskView * TimetrackerWidget::currentTaskView |
( |
| ) |
const |
void TimetrackerWidget::currentTaskViewChanged |
( |
| ) |
|
|
signal |
void TimetrackerWidget::deleteTask |
( |
| ) |
|
|
slot |
void TimetrackerWidget::editHistory |
( |
| ) |
|
|
slot |
void TimetrackerWidget::editTask |
( |
| ) |
|
|
slot |
void TimetrackerWidget::exportcsvFile |
( |
| ) |
|
|
slot |
void TimetrackerWidget::exportcsvHistory |
( |
| ) |
|
|
slot |
int TimetrackerWidget::focusSearchBar |
( |
| ) |
|
|
slot |
void TimetrackerWidget::focusTracking |
( |
| ) |
|
|
slot |
void TimetrackerWidget::importPlanner |
( |
const QString & |
fileName = "" | ) |
|
|
slot |
void TimetrackerWidget::markTaskAsComplete |
( |
| ) |
|
|
slot |
void TimetrackerWidget::markTaskAsIncomplete |
( |
| ) |
|
|
slot |
void TimetrackerWidget::newSubTask |
( |
| ) |
|
|
slot |
void TimetrackerWidget::newTask |
( |
| ) |
|
|
slot |
void TimetrackerWidget::openFile |
( |
const QString & |
fileName = QString() | ) |
|
|
slot |
void TimetrackerWidget::openFile |
( |
const KUrl & |
fileName | ) |
|
|
slot |
void TimetrackerWidget::resetAllTimes |
( |
| ) |
|
|
slot |
void TimetrackerWidget::reSetTimes |
( |
| ) |
|
|
signal |
void TimetrackerWidget::saveFile |
( |
| ) |
|
|
slot |
saves the current taskview.
This is especially important on unsaved files to give them a non-temporary filename.
Definition at line 385 of file timetrackerwidget.cpp.
void TimetrackerWidget::setCaption |
( |
const QString & |
qs | ) |
|
|
signal |
void TimetrackerWidget::setupActions |
( |
KActionCollection * |
actionCollection | ) |
|
initializes the KActionCollection object of a main window for example.
The actions are connected to the TreeWidget itself to ensure reusability.
- Parameters
-
actionCollection | The KActionCollection instance of the host object. |
Definition at line 200 of file timetrackerwidget.cpp.
void TimetrackerWidget::showSearchBar |
( |
bool |
visible | ) |
|
|
slot |
void TimetrackerWidget::slotSearchBar |
( |
| ) |
|
|
slot |
void TimetrackerWidget::startCurrentTimer |
( |
| ) |
|
|
slot |
void TimetrackerWidget::startNewSession |
( |
| ) |
|
|
slot |
void TimetrackerWidget::statusBarTextChangeRequested |
( |
const QString & |
text | ) |
|
|
signal |
void TimetrackerWidget::stopAllTimers |
( |
const QDateTime & |
when = QDateTime::currentDateTime() | ) |
|
|
slot |
void TimetrackerWidget::stopCurrentTimer |
( |
| ) |
|
|
slot |
void TimetrackerWidget::tasksChanged |
( |
const QList< Task * > & |
| ) |
|
|
signal |
void TimetrackerWidget::timersActive |
( |
| ) |
|
|
signal |
void TimetrackerWidget::timersInactive |
( |
| ) |
|
|
signal |
void TimetrackerWidget::totalTimesChanged |
( |
long |
session, |
|
|
long |
total |
|
) |
| |
|
signal |
void TimetrackerWidget::updateButtons |
( |
| ) |
|
|
signal |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.