summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/devopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/devopt.h')
-rw-r--r--src/frontend/mame/ui/devopt.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/frontend/mame/ui/devopt.h b/src/frontend/mame/ui/devopt.h
index 2bb4e24c6c0..b0e7a6a4d39 100644
--- a/src/frontend/mame/ui/devopt.h
+++ b/src/frontend/mame/ui/devopt.h
@@ -8,29 +8,33 @@
***************************************************************************/
-#pragma once
-
#ifndef MAME_FRONTEND_UI_DEVOPT_H
#define MAME_FRONTEND_UI_DEVOPT_H
-#include "ui/menu.h"
+#pragma once
+
+#include "ui/textbox.h"
+
namespace ui {
-class menu_device_config : public menu
+
+class menu_device_config : public menu_textbox
{
public:
menu_device_config(mame_ui_manager &mui, render_container &container, device_slot_interface *slot, device_slot_interface::slot_option const *option);
virtual ~menu_device_config() override;
+protected:
+ virtual void populate_text(std::optional<text_layout> &layout, float &width, int &lines) override;
+
private:
virtual void populate(float &customtop, float &custombottom) override;
- virtual void handle() override;
+ virtual void handle(event const *ev) override;
- device_slot_interface *m_owner;
- device_slot_interface::slot_option const *m_option;
+ device_slot_interface::slot_option const *const m_option;
bool m_mounted;
};
} // namespace ui
-#endif /* MAME_FRONTEND_UI_DEVOPT_H */
+#endif // MAME_FRONTEND_UI_DEVOPT_H