ktimetracker
timetrackerwidget.cpp
Go to the documentation of this file.
107 d->mSearchWidget->setWhatsThis( i18n( "This is a combined field. As long as you do not type ENTER, it acts as a filter. Then, only tasks that match your input are shown. As soon as you type ENTER, your input is used as name to create a new task." ) );
455 if ( !d->mSearchWidget->displayText().isEmpty() ) slotAddTask( d->mSearchWidget->displayText() );
589 else KMessageBox::information(0, i18nc("@info in message box", "There is no history yet. Start and stop a task and you will have an entry in your history."));
598 i18n( "Do you really want to reset the time to zero for all tasks? This will delete the entire history." ),
599 i18n( "Confirmation Required" ), KGuiItem( i18n( "Reset All Times" ) ) ) == KMessageBox::Continue )
717 if ( taskView ) return KTIMETRACKER_ERR_UID_NOT_FOUND; //FIXME: it mimics the behaviour with the for loop, but I am not sure semantics were right. Maybe a new error code must be defined?
975 setWhatsThis( i18n("This is ktimetracker, KDE's program to help you track your time. Best, start with creating your first task - enter it into the field where you see \"search or add task\".") );
976 else setWhatsThis( i18n("You have already created a task. You can now start and stop timing") );
QLayout * layout() const
QDate from
For history reports, the lower bound of the date range to report on.
Definition: reportcriteria.h:63
void setPercentComplete(const int percent, timetrackerstorage *storage)
Update percent complete for this task.
Definition: task.cpp:238
void setCaption(const QString &qs)
void currentTaskChanged()
QString quote
The quote to use for text fields when outputting comma-separated reports.
Definition: reportcriteria.h:99
bool isIdleDetectionPossible()
Returns true if it is possible to do idle detection.
Definition: idletimedetector.cpp:57
Type type() const
QString exportCSVFile(const QString &filename, const QString &from, const QString &to, int type, bool decimalMinutes, bool allTasks, const QString &delimiter, const QString "e)
Definition: timetrackerwidget.cpp:865
void importPlannerFile(const QString &filename)
Definition: timetrackerwidget.cpp:893
void timersActive()
int changeTime(const QString &taskId, int minutes)
Definition: timetrackerwidget.cpp:703
void tasksChanged(const QList< Task * > &)
bool stopTimerForTaskName(const QString &taskName)
Definition: timetrackerwidget.cpp:821
void importPlanner(const QString &fileName="")
Definition: timetrackerwidget.cpp:571
Definition: timetrackerwidget.h:36
bool isTaskNameActive(const QString &taskId) const
Definition: timetrackerwidget.cpp:918
void toggleFocusTracking()
Toggles the automatic tracking of focused windows.
Definition: taskview.cpp:766
QWidget * window() const
void importPlanner(const QString &fileName="")
used to import tasks from imendio planner
Definition: taskview.cpp:602
void markTaskAsIncomplete()
Definition: timetrackerwidget.cpp:556
void updateButtons()
Task * itemAt(int i)
Return the i'th item (zero-based), cast to a Task pointer.
Definition: taskview.cpp:405
bool closeFile()
closes the current opened tab widget and saves the data of the corresponding taskview.
Definition: timetrackerwidget.cpp:363
TaskView * currentTaskView() const
Returns the TaskView widget of the current opened tabpage.
Definition: timetrackerwidget.cpp:182
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
void contextMenuRequested(const QPoint &pos)
void startTimerFor(Task *task, const QDateTime &startTime=QDateTime::currentDateTime())
starts timer for task.
Definition: taskview.cpp:721
int exec()
QDBusConnection sessionBus()
Keep track of how long the computer has been idle.
Definition: idletimedetector.h:47
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setupActions(KActionCollection *actionCollection)
initializes the KActionCollection object of a main window for example.
Definition: timetrackerwidget.cpp:200
void stopCurrentTimer()
Stop the timer for the current item in the view.
Definition: taskview.cpp:845
int totalMinutesForTaskId(const QString &taskId) const
Definition: timetrackerwidget.cpp:766
void clear()
bool isComplete()
Return true if task is complete (percent complete equals 100).
Definition: task.cpp:304
const char * name() const
QDate fromString(const QString &string, Qt::DateFormat format)
void setPercentComplete(const QString &taskId, int percent)
Definition: timetrackerwidget.cpp:685
QString delimiter
The delimiter to use when outputting comma-separated value reports.
Definition: reportcriteria.h:94
int focusSearchBar()
this method puts the input focus onto the search bar
Definition: timetrackerwidget.cpp:130
void setLayout(QLayout *layout)
bool isNull() const
bool isEmpty() const
bool isIdleDetectionPossible() const
Definition: timetrackerwidget.cpp:757
void startCurrentTimer()
Start the timer on the current item (task) in view.
Definition: taskview.cpp:716
bool allEventsHaveEndTiMe()
Deliver if all events from the storage have and end time.
Definition: taskview.cpp:508
virtual bool eventFilter(QObject *watched, QEvent *event)
void exportcsvFile()
Export comma separated values format for task time totals.
Definition: taskview.cpp:622
void stopTimerFor(const QString &taskId)
Definition: timetrackerwidget.cpp:842
void setMargin(int margin)
void deleteTask(Task *task=0)
Deletes the given or the current task (and children) from the view.
Definition: taskview.cpp:1018
void addWidget(QWidget *w)
int key() const
void addTask(const QString &taskName)
Definition: timetrackerwidget.cpp:646
bool allEventsHaveEndTiMe()
Delivers if all task have an end time.
Definition: timetrackerwidget.cpp:125
void deleteTaskBatch(Task *task=0)
Deletes the given or the current task (and children) from the view.
Definition: taskview.cpp:1000
void addSubTask(const QString &taskName, const QString &taskId)
Definition: timetrackerwidget.cpp:656
void changeTime(long minutes, timetrackerstorage *storage)
Change task time.
Definition: task.cpp:407
void reSetTimes()
Task * currentTask()
Returns the current task of the current opened TaskView widget.
Definition: timetrackerwidget.cpp:187
bool decimalMinutes
True if the durations should be output in decimal hours.
Definition: reportcriteria.h:74
QString whatsThis() const
void totalTimesChanged(long session, long total)
bool allTasks
True if user chose to export all tasks, not only the selected one.
Definition: reportcriteria.h:84
void statusBarTextChangeRequested(const QString &text)
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
TimetrackerWidget(QWidget *parent=0)
Definition: timetrackerwidget.cpp:90
void reconfigure()
Reconfigures taskView depending on current configuration.
Definition: taskview.cpp:1191
Definition: historydialog.h:33
QStringList taskIdsFromName(const QString &taskName) const
Definition: timetrackerwidget.cpp:626
void setSpacing(int)
QString report(const ReportCriteria &rc)
call export function for csv totals or history
Definition: taskview.cpp:617
bool isActive(const QString &taskId) const
Definition: timetrackerwidget.cpp:900
void startTimerFor(const QString &taskId)
Definition: timetrackerwidget.cpp:783
void stopAllTimers(const QDateTime &when=QDateTime::currentDateTime())
Definition: timetrackerwidget.cpp:526
void show()
void stopAllTimers(const QDateTime &when=QDateTime::currentDateTime())
Stop all running timers.
Definition: taskview.cpp:745
QString toolTip() const
KAction * action(const QString &name) const
returns a generated action by name.
Definition: timetrackerwidget.cpp:338
QDate to
For history reports, the upper bound of the date range to report on.
Definition: reportcriteria.h:68
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QList< QAction * > actions() const
void currentTaskViewChanged()
virtual bool event(QEvent *event)
QString exportcsvHistory()
Export comma-separated values format for task history.
Definition: taskview.cpp:637
void openFile(const QString &fileName=QString())
opens an existing ics file.
Definition: timetrackerwidget.cpp:343
bool startTimerForTaskName(const QString &taskName)
Definition: timetrackerwidget.cpp:802
Task * currentItem() const
Return the current item in the view, cast to a Task pointer.
Definition: taskview.cpp:399
void timersInactive()
void resetTimeForAllTasks()
Reset session and total time to zero for all tasks.
Definition: taskview.cpp:799
QString addTask(const QString &taskame, const QString &taskdescription=QString(), long total=0, long session=0, const DesktopList &desktops=QVector< int >(0, 0), Task *parent=0)
Add a task to view and storage.
Definition: taskview.cpp:902
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.