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 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("Windows refresh:");
22 // QLabel * label3 = new QLabel("EEPROMs:");
23 // QLabel * label4 = new QLabel("Software:");
25 edit1
= new QLineEdit("");
26 edit2
= new QLineEdit("");
27 edit3
= new QLineEdit("");
28 // edit3 = new QLineEdit("");
29 // edit4 = new QLineEdit("");
30 edit1
->setPlaceholderText("ROM to load when Virtual Jaguar loads");
31 edit2
->setPlaceholderText("ABS to load when Virtual Jaguar loads");
32 edit3
->setPlaceholderText("Windows refresh rate");
33 // edit3->setPlaceholderText("EEPROM path");
34 // edit4->setPlaceholderText("Software path");
36 QVBoxLayout
* layout1
= new QVBoxLayout
;
37 layout1
->addWidget(label1
);
38 layout1
->addWidget(label2
);
39 layout1
->addWidget(label3
);
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(edit3);
48 // layout2->addWidget(edit4);
50 QHBoxLayout
* layout3
= new QHBoxLayout
;
51 layout3
->addLayout(layout1
);
52 layout3
->addLayout(layout2
);
54 QVBoxLayout
* layout4
= new QVBoxLayout
;
55 layout4
->addLayout(layout3
);
58 writeROM
= new QCheckBox(tr("Allow writes to cartridge ROM"));
59 // useDSP = new QCheckBox(tr("Enable DSP"));
60 // useHostAudio = new QCheckBox(tr("Enable audio playback"));
61 // useUnknownSoftware = new QCheckBox(tr("Allow unknown software in file chooser"));
62 // Currently, this is unused, so let's signal this to the user:
63 writeROM
->setDisabled(true);
65 layout4
->addWidget(writeROM
);
66 // layout4->addWidget(useDSP);
67 // layout4->addWidget(useHostAudio);
68 // layout4->addWidget(useUnknownSoftware);
73 AlpineTab::~AlpineTab()