]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/mainwin.h
Added some icons, reconnected settings, added start of GUI control over
[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                 void SetZoom100(void);
36                 void SetZoom200(void);
37                 void SetZoom300(void);
38                 void ToggleBlur(void);
39
40         private:
41                 void ReadSettings(void);
42                 void WriteSettings(void);
43
44 //      public:
45                 GLWidget * videoWidget;
46                 QTimer * timer;
47                 bool running;
48 //              EditWindow * editWnd;
49 //              CharWindow * charWnd;
50                 QActionGroup * zoomActs;
51
52                 QAction * action;
53                 QAction * quitAppAct;
54                 QAction * x1Act;
55                 QAction * x2Act;
56                 QAction * x3Act;
57                 QAction * blurAct;
58 };
59
60 #endif  // __MAINWIN_H__