summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/qt/dasmwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/qt/dasmwindow.h')
-rw-r--r--src/osd/modules/debugger/qt/dasmwindow.h43
1 files changed, 17 insertions, 26 deletions
diff --git a/src/osd/modules/debugger/qt/dasmwindow.h b/src/osd/modules/debugger/qt/dasmwindow.h
index fc4ce11d731..df3fc0699a8 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"
@@ -10,6 +12,8 @@
#include <QtWidgets/QLineEdit>
+namespace osd::debugger::qt {
+
//============================================================
// The Disassembly Window.
//============================================================
@@ -18,12 +22,21 @@ class DasmWindow : public WindowQt
Q_OBJECT
public:
- DasmWindow(running_machine &machine, QWidget *parent = nullptr);
+ DasmWindow(DebuggerQt &debugger, QWidget *parent = nullptr);
virtual ~DasmWindow();
+ virtual void restoreConfiguration(util::xml::data_node const &node) override;
+
+protected:
+ virtual void saveConfigurationToNode(util::xml::data_node &node) override;
+
+ // Used to intercept the user hitting the up arrow in the input widget
+ virtual bool eventFilter(QObject *obj, QEvent *event) override;
+
private slots:
void cpuChanged(int index);
void expressionSubmitted();
+ void expressionEdited(QString const &text);
void toggleBreakpointAtCursor(bool changedTo);
void enableBreakpointAtCursor(bool changedTo);
@@ -45,33 +58,11 @@ private:
QAction *m_breakpointToggleAct;
QAction *m_breakpointEnableAct;
QAction *m_runToCursorAct;
-};
-
-//=========================================================================
-// A way to store the configuration of a window long enough to read/write.
-//=========================================================================
-class DasmWindowQtConfig : public WindowQtConfig
-{
-public:
- DasmWindowQtConfig() :
- WindowQtConfig(WIN_TYPE_DASM),
- m_cpu(0),
- m_rightBar(0)
- {
- }
-
- ~DasmWindowQtConfig() {}
-
- // Settings
- 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);
+ // Expression history
+ CommandHistory m_inputHistory;
};
+} // namespace osd::debugger::qt
#endif // MAME_DEBUGGER_QT_DASMWINDOW_H