summaryrefslogtreecommitdiffstats
path: root/karm/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/mainwindow.cpp')
-rw-r--r--karm/mainwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/karm/mainwindow.cpp b/karm/mainwindow.cpp
index 8265db05..13879e62 100644
--- a/karm/mainwindow.cpp
+++ b/karm/mainwindow.cpp
@@ -123,6 +123,7 @@ void MainWindow::slotSelectionChanged()
actionEdit->setEnabled(item);
actionStart->setEnabled(item && !item->isRunning() && !item->isComplete());
actionStop->setEnabled(item && item->isRunning());
+ actionResetTime->setEnabled(item && !item->isRunning());
actionMarkAsComplete->setEnabled(item && !item->isComplete());
actionMarkAsIncomplete->setEnabled(item && item->isComplete());
}
@@ -281,6 +282,11 @@ void MainWindow::makeMenus()
TQT_TQOBJECT(_taskView),
TQT_SLOT( stopCurrentTimer() ), actionCollection(),
"stop");
+ actionResetTime = new TDEAction( i18n("Re&set Time"),
+ 0,
+ TQT_TQOBJECT(_taskView),
+ TQT_SLOT( resetTimeCurrentTask() ), actionCollection(),
+ "reset_times");
actionStopAll = new TDEAction( i18n("Stop &All Timers"),
Key_Escape,
TQT_TQOBJECT(_taskView),
@@ -406,6 +412,9 @@ void MainWindow::makeMenus()
actionStopAll->setToolTip( i18n("Stop all of the active timers") );
actionStopAll->setWhatsThis( i18n("Stop all of the active timers") );
+ actionResetTime->setToolTip( i18n("Reset times of the selected task") );
+ actionResetTime->setWhatsThis( i18n("Reset times of the selected task") );
+
actionNew->setToolTip( i18n("Create new top level task") );
actionNew->setWhatsThis( i18n("This will create a new top level task.") );