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"
30 class KAccelMenuWatch
;
37 class TimetrackerWidget
;
40 * Main window to tie the application together.
43 class MainWindow
: public KParts::MainWindow
52 KAccelMenuWatch
* _watcher
;
54 KAction
* actionKeyBindings
;
55 KAction
* configureAction
;
57 TimetrackerWidget
*mainWidget
;
59 friend class TrayIcon
;
60 ktimetrackerpart
*m_part
;
63 explicit MainWindow( const QString
&icsfile
= "" );
64 virtual ~MainWindow();
67 void slotSetCaption( const QString
& );
68 void setStatusBar( const QString
& );
69 /* quit() has been offloaded to timetrackerwidget */
72 void taskViewCustomContextMenuRequested( const QPoint
& );
75 /* reimp */ void readProperties( const KConfigGroup
&config
);
76 /* reimp */ void saveProperties( KConfigGroup
&config
);
82 #endif // KTIMETRACKER_MAIN_WINDOW_H