| 1 | // |
| 2 | // debuggertab.cpp: "Debugger" tab on the settings dialog |
| 3 | // |
| 4 | // by Jean-Paul Mari |
| 5 | // |
| 6 | // JPM = Jean-Paul Mari <djipi.mari@gmail.com> |
| 7 | // |
| 8 | // WHO WHEN WHAT |
| 9 | // --- ---------- ------------------------------------------------------------ |
| 10 | // JPM 06/19/2016 Created this file |
| 11 | // JPM 06/19/2016 Soft debugger support |
| 12 | |
| 13 | #include "debuggertab.h" |
| 14 | |
| 15 | |
| 16 | DebuggerTab::DebuggerTab(QWidget * parent/*= 0*/): QWidget(parent) |
| 17 | { |
| 18 | QLabel * label3 = new QLabel("Disassembly lines:"); |
| 19 | edit3 = new QLineEdit(""); |
| 20 | edit3->setPlaceholderText("Number of disassembly lines"); |
| 21 | QVBoxLayout * layout1 = new QVBoxLayout; |
| 22 | layout1->addWidget(label3); |
| 23 | |
| 24 | QVBoxLayout * layout2 = new QVBoxLayout; |
| 25 | layout2->addWidget(edit3); |
| 26 | |
| 27 | QHBoxLayout * layout3 = new QHBoxLayout; |
| 28 | layout3->addLayout(layout1); |
| 29 | layout3->addLayout(layout2); |
| 30 | |
| 31 | QVBoxLayout * layout4 = new QVBoxLayout; |
| 32 | layout4->addLayout(layout3); |
| 33 | |
| 34 | // Checkboxes... |
| 35 | displayHWlabels = new QCheckBox(tr("Display HW labels")); |
| 36 | disasmopcodes = new QCheckBox(tr("Display M68000 opcodes")); |
| 37 | displayFullSourceFilename = new QCheckBox(tr("Display source filename")); |
| 38 | disasmopcodes->setDisabled(false); |
| 39 | displayHWlabels->setDisabled(false); |
| 40 | displayFullSourceFilename->setDisabled(false); |
| 41 | |
| 42 | layout4->addWidget(disasmopcodes); |
| 43 | layout4->addWidget(displayHWlabels); |
| 44 | layout4->addWidget(displayFullSourceFilename); |
| 45 | |
| 46 | setLayout(layout4); |
| 47 | } |
| 48 | |
| 49 | |
| 50 | DebuggerTab::~DebuggerTab() |
| 51 | { |
| 52 | } |