summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/qt/debugqtdeviceinformationwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/qt/debugqtdeviceinformationwindow.h')
-rw-r--r--src/osd/modules/debugger/qt/debugqtdeviceinformationwindow.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/osd/modules/debugger/qt/debugqtdeviceinformationwindow.h b/src/osd/modules/debugger/qt/debugqtdeviceinformationwindow.h
new file mode 100644
index 00000000000..cb7ade44c00
--- /dev/null
+++ b/src/osd/modules/debugger/qt/debugqtdeviceinformationwindow.h
@@ -0,0 +1,53 @@
+#ifndef __DEBUG_QT_DEVICE_INFORMATION_WINDOW_H__
+#define __DEBUG_QT_DEVICE_INFORMATION_WINDOW_H__
+
+#include <QtGui/QtGui>
+
+#include "debugqtwindow.h"
+
+//============================================================
+// The Device Information Window.
+//============================================================
+class DeviceInformationWindow : public WindowQt
+{
+ Q_OBJECT
+
+public:
+ DeviceInformationWindow(running_machine* machine, device_t* device = NULL, QWidget* parent=NULL);
+ virtual ~DeviceInformationWindow();
+
+ void set_device(const char *tag);
+ const char *device_tag() const;
+
+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:
+ astring m_device_tag;
+
+ DeviceInformationWindowQtConfig() :
+ WindowQtConfig(WIN_TYPE_DEVICE_INFORMATION)
+ {
+ }
+
+ ~DeviceInformationWindowQtConfig() {}
+
+ void buildFromQWidget(QWidget* widget);
+ void applyToQWidget(QWidget* widget);
+ void addToXmlDataNode(xml_data_node* node) const;
+ void recoverFromXmlNode(xml_data_node* node);
+};
+
+
+#endif