diff options
author | 2021-01-28 02:59:43 +1100 | |
---|---|---|
committer | 2021-01-28 02:59:43 +1100 | |
commit | 83c9637635c575972c039d7d63a48d788e41ba34 (patch) | |
tree | 59bad3ada8a0f0f61bf503da21acef0f237d4d6b /src/osd/modules/debugger/qt/dasmwindow.h | |
parent | 832acf5731d68ca411b5fb358ddb4e79ef0faffa (diff) |
-Qt debugger updates:
* Added context menu with Copy Visible and Paste commands to debug views (partially addresses #6066).
* Made memory view last PC display a context menu item.
* Fixed crash on right-clicking a memory view showing something other than an address space.
-debugger: Fixed commas in dumpkbd output.
Diffstat (limited to 'src/osd/modules/debugger/qt/dasmwindow.h')
-rw-r--r-- | src/osd/modules/debugger/qt/dasmwindow.h | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/src/osd/modules/debugger/qt/dasmwindow.h b/src/osd/modules/debugger/qt/dasmwindow.h index 9b73fed4534..fc4ce11d731 100644 --- a/src/osd/modules/debugger/qt/dasmwindow.h +++ b/src/osd/modules/debugger/qt/dasmwindow.h @@ -1,14 +1,14 @@ // license:BSD-3-Clause // copyright-holders:Andrew Gardner -#ifndef __DEBUG_QT_DASM_WINDOW_H__ -#define __DEBUG_QT_DASM_WINDOW_H__ - -#include <QtWidgets/QLineEdit> -#include <QtWidgets/QComboBox> +#ifndef MAME_DEBUGGER_QT_DASMWINDOW_H +#define MAME_DEBUGGER_QT_DASMWINDOW_H #include "debuggerview.h" #include "windowqt.h" +#include <QtWidgets/QComboBox> +#include <QtWidgets/QLineEdit> + //============================================================ // The Disassembly Window. @@ -18,10 +18,9 @@ class DasmWindow : public WindowQt Q_OBJECT public: - DasmWindow(running_machine* machine, QWidget* parent=nullptr); + DasmWindow(running_machine &machine, QWidget *parent = nullptr); virtual ~DasmWindow(); - private slots: void cpuChanged(int index); void expressionSubmitted(); @@ -29,25 +28,23 @@ private slots: void toggleBreakpointAtCursor(bool changedTo); void enableBreakpointAtCursor(bool changedTo); void runToCursor(bool changedTo); - void rightBarChanged(QAction* changedTo); + void rightBarChanged(QAction *changedTo); void dasmViewUpdated(); - private: void populateComboBox(); void setToCurrentCpu(); - // Widgets - QLineEdit* m_inputEdit; - QComboBox* m_cpuComboBox; - DebuggerView* m_dasmView; + QLineEdit *m_inputEdit; + QComboBox *m_cpuComboBox; + DebuggerView *m_dasmView; // Menu items - QAction* m_breakpointToggleAct; - QAction* m_breakpointEnableAct; - QAction* m_runToCursorAct; + QAction *m_breakpointToggleAct; + QAction *m_breakpointEnableAct; + QAction *m_runToCursorAct; }; @@ -70,11 +67,11 @@ public: int m_cpu; int m_rightBar; - void buildFromQWidget(QWidget* widget); - void applyToQWidget(QWidget* widget); + void buildFromQWidget(QWidget *widget); + void applyToQWidget(QWidget *widget); void addToXmlDataNode(util::xml::data_node &node) const; void recoverFromXmlNode(util::xml::data_node const &node); }; -#endif +#endif // MAME_DEBUGGER_QT_DASMWINDOW_H |