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