2 // alpinetab.cpp: "Alpine" 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 07/15/2011 Created this file
14 #include "alpinetab.h"
17 AlpineTab::AlpineTab(QWidget * parent/*= 0*/): QWidget(parent)
19 QLabel * label1 = new QLabel("ROM to load:");
20 QLabel * label2 = new QLabel("ABS to load:");
21 // QLabel * label3 = new QLabel("EEPROMs:");
22 // QLabel * label4 = new QLabel("Software:");
24 edit1 = new QLineEdit("");
25 edit2 = new QLineEdit("");
26 // edit3 = new QLineEdit("");
27 // edit4 = new QLineEdit("");
28 edit1->setPlaceholderText("ROM to load when Virtual Jaguar loads");
29 edit2->setPlaceholderText("ABS to load when Virtual Jaguar loads");
30 // edit3->setPlaceholderText("EEPROM path");
31 // edit4->setPlaceholderText("Software path");
33 QVBoxLayout * layout1 = new QVBoxLayout;
34 layout1->addWidget(label1);
35 layout1->addWidget(label2);
36 // layout1->addWidget(label3);
37 // layout1->addWidget(label4);
39 QVBoxLayout * layout2 = new QVBoxLayout;
40 layout2->addWidget(edit1);
41 layout2->addWidget(edit2);
42 // layout2->addWidget(edit3);
43 // layout2->addWidget(edit4);
45 QHBoxLayout * layout3 = new QHBoxLayout;
46 layout3->addLayout(layout1);
47 layout3->addLayout(layout2);
49 QVBoxLayout * layout4 = new QVBoxLayout;
50 layout4->addLayout(layout3);
53 writeROM = new QCheckBox(tr("Allow writes to cartridge ROM"));
54 // useDSP = new QCheckBox(tr("Enable DSP"));
55 // useHostAudio = new QCheckBox(tr("Enable audio playback"));
56 // useUnknownSoftware = new QCheckBox(tr("Allow unknown software in file chooser"));
57 // Currently, this is unused, so let's signal this to the user:
58 writeROM->setDisabled(true);
60 layout4->addWidget(writeROM);
61 // layout4->addWidget(useDSP);
62 // layout4->addWidget(useHostAudio);
63 // layout4->addWidget(useUnknownSoftware);
68 AlpineTab::~AlpineTab()