]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/alpinetab.cpp
Added more developer friendly stuff to Alpine mode.
[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         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:");
23
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");
32
33         QVBoxLayout * layout1 = new QVBoxLayout;
34         layout1->addWidget(label1);
35         layout1->addWidget(label2);
36 //      layout1->addWidget(label3);
37 //      layout1->addWidget(label4);
38
39         QVBoxLayout * layout2 = new QVBoxLayout;
40         layout2->addWidget(edit1);
41         layout2->addWidget(edit2);
42 //      layout2->addWidget(edit3);
43 //      layout2->addWidget(edit4);
44
45         QHBoxLayout * layout3 = new QHBoxLayout;
46         layout3->addLayout(layout1);
47         layout3->addLayout(layout2);
48
49         QVBoxLayout * layout4 = new QVBoxLayout;
50         layout4->addLayout(layout3);
51
52         // Checkboxes...
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
58         layout4->addWidget(writeROM);
59 //      layout4->addWidget(useDSP);
60 //      layout4->addWidget(useHostAudio);
61 //      layout4->addWidget(useUnknownSoftware);
62
63         setLayout(layout4);
64 }
65
66 AlpineTab::~AlpineTab()
67 {
68 }