~ubuntu-branches/ubuntu/dapper/vice/dapper

« back to all changes in this revision

Viewing changes to src/arch/unix/ui.h

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2004-08-26 13:35:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040826133551-gcje8j31q5cqgdq2
Tags: 1.14-3
Apply patch from Spiro Trikaliotis <vice@trikaliotis.net> to fix a
problem that some users were experiencing with a floating point
exception on startup related to the fullscreen option being enabled
during compile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#include "types.h"
33
33
#include "uiapi.h"
34
 
#ifdef USE_GNOMEUI
35
 
#include "x11/gnome/uiarch.h"
36
 
#else
37
 
#include "x11/xaw/uiarch.h"
38
 
#endif
 
34
 
39
35
 
40
36
/* If this is #defined, `Alt' is handled the same as `Meta'.  On
41
37
   systems which have Meta, it's better to use Meta instead of Alt as
46
42
#define ALT_AS_META
47
43
 
48
44
/* Number of drives we support in the UI.  */
49
 
#define NUM_DRIVES      2
 
45
#define NUM_DRIVES 4
50
46
 
51
47
/* Tell menu system to ignore a string for translation
52
48
   (e.g. filenames in fliplists) */
53
49
#define NO_TRANS "no-trans"
54
50
 
55
 
typedef void (*ui_exposure_handler_t)(unsigned int width,
56
 
                                      unsigned int height);
57
51
typedef enum {
58
52
    UI_BUTTON_NONE, UI_BUTTON_CLOSE, UI_BUTTON_OK, UI_BUTTON_CANCEL,
59
53
    UI_BUTTON_YES, UI_BUTTON_NO, UI_BUTTON_RESET, UI_BUTTON_HARDRESET,
66
60
struct video_canvas_s;
67
61
struct palette_s;
68
62
 
69
 
extern int ui_proc_read_msg(char* msg, size_t size, int block);
70
 
extern ui_window_t ui_open_canvas_window(struct video_canvas_s *c,
71
 
                                         const char *title, int width,
72
 
                                         int height, int no_autorepeat,
73
 
                                         ui_exposure_handler_t exposure_proc,
74
 
                                         const struct palette_s *p,
75
 
                                         PIXEL pixel_return[]);
76
 
extern void ui_resize_canvas_window(ui_window_t w, int height, int width);
77
 
extern void ui_map_canvas_window(ui_window_t w);
78
 
extern void ui_unmap_canvas_window(ui_window_t w);
79
63
void ui_display_speed(float percent, float framerate, int warp_flag);
80
64
void ui_display_paused(int flag);
81
65
void ui_dispatch_next_event(void);
85
69
extern void ui_show_text(const char *title, const char *text, int width,
86
70
                         int height);
87
71
extern char *ui_select_file(const char *title,
88
 
                            char *(*read_contents_func)(const char *),
 
72
                            char *(*read_contents_func)(const char *,
 
73
                            unsigned int unit), unsigned int unit,
89
74
                            unsigned int allow_autostart,
90
75
                            const char *default_dir,
91
76
                            const char *default_pattern,
99
84
extern void ui_autorepeat_off(void);
100
85
extern void ui_pause_emulation(int flag);
101
86
extern int ui_emulation_is_paused(void);
102
 
extern void ui_create_dynamic_menues(void);
103
87
extern void ui_check_mouse_cursor(void);
104
88
extern void ui_update_flip_menus(int from_unit, int to_unit);
105
89
 
106
90
extern void archdep_ui_init(int argc, char *argv[]);
107
91
extern void ui_set_application_icon(const char *icon_data[]);
108
 
extern void ui_proc_start(void);
109
 
extern void ui_destroy_widget(ui_window_t w);
110
92
extern void ui_set_topmenu(const char *menu_name, ...);
111
93
extern void ui_set_selected_file(int num);
112
 
extern int ui_get_display_depth(void);
113
 
extern Display *ui_get_display_ptr(void);
114
94
 
 
95
#ifdef USE_GNOMEUI
 
96
extern void ui_destroy_drive_menu(int drnr);
 
97
#else
115
98
extern void ui_destroy_drive8_menu(void);
116
99
extern void ui_destroy_drive9_menu(void);
117
 
 
 
100
#endif
118
101
extern void ui_update_pal_ctrls(int v);
119
102
 
120
 
#endif /* !_UI_H_ */
 
103
extern void ui_common_shutdown(void);
 
104
 
 
105
#endif
121
106