]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/mainwin.h
5f170dbdec2609dfbe8a74fadf5d82d2412f0177
[virtualjaguar] / src / gui / mainwin.h
1 //
2 // mainwin.h: Header file
3 //
4 // by James L. Hammons
5 // (C) 2010 Underground Software
6 //
7
8 #ifndef __MAINWIN_H__
9 #define __MAINWIN_H__
10
11 //Hrm. uh??? I thought this wasn't the way to do this stuff...???
12 #include <QtGui>
13
14 // Forward declarations
15
16 class GLWidget;
17 //class EditWindow;
18 //class CharWindow;
19
20 class MainWin: public QMainWindow
21 {
22         // All Qt apps require this macro for signal/slot functionality to work
23         Q_OBJECT
24
25         public:
26                 MainWin();
27
28         protected:
29                 void closeEvent(QCloseEvent * event);
30
31         private slots:
32                 void Open(void);
33                 void Timer(void);
34                 void ToggleRunState(void);
35
36         private:
37                 void ReadSettings(void);
38                 void WriteSettings(void);
39
40 //      public:
41                 GLWidget * videoWidget;
42                 QTimer * timer;
43                 bool running;
44 //              EditWindow * editWnd;
45 //              CharWindow * charWnd;
46                 QAction * action;
47 };
48
49 #endif  // __MAINWIN_H__