mirror of
https://github.com/holub/mame
synced 2025-05-06 14:25:54 +03:00
47 lines
873 B
C++
47 lines
873 B
C++
#ifndef __DEBUG_QT_VIEW_H__
|
|
#define __DEBUG_QT_VIEW_H__
|
|
|
|
#include <QtGui/QtGui>
|
|
|
|
#include "debug/debugvw.h"
|
|
|
|
|
|
class DebuggerView : public QAbstractScrollArea
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DebuggerView(const debug_view_type& type,
|
|
running_machine* machine,
|
|
QWidget* parent=NULL);
|
|
virtual ~DebuggerView();
|
|
|
|
void paintEvent(QPaintEvent* event);
|
|
|
|
// 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; }
|
|
|
|
|
|
protected:
|
|
void keyPressEvent(QKeyEvent* event);
|
|
void mousePressEvent(QMouseEvent* event);
|
|
|
|
private slots:
|
|
void verticalScrollSlot(int value);
|
|
void horizontalScrollSlot(int value);
|
|
|
|
|
|
private:
|
|
bool m_preferBottom;
|
|
|
|
debug_view* m_view;
|
|
running_machine* m_machine;
|
|
};
|
|
|
|
|
|
#endif
|