Starting to reenable debuggers

This commit is contained in:
Zoe Roux
2021-07-04 22:57:58 +02:00
parent 814729cda7
commit 15fde029a7
29 changed files with 1014 additions and 1168 deletions
+6 -15
View File
@@ -3,21 +3,17 @@
//
#include "HeaderViewer.hpp"
#include "../Utility/Utility.hpp"
#include "../SNES.hpp"
#include "Utility/Utility.hpp"
#include "SNES.hpp"
namespace ComSquare::Debugger
{
HeaderViewer::HeaderViewer(ComSquare::SNES &snes)
: _window(new ClosableWindow<HeaderViewer>(*this, &HeaderViewer::disableDebugger)),
_snes(snes),
_cartridge(*snes.cartridge),
_ui()
: _window(new ClosableWindow([&snes] { snes.disableHeaderViewer(); })),
_snes(snes),
_cartridge(snes.cartridge),
_ui()
{
this->_window->setContextMenuPolicy(Qt::NoContextMenu);
this->_window->setAttribute(Qt::WA_QuitOnClose, false);
this->_window->setAttribute(Qt::WA_DeleteOnClose);
this->_ui.setupUi(this->_window);
this->_ui.nameLineEdit->setText(this->_cartridge.header.gameName.c_str());
std::string memType;
@@ -55,11 +51,6 @@ namespace ComSquare::Debugger
this->_window->show();
}
void HeaderViewer::disableDebugger()
{
this->_snes.disableHeaderViewer();
}
void HeaderViewer::focus()
{
this->_window->activateWindow();