Added license information
[emufront] / src / mainwindow.h
1 // EmuFront
2 // Copyright Mikko Keinänen 2010
3 //
4 // This file is part of EmuFront.
5 //
6 //
7 // EmuFront is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // Foobar is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
19
20 #ifndef MAINWINDOW_H
21 #define MAINWINDOW_H
22
23 #include <QMainWindow>
24
25 class QAction;
26 class PlatformDialog;
27 class QLabel;
28 class DatabaseManager;
29
30 class MainWindow : public QMainWindow
31 {
32         Q_OBJECT
33
34 public:
35         MainWindow();
36         //~MainWindow()
37
38 protected:
39         void closeEvent(QCloseEvent *event);
40
41 private slots:
42         void configurePlatforms();
43
44 private:
45         void createActions();
46         void createMenus();
47         void createStatusBar();
48         void readSettings();
49         void writeSettings();
50         bool okToContinue();
51         PlatformDialog *platformDialog;
52         QMenu *configMenu;
53         QMenu *fileMenu;
54         QAction *configPlatformAction;  
55         QAction *exitAction;
56         QLabel *messageLabel;
57         DatabaseManager *dbManager;
58 };
59
60 #endif