]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/alpinetab.cpp
Fixed software loading to load independently of Jaguar ROM space, added new
[virtualjaguar] / src / gui / alpinetab.cpp
1 //
2 // alpinetab.cpp: "Alpine" 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 L. Hammons <jlhamm@acm.org>
9 //
10 // WHO  WHEN        WHAT
11 // ---  ----------  ------------------------------------------------------------
12 // JLH  07/15/2011  Created this file
13
14 #include "alpinetab.h"
15
16
17 AlpineTab::AlpineTab(QWidget * parent/*= 0*/): QWidget(parent)
18 {
19 //      antialiasChk = new QCheckBox(tr("Use Qt's built-in antialiasing"));
20
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("ROM to load:");
24 //      QLabel * label2 = new QLabel("CD Boot ROM:");
25 //      QLabel * label3 = new QLabel("EEPROMs:");
26 //      QLabel * label4 = new QLabel("Software:");
27
28         edit1 = new QLineEdit("");
29 //      edit2 = new QLineEdit("");
30 //      edit3 = new QLineEdit("");
31 //      edit4 = new QLineEdit("");
32         edit1->setPlaceholderText("ROM to load when Virtual Jaguar loads");
33 //      edit2->setPlaceholderText("CD Boot ROM location");
34 //      edit3->setPlaceholderText("EEPROM path");
35 //      edit4->setPlaceholderText("Software path");
36
37         QVBoxLayout * layout1 = new QVBoxLayout;
38         layout1->addWidget(label1);
39 //      layout1->addWidget(label2);
40 //      layout1->addWidget(label3);
41 //      layout1->addWidget(label4);
42
43         QVBoxLayout * layout2 = new QVBoxLayout;
44         layout2->addWidget(edit1);
45 //      layout2->addWidget(edit2);
46 //      layout2->addWidget(edit3);
47 //      layout2->addWidget(edit4);
48
49         QHBoxLayout * layout3 = new QHBoxLayout;
50         layout3->addLayout(layout1);
51         layout3->addLayout(layout2);
52
53         QVBoxLayout * layout4 = new QVBoxLayout;
54         layout4->addLayout(layout3);
55
56         // Checkboxes...
57         writeROM         = new QCheckBox(tr("Allow writes to cartridge ROM"));
58 //      useDSP             = new QCheckBox(tr("Enable DSP"));
59 //      useHostAudio       = new QCheckBox(tr("Enable audio playback"));
60 //      useUnknownSoftware = new QCheckBox(tr("Allow unknown software in file chooser"));
61
62         layout4->addWidget(writeROM);
63 //      layout4->addWidget(useDSP);
64 //      layout4->addWidget(useHostAudio);
65 //      layout4->addWidget(useUnknownSoftware);
66
67         setLayout(layout4);
68 }
69
70 AlpineTab::~AlpineTab()
71 {
72 }