~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/arch/win32/uilib.h

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-03-27 13:06:04 UTC
  • mfrom: (4 hoary)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20050327130604-zodmv0i60dbbmcik
Tags: 1.16-3
Apply patch from Andreas Jochens <aj@andaco.de> to correct building on
AMD64 and GCC 4.x (closes: #300936)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 * Written by
5
5
 *  Ettore Perazzoli <ettore@comm2000.it>
6
 
 *  Andreas Boose <boose@linux.rz.fh-hannover.de>
 
6
 *  Andreas Boose <viceteam@t-online.de>
7
7
 *  Manfred Spraul <manfreds@colorfullife.com>
8
8
 *
9
9
 * This file is part of VICE, the Versatile Commodore Emulator.
30
30
#define _UILIB_H
31
31
 
32
32
#include <windows.h>
33
 
 
34
 
/*  Parameter structure for ui_attach_cartridge */
35
 
typedef struct {
36
 
    WPARAM wparam;
37
 
    int type;
38
 
    char *title;
39
 
    DWORD filter;
40
 
} ui_cartridge_params;
41
 
 
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);
44
 
 
45
 
/*
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);
49
 
*/
50
 
 
 
33
#include <tchar.h>
 
34
 
 
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
 
39
  
 
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
 
49
 
 
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)
 
63
 
 
64
 
 
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);
 
73
 
 
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);
53
77
 
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
58
 
 
59
 
 
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
68
 
 
69
 
#define UI_LIB_MAX_FILTER_LENGTH        1024
70
 
 
71
 
 
72
78
extern int ui_messagebox(LPCTSTR lpText, LPCTSTR lpCaption, UINT uType);
 
79
extern void uilib_shutdown(void);
 
80
 
 
81
 
 
82
#define UILIB_DIALOGBOX_MAX 256
 
83
struct uilib_dialogbox_param_s {
 
84
    HWND hwnd;
 
85
    unsigned int idd_dialog;
 
86
    unsigned int idc_dialog;
 
87
    TCHAR string[UILIB_DIALOGBOX_MAX];
 
88
    unsigned int updated;
 
89
};
 
90
typedef struct uilib_dialogbox_param_s uilib_dialogbox_param_t;
 
91
 
 
92
extern void uilib_dialogbox(uilib_dialogbox_param_t *param);
73
93
 
74
94
#endif
75
95