summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/datmenu.h
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2016-02-21 11:48:45 +0100
committer ImJezze <jezze@gmx.net>2016-02-21 11:48:45 +0100
commitcc24a339d8c0517259084b5c178d784626ba965c (patch)
tree9868e9687b5802ae0a3733712a3bbeb3bc75c953 /src/emu/ui/datmenu.h
parentb5daabda5495dea5c50e17961ecfed2ea8619d76 (diff)
Merge remote-tracking branch 'refs/remotes/mamedev/master'
Second attempt
Diffstat (limited to 'src/emu/ui/datmenu.h')
-rw-r--r--src/emu/ui/datmenu.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/emu/ui/datmenu.h b/src/emu/ui/datmenu.h
new file mode 100644
index 00000000000..f799e5fa7d0
--- /dev/null
+++ b/src/emu/ui/datmenu.h
@@ -0,0 +1,52 @@
+// license:BSD-3-Clause
+// copyright-holders:Dankan1890
+/***************************************************************************
+
+ ui/datmenu.h
+
+ Internal UI user interface.
+
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __UI_DATMENU_H__
+#define __UI_DATMENU_H__
+
+struct ui_software_info;
+
+//-------------------------------------------------
+// class dats menu
+//-------------------------------------------------
+
+class ui_menu_dats_view : public ui_menu
+{
+public:
+ ui_menu_dats_view(running_machine &machine, render_container *container, ui_software_info *swinfo, const game_driver *driver = nullptr);
+ ui_menu_dats_view(running_machine &machine, render_container *container, const game_driver *driver = nullptr);
+ virtual ~ui_menu_dats_view();
+ virtual void populate() override;
+ virtual void handle() override;
+ virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
+
+private:
+ int actual;
+ const game_driver *m_driver;
+ ui_software_info *m_swinfo;
+ std::string m_list, m_short, m_long, m_parent;
+ void get_data();
+ void get_data_sw();
+ void init_items();
+ bool issoft;
+ struct list_items
+ {
+ list_items(std::string l, int i, std::string rev) { label = l; option = i; revision = rev; }
+ std::string label;
+ int option;
+ std::string revision;
+ };
+ std::vector<list_items> m_items_list;
+};
+
+#endif /* __UI_DATMENU_H__ */