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

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;
1.1.1.2 ! root       58:   int ShortCuts[2][3];     /* F11+F12, NORMAL+SHIFT+CTRL */
1.1       root       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:   JOYSTICK Joy[2];
                     97: } DLG_JOYSTICKS;
                     98: 
                     99: 
                    100: /* Dialog Discimage */
                    101: typedef struct {
                    102:   BOOL bAutoInsertDiscB;
                    103:   char szDiscImageDirectory[MAX_FILENAME_LENGTH];
                    104: } DLG_DISCIMAGE;
                    105: 
                    106: 
                    107: /* Dialog configure */
                    108: typedef struct {
                    109:   int nMinMaxSpeed;
                    110:   int nPrevMinMaxSpeed;
                    111: } DLG_CONFIGURE;
                    112: 
                    113: enum {
                    114:   MINMAXSPEED_MIN,
                    115:   MINMAXSPEED_1,
                    116:   MINMAXSPEED_2,
                    117:   MINMAXSPEED_3,
                    118:   MINMAXSPEED_MAX
                    119: };
                    120: 
                    121: 
1.1.1.2 ! root      122: /* Dialog hard discs */
        !           123: #define MAX_HARDDRIVES  1
1.1       root      124: #define DRIVELIST_TO_DRIVE_INDEX(DriveList)  (DriveList+1)
                    125: typedef struct {
                    126:   int nDriveList;
                    127:   BOOL bBootFromHardDisc;
                    128:   int nHardDiscDir;
                    129:   char szHardDiscDirectories[MAX_HARDDRIVES][MAX_FILENAME_LENGTH];
1.1.1.2 ! root      130:   char szHardDiscImage[MAX_FILENAME_LENGTH];
1.1       root      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: 
1.1.1.2 ! root      177: /* Dialog CPU */
        !           178: typedef struct {
        !           179:   int level;
        !           180:   BOOL compatible;
        !           181:   BOOL address_space_24;
        !           182: } DLG_CPU;
        !           183: 
        !           184: 
1.1       root      185: /* State of system is stored in this structure */
                    186: /* On reset, variables are copied into system globals and used. */
                    187: typedef struct {
1.1.1.2 ! root      188:   /* Configure */
1.1       root      189:   DLG_CONFIGURE Configure;
                    190:   DLG_SCREEN Screen;
                    191:   DLG_JOYSTICKS Joysticks;
                    192:   DLG_KEYBOARD Keyboard;
                    193:   DLG_SOUND Sound;
                    194:   DLG_MEMORY Memory;
                    195:   DLG_DISCIMAGE DiscImage;
                    196:   DLG_HARDDISC HardDisc;
                    197:   DLG_TOSGEM TOSGEM;
                    198:   DLG_RS232 RS232;
                    199:   DLG_PRINTER Printer;
1.1.1.2 ! root      200:   DLG_CPU Cpu;
1.1       root      201: } DLG_PARAMS;
                    202: 
1.1.1.2 ! root      203: 
        !           204: extern DLG_PARAMS ConfigureParams, DialogParams;
1.1       root      205: 
                    206: extern void Dialog_DefaultConfigurationDetails(void);
                    207: extern void Dialog_CopyDetailsFromConfiguration(BOOL bReset);
1.1.1.2 ! root      208: 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.