Splitting the debug window of the component to allow quick change of a component

This commit is contained in:
Anonymus Raccoon
2020-03-20 16:41:45 +01:00
parent acf2807dc6
commit ea19186269
18 changed files with 407 additions and 248 deletions

View File

@@ -55,6 +55,10 @@ namespace ComSquare::Renderer
apuDebugger->setShortcut(Qt::Key_F4);
QMainWindow::connect(apuDebugger, &QAction::triggered, this->_sfWidget.get(), &QtFullSFML::enableDebugAPU);
debugger->addAction(apuDebugger);
QAction *busDebugger = new QAction("Memory bus Viewer", &this->_window);
busDebugger->setShortcut(Qt::Key_F5);
QMainWindow::connect(busDebugger, &QAction::triggered, this->_sfWidget.get(), &QtFullSFML::enableDebugBus);
debugger->addAction(busDebugger);
this->_window.show();
}
@@ -110,4 +114,9 @@ namespace ComSquare::Renderer
{
this->_snes.enableAPUDebugging();
}
void QtFullSFML::enableDebugBus()
{
this->_snes.enableMemoryBusDebugging();
}
}