Fix typo
[kdepim.git] / ktimetracker / mainwindow.h
blob6991f9941be677bf3d03fd05b7883476b04d81ef
1 /*
2 * Copyright (C) 2003 by Scott Monachello <smonach@cox.net>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the
16 * Free Software Foundation, Inc.
17 * 51 Franklin Street, Fifth Floor
18 * Boston, MA 02110-1301 USA.
22 #ifndef KTIMETRACKER_MAIN_WINDOW_H
23 #define KTIMETRACKER_MAIN_WINDOW_H
25 #include <KParts/MainWindow>
26 #include "ktimetrackerpart.h"
27 #include "reportcriteria.h"
29 class KAccel;
30 class KAccelMenuWatch;
31 class KAction;
32 class TrayIcon;
33 class QPoint;
34 class QString;
36 class Task;
37 class TimetrackerWidget;
39 /**
40 * Main window to tie the application together.
43 class MainWindow : public KParts::MainWindow
45 Q_OBJECT
47 private:
48 void makeMenus();
49 void setupActions();
51 KAccel* _accel;
52 KAccelMenuWatch* _watcher;
53 TrayIcon* _tray;
54 KAction* actionKeyBindings;
55 KAction* configureAction;
57 TimetrackerWidget *mainWidget;
59 friend class TrayIcon;
60 ktimetrackerpart *m_part;
62 public:
63 explicit MainWindow( const QString &icsfile = "" );
64 virtual ~MainWindow();
66 public Q_SLOTS:
67 void slotSetCaption( const QString& );
68 void setStatusBar( const QString& );
69 /* quit() has been offloaded to timetrackerwidget */
70 protected Q_SLOTS:
71 void keyBindings();
72 void taskViewCustomContextMenuRequested( const QPoint& );
74 protected:
75 /* reimp */ void readProperties( const KConfigGroup &config );
76 /* reimp */ void saveProperties( KConfigGroup &config );
77 void saveGeometry();
78 void loadGeometry();
79 bool queryClose();
82 #endif // KTIMETRACKER_MAIN_WINDOW_H