mirror of
https://github.com/holub/mame
synced 2025-05-06 14:25:54 +03:00
70 lines
1.4 KiB
C++
70 lines
1.4 KiB
C++
#ifndef __DEBUG_QT_DASM_WINDOW_H__
|
|
#define __DEBUG_QT_DASM_WINDOW_H__
|
|
|
|
#include <QtGui/QtGui>
|
|
|
|
#include "debugqtview.h"
|
|
#include "debugqtwindow.h"
|
|
|
|
|
|
//============================================================
|
|
// The Disassembly Window.
|
|
//============================================================
|
|
class DasmWindow : public WindowQt
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DasmWindow(running_machine* machine, QWidget* parent=NULL);
|
|
virtual ~DasmWindow();
|
|
|
|
|
|
private slots:
|
|
void cpuChanged(int index);
|
|
void expressionSubmitted();
|
|
|
|
void toggleBreakpointAtCursor(bool changedTo);
|
|
void runToCursor(bool changedTo);
|
|
void rightBarChanged(QAction* changedTo);
|
|
|
|
|
|
private:
|
|
void populateComboBox();
|
|
|
|
|
|
private:
|
|
// Widgets
|
|
QLineEdit* m_inputEdit;
|
|
QComboBox* m_cpuComboBox;
|
|
DebuggerView* m_dasmView;
|
|
};
|
|
|
|
|
|
//=========================================================================
|
|
// 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(xml_data_node* node) const;
|
|
void recoverFromXmlNode(xml_data_node* node);
|
|
};
|
|
|
|
|
|
#endif
|