summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/qt/dasmwindow.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-09-17 06:28:25 +1000
committer Vas Crabb <vas@vastheman.com>2022-09-17 06:31:07 +1000
commitc25428f519d401634d2e7555cc5cc0908efb5b0d (patch)
tree870decebdc57c8c742a8059629225aa923034e53 /src/osd/modules/debugger/qt/dasmwindow.h
parentb64b4ef8bbae5c5745740d0861393a2b37b0fd32 (diff)
Added a crude dark theme for the Win32 debugger.
Also made a start on weaning the Qt debugger off its weird configuation objects. It can now save more view state with less string comparisons on memory labels, but it can't restore all of it yet.
Diffstat (limited to 'src/osd/modules/debugger/qt/dasmwindow.h')
-rw-r--r--src/osd/modules/debugger/qt/dasmwindow.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/osd/modules/debugger/qt/dasmwindow.h b/src/osd/modules/debugger/qt/dasmwindow.h
index fc4ce11d731..c746fd42df7 100644
--- a/src/osd/modules/debugger/qt/dasmwindow.h
+++ b/src/osd/modules/debugger/qt/dasmwindow.h
@@ -3,6 +3,8 @@
#ifndef MAME_DEBUGGER_QT_DASMWINDOW_H
#define MAME_DEBUGGER_QT_DASMWINDOW_H
+#pragma once
+
#include "debuggerview.h"
#include "windowqt.h"
@@ -21,6 +23,9 @@ public:
DasmWindow(running_machine &machine, QWidget *parent = nullptr);
virtual ~DasmWindow();
+protected:
+ virtual void saveConfigurationToNode(util::xml::data_node &node) override;
+
private slots:
void cpuChanged(int index);
void expressionSubmitted();
@@ -55,7 +60,7 @@ class DasmWindowQtConfig : public WindowQtConfig
{
public:
DasmWindowQtConfig() :
- WindowQtConfig(WIN_TYPE_DASM),
+ WindowQtConfig(osd::debugger::WINDOW_TYPE_DISASSEMBLY_VIEWER),
m_cpu(0),
m_rightBar(0)
{
@@ -67,9 +72,7 @@ public:
int m_cpu;
int m_rightBar;
- void buildFromQWidget(QWidget *widget);
void applyToQWidget(QWidget *widget);
- void addToXmlDataNode(util::xml::data_node &node) const;
void recoverFromXmlNode(util::xml::data_node const &node);
};