blob: df3fc0699a86769f9658972f16cdce298eac88ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
// license:BSD-3-Clause
// copyright-holders:Andrew Gardner
#ifndef MAME_DEBUGGER_QT_DASMWINDOW_H
#define MAME_DEBUGGER_QT_DASMWINDOW_H
#pragma once
#include "debuggerview.h"
#include "windowqt.h"
#include <QtWidgets/QComboBox>
#include <QtWidgets/QLineEdit>
namespace osd::debugger::qt {
//============================================================
// The Disassembly Window.
//============================================================
class DasmWindow : public WindowQt
{
Q_OBJECT
public:
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);
void runToCursor(bool changedTo);
void rightBarChanged(QAction *changedTo);
void dasmViewUpdated();
private:
void populateComboBox();
void setToCurrentCpu();
// Widgets
QLineEdit *m_inputEdit;
QComboBox *m_cpuComboBox;
DebuggerView *m_dasmView;
// Menu items
QAction *m_breakpointToggleAct;
QAction *m_breakpointEnableAct;
QAction *m_runToCursorAct;
// Expression history
CommandHistory m_inputHistory;
};
} // namespace osd::debugger::qt
#endif // MAME_DEBUGGER_QT_DASMWINDOW_H
|