summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/qt/deviceinformationwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/qt/deviceinformationwindow.h')
-rw-r--r--src/osd/modules/debugger/qt/deviceinformationwindow.h38
1 files changed, 12 insertions, 26 deletions
diff --git a/src/osd/modules/debugger/qt/deviceinformationwindow.h b/src/osd/modules/debugger/qt/deviceinformationwindow.h
index c7bfa68527d..e036a76e782 100644
--- a/src/osd/modules/debugger/qt/deviceinformationwindow.h
+++ b/src/osd/modules/debugger/qt/deviceinformationwindow.h
@@ -3,8 +3,13 @@
#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.
//============================================================
@@ -13,11 +18,15 @@ class DeviceInformationWindow : public WindowQt
Q_OBJECT
public:
- DeviceInformationWindow(running_machine &machine, device_t *device = nullptr, QWidget* parent=nullptr);
+ DeviceInformationWindow(DebuggerQt &debugger, device_t *device = nullptr, QWidget* parent=nullptr);
virtual ~DeviceInformationWindow();
void set_device(const char *tag);
- const char *device_tag() const;
+
+ virtual void restoreConfiguration(util::xml::data_node const &node) override;
+
+protected:
+ virtual void saveConfigurationToNode(util::xml::data_node &node) override;
private:
device_t *m_device;
@@ -25,29 +34,6 @@ private:
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(WIN_TYPE_DEVICE_INFORMATION)
- {
- }
-
- ~DeviceInformationWindowQtConfig() {}
-
- void buildFromQWidget(QWidget *widget);
- void applyToQWidget(QWidget *widget);
- void addToXmlDataNode(util::xml::data_node &node) const;
- void recoverFromXmlNode(util::xml::data_node const &node);
-};
-
+} // namespace osd::debugger::qt
#endif // MAME_DEBUGGER_QT_DEVICEINFORMATIONWINDOW_H