karm

#include <mainwindow.h>

Inheritance diagram for MainWindow:
KarmDCOPIface

Public Slots

void setStatusBar (TQString)
 
void quit ()
 

Public Member Functions

 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)
 

Protected Slots

void keyBindings ()
 
void startNewSession ()
 
void resetAllTimes ()
 
void updateTime (long, long)
 
void updateStatusBar ()
 
bool save ()
 
void exportcsvHistory ()
 
void print ()
 
void slotSelectionChanged ()
 
void contextMenuRequest (TQListViewItem *, const TQPoint &, int)
 
void enableStopAll ()
 
void disableStopAll ()
 

Protected Member Functions

void startStatusBar ()
 
virtual void saveProperties (TDEConfig *)
 
virtual void readProperties (TDEConfig *)
 
void saveGeometry ()
 
void loadGeometry ()
 
bool queryClose ()
 

Friends

class KarmTray
 

Detailed Description

Main window to tie the application together.

Definition at line 26 of file mainwindow.h.

Member Function Documentation

◆ addTask()

int MainWindow::addTask ( const TQString &  storage)
virtual
Reimplemented from superclass. from KarmDCOPIface::addTask

Implements KarmDCOPIface.

Definition at line 523 of file mainwindow.cpp.

◆ bookTime()

int MainWindow::bookTime ( const TQString &  taskId,
const TQString &  iso8601StartDateTime,
long  durationInMinutes 
)
virtual
Reimplemented from superclass. from KarmDCOPIface::bookTime

Implements KarmDCOPIface.

Definition at line 557 of file mainwindow.cpp.

◆ deletetodo()

TQString MainWindow::deletetodo ( )
virtual

delete the current item

Implements KarmDCOPIface.

Definition at line 492 of file mainwindow.cpp.

◆ exportcsvfile()

TQString MainWindow::exportcsvfile ( TQString  filename,
TQString  from,
TQString  to,
int  type,
bool  decimalMinutes,
bool  allTasks,
TQString  delimiter,
TQString  quote 
)
virtual

export csv history or totals file

Implements KarmDCOPIface.

Definition at line 716 of file mainwindow.cpp.

◆ getError()

TQString MainWindow::getError ( int  karmErrorNumber) const
virtual
Reimplemented from superclass. from KarmDCOPIface::getError

Implements KarmDCOPIface.

Definition at line 610 of file mainwindow.cpp.

◆ getpromptdelete()

bool MainWindow::getpromptdelete ( )
virtual

shall there be a "really delete" question

Implements KarmDCOPIface.

Definition at line 498 of file mainwindow.cpp.

◆ importplannerfile()

TQString MainWindow::importplannerfile ( TQString  filename)
virtual

import planner project file

Implements KarmDCOPIface.

Definition at line 734 of file mainwindow.cpp.

◆ setPerCentComplete()

TQString MainWindow::setPerCentComplete ( const TQString &  taskName,
int  PerCent 
)
virtual
Reimplemented from superclass. from KarmDCOPIface::setPerCentComplete

Implements KarmDCOPIface.

Definition at line 537 of file mainwindow.cpp.

◆ setpromptdelete()

TQString MainWindow::setpromptdelete ( bool  prompt)
virtual

set if there will be a "really delete" question

Implements KarmDCOPIface.

Definition at line 503 of file mainwindow.cpp.

◆ starttimerfor()

TQString MainWindow::starttimerfor ( const TQString &  taskname)
virtual

start the timer for taskname

Implements KarmDCOPIface.

Definition at line 682 of file mainwindow.cpp.

◆ stoptimerfor()

TQString MainWindow::stoptimerfor ( const TQString &  taskname)
virtual

stop the timer for taskname

Implements KarmDCOPIface.

Definition at line 699 of file mainwindow.cpp.

◆ taskIdFromName()

TQString MainWindow::taskIdFromName ( const TQString &  taskName) const
virtual

Return id of task found, empty string if no match.

Implements KarmDCOPIface.

Definition at line 509 of file mainwindow.cpp.

◆ 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
taskIdUnique ID of task to lookup bookings for.

Implements KarmDCOPIface.

Definition at line 616 of file mainwindow.cpp.

◆ 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

Return karm version.

Implements KarmDCOPIface.

Definition at line 487 of file mainwindow.cpp.


The documentation for this class was generated from the following files: