/** \mainpage %Karm API Overview
\section intro Introduction
%Karm is a simple, easy to use time tracking program. It keeps a hierarchical list of tasks. Each task has a timer
associated with it. The primary user interaction for karm is to start and stop the appropriate timer.
\section map Road Map to the Classes
MainWindow is the outermost layer and initializes the menus and actions, sets
up the status bar, and handles many of the signal-to-slot connections. It
holds a pointer to the TaskView and Preferences objects and implements the
%Karm's DCOP interface (defined in KarmDCOPIface).
TaskView does most of the work in the application. This TDEListView subclass
sets up the columns in the list, the idle detection timer, the auto save
timer, and the desktop tracker. It starts and stops timers, handles importing
and exporting and displays the edit task dialog in response to user action.
TaskView holds a private pointer to Preferences and KarmStorage objects.
A Task is a QListViewItem subclass stores state such as the timer totals, if a
timer is currently running for the task. It also defines the list view sort
order and can return a pointer to a KCal::Todo object that holds the same
information.
Preferences is a singleton that stores configuration options. It raises
signals when options change (for example, the location where the karm data is
stored) so the application can react and adjust.
KarmStorage is a singleton that creates an interface for storing KArm data.
Currently, it uses KDE Resource framework and stores data in the iCalendar
format.
*/
/** \page sig_slot_index Index of Signals and Slots
To get an understanding of the flow program, it may be useful to see an overview of all of the signals, slots, and
connections. See \see connections to get an index of what signal is connected to which slot.
\section overview Summary of what each class provides
Class | Signal? | Public Slot? |
Protected Slot? | Private Slot? |
AddTaskDialog | | | | Y |
IdleTimer | Y | Y | Y | |
TDEAccelMenuWatch | | Y | | Y |
Karm | Y | Y | Y | |
KarmTray | | Y | Y | |
KarmWindow | | | Y | |
KTimeWidget | | | | |
ListViewIterator | | | | |
Loging | | | | |
MyPrinter | | | | |
Preferences | Y | Y | Y | |
SubtreeIterator | | | | |
Task | | | Y | |
\section signals Listing of all of the signals
These are the signals:
- IdleTimer::extractTime(int)
- IdleTimer::stopTimer()
- Karm::sessionTimeChanged()
- Karm::timerActive()
- Karm::timerInactive()
- Karm::timerTick()
- Karm::updateButtons()
- Karm::tasksChanged(QPtrList)
- Preferences::autoSave(bool)
- Preferences::autoSavePeriod(int)
- Preferences::detectIdleness(bool)
- Preferences::idlenessTimeout(int)
- Preferences::saveFile(TQString)
- Preferences::setupChanged()
- Preferences::timeLog(TQString)
- Preferences::timeLoging(bool)
- Preferences::hideOnClose(bool)
\section slots Listing of the slots
\subsection public Public Slots
- IdleTimer::setMaxIdle(int maxIdle)
- IdleTimer::startIdleDetection()
- IdleTimer::stopIdleDetection()
- IdleTimer::toggleOverAllIdleDetection(bool)
- TDEAccelMenuWatch::updateMenus()
- Karm::changeTimer(QListViewItem*)
- Karm::deleteTask()
- Karm::editTask()
- Karm::extractTime(int)
- Karm::load()
- Karm::newSubTask()
- Karm::newTask()
- Karm::newTask(TQString, QListViewItem*)
- Karm::parseLine(TQString, long*, TQString*, int*)
- Karm::resetSessionTimeForAllTasks()
- Karm::save()
- Karm::startTimer()
- Karm::stopAllTimers()
- Karm::stopCurrentTimer()
- Karm::stopTimer(Task*)
- KarmTray::initToolTip()
- KarmTray::resetClock()
- KarmTray::startClock()
- KarmTray::stopClock()
- KarmTray::updateToolTip(QPtrList)
- Karm::writeTaskToFile(QTextStream*, QListViewItem*, int)
- Preferences::load()
- Preferences::save()
- Preferences::showDialog()
\subsection protected Protected Slots
- IdleTimer::check()
- Karm::addTimeToActiveTasks(int)
- Karm::autoSaveChanged(bool)
- Karm::autoSavePeriodChanged(int)
- Karm::minuteUpdate()
- Karm::stopChildCounters(Task*)
- KarmTray::advanceClock()
- KarmWindow::contextMenuRequest(QListViewItem*, const QPoint&, int)
- KarmWindow::disableStopAll()
- KarmWindow::enableStopAll()
- KarmWindow::hideOnClose(bool)
- KarmWindow::keyBindings()
- KarmWindow::print()
- KarmWindow::quit()
- KarmWindow::resetSessionTime();
- KarmWindow::save()
- KarmWindow::slotSelectionChanged()
- KarmWindow::updateStatusBar()
- KarmWindow::updateTime()
- Preferences::autoSaveCheckBoxChanged()
- Preferences::hideOnCloseCheckBoxChanged()
- Preferences::idleDetectCheckBoxChanged()
- Preferences::slotCancel()
- Preferences::slotOk()
- Preferences::timeLogingCheckBoxChanged()
- Task::updateActiveIcon()
\subsection private Private Slots
- AddTaskDialog::enterWhatsThis()
- AddTaskDialog::slotAbsolutePressed()
- AddTaskDialog::slotRelativePressed()
- TDEAccelMenuWatch::removeDeadMenu()
*/
/** \page connections Index of the signal/slot connections
Class | Sender | Sending Type |
Signal | Receiver | Slot |
AddTaskDialog | _absoluteRB | QRadioButton | clicked() | this | slotAbsolutePressed |
AddTaskDialog | _relativeRB | QRadioButton | clicked() | this | slotRelativePressed |
AddTaskDialog | whatsThisBU | QPushButton | clicked() | this | enterWhatsThis |
IdleTimer | _timer | QTimer | timeout() | this | check |
TDEAccelMenuWatch | menu | QPopupMenu | destroyed() | this | removeeDeadMenu |
Karm | this | Karm__QListView | doubleClicked() | this | changeTimer |
Karm | _minuteTimer | QTimer | timeout() | this | minuteUpdate |
Karm | _idleTimer | IdleTimer | extractTime() | this | extractTime |
Karm | _idleTimer | IdleTimer | stopTimer() | this | stopAllTimers |
Karm | _preferences | Preferences | idlenessTimeout() | _idleTimer | setMaxIdle |
Karm | _preferences | Preferences | detectIdleness() | _idleTimer | toggleOverAllIdleDetection |
Karm | _preferences | Preferences | autoSave() | this | autoSaveChanged |
Karm | _preferences | Preferences | autoSavePeriod() | this | autoSavePeriodChanged |
Karm | _autoSaveTimer | QTimer | timeout() | this | save |
Karm | _menu | QPopupMenu | __() | this | startTimer |
Karm | _menu | QPopupMenu | __() | this | stopCurrentTimer |
Karm | this | Karm__QListView | contextMenuRequested() | this | slotRMB |
Preferences | _doAutoSaveW | QCheckBox | clicked() | this | autoSaveCheckboxChanged |
Preferences | _doTimeLogingW | QCheckBox | clicked() | this | timeLogingCheckboxChanged |
Preferences | _doIdleDetectionW | QCheckBox | clicked() | this | idleDetectCheckBoxChanged |
Preferences | __ | Preferences__KDialogBase | __() | __ | slotOk |
Preferences | __ | Preferences__KDialogBase | __() | __ | slotCancel |
KArmWindow | _karm | Karm | sessionTimeChanged() | this | updateTime |
KarmWindow | _karm | Karm__QListView | currentChanged() | this | slotSelectionChanged |
KarmWindow | _karm | Karm__QListView | selectionChanged() | this | slotSelectionChanged |
KarmWindow | _karm | Karm | timerTick() | this | updateTime |
KarmWindow | _karm | Karm | timerActive() | this | setActiveIcon |
KarmWindow | _karm | Karm | timerInactive() | this | setInactiveIcon |
KarmWindow | KStdAction__quit | TDEAction | __() | this | quit |
KarmWindow | KStdAction__print | TDEAction | __() | this | print |
KarmWindow | KStdAction__keyBindings | TDEAction | __() | this | keyBindings |
KarmWindow | KStdAction__preferences | TDEAction | __() | _preferences | showDialog |
KarmWindow | KStdAction__save | TDEAction | __() | _preferences | save |
KarmWindow | actionResetSession | TDEAction | __() | this | resetSessionTime |
KarmWindow | actionStart | TDEAction | __() | _karm | startTimer |
KarmWindow | actionStop | TDEAction | __() | _karm | stopCurrentTimer |
KarmWindow | actionNew | TDEAction | __() | _karm | newTask |
KarmWindow | actionNewSub | TDEAction | __() | _karm | newSubTask |
KarmWindow | actionDelete | TDEAction | __() | _karm | deleteTask |
KarmWindow | actionEdit | TDEAction | __() | _karm | editTask |
Task | _timer | QTimer | timeout() | this | updateActiveIcon |
*/