|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
18 #ifndef XEMU_COMMON_EMUTOOLS_GUI_H_INCLUDED
19 #define XEMU_COMMON_EMUTOOLS_GUI_H_INCLUDED
22 #define DEBUGGUI DEBUG
25 #define XEMUGUI_FSEL_DIRECTORY 0
26 #define XEMUGUI_FSEL_OPEN 1
27 #define XEMUGUI_FSEL_SAVE 2
28 #define XEMUGUI_FSEL_FLAG_STORE_DIR 0x100
30 #define XEMUGUI_MENUID_CALLABLE 0
31 #define XEMUGUI_MENUID_SUBMENU 1
32 #define XEMUGUI_MENUID_TITLE 2
34 #define XEMUGUI_MENUFLAG_INACTIVE 0x00100
35 #define XEMUGUI_MENUFLAG_BEGIN_RADIO 0x00200
36 #define XEMUGUI_MENUFLAG_END_RADIO 0x00400
37 #define XEMUGUI_MENUFLAG_ACTIVE_RADIO 0x00800
38 #define XEMUGUI_MENUFLAG_SEPARATOR 0x01000
39 #define XEMUGUI_MENUFLAG_CHECKED 0x02000
40 #define XEMUGUI_MENUFLAG_QUERYBACK 0x04000
41 #define XEMUGUI_MENUFLAG_UNCHECKED 0x08000
42 #define XEMUGUI_MENUFLAG_HIDDEN 0x10000
44 #ifndef XEMUGUI_MAX_SUBMENUS
45 #define XEMUGUI_MAX_SUBMENUS 100
47 #ifndef XEMUGUI_MAX_ITEMS
48 #define XEMUGUI_MAX_ITEMS 900
51 #ifndef XEMUGUI_MAINMENU_NAME
52 #define XEMUGUI_MAINMENU_NAME "Main Menu"
55 #define XEMUGUI_RETURN_CHECKED_ON_QUERY(query,status) \
57 *query |= (status) ? XEMUGUI_MENUFLAG_CHECKED : XEMUGUI_MENUFLAG_UNCHECKED; \
77 extern int xemugui_file_selector (
int dialog_mode,
const char *dialog_title,
char *default_dir,
char *selected,
int path_max_size );
79 extern int xemugui_info (
int sdl_class,
const char *msg );
88 extern void xemugui_cb_sysconsole (
const struct menu_st *m,
int *query );
92 #ifdef HAVE_XEMU_EXEC_API
93 extern void xemugui_cb_native_os_prefdir_browser(
const struct menu_st *m,
int *query );
94 extern void xemugui_cb_web_url (
const struct menu_st *m,
int *query );
95 extern void xemugui_cb_web_help_main (
const struct menu_st *m,
int *query );
103 #ifdef XEMU_CONFIGDB_SUPPORT
104 enum xemuguicfgfileop_type { XEMUGUICFGFILEOP_LOAD_DEFAULT, XEMUGUICFGFILEOP_SAVE_DEFAULT, XEMUGUICFGFILEOP_LOAD_CUSTOM, XEMUGUICFGFILEOP_SAVE_CUSTOM };
105 void xemugui_cb_cfgfile (
const struct menu_st *m,
int *query );