2 // generaltab.cpp: "General" tab on the settings dialog
4 // Part of the Virtual Jaguar Project
5 // (C) 2011 Underground Software
6 // See the README and GPLv3 files for licensing and warranty information
8 // JLH = James L. Hammons <jlhamm@acm.org>
11 // --- ---------- ------------------------------------------------------------
12 // JLH 06/23/2011 Created this file
14 #include "generaltab.h"
17 GeneralTab::GeneralTab(QWidget * parent/*= 0*/): QWidget(parent)
19 // antialiasChk = new QCheckBox(tr("Use Qt's built-in antialiasing"));
21 // I'm thinking we should scan the bios folder for the 5 known BIOSes, and
22 // just present a radio button to choose between them...
23 QLabel * label1 = new QLabel("Boot ROM:");
24 QLabel * label2 = new QLabel("CD Boot ROM:");
25 QLabel * label3 = new QLabel("EEPROMs:");
26 QLabel * label4 = new QLabel("Software:");
28 edit1 = new QLineEdit("");
29 edit2 = new QLineEdit("");
30 edit3 = new QLineEdit("");
31 edit4 = new QLineEdit("");
32 edit1->setPlaceholderText("Boot ROM location");
33 edit2->setPlaceholderText("CD Boot ROM location");
34 edit3->setPlaceholderText("EEPROM path");
35 edit4->setPlaceholderText("Software path");
37 QVBoxLayout * layout1 = new QVBoxLayout;
38 layout1->addWidget(label1);
39 layout1->addWidget(label2);
40 layout1->addWidget(label3);
41 layout1->addWidget(label4);
43 QVBoxLayout * layout2 = new QVBoxLayout;
44 layout2->addWidget(edit1);
45 layout2->addWidget(edit2);
46 layout2->addWidget(edit3);
47 layout2->addWidget(edit4);
49 QHBoxLayout * layout3 = new QHBoxLayout;
50 layout3->addLayout(layout1);
51 layout3->addLayout(layout2);
56 GeneralTab::~GeneralTab()
61 vjs.useJoystick = settings.value("useJoystick", false).toBool();
62 vjs.joyport = settings.value("joyport", 0).toInt();
63 vjs.frameSkip = settings.value("frameSkip", 0).toInt();
64 vjs.useJaguarBIOS = settings.value("useJaguarBIOS", false).toBool();
65 vjs.DSPEnabled = settings.value("DSPEnabled", false).toBool();
66 vjs.usePipelinedDSP = settings.value("usePipelinedDSP", false).toBool();
67 vjs.fullscreen = settings.value("fullscreen", false).toBool();
68 vjs.renderType = settings.value("renderType", 0).toInt();
69 strcpy(vjs.jagBootPath, settings.value("JagBootROM", "./bios/[BIOS] Atari Jaguar (USA, Europe).zip").toString().toAscii().data());
70 strcpy(vjs.CDBootPath, settings.value("CDBootROM", "./bios/jagcd.rom").toString().toAscii().data());
71 strcpy(vjs.EEPROMPath, settings.value("EEPROMs", "./eeproms").toString().toAscii().data());
72 strcpy(vjs.ROMPath, settings.value("ROMs", "./software").toString().toAscii().data());