32
32
#include <windows.h>
34
/* Parameter structure for ui_attach_cartridge */
40
} ui_cartridge_params;
42
char *ui_select_file(HWND hwnd, const char *title, DWORD filterlist, int style, char **autostart);
43
void ui_set_res_num(char *res, int value, int num);
46
char *read_disk_image_contents(const char *name);
47
char *read_tape_image_contents(const char *name);
48
char *read_disk_or_tape_image_contents(const char *name);
35
#define UILIB_SELECTOR_TYPE_FILE_LOAD 0
36
#define UILIB_SELECTOR_TYPE_FILE_SAVE 1
37
#define UILIB_SELECTOR_TYPE_DIR_EXIST 2
38
#define UILIB_SELECTOR_TYPE_DIR_NEW 3
40
#define UILIB_SELECTOR_STYLE_DEFAULT 0
41
#define UILIB_SELECTOR_STYLE_TAPE 1
42
#define UILIB_SELECTOR_STYLE_DISK 2
43
#define UILIB_SELECTOR_STYLE_DISK_AND_TAPE 3
44
#define UILIB_SELECTOR_STYLE_CART 4
45
#define UILIB_SELECTOR_STYLE_SNAPSHOT 5
46
#define UILIB_SELECTOR_STYLE_EVENT_START 6
47
#define UILIB_SELECTOR_STYLE_EVENT_END 7
48
#define UILIB_SELECTOR_STYLES_NUM 8
50
#define UILIB_FILTER_ALL (1 << 0)
51
#define UILIB_FILTER_PALETTE (1 << 1)
52
#define UILIB_FILTER_SNAPSHOT (1 << 2)
53
#define UILIB_FILTER_DISK (1 << 3)
54
#define UILIB_FILTER_TAPE (1 << 4)
55
#define UILIB_FILTER_ZIP (1 << 5)
56
#define UILIB_FILTER_CRT (1 << 6)
57
#define UILIB_FILTER_BIN (1 << 7)
58
#define UILIB_FILTER_FLIPLIST (1 << 8)
59
#define UILIB_FILTER_ROMSET_FILE (1 << 9)
60
#define UILIB_FILTER_ROMSET_ARCHIVE (1 << 10)
61
#define UILIB_FILTER_KEYMAP (1 << 11)
62
#define UILIB_FILTER_LENGTH_MAX (1 << 12)
65
extern TCHAR *uilib_select_file(HWND hwnd, const TCHAR *title, DWORD filterlist,
66
unsigned int type, int style);
67
extern TCHAR *uilib_select_file_autostart(HWND hwnd, const TCHAR *title,
68
DWORD filterlist, unsigned int type,
69
int style, int *autostart,
70
char *resource_readonly);
71
extern void uilib_select_browse(HWND hwnd, const TCHAR *title,
72
DWORD filterlist, unsigned int type, int idc);
74
extern void uilib_show_options(HWND param);
51
75
extern void ui_show_text(HWND hParent, const char *szCaption,
52
76
const char *szHeader, const char *szText);
54
#define FILE_SELECTOR_DEFAULT_STYLE 0
55
#define FILE_SELECTOR_TAPE_STYLE 1
56
#define FILE_SELECTOR_DISK_STYLE 2
57
#define FILE_SELECTOR_DISK_AND_TAPE_STYLE 3
60
#define UI_LIB_FILTER_ALL 1
61
#define UI_LIB_FILTER_PALETTE 2
62
#define UI_LIB_FILTER_SNAPSHOT 4
63
#define UI_LIB_FILTER_DISK 8
64
#define UI_LIB_FILTER_TAPE 16
65
#define UI_LIB_FILTER_ZIP 32
66
#define UI_LIB_FILTER_CRT 64
67
#define UI_LIB_FILTER_BIN 128
69
#define UI_LIB_MAX_FILTER_LENGTH 1024
72
78
extern int ui_messagebox(LPCTSTR lpText, LPCTSTR lpCaption, UINT uType);
79
extern void uilib_shutdown(void);
82
#define UILIB_DIALOGBOX_MAX 256
83
struct uilib_dialogbox_param_s {
85
unsigned int idd_dialog;
86
unsigned int idc_dialog;
87
TCHAR string[UILIB_DIALOGBOX_MAX];
90
typedef struct uilib_dialogbox_param_s uilib_dialogbox_param_t;
92
extern void uilib_dialogbox(uilib_dialogbox_param_t *param);