]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/mainwin.h
Fixed GUI to be able to load carts, updated documentation.
[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 //      public slots:
44                 void LoadSoftware(QString);
45
46         private:
47                 void ResizeMainWindow(void);
48                 void ReadSettings(void);
49                 void WriteSettings(void);
50
51 //      public:
52                 GLWidget * videoWidget;
53                 AboutWindow * aboutWin;
54                 FilePickerWindow * filePickWin;
55                 QTimer * timer;
56                 bool running;
57                 int zoomLevel;
58                 bool showUntunedTankCircuit;
59
60                 QMenu * fileMenu;
61                 QMenu * helpMenu;
62                 QToolBar * toolbar;
63
64                 QActionGroup * zoomActs;
65                 QActionGroup * tvTypeActs;
66
67                 QAction * quitAppAct;
68                 QAction * powerAct;
69                 QAction * x1Act;
70                 QAction * x2Act;
71                 QAction * x3Act;
72                 QAction * ntscAct;
73                 QAction * palAct;
74                 QAction * blurAct;
75                 QAction * aboutAct;
76                 QAction * filePickAct;
77 };
78
79 #endif  // __MAINWIN_H__