Commit | Line | Data |
---|---|---|
cf76e892 JPM |
1 | // |
2 | // generaltab.cpp: "General" tab on the settings dialog | |
3 | // | |
4 | // Part of the Virtual Jaguar Project | |
5 | // (C) 2011 Underground Software | |
6 | // See the README and GPLv3 files for licensing and warranty information | |
7 | // | |
8 | // JLH = James Hammons <jlhamm@acm.org> | |
9 | // | |
10 | // WHO WHEN WHAT | |
11 | // --- ---------- ------------------------------------------------------------ | |
12 | // JLH 06/23/2011 Created this file | |
13 | ||
14 | #include "generaltab.h" | |
15 | ||
16 | ||
17 | GeneralTab::GeneralTab(QWidget * parent/*= 0*/): QWidget(parent) | |
18 | { | |
19 | // I'm thinking we should scan the bios folder for the 5 known BIOSes, and | |
20 | // just present a radio button to choose between them... | |
21 | // (BIOS is built-in now...) | |
22 | // QLabel * label1 = new QLabel("Boot ROM:"); | |
23 | // QLabel * label2 = new QLabel("CD Boot ROM:"); | |
24 | QLabel * label3 = new QLabel("EEPROMs:"); | |
25 | QLabel * label4 = new QLabel("Software:"); | |
26 | ||
27 | // edit1 = new QLineEdit(""); | |
28 | // edit2 = new QLineEdit(""); | |
29 | edit3 = new QLineEdit(""); | |
30 | edit4 = new QLineEdit(""); | |
31 | // edit1->setPlaceholderText("Boot ROM location"); | |
32 | // edit2->setPlaceholderText("CD Boot ROM location"); | |
33 | edit3->setPlaceholderText("EEPROM path"); | |
34 | edit4->setPlaceholderText("Software path"); | |
35 | ||
36 | QVBoxLayout * layout1 = new QVBoxLayout; | |
37 | // layout1->addWidget(label1); | |
38 | // layout1->addWidget(label2); | |
39 | layout1->addWidget(label3); | |
40 | layout1->addWidget(label4); | |
41 | ||
42 | QVBoxLayout * layout2 = new QVBoxLayout; | |
43 | // layout2->addWidget(edit1); | |
44 | // layout2->addWidget(edit2); | |
45 | layout2->addWidget(edit3); | |
46 | layout2->addWidget(edit4); | |
47 | ||
48 | QHBoxLayout * layout3 = new QHBoxLayout; | |
49 | layout3->addLayout(layout1); | |
50 | layout3->addLayout(layout2); | |
51 | ||
52 | QVBoxLayout * layout4 = new QVBoxLayout; | |
53 | layout4->addLayout(layout3); | |
54 | ||
55 | // Checkboxes... | |
56 | useBIOS = new QCheckBox(tr("Enable Jaguar BIOS")); | |
57 | useGPU = new QCheckBox(tr("Enable GPU")); | |
58 | useDSP = new QCheckBox(tr("Enable DSP")); | |
59 | useFullScreen = new QCheckBox(tr("Start Virtual Jaguar in full screen")); | |
60 | // useHostAudio = new QCheckBox(tr("Enable audio playback (requires DSP)")); | |
61 | useUnknownSoftware = new QCheckBox(tr("Show all files in file chooser")); | |
62 | useFastBlitter = new QCheckBox(tr("Use fast blitter")); | |
63 | ||
64 | layout4->addWidget(useBIOS); | |
65 | layout4->addWidget(useGPU); | |
66 | layout4->addWidget(useDSP); | |
67 | layout4->addWidget(useFullScreen); | |
68 | // layout4->addWidget(useHostAudio); | |
69 | layout4->addWidget(useUnknownSoftware); | |
70 | layout4->addWidget(useFastBlitter); | |
71 | ||
72 | setLayout(layout4); | |
73 | } | |
74 | ||
75 | GeneralTab::~GeneralTab() | |
76 | { | |
77 | } | |
78 | ||
79 | #if 0 | |
80 | vjs.useJoystick = settings.value("useJoystick", false).toBool(); | |
81 | vjs.joyport = settings.value("joyport", 0).toInt(); | |
82 | vjs.frameSkip = settings.value("frameSkip", 0).toInt(); | |
83 | vjs.useJaguarBIOS = settings.value("useJaguarBIOS", false).toBool(); | |
84 | vjs.DSPEnabled = settings.value("DSPEnabled", false).toBool(); | |
85 | vjs.usePipelinedDSP = settings.value("usePipelinedDSP", false).toBool(); | |
86 | vjs.fullscreen = settings.value("fullscreen", false).toBool(); | |
87 | vjs.renderType = settings.value("renderType", 0).toInt(); | |
88 | strcpy(vjs.jagBootPath, settings.value("JagBootROM", "./bios/[BIOS] Atari Jaguar (USA, Europe).zip").toString().toAscii().data()); | |
89 | strcpy(vjs.CDBootPath, settings.value("CDBootROM", "./bios/jagcd.rom").toString().toAscii().data()); | |
90 | strcpy(vjs.EEPROMPath, settings.value("EEPROMs", "./eeproms").toString().toAscii().data()); | |
91 | strcpy(vjs.ROMPath, settings.value("ROMs", "./software").toString().toAscii().data()); | |
92 | #endif |