mirror of
https://github.com/Michael-Prince-Sharpe/bsnes-classic.git
synced 2025-04-02 10:21:42 -04:00
29 lines
893 B
C++
29 lines
893 B
C++
#include "debugger-options.moc"
|
|
DebuggerOptions *debuggerOptions;
|
|
|
|
DebuggerOptions::DebuggerOptions() {
|
|
setObjectName("debugger-options");
|
|
setWindowTitle("Debugger Options");
|
|
setGeometryString(&config().geometry.debuggerOptions);
|
|
application.windowList.append(this);
|
|
|
|
layout = new QVBoxLayout;
|
|
layout->setSizeConstraint(QLayout::SetFixedSize);
|
|
layout->setMargin(Style::WindowMargin);
|
|
layout->setSpacing(Style::WidgetSpacing);
|
|
setLayout(layout);
|
|
|
|
cacheUsageBox = new QCheckBox("Cache memory usage table to disk");
|
|
layout->addWidget(cacheUsageBox);
|
|
|
|
synchronize();
|
|
connect(cacheUsageBox, SIGNAL(stateChanged(int)), this, SLOT(toggleCacheUsage()));
|
|
}
|
|
|
|
void DebuggerOptions::synchronize() {
|
|
cacheUsageBox->setChecked(config().debugger.cacheUsageToDisk);
|
|
}
|
|
|
|
void DebuggerOptions::toggleCacheUsage() {
|
|
config().debugger.cacheUsageToDisk = cacheUsageBox->isChecked();
|
|
}
|