#include <mainwindow.h>
|
| MainWindow (const TQString &icsfile="") |
|
TQString | version () const |
|
TQString | taskIdFromName (const TQString &taskName) const |
|
int | addTask (const TQString &storage) |
|
TQString | setPerCentComplete (const TQString &taskName, int PerCent) |
|
int | bookTime (const TQString &taskId, const TQString &iso8601StartDateTime, long durationInMinutes) |
|
TQString | getError (int karmErrorNumber) const |
|
int | totalMinutesForTaskId (const TQString &taskId) |
|
TQString | starttimerfor (const TQString &taskname) |
|
TQString | stoptimerfor (const TQString &taskname) |
|
TQString | deletetodo () |
|
bool | getpromptdelete () |
|
TQString | setpromptdelete (bool prompt) |
|
TQString | exportcsvfile (TQString filename, TQString from, TQString to, int type, bool decimalMinutes, bool allTasks, TQString delimiter, TQString quote) |
|
TQString | importplannerfile (TQString filename) |
|
Main window to tie the application together.
Definition at line 26 of file mainwindow.h.
◆ MainWindow()
MainWindow::MainWindow |
( |
const TQString & |
icsfile = "" | ) |
|
◆ ~MainWindow()
MainWindow::~MainWindow |
( |
| ) |
|
|
virtual |
◆ addTask()
int MainWindow::addTask |
( |
const TQString & |
storage | ) |
|
|
virtual |
◆ bookTime()
int MainWindow::bookTime |
( |
const TQString & |
taskId, |
|
|
const TQString & |
iso8601StartDateTime, |
|
|
long |
durationInMinutes |
|
) |
| |
|
virtual |
◆ contextMenuRequest
void MainWindow::contextMenuRequest |
( |
TQListViewItem * |
, |
|
|
const TQPoint & |
point, |
|
|
int |
|
|
) |
| |
|
protectedslot |
◆ deletetodo()
TQString MainWindow::deletetodo |
( |
| ) |
|
|
virtual |
◆ disableStopAll
void MainWindow::disableStopAll |
( |
| ) |
|
|
protectedslot |
◆ enableStopAll
void MainWindow::enableStopAll |
( |
| ) |
|
|
protectedslot |
◆ exportcsvfile()
TQString MainWindow::exportcsvfile |
( |
TQString |
filename, |
|
|
TQString |
from, |
|
|
TQString |
to, |
|
|
int |
type, |
|
|
bool |
decimalMinutes, |
|
|
bool |
allTasks, |
|
|
TQString |
delimiter, |
|
|
TQString |
quote |
|
) |
| |
|
virtual |
◆ exportcsvHistory
void MainWindow::exportcsvHistory |
( |
| ) |
|
|
protectedslot |
◆ getError()
TQString MainWindow::getError |
( |
int |
karmErrorNumber | ) |
const |
|
virtual |
◆ getpromptdelete()
bool MainWindow::getpromptdelete |
( |
| ) |
|
|
virtual |
◆ importplannerfile()
TQString MainWindow::importplannerfile |
( |
TQString |
filename | ) |
|
|
virtual |
◆ keyBindings
void MainWindow::keyBindings |
( |
| ) |
|
|
protectedslot |
◆ loadGeometry()
void MainWindow::loadGeometry |
( |
| ) |
|
|
protected |
◆ print
void MainWindow::print |
( |
| ) |
|
|
protectedslot |
◆ queryClose()
bool MainWindow::queryClose |
( |
| ) |
|
|
protected |
◆ quit
void MainWindow::quit |
( |
| ) |
|
|
slot |
◆ readProperties()
void MainWindow::readProperties |
( |
TDEConfig * |
cfg | ) |
|
|
protectedvirtual |
◆ resetAllTimes
void MainWindow::resetAllTimes |
( |
| ) |
|
|
protectedslot |
◆ save
bool MainWindow::save |
( |
| ) |
|
|
protectedslot |
◆ saveGeometry()
void MainWindow::saveGeometry |
( |
| ) |
|
|
protected |
◆ saveProperties()
void MainWindow::saveProperties |
( |
TDEConfig * |
cfg | ) |
|
|
protectedvirtual |
◆ setPerCentComplete()
TQString MainWindow::setPerCentComplete |
( |
const TQString & |
taskName, |
|
|
int |
PerCent |
|
) |
| |
|
virtual |
◆ setpromptdelete()
TQString MainWindow::setpromptdelete |
( |
bool |
prompt | ) |
|
|
virtual |
◆ setStatusBar
void MainWindow::setStatusBar |
( |
TQString |
qs | ) |
|
|
slot |
◆ slotSelectionChanged
void MainWindow::slotSelectionChanged |
( |
| ) |
|
|
protectedslot |
◆ startNewSession
void MainWindow::startNewSession |
( |
| ) |
|
|
protectedslot |
◆ startStatusBar()
void MainWindow::startStatusBar |
( |
| ) |
|
|
protected |
◆ starttimerfor()
TQString MainWindow::starttimerfor |
( |
const TQString & |
taskname | ) |
|
|
virtual |
◆ stoptimerfor()
TQString MainWindow::stoptimerfor |
( |
const TQString & |
taskname | ) |
|
|
virtual |
◆ taskIdFromName()
TQString MainWindow::taskIdFromName |
( |
const TQString & |
taskName | ) |
const |
|
virtual |
◆ totalMinutesForTaskId()
int MainWindow::totalMinutesForTaskId |
( |
const TQString & |
taskId | ) |
|
|
virtual |
Total time currently associated with a task.
A task has two counters: the total session time and the total time. Note that th euser can reset both counters.
- Parameters
-
taskId | Unique ID of task to lookup bookings for. |
Implements KarmDCOPIface.
Definition at line 616 of file mainwindow.cpp.
◆ updateStatusBar
void MainWindow::updateStatusBar |
( |
| ) |
|
|
protectedslot |
◆ updateTime
void MainWindow::updateTime |
( |
long |
sessionDiff, |
|
|
long |
totalDiff |
|
) |
| |
|
protectedslot |
Calculate the sum of the session time and the total time for all toplevel tasks and put it in the statusbar.
Definition at line 192 of file mainwindow.cpp.
◆ version()
TQString MainWindow::version |
( |
| ) |
const |
|
virtual |
◆ KarmTray
The documentation for this class was generated from the following files:
|