blob: 9a041f8de07c62e47b6ed25b45c465b5bd0c037d (
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
|
// license:BSD-3-Clause
// copyright-holders:Andrew Gardner
#ifndef __DEBUG_QT_BREAK_POINTS_WINDOW_H__
#define __DEBUG_QT_BREAK_POINTS_WINDOW_H__
#include <QtGui/QtGui>
#include "debuggerview.h"
#include "windowqt.h"
//============================================================
// The Breakpoints Window.
//============================================================
class BreakpointsWindow : public WindowQt
{
Q_OBJECT
public:
BreakpointsWindow(running_machine* machine, QWidget* parent=NULL);
virtual ~BreakpointsWindow();
private slots:
void typeChanged(QAction* changedTo);
private:
// Widgets
DebuggerView* m_breakpointsView;
};
//=========================================================================
// A way to store the configuration of a window long enough to read/write.
//=========================================================================
class BreakpointsWindowQtConfig : public WindowQtConfig
{
public:
BreakpointsWindowQtConfig() :
WindowQtConfig(WIN_TYPE_BREAK_POINTS),
m_bwType(0)
{
}
~BreakpointsWindowQtConfig() {}
// Settings
int m_bwType;
void buildFromQWidget(QWidget* widget);
void applyToQWidget(QWidget* widget);
void addToXmlDataNode(xml_data_node* node) const;
void recoverFromXmlNode(xml_data_node* node);
};
#endif
|