|
|
1.1.1.3 root 1: /*
1.1 root 2: * UAE - The Un*x Amiga Emulator
1.1.1.3 root 3: *
1.1 root 4: * Interface to the Tcl/Tk GUI
1.1.1.3 root 5: *
1.1 root 6: * Copyright 1996 Bernd Schmidt
7: */
8:
1.1.1.4 root 9: extern int gui_init (void);
10: extern int gui_update (void);
11: extern void gui_exit (void);
12: extern void gui_led (int, int);
13: extern void gui_handle_events (void);
14: extern void gui_filename (int, const char *);
1.1.1.7 root 15: extern void gui_fps (int fps);
1.1.1.4 root 16: extern void gui_changesettings (void);
1.1.1.7 root 17: extern void gui_lock (void);
18: extern void gui_unlock (void);
1.1.1.8 ! root 19: extern void gui_hd_led (int);
! 20: extern void gui_cd_led (int);
! 21: extern unsigned int gui_ledstate;
! 22: extern void gui_display(int shortcut);
1.1 root 23:
1.1.1.3 root 24: extern unsigned int gui_ledstate;
1.1.1.5 root 25:
26: extern int no_gui;
1.1.1.6 root 27:
28: struct gui_info
29: {
30: uae_u8 drive_motor[4]; /* motor on off */
31: uae_u8 drive_track[4]; /* rw-head track */
32: uae_u8 drive_writing[4]; /* drive is writing */
1.1.1.8 ! root 33: uae_u8 drive_disabled[4]; /* drive is disabled */
1.1.1.6 root 34: uae_u8 powerled; /* state of power led */
1.1.1.8 ! root 35: uae_u8 drive_side; /* floppy side */
! 36: uae_u8 hd; /* harddrive */
! 37: uae_u8 cd; /* CD */
! 38: int fps, idle;
! 39: char df[4][256]; /* inserted image */
! 40: uae_u32 crc32[4]; /* crc32 of image */
1.1.1.6 root 41: };
42:
43: extern struct gui_info gui_data;
44:
45: /* Functions to be called when prefs are changed by non-gui code. */
46: extern void gui_update_gfx (void);
1.1.1.8 ! root 47:
! 48: void notify_user (int msg);
! 49: int translate_message (int msg, char *out);
! 50: typedef enum {
! 51: NUMSG_NEEDEXT2, NUMSG_NOROM, NUMSG_NOROMKEY,
! 52: NUMSG_KSROMCRCERROR, NUMSG_KSROMREADERROR, NUMSG_NOEXTROM,
! 53: NUMSG_MODRIP_NOTFOUND, NUMSG_MODRIP_FINISHED, NUMSG_MODRIP_SAVE,
! 54: NUMSG_KS68EC020, NUMSG_KS68020, NUMSG_ROMNEED, NUMSG_NOZLIB, NUMSG_STATEHD,
! 55: NUMSG_NOCAPS, NUMSG_OLDCAPS, NUMSG_KICKREP, NUMSG_KICKREPNO
! 56: } notify_user_msg;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.