ktimetracker
TimetrackerWidget Class Reference
#include <timetrackerwidget.h>
Detailed Description
Definition at line 36 of file timetrackerwidget.h.
Public Slots | |
| QStringList | activeTasks () const |
| void | addSubTask (const QString &taskName, const QString &taskId) |
| void | addTask (const QString &taskName) |
| int | bookTime (const QString &taskId, const QString &dateTime, int minutes) |
| bool | closeAllFiles () |
| bool | closeFile () |
| void | deleteTask (const QString &taskId) |
| void | deleteTask () |
| void | editHistory () |
| void | editTask () |
| QString | error (int errorCode) const |
| QString | exportCSVFile (const QString &filename, const QString &from, const QString &to, int type, bool decimalMinutes, bool allTasks, const QString &delimiter, const QString "e) |
| void | exportcsvFile () |
| void | exportcsvHistory () |
| void | focusTracking () |
| void | importPlanner (const QString &fileName="") |
| void | importPlannerFile (const QString &filename) |
| bool | isActive (const QString &taskId) const |
| bool | isTaskNameActive (const QString &taskId) const |
| void | markTaskAsComplete () |
| void | markTaskAsIncomplete () |
| void | newFile () |
| void | newSubTask () |
| void | newTask () |
| void | openFile (const KUrl &fileName) |
| void | openFile (const QString &fileName=QString()) |
| void | quit () |
| void | reconfigureFiles () |
| void | resetAllTimes () |
| void | saveAll () |
| void | saveFile () |
| void | setPercentComplete (const QString &taskId, int percent) |
| void | showSearchBar (bool visible) |
| void | showTabBar (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 |
Signals | |
| void | contextMenuRequested (const QPoint &pos) |
| void | currentTaskChanged () |
| void | currentTaskViewChanged () |
| void | reSetTimes () |
| void | setCaption (const QString &qs) |
| void | statusBarTextChangeRequested (const QString &text) |
| void | tasksChanged (const QList< Task * > &) |
| void | timersActive () |
| void | timersInactive () |
| void | totalTimesChanged (long session, long total) |
| void | updateButtons () |
Public Member Functions | |
| KAction * | action (const QString &name) const |
| bool | allEventsHaveEndTiMe () |
| Task * | currentTask () |
| TaskView * | currentTaskView () |
| virtual void | readProperties (const KConfigGroup &) |
| virtual void | saveProperties (KConfigGroup &) |
| void | setupActions (KActionCollection *actionCollection) |
| TimetrackerWidget (QWidget *parent=0) | |
| ~TimetrackerWidget () | |
Protected Member Functions | |
| bool | event (QEvent *event) |
Constructor & Destructor Documentation
| TimetrackerWidget::TimetrackerWidget | ( | QWidget * | parent = 0 |
) | [explicit] |
Definition at line 89 of file timetrackerwidget.cpp.
| TimetrackerWidget::~TimetrackerWidget | ( | ) |
Definition at line 129 of file timetrackerwidget.cpp.
Member Function Documentation
| 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 391 of file timetrackerwidget.cpp.
| QStringList TimetrackerWidget::activeTasks | ( | ) | const [slot] |
Definition at line 1201 of file timetrackerwidget.cpp.
Definition at line 857 of file timetrackerwidget.cpp.
| void TimetrackerWidget::addTask | ( | const QString & | taskName | ) | [slot] |
Definition at line 847 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 138 of file timetrackerwidget.cpp.
| int TimetrackerWidget::bookTime | ( | const QString & | taskId, | |
| const QString & | dateTime, | |||
| int | minutes | |||
| ) | [slot] |
Definition at line 907 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 521 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 426 of file timetrackerwidget.cpp.
| void TimetrackerWidget::contextMenuRequested | ( | const QPoint & | pos | ) | [signal] |
| Task * TimetrackerWidget::currentTask | ( | ) |
Returns the current task of the current opened TaskView widget.
Definition at line 251 of file timetrackerwidget.cpp.
| void TimetrackerWidget::currentTaskChanged | ( | ) | [signal] |
| TaskView * TimetrackerWidget::currentTaskView | ( | ) |
Returns the TaskView widget of the current opened tabpage.
Definition at line 246 of file timetrackerwidget.cpp.
| void TimetrackerWidget::currentTaskViewChanged | ( | ) | [signal] |
| void TimetrackerWidget::deleteTask | ( | const QString & | taskId | ) | [slot] |
Definition at line 868 of file timetrackerwidget.cpp.
| void TimetrackerWidget::deleteTask | ( | ) | [slot] |
Definition at line 732 of file timetrackerwidget.cpp.
| void TimetrackerWidget::editHistory | ( | ) | [slot] |
Definition at line 781 of file timetrackerwidget.cpp.
| void TimetrackerWidget::editTask | ( | ) | [slot] |
Definition at line 725 of file timetrackerwidget.cpp.
| QString TimetrackerWidget::error | ( | int | errorCode | ) | const [slot] |
Definition at line 959 of file timetrackerwidget.cpp.
| bool TimetrackerWidget::event | ( | QEvent * | event | ) | [protected] |
| QString TimetrackerWidget::exportCSVFile | ( | const QString & | filename, | |
| const QString & | from, | |||
| const QString & | to, | |||
| int | type, | |||
| bool | decimalMinutes, | |||
| bool | allTasks, | |||
| const QString & | delimiter, | |||
| const QString & | quote | |||
| ) | [slot] |
Definition at line 1098 of file timetrackerwidget.cpp.
| void TimetrackerWidget::exportcsvFile | ( | ) | [slot] |
Definition at line 753 of file timetrackerwidget.cpp.
| void TimetrackerWidget::exportcsvHistory | ( | ) | [slot] |
Definition at line 760 of file timetrackerwidget.cpp.
| void TimetrackerWidget::focusTracking | ( | ) | [slot] |
Definition at line 801 of file timetrackerwidget.cpp.
| void TimetrackerWidget::importPlanner | ( | const QString & | fileName = "" |
) | [slot] |
Definition at line 767 of file timetrackerwidget.cpp.
| void TimetrackerWidget::importPlannerFile | ( | const QString & | filename | ) | [slot] |
Definition at line 1127 of file timetrackerwidget.cpp.
| bool TimetrackerWidget::isActive | ( | const QString & | taskId | ) | const [slot] |
Definition at line 1136 of file timetrackerwidget.cpp.
| bool TimetrackerWidget::isTaskNameActive | ( | const QString & | taskId | ) | const [slot] |
Definition at line 1159 of file timetrackerwidget.cpp.
| void TimetrackerWidget::markTaskAsComplete | ( | ) | [slot] |
Definition at line 739 of file timetrackerwidget.cpp.
| void TimetrackerWidget::markTaskAsIncomplete | ( | ) | [slot] |
Definition at line 746 of file timetrackerwidget.cpp.
| void TimetrackerWidget::newFile | ( | ) | [slot] |
opens a new untitled file which is stored firstly as temporary file but with a flag, that it has to be saved in a proper place.
Definition at line 396 of file timetrackerwidget.cpp.
| void TimetrackerWidget::newSubTask | ( | ) | [slot] |
Definition at line 718 of file timetrackerwidget.cpp.
| void TimetrackerWidget::newTask | ( | ) | [slot] |
Definition at line 711 of file timetrackerwidget.cpp.
| void TimetrackerWidget::openFile | ( | const KUrl & | fileName | ) | [slot] |
opens an existing ics file (wrapper for KUrl).
Definition at line 421 of file timetrackerwidget.cpp.
| void TimetrackerWidget::quit | ( | ) | [slot] |
Definition at line 1248 of file timetrackerwidget.cpp.
| void TimetrackerWidget::readProperties | ( | const KConfigGroup & | cfg | ) | [virtual] |
Definition at line 155 of file timetrackerwidget.cpp.
| void TimetrackerWidget::reconfigureFiles | ( | ) | [slot] |
call this method when the preferences changed to adjust all taskviews.
Definition at line 504 of file timetrackerwidget.cpp.
| void TimetrackerWidget::resetAllTimes | ( | ) | [slot] |
Definition at line 791 of file timetrackerwidget.cpp.
| void TimetrackerWidget::reSetTimes | ( | ) | [signal] |
| void TimetrackerWidget::saveAll | ( | ) | [slot] |
Definition at line 1220 of file timetrackerwidget.cpp.
| 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 483 of file timetrackerwidget.cpp.
| void TimetrackerWidget::saveProperties | ( | KConfigGroup & | cfg | ) | [virtual] |
Definition at line 150 of file timetrackerwidget.cpp.
| void TimetrackerWidget::setPercentComplete | ( | const QString & | taskId, | |
| int | percent | |||
| ) | [slot] |
Definition at line 889 of file timetrackerwidget.cpp.
| 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 264 of file timetrackerwidget.cpp.
| void TimetrackerWidget::showSearchBar | ( | bool | visible | ) | [slot] |
| void TimetrackerWidget::showTabBar | ( | bool | visible | ) | [slot] |
| void TimetrackerWidget::slotSearchBar | ( | ) | [slot] |
Definition at line 810 of file timetrackerwidget.cpp.
| void TimetrackerWidget::startCurrentTimer | ( | ) | [slot] |
Definition at line 690 of file timetrackerwidget.cpp.
| void TimetrackerWidget::startNewSession | ( | ) | [slot] |
Definition at line 774 of file timetrackerwidget.cpp.
| void TimetrackerWidget::startTimerFor | ( | const QString & | taskId | ) | [slot] |
Definition at line 1003 of file timetrackerwidget.cpp.
| bool TimetrackerWidget::startTimerForTaskName | ( | const QString & | taskName | ) | [slot] |
Definition at line 1023 of file timetrackerwidget.cpp.
| void TimetrackerWidget::statusBarTextChangeRequested | ( | const QString & | text | ) | [signal] |
| void TimetrackerWidget::stopAllTimers | ( | const QDateTime & | when = QDateTime::currentDateTime() |
) | [slot] |
Definition at line 704 of file timetrackerwidget.cpp.
| void TimetrackerWidget::stopAllTimersDBUS | ( | ) | [slot] |
Definition at line 1087 of file timetrackerwidget.cpp.
| void TimetrackerWidget::stopCurrentTimer | ( | ) | [slot] |
Definition at line 697 of file timetrackerwidget.cpp.
| void TimetrackerWidget::stopTimerFor | ( | const QString & | taskId | ) | [slot] |
Definition at line 1066 of file timetrackerwidget.cpp.
| bool TimetrackerWidget::stopTimerForTaskName | ( | const QString & | taskName | ) | [slot] |
Definition at line 1043 of file timetrackerwidget.cpp.
| QStringList TimetrackerWidget::taskIdsFromName | ( | const QString & | taskName | ) | const [slot] |
Definition at line 825 of file timetrackerwidget.cpp.
| QStringList TimetrackerWidget::tasks | ( | ) | const [slot] |
Definition at line 1182 of file timetrackerwidget.cpp.
| void TimetrackerWidget::timersActive | ( | ) | [signal] |
| void TimetrackerWidget::timersInactive | ( | ) | [signal] |
| int TimetrackerWidget::totalMinutesForTaskId | ( | const QString & | taskId | ) | const [slot] |
Definition at line 981 of file timetrackerwidget.cpp.
| void TimetrackerWidget::totalTimesChanged | ( | long | session, | |
| long | total | |||
| ) | [signal] |
| void TimetrackerWidget::updateButtons | ( | ) | [signal] |
| QString TimetrackerWidget::version | ( | ) | const [slot] |
Definition at line 820 of file timetrackerwidget.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference