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

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: 
                     15: /* Dialog Sound */
                     16: typedef struct {
                     17:   BOOL bEnableSound;
                     18:   int nPlaybackQuality;
                     19:   char szYMCaptureFileName[MAX_FILENAME_LENGTH];
                     20: } DLG_SOUND;
                     21: 
                     22: enum {
                     23:   PLAYBACK_LOW,
                     24:   PLAYBACK_MEDIUM,
                     25:   PLAYBACK_HIGH
                     26: };
                     27: 
                     28: 
                     29: /* Dialog RS232 */
                     30: typedef struct {
                     31:   BOOL bEnableRS232;
                     32:   int nCOMPort;
                     33: } DLG_RS232;
                     34: 
                     35: enum {
                     36:   COM_PORT_1,
                     37:   COM_PORT_2,
                     38:   COM_PORT_3,
                     39:   COM_PORT_4
                     40: };
                     41: 
                     42: 
                     43: /* Dialog Keyboard */
                     44: typedef struct {
                     45:   BOOL bDisableKeyRepeat;
1.1.1.2   root       46:   int ShortCuts[2][3];     /* F11+F12, NORMAL+SHIFT+CTRL */
1.1       root       47:   char szMappingFileName[MAX_FILENAME_LENGTH];
                     48: } DLG_KEYBOARD;
                     49: 
                     50: enum {
                     51:   SHORT_CUT_F11,
                     52:   SHORT_CUT_F12,
                     53:   SHORT_CUT_NONE
                     54: };
                     55: 
                     56: enum {
                     57:   SHORT_CUT_KEY,
                     58:   SHORT_CUT_SHIFT,
                     59:   SHORT_CUT_CTRL
                     60: };
                     61: 
                     62: 
                     63: /* Dialog Memory */
                     64: typedef struct {
                     65:   int nMemorySize;
                     66:   char szMemoryCaptureFileName[MAX_FILENAME_LENGTH];
                     67: } DLG_MEMORY;
                     68: 
                     69: enum {
                     70:   MEMORY_SIZE_512Kb,
                     71:   MEMORY_SIZE_1Mb,
                     72:   MEMORY_SIZE_2Mb,
                     73:   MEMORY_SIZE_4Mb
                     74: };
                     75: 
                     76: 
                     77: /* Dialog Joystick */
                     78: typedef struct {
                     79:   BOOL bCursorEmulation;
                     80:   BOOL bEnableAutoFire;
                     81: } JOYSTICK;
                     82: 
                     83: typedef struct {
                     84:   JOYSTICK Joy[2];
                     85: } DLG_JOYSTICKS;
                     86: 
                     87: 
                     88: /* Dialog Discimage */
                     89: typedef struct {
                     90:   BOOL bAutoInsertDiscB;
                     91:   char szDiscImageDirectory[MAX_FILENAME_LENGTH];
                     92: } DLG_DISCIMAGE;
                     93: 
                     94: 
                     95: /* Dialog configure */
                     96: typedef struct {
                     97:   int nMinMaxSpeed;
                     98:   int nPrevMinMaxSpeed;
                     99: } DLG_CONFIGURE;
                    100: 
                    101: enum {
                    102:   MINMAXSPEED_MIN,
                    103:   MINMAXSPEED_1,
                    104:   MINMAXSPEED_2,
                    105:   MINMAXSPEED_3,
                    106:   MINMAXSPEED_MAX
                    107: };
                    108: 
                    109: 
1.1.1.2   root      110: /* Dialog hard discs */
                    111: #define MAX_HARDDRIVES  1
1.1       root      112: #define DRIVELIST_TO_DRIVE_INDEX(DriveList)  (DriveList+1)
                    113: typedef struct {
                    114:   int nDriveList;
                    115:   BOOL bBootFromHardDisc;
                    116:   int nHardDiscDir;
                    117:   char szHardDiscDirectories[MAX_HARDDRIVES][MAX_FILENAME_LENGTH];
1.1.1.2   root      118:   char szHardDiscImage[MAX_FILENAME_LENGTH];
1.1       root      119: } DLG_HARDDISC;
                    120: 
                    121: enum {
                    122:   DRIVELIST_NONE,
                    123:   DRIVELIST_C,
                    124:   DRIVELIST_CD,
                    125:   DRIVELIST_CDE,
                    126:   DRIVELIST_CDEF
                    127: };
                    128: 
                    129: enum {
                    130:   DRIVE_C,
                    131:   DRIVE_D,
                    132:   DRIVE_E,
                    133:   DRIVE_F
                    134: };
                    135: 
                    136: 
                    137: /* Dialog screen */
                    138: typedef struct {
                    139:   BOOL bDoubleSizeWindow;
                    140:   BOOL bAllowOverscan;
                    141:   BOOL bInterlacedFullScreen;
                    142:   BOOL bSyncToRetrace;
                    143:   BOOL bFrameSkip;
                    144: } DLG_SCREEN_ADVANCED;
                    145: 
                    146: typedef struct {
                    147:   BOOL bFullScreen;
                    148:   DLG_SCREEN_ADVANCED Advanced;
                    149:   int ChosenDisplayMode;
                    150: 
                    151:   BOOL bCaptureChange;
                    152:   int nFramesPerSecond;
                    153:   BOOL bUseHighRes;
                    154: } DLG_SCREEN;
                    155: 
                    156: 
                    157: /* Dialog Printer */
                    158: typedef struct {
                    159:   BOOL bEnablePrinting;
                    160:   BOOL bPrintToFile;
                    161:   char szPrintToFileName[MAX_FILENAME_LENGTH];
                    162: } DLG_PRINTER;
                    163: 
                    164: 
1.1.1.3 ! root      165: /* Dialog System */
1.1.1.2   root      166: typedef struct {
1.1.1.3 ! root      167:   int nCpuLevel;
        !           168:   BOOL bCompatibleCpu;
        !           169:   BOOL bAddressSpace24;
        !           170:   BOOL bBlitter;                /* TRUE if blitter is enabled */
        !           171: } DLG_SYSTEM;
1.1.1.2   root      172: 
                    173: 
1.1       root      174: /* State of system is stored in this structure */
                    175: /* On reset, variables are copied into system globals and used. */
                    176: typedef struct {
1.1.1.2   root      177:   /* Configure */
1.1       root      178:   DLG_CONFIGURE Configure;
                    179:   DLG_SCREEN Screen;
                    180:   DLG_JOYSTICKS Joysticks;
                    181:   DLG_KEYBOARD Keyboard;
                    182:   DLG_SOUND Sound;
                    183:   DLG_MEMORY Memory;
                    184:   DLG_DISCIMAGE DiscImage;
                    185:   DLG_HARDDISC HardDisc;
                    186:   DLG_TOSGEM TOSGEM;
                    187:   DLG_RS232 RS232;
                    188:   DLG_PRINTER Printer;
1.1.1.3 ! root      189:   DLG_SYSTEM System;
1.1       root      190: } DLG_PARAMS;
                    191: 
1.1.1.2   root      192: 
                    193: extern DLG_PARAMS ConfigureParams, DialogParams;
1.1       root      194: 
                    195: extern void Dialog_DefaultConfigurationDetails(void);
                    196: extern void Dialog_CopyDetailsFromConfiguration(BOOL bReset);
1.1.1.2   root      197: extern BOOL Dialog_DoProperty(void);

unix.superglobalmegacorp.com

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