blob: 68ab910fe483415294d96ca251ee75920e5a49be (
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
|
// license:BSD-3-Clause
// copyright-holders:Andrew Gardner
#ifndef MAME_DEBUGGER_QT_DEVICEINFORMATIONWINDOW_H
#define MAME_DEBUGGER_QT_DEVICEINFORMATIONWINDOW_H
#pragma once
#include "windowqt.h"
namespace osd::debugger::qt {
//============================================================
// The Device Information Window.
//============================================================
class DeviceInformationWindow : public WindowQt
{
Q_OBJECT
public:
DeviceInformationWindow(running_machine &machine, device_t *device = nullptr, QWidget* parent=nullptr);
virtual ~DeviceInformationWindow();
void set_device(const char *tag);
protected:
virtual void saveConfigurationToNode(util::xml::data_node &node) override;
private:
device_t *m_device;
void fill_device_information();
};
//=========================================================================
// A way to store the configuration of a window long enough to read/write.
//=========================================================================
class DeviceInformationWindowQtConfig : public WindowQtConfig
{
public:
std::string m_device_tag;
DeviceInformationWindowQtConfig() :
WindowQtConfig(WINDOW_TYPE_DEVICE_INFO_VIEWER)
{
}
~DeviceInformationWindowQtConfig() {}
void applyToQWidget(QWidget *widget);
void recoverFromXmlNode(util::xml::data_node const &node);
};
} // namespace osd::debugger::qt
#endif // MAME_DEBUGGER_QT_DEVICEINFORMATIONWINDOW_H
|