- QMenu * menu = menuBar()->addMenu(tr("&File"));
- QToolBar * toolbar = addToolBar(tr("x1"));
- /*QAction */ action = new QAction(tr("Toggle"), this);
- action->setStatusTip(tr("Toggle running state"));
- action->setCheckable(true);
- toolbar->addAction(action);
- connect(action, SIGNAL(triggered()), this, SLOT(ToggleRunState()));
-#if 0
-// createActions();
- newAct = new QAction(QIcon(":/images/new.png"), tr("&New"), this);
- newAct->setShortcuts(QKeySequence::New);
- newAct->setStatusTip(tr("Create a new file"));
- connect(newAct, SIGNAL(triggered()), this, SLOT(newFile()));
-
- openAct = new QAction(QIcon(":/images/open.png"), tr("&Open..."), this);
- openAct->setShortcuts(QKeySequence::Open);
- openAct->setStatusTip(tr("Open an existing file"));
- connect(openAct, SIGNAL(triggered()), this, SLOT(open()));
-
- aboutQtAct = new QAction(tr("About &Qt"), this);
- aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));
- connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
-
-// createMenus();
+ aboutWin = new AboutWindow(this);
+
+ videoWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+
+ // Create actions
+
+ quitAppAct = new QAction(tr("E&xit"), this);
+ quitAppAct->setShortcuts(QKeySequence::Quit);
+ quitAppAct->setStatusTip(tr("Quit Virtual Jaguar"));
+ connect(quitAppAct, SIGNAL(triggered()), this, SLOT(close()));
+
+ powerAct = new QAction(QIcon(":/res/power.png"), tr("&Power"), this);
+ powerAct->setStatusTip(tr("Toggle running state"));
+ powerAct->setCheckable(true);
+ connect(powerAct, SIGNAL(triggered()), this, SLOT(ToggleRunState()));
+
+ zoomActs = new QActionGroup(this);
+
+ x1Act = new QAction(QIcon(":/res/zoom100.png"), tr("Zoom 100%"), zoomActs);
+ x1Act->setStatusTip(tr("Set window zoom to 100%"));
+ x1Act->setCheckable(true);
+ connect(x1Act, SIGNAL(triggered()), this, SLOT(SetZoom100()));
+
+ x2Act = new QAction(QIcon(":/res/zoom200.png"), tr("Zoom 200%"), zoomActs);
+ x2Act->setStatusTip(tr("Set window zoom to 200%"));
+ x2Act->setCheckable(true);
+ connect(x2Act, SIGNAL(triggered()), this, SLOT(SetZoom200()));
+
+ x3Act = new QAction(QIcon(":/res/zoom300.png"), tr("Zoom 300%"), zoomActs);
+ x3Act->setStatusTip(tr("Set window zoom to 300%"));
+ x3Act->setCheckable(true);
+ connect(x3Act, SIGNAL(triggered()), this, SLOT(SetZoom300()));
+
+ tvTypeActs = new QActionGroup(this);
+
+ ntscAct = new QAction(QIcon(":/res/generic.png"), tr("NTSC"), tvTypeActs);
+ ntscAct->setStatusTip(tr("Sets OpenGL rendering to GL_NEAREST"));
+ ntscAct->setCheckable(true);
+ connect(ntscAct, SIGNAL(triggered()), this, SLOT(SetNTSC()));
+
+ palAct = new QAction(QIcon(":/res/generic.png"), tr("PAL"), tvTypeActs);
+ palAct->setStatusTip(tr("Sets OpenGL rendering to GL_NEAREST"));
+ palAct->setCheckable(true);
+ connect(palAct, SIGNAL(triggered()), this, SLOT(SetPAL()));
+
+ blurAct = new QAction(QIcon(":/res/generic.png"), tr("Blur"), this);
+ blurAct->setStatusTip(tr("Sets OpenGL rendering to GL_NEAREST"));
+ blurAct->setCheckable(true);
+ connect(blurAct, SIGNAL(triggered()), this, SLOT(ToggleBlur()));
+
+ aboutAct = new QAction(QIcon(":/res/generic.png"), tr("&About..."), this);
+ aboutAct->setStatusTip(tr("Shows self-serving credits"));
+// aboutAct->setCheckable(true);
+ connect(aboutAct, SIGNAL(triggered()), this, SLOT(ShowAboutWin()));
+
+ // Create menus & toolbars
+