diff options
Diffstat (limited to 'src/osd/modules/debugger/qt/deviceswindow.h')
-rw-r--r-- | src/osd/modules/debugger/qt/deviceswindow.h | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/src/osd/modules/debugger/qt/deviceswindow.h b/src/osd/modules/debugger/qt/deviceswindow.h index 884ad87d421..d337817fac0 100644 --- a/src/osd/modules/debugger/qt/deviceswindow.h +++ b/src/osd/modules/debugger/qt/deviceswindow.h @@ -3,11 +3,15 @@ #ifndef MAME_DEBUGGER_QT_DEVICESWINDOW_H #define MAME_DEBUGGER_QT_DEVICESWINDOW_H +#pragma once + #include "windowqt.h" #include <QtWidgets/QTreeView> +namespace osd::debugger::qt { + //============================================================ // The model for the treeview //============================================================ @@ -40,40 +44,22 @@ class DevicesWindow : public WindowQt Q_OBJECT public: - DevicesWindow(running_machine &machine, QWidget *parent = nullptr); + DevicesWindow(DebuggerQt &debugger, QWidget *parent = nullptr); virtual ~DevicesWindow(); public slots: void currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous); void activated(const QModelIndex &index); +protected: + virtual void saveConfigurationToNode(util::xml::data_node &node) override; + private: QTreeView *m_devices_view; DevicesWindowModel m_devices_model; device_t *m_selected_device; }; - - - -//========================================================================= -// A way to store the configuration of a window long enough to read/write. -//========================================================================= -class DevicesWindowQtConfig : public WindowQtConfig -{ -public: - DevicesWindowQtConfig() : - WindowQtConfig(WIN_TYPE_DEVICES) - { - } - - ~DevicesWindowQtConfig() {} - - 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_DEVICESWINDOW_H |