Added new base class for EmuFront dialogs, connected database class to
[emufront] / src / mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3
4 #include <QMainWindow>
5
6 class QAction;
7 class PlatformDialog;
8 class QLabel;
9 class DatabaseManager;
10
11 class MainWindow : public QMainWindow
12 {
13         Q_OBJECT
14
15 public:
16         MainWindow();
17         //~MainWindow()
18
19 protected:
20         void closeEvent(QCloseEvent *event);
21
22 private slots:
23         void configurePlatforms();
24
25 private:
26         void createActions();
27         void createMenus();
28         void createStatusBar();
29         void readSettings();
30         void writeSettings();
31         bool okToContinue();
32         PlatformDialog *platformDialog;
33         QMenu *configMenu;
34         QMenu *fileMenu;
35         QAction *configPlatformAction;  
36         QAction *exitAction;
37         QLabel *messageLabel;
38         DatabaseManager *dbManager;
39
40         // todo ks. s. 46 jatkoa...
41 };
42
43 #endif