Annotation of hatari/src/includes/dialog.h, revision 1.1.1.1

1.1       root        1: /* Hatari */
                      2: 
                      3: 
                      4: /*  Dialog TOS/GEM  */
                      5: typedef struct {
                      6:   char szTOSImageFileName[MAX_FILENAME_LENGTH];
                      7:   BOOL bUseTimeDate;
                      8:   BOOL bAccGEMGraphics;
                      9:   BOOL bUseExtGEMResolutions;
                     10:   int nGEMResolution;
                     11:   int nGEMColours;
                     12: } DLG_TOSGEM;
                     13: 
                     14: enum {
                     15:   GEMRES_640x480,
                     16:   GEMRES_800x600,
                     17:   GEMRES_1024x768
                     18: };
                     19: 
                     20: enum {
                     21:   GEMCOLOUR_2,
                     22:   GEMCOLOUR_4,
                     23:   GEMCOLOUR_16
                     24: };
                     25: 
                     26: 
                     27: /* Dialog Sound */
                     28: typedef struct {
                     29:   BOOL bEnableSound;
                     30:   int nPlaybackQuality;
                     31:   char szYMCaptureFileName[MAX_FILENAME_LENGTH];
                     32: } DLG_SOUND;
                     33: 
                     34: enum {
                     35:   PLAYBACK_LOW,
                     36:   PLAYBACK_MEDIUM,
                     37:   PLAYBACK_HIGH
                     38: };
                     39: 
                     40: 
                     41: /* Dialog RS232 */
                     42: typedef struct {
                     43:   BOOL bEnableRS232;
                     44:   int nCOMPort;
                     45: } DLG_RS232;
                     46: 
                     47: enum {
                     48:   COM_PORT_1,
                     49:   COM_PORT_2,
                     50:   COM_PORT_3,
                     51:   COM_PORT_4
                     52: };
                     53: 
                     54: 
                     55: /* Dialog Keyboard */
                     56: typedef struct {
                     57:   BOOL bDisableKeyRepeat;
                     58:   int ShortCuts[2][3];                // F11+F12, NORMAL+SHIFT+CTRL
                     59:   char szMappingFileName[MAX_FILENAME_LENGTH];
                     60: } DLG_KEYBOARD;
                     61: 
                     62: enum {
                     63:   SHORT_CUT_F11,
                     64:   SHORT_CUT_F12,
                     65:   SHORT_CUT_NONE
                     66: };
                     67: 
                     68: enum {
                     69:   SHORT_CUT_KEY,
                     70:   SHORT_CUT_SHIFT,
                     71:   SHORT_CUT_CTRL
                     72: };
                     73: 
                     74: 
                     75: /* Dialog Memory */
                     76: typedef struct {
                     77:   int nMemorySize;
                     78:   char szMemoryCaptureFileName[MAX_FILENAME_LENGTH];
                     79: } DLG_MEMORY;
                     80: 
                     81: enum {
                     82:   MEMORY_SIZE_512Kb,
                     83:   MEMORY_SIZE_1Mb,
                     84:   MEMORY_SIZE_2Mb,
                     85:   MEMORY_SIZE_4Mb
                     86: };
                     87: 
                     88: 
                     89: /* Dialog Joystick */
                     90: typedef struct {
                     91:   BOOL bCursorEmulation;
                     92:   BOOL bEnableAutoFire;
                     93: } JOYSTICK;
                     94: 
                     95: typedef struct {
                     96:   BOOL bUseDirectInput;
                     97:   JOYSTICK Joy[2];
                     98: } DLG_JOYSTICKS;
                     99: 
                    100: 
                    101: /* Dialog Discimage */
                    102: typedef struct {
                    103:   BOOL bAutoInsertDiscB;
                    104:   char szDiscImageDirectory[MAX_FILENAME_LENGTH];
                    105: } DLG_DISCIMAGE;
                    106: 
                    107: 
                    108: /* Dialog configure */
                    109: typedef struct {
                    110:   int nMinMaxSpeed;
                    111:   int nPrevMinMaxSpeed;
                    112: } DLG_CONFIGURE;
                    113: 
                    114: enum {
                    115:   MINMAXSPEED_MIN,
                    116:   MINMAXSPEED_1,
                    117:   MINMAXSPEED_2,
                    118:   MINMAXSPEED_3,
                    119:   MINMAXSPEED_MAX
                    120: };
                    121: 
                    122: 
                    123: /* Dialog hard disc image */
                    124: #define MAX_HARDDRIVES  4
                    125: #define DRIVELIST_TO_DRIVE_INDEX(DriveList)  (DriveList+1)
                    126: typedef struct {
                    127:   int nDriveList;
                    128:   BOOL bBootFromHardDisc;
                    129:   int nHardDiscDir;
                    130:   char szHardDiscDirectories[MAX_HARDDRIVES][MAX_FILENAME_LENGTH];
                    131: } DLG_HARDDISC;
                    132: 
                    133: enum {
                    134:   DRIVELIST_NONE,
                    135:   DRIVELIST_C,
                    136:   DRIVELIST_CD,
                    137:   DRIVELIST_CDE,
                    138:   DRIVELIST_CDEF
                    139: };
                    140: 
                    141: enum {
                    142:   DRIVE_C,
                    143:   DRIVE_D,
                    144:   DRIVE_E,
                    145:   DRIVE_F
                    146: };
                    147: 
                    148: 
                    149: /* Dialog screen */
                    150: typedef struct {
                    151:   BOOL bDoubleSizeWindow;
                    152:   BOOL bAllowOverscan;
                    153:   BOOL bInterlacedFullScreen;
                    154:   BOOL bSyncToRetrace;
                    155:   BOOL bFrameSkip;
                    156: } DLG_SCREEN_ADVANCED;
                    157: 
                    158: typedef struct {
                    159:   BOOL bFullScreen;
                    160:   DLG_SCREEN_ADVANCED Advanced;
                    161:   int ChosenDisplayMode;
                    162: 
                    163:   BOOL bCaptureChange;
                    164:   int nFramesPerSecond;
                    165:   BOOL bUseHighRes;
                    166: } DLG_SCREEN;
                    167: 
                    168: 
                    169: /* Dialog Printer */
                    170: typedef struct {
                    171:   BOOL bEnablePrinting;
                    172:   BOOL bPrintToFile;
                    173:   char szPrintToFileName[MAX_FILENAME_LENGTH];
                    174: } DLG_PRINTER;
                    175: 
                    176: 
                    177: /* State of system is stored in this structure */
                    178: /* On reset, variables are copied into system globals and used. */
                    179: typedef struct {
                    180:   // Configure
                    181:   DLG_CONFIGURE Configure;
                    182:   DLG_SCREEN Screen;
                    183:   DLG_JOYSTICKS Joysticks;
                    184:   DLG_KEYBOARD Keyboard;
                    185:   DLG_SOUND Sound;
                    186:   DLG_MEMORY Memory;
                    187:   DLG_DISCIMAGE DiscImage;
                    188:   DLG_HARDDISC HardDisc;
                    189:   DLG_TOSGEM TOSGEM;
                    190:   DLG_RS232 RS232;
                    191:   DLG_PRINTER Printer;
                    192: } DLG_PARAMS;
                    193: 
                    194: enum {
                    195:   DIALOG_PAGE_CONFIGURE,
                    196:   DIALOG_PAGE_SCREEN,
                    197:   DIALOG_PAGE_JOYSTICKS,
                    198:   DIALOG_PAGE_KEYBOARD,
                    199:   DIALOG_PAGE_SOUND,
                    200:   DIALOG_PAGE_MEMORY,
                    201:   DIALOG_PAGE_DISCIMAGE,
                    202:   DIALOG_PAGE_HARDDISC,
                    203:   DIALOG_PAGE_TOSGEM,
                    204:   DIALOG_PAGE_RS232,
                    205:   DIALOG_PAGE_PRINTER
                    206: };
                    207: 
                    208: extern DLG_PARAMS ConfigureParams,DialogParams;
                    209: extern BOOL bOKDialog;
                    210: extern int nLastOpenPage;
                    211: 
                    212: extern void Dialog_DefaultConfigurationDetails(void);
                    213: extern void Dialog_CopyDetailsFromConfiguration(BOOL bReset);
                    214: extern BOOL Dialog_DoProperty(int StartingPage,BOOL bForceReset);
                    215: //extern void Dialog_SetButton(HWND hDlg,int ButtonID,int Flag);
                    216: //extern BOOL Dialog_ReadButton(HWND hDlg,int ButtonID);
                    217: //extern void Dialog_EnableItem(HWND hDlg,int ButtonID,int State);
                    218: //extern void Dialog_EnableItems(HWND hDlg,int *pButtonIDs,int State);
                    219: //extern void Dialog_ShowItemRange(HWND hDlg,int LowButtonID,int HighButtonID,int Show);
                    220: //extern void Dialog_SetText(HWND hDlg,int ButtonID,char *szString);
                    221: #if 0
                    222: extern void Dialog_ReadText(HWND hDlg,int ButtonID,char *szString);
                    223: extern void Dialog_SetTrackBar(HWND hDlg, int nTrackBarID, int nMin, int nMax, int nSelected);
                    224: extern int Dialog_GetTrackBar(HWND hDlg, int nTrackBarID);
                    225: extern void Dialog_SetComboBoxItems(HWND hDlg, int ComboBoxID, char *pComboBoxStrings[], int nSelectedItem);
                    226: extern void Dialog_ComboBoxSelectString(HWND hDlg, int ComboBoxID, char *pszSelectedString);
                    227: extern int Dialog_GetSelectedComboBoxItem(HWND hDlg, int ComboBoxID);
                    228: extern void Dialog_SetListBoxItems(HWND hDlg, int ListBoxID, char *pListBoxStrings[], int nSelectedItem);
                    229: extern int Dialog_GetSelectedListBoxItem(HWND hDlg, int ListBoxID);
                    230: extern int Dialog_SetSpinList(HWND hDlg, int nEditBoxID, int nSpinID, char *pSpinStrings[], int nItems, int nSelectedItem);
                    231: extern int Dialog_GetSpinList(HWND hDlg, int nSpinID);
                    232: extern int Dialog_UpdateSpinList(HWND hDlg, int nEditBoxID, char *pSpinStrings[], int nNumSpinItems, int nNewSelectedItem);
                    233: extern void Dialog_SetRadioButtons(HWND hDlg,int StartButtonID,int EndButtonID,int nSelectedItem);
                    234: extern int Dialog_ReadRadioButtons(HWND hDlg,int StartButtonID,int EndButtonID);
                    235: extern void Dialog_AddListViewColumn(HWND hDlg, int ListViewID, int Order, char *pString, int Width);
                    236: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.