Extensively cleaned up and changed the CD-ROM code; Removed CD-ROM IOCTTL (it was causing performance and stability issues); Turned a lot of things into device_t's; Added the PS/1 Model 2011 XTA and standalone XTA hard disk controllers, ported from Varcem; Numerous FDC fixes for the PS/1 Model 2121; NVR changes ported from Varcem; The PCap code no longer requires libpcap to be compiled; Numerous fixes to various SCSI controllers; Updated NukedOPL to 1.8; Fixes to OpenAL initialization and closing, should give less Audio issues now; Revorked parts of the common (S)VGA code (also based on code from QEMU); Removed the Removable SCSI hard disks (they were a never finished experiment so there was no need to keep them there); Cleaned up the SCSI hard disk and Iomega ZIP code (but more cleanups of that are coming in the future); In some occasions (IDE hard disks in multiple sector mode and SCSI hard disks) the status bar icon is no longer updated, should improve performance a bit; Redid the way the tertiary and quaternary IDE controllers are configured (and they are now device_t's); Extensively reworked the IDE code and fixed quite a few bugs; Fixes to XT MFM, AT MFM, and AT ESDI code; Some changes to XTIDE and MCA ESDI code; Some fixes to the CD-ROM image handler.
74 lines
1.9 KiB
C
74 lines
1.9 KiB
C
/*
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
* running old operating systems and software designed for IBM
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
* system designs based on the PCI bus.
|
|
*
|
|
* This file is part of the 86Box distribution.
|
|
*
|
|
* Define the various UI functions.
|
|
*
|
|
* Version: @(#)ui.h 1.0.14 2018/04/24
|
|
*
|
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
|
*
|
|
* Copyright 2016-2018 Miran Grca.
|
|
* Copyright 2017,2018 Fred N. van Kempen.
|
|
*/
|
|
#ifndef EMU_UI_H
|
|
# define EMU_UI_H
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#ifdef USE_WX
|
|
# define RENDER_FPS 30 /* default render speed */
|
|
#endif
|
|
|
|
/* Message Box functions. */
|
|
#define MBX_INFO 1
|
|
#define MBX_ERROR 2
|
|
#define MBX_QUESTION 3
|
|
#define MBX_FATAL 0x20
|
|
#define MBX_ANSI 0x80
|
|
|
|
extern int ui_msgbox(int type, void *arg);
|
|
|
|
extern void ui_check_menu_item(int id, int checked);
|
|
|
|
/* Status Bar functions. */
|
|
#define SB_ICON_WIDTH 24
|
|
#define SB_FLOPPY 0x00
|
|
#define SB_CDROM 0x10
|
|
#define SB_ZIP 0x20
|
|
#define SB_HDD 0x40
|
|
#define SB_NETWORK 0x50
|
|
#define SB_SOUND 0x60
|
|
#define SB_TEXT 0x70
|
|
|
|
extern wchar_t *ui_window_title(wchar_t *s);
|
|
extern void ui_status_update(void);
|
|
extern int ui_sb_find_part(int tag);
|
|
extern void ui_sb_update_panes(void);
|
|
extern void ui_sb_update_tip(int meaning);
|
|
extern void ui_sb_check_menu_item(int tag, int id, int chk);
|
|
extern void ui_sb_enable_menu_item(int tag, int id, int val);
|
|
extern void ui_sb_update_icon(int tag, int val);
|
|
extern void ui_sb_update_icon_state(int tag, int active);
|
|
extern void ui_sb_set_text_w(wchar_t *wstr);
|
|
extern void ui_sb_set_text(char *str);
|
|
extern void ui_sb_bugui(char *str);
|
|
extern void ui_sb_mount_floppy_img(uint8_t id, int part, uint8_t wp, wchar_t *file_name);
|
|
extern void ui_sb_mount_zip_img(uint8_t id, int part, uint8_t wp, wchar_t *file_name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /*EMU_UI_H*/
|