karm Library API Documentation

mainwindow.h

00001 #ifndef KARM_MAIN_WINDOW_H
00002 #define KARM_MAIN_WINDOW_H
00003 
00004 #include <kmainwindow.h>
00005 
00006 class QListViewItem;
00007 class QPoint;
00008 
00009 class KAccel;
00010 class KDialogBase;
00011 
00012 class KAccelMenuWatch;
00013 class KarmTray;
00014 class Preferences;
00015 class TaskView;
00016 class PrintDialog;
00017 
00022 class MainWindow : public KMainWindow
00023 {
00024   Q_OBJECT
00025 
00026   private:
00027     KAccel          *_accel;
00028     KAccelMenuWatch *_watcher;
00029     TaskView        *_taskView;
00030     long            _totalSum;
00031     long            _sessionSum;
00032     Preferences     *_preferences;
00033     KarmTray        *_tray;
00034 
00035   public:
00036     MainWindow();
00037     virtual ~MainWindow();
00038 
00039   protected slots:
00040     void keyBindings();
00041     void startNewSession();
00042     void resetAllTimes();
00043     void updateTime( long, long );
00044     void updateStatusBar();
00045     void save();
00046     void quit();
00047     void print();
00048     void slotSelectionChanged();
00049     void contextMenuRequest( QListViewItem*, const QPoint&, int );
00050     void enableStopAll();
00051     void disableStopAll();
00052 //    void timeLoggingChanged( bool on );
00053 
00054   protected:
00055     void startStatusBar();
00056     virtual void saveProperties( KConfig* );
00057     void saveGeometry();
00058     void loadGeometry();
00059     bool queryClose();
00060 
00061   private:
00062     void makeMenus();
00063 
00064     KDialogBase *dialog;
00065     KAction* actionStart;
00066     KAction* actionStop;
00067     KAction* actionStopAll;
00068     KAction* actionDelete;
00069     KAction* actionEdit;
00070 //    KAction* actionAddComment;
00071     KAction* actionMarkAsComplete;
00072     KAction* actionPreferences;
00073     KAction* actionClipTotals;
00074     KAction* actionClipHistory;
00075 
00076     friend class KarmTray;
00077 };
00078 
00079 #endif // KARM_MAIN_WINDOW_H
KDE Logo
This file is part of the documentation for karm Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:52 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003