summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/debugqtview.h
diff options
context:
space:
mode:
author Andrew Gardner <andrew-gardner@users.noreply.github.com>2013-01-16 04:37:30 +0000
committer Andrew Gardner <andrew-gardner@users.noreply.github.com>2013-01-16 04:37:30 +0000
commit7c81353d9c26c35e73c7de44ad9d903671be4a8c (patch)
treeb036500d356adb579f5b7e4c45cd58910d0b63a2 /src/osd/sdl/debugqtview.h
parente04c8a83a235d49e1baac1edc9c6aba84dea2547 (diff)
QT Debugger improvements. [Andrew Gardner]
- Fixed disassembly window not following PC correctly. - Switched font to Courier New since it seems more universal. - Fixed gaps between rendered text characters. - Plumbed mouse handling through the debugger core (clicking selects). - Made the Enter key behave like old SDL debugger; silently steps.
Diffstat (limited to 'src/osd/sdl/debugqtview.h')
-rw-r--r--src/osd/sdl/debugqtview.h35
1 files changed, 21 insertions, 14 deletions
diff --git a/src/osd/sdl/debugqtview.h b/src/osd/sdl/debugqtview.h
index 5deab206dc7..1e926949114 100644
--- a/src/osd/sdl/debugqtview.h
+++ b/src/osd/sdl/debugqtview.h
@@ -8,31 +8,38 @@
class DebuggerView : public QAbstractScrollArea
{
+ Q_OBJECT
+
public:
- DebuggerView(const debug_view_type& type,
- running_machine* machine,
- QWidget* parent=NULL);
- virtual ~DebuggerView() {}
+ DebuggerView(const debug_view_type& type,
+ running_machine* machine,
+ QWidget* parent=NULL);
+ virtual ~DebuggerView() {}
- void paintEvent(QPaintEvent* event);
+ void paintEvent(QPaintEvent* event);
- // Callback to allow MAME to refresh the view
- static void debuggerViewUpdate(debug_view& debugView, void* osdPrivate);
+ // Callback to allow MAME to refresh the view
+ static void debuggerViewUpdate(debug_view& debugView, void* osdPrivate);
- // Setters and accessors
- void setPreferBottom(bool pb) { m_preferBottom = pb; }
- debug_view* view() { return m_view; }
+ // Setters and accessors
+ void setPreferBottom(bool pb) { m_preferBottom = pb; }
+ debug_view* view() { return m_view; }
protected:
- void keyPressEvent(QKeyEvent* event);
+ void keyPressEvent(QKeyEvent* event);
+ void mousePressEvent(QMouseEvent* event);
+
+private slots:
+ void verticalScrollSlot(int value);
+ void horizontalScrollSlot(int value);
private:
- bool m_preferBottom;
+ bool m_preferBottom;
- debug_view* m_view;
- running_machine* m_machine;
+ debug_view* m_view;
+ running_machine* m_machine;
};