--- hatari/src/includes/sdlgui.h 2019/04/01 07:09:59 1.1.1.1 +++ hatari/src/includes/sdlgui.h 2019/04/01 07:11:27 1.1.1.3 @@ -1,15 +1,22 @@ /* - Hatari + Hatari - sdlgui.h + + This file is distributed under the GNU Public License, version 2 or at + your option any later version. Read the file gpl.txt for details. Header for the tiny graphical user interface for Hatari. */ +#ifndef HATARI_SDLGUI_H +#define HATARI_SDLGUI_H + #include enum { SGBOX, SGTEXT, + SGEDITFIELD, SGBUTTON, SGRADIOBUT, SGCHECKBOX, @@ -24,6 +31,15 @@ enum /* Object states: */ #define SG_SELECTED 1 +/* Special characters: */ +#define SGRADIOBUTTON_NORMAL 12 +#define SGRADIOBUTTON_SELECTED 13 +#define SGCHECKBOX_NORMAL 14 +#define SGCHECKBOX_SELECTED 15 +#define SGARROWUP 1 +#define SGARROWDOWN 2 +#define SGFOLDER 5 + typedef struct { @@ -36,9 +52,25 @@ typedef struct } SGOBJ; -int SDLGui_Init(void); -int SDLGui_UnInit(void); -int SDLGui_DoDialog(SGOBJ *dlg); -int SDLGui_PrepareFont(void); -void SDLGui_CenterDlg(SGOBJ *dlg); -int SDLGui_FileSelect(char *path_and_name); +extern int SDLGui_Init(void); +extern int SDLGui_UnInit(void); +extern int SDLGui_PrepareFont(void); +extern int SDLGui_DoDialog(SGOBJ *dlg); +extern void SDLGui_CenterDlg(SGOBJ *dlg); + +/* prototypes for gui-sdl/dlg*.c functions */ +extern int Dialog_MainDlg(BOOL *bReset); +extern int SDLGui_FileSelect(char *path_and_name, char *zip_path, BOOL bAllowNew); +extern void Dialog_AboutDlg(void); +extern void Dialog_DeviceDlg(void); +extern void Dialog_DiscDlg(void); +extern void Dialog_JoyDlg(void); +extern void Dialog_KeyboardDlg(void); +extern void Dialog_MemDlg(void); +extern void DlgNewDisc_Main(void); +extern void Dialog_ScreenDlg(void); +extern void Dialog_SoundDlg(void); +extern void Dialog_SystemDlg(void); +extern void Dialog_TosGemDlg(void); + +#endif