X-Git-Url: http://git.hcoop.net/clinton/Virtual-Jaguar-Rx.git/blobdiff_plain/024bfc4643b56158f3307049bf1bc30ba9376398..ba8e73ab7b8283139ceb9779f58c82936645b38d:/src/debugger/debuggertab.cpp diff --git a/src/debugger/debuggertab.cpp b/src/debugger/debuggertab.cpp index 2a29a40..c5b3a00 100644 --- a/src/debugger/debuggertab.cpp +++ b/src/debugger/debuggertab.cpp @@ -53,31 +53,32 @@ DebuggerTab::~DebuggerTab() } -// Save / Update the settings from the tabs dialog -void DebuggerTab::SetSettings(void) -{ - bool ok; - - //strcpy(vjs.debuggerROMPath, debuggerTab->edit1->text().toUtf8().data()); - //strcpy(vjs.absROMPath, debuggerTab->edit2->text().toUtf8().data()); - vjs.nbrdisasmlines = edit3->text().toUInt(&ok, 10); - //vjs.allowWritesToROM = debuggerTab->writeROM->isChecked(); - vjs.displayHWlabels = displayHWlabels->isChecked(); - vjs.disasmopcodes = disasmopcodes->isChecked(); - vjs.displayFullSourceFilename = displayFullSourceFilename->isChecked(); -} - - -// Load / Update the tabs dialog from the settings -void DebuggerTab::GetSettings(void) -{ - QVariant v(vjs.nbrdisasmlines); - //debuggerTab->edit1->setText(vjs.debuggerROMPath); - //debuggerTab->edit2->setText(vjs.absROMPath); - edit3->setText(v.toString()); - //debuggerTab->writeROM->setChecked(vjs.allowWritesToROM - displayHWlabels->setChecked(vjs.displayHWlabels); - disasmopcodes->setChecked(vjs.disasmopcodes); - displayFullSourceFilename->setChecked(vjs.displayFullSourceFilename); -} - +// Save / Update the settings from the tabs dialog +void DebuggerTab::SetSettings(void) +{ + bool ok; + + //strcpy(vjs.debuggerROMPath, debuggerTab->edit1->text().toUtf8().data()); + strcpy(vjs.debuggerROMPath, vjs.alpineROMPath); + //strcpy(vjs.absROMPath, debuggerTab->edit2->text().toUtf8().data()); + vjs.nbrdisasmlines = edit3->text().toUInt(&ok, 10); + //vjs.allowWritesToROM = debuggerTab->writeROM->isChecked(); + vjs.displayHWlabels = displayHWlabels->isChecked(); + vjs.disasmopcodes = disasmopcodes->isChecked(); + vjs.displayFullSourceFilename = displayFullSourceFilename->isChecked(); +} + + +// Load / Update the tabs dialog from the settings +void DebuggerTab::GetSettings(void) +{ + QVariant v(vjs.nbrdisasmlines); + //debuggerTab->edit1->setText(vjs.debuggerROMPath); + //debuggerTab->edit2->setText(vjs.absROMPath); + edit3->setText(v.toString()); + //debuggerTab->writeROM->setChecked(vjs.allowWritesToROM + displayHWlabels->setChecked(vjs.displayHWlabels); + disasmopcodes->setChecked(vjs.disasmopcodes); + displayFullSourceFilename->setChecked(vjs.displayFullSourceFilename); +} +