]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/mainwin.h
More GUI fill in, new About box
[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 AboutWindow;
18 //class EditWindow;
19 //class CharWindow;
20
21 class MainWin: public QMainWindow
22 {
23         // All Qt apps require this macro for signal/slot functionality to work
24         Q_OBJECT
25
26         public:
27                 MainWin();
28
29         protected:
30                 void closeEvent(QCloseEvent * event);
31
32         private slots:
33                 void Open(void);
34                 void Timer(void);
35                 void ToggleRunState(void);
36                 void SetZoom100(void);
37                 void SetZoom200(void);
38                 void SetZoom300(void);
39                 void SetNTSC(void);
40                 void SetPAL(void);
41                 void ToggleBlur(void);
42                 void ShowAboutWin(void);
43
44         private:
45                 void ResizeMainWindow(void);
46                 void ReadSettings(void);
47                 void WriteSettings(void);
48
49 //      public:
50                 GLWidget * videoWidget;
51                 AboutWindow * aboutWin;
52                 QTimer * timer;
53                 bool running;
54                 int zoomLevel;
55
56                 QMenu * fileMenu;
57                 QMenu * helpMenu;
58
59                 QActionGroup * zoomActs;
60                 QActionGroup * tvTypeActs;
61
62                 QAction * quitAppAct;
63                 QAction * powerAct;
64                 QAction * x1Act;
65                 QAction * x2Act;
66                 QAction * x3Act;
67                 QAction * ntscAct;
68                 QAction * palAct;
69                 QAction * blurAct;
70                 QAction * aboutAct;
71 };
72
73 #endif  // __MAINWIN_H__