summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/floppycntrl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/floppycntrl.h')
-rw-r--r--src/frontend/mame/ui/floppycntrl.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/floppycntrl.h b/src/frontend/mame/ui/floppycntrl.h
new file mode 100644
index 00000000000..08ac1e85d68
--- /dev/null
+++ b/src/frontend/mame/ui/floppycntrl.h
@@ -0,0 +1,36 @@
+// license:BSD-3-Clause
+// copyright-holders:Olivier Galibert
+/***************************************************************************
+
+ ui/floppycntrl.h
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __UI_FLOPPY_IMAGE_H__
+#define __UI_FLOPPY_IMAGE_H__
+
+#include "imagedev/floppy.h"
+#include "formats/flopimg.h"
+
+class ui_menu_control_floppy_image : public ui_menu_control_device_image {
+public:
+ ui_menu_control_floppy_image(running_machine &machine, render_container *container, device_image_interface *image);
+ virtual ~ui_menu_control_floppy_image();
+
+ virtual void handle() override;
+
+protected:
+ enum { SELECT_FORMAT = LAST_ID, SELECT_MEDIA, SELECT_RW };
+
+ floppy_image_format_t **format_array;
+ floppy_image_format_t *input_format, *output_format;
+ std::string input_filename, output_filename;
+
+ void do_load_create();
+ virtual void hook_load(std::string filename, bool softlist) override;
+};
+
+
+#endif /* __UI_FLOPPY_IMAGE_H__ */ \ No newline at end of file