Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

AcornGUI.h

Go to the documentation of this file.
00001 /*
00002  * AcornGUI.h
00003  *
00004  * Defines variables for the WIMP interface
00005  * (C) 1997 Andreas Dehmel
00006  *
00007  */
00008 
00009 
00010 
00011 #ifndef _ACORN_GUI_H_
00012 #define _ACORN_GUI_H_
00013 
00014 
00015 // Determine which paths to load from
00016 #ifdef FRODO_SC
00017 # define DEFAULT_PREFS  "FrodoSC:Prefs"
00018 # define DEFAULT_SYSCONF        "FrodoSC:SysConf"
00019 #else
00020 # ifdef FRODO_PC
00021 #  define DEFAULT_PREFS         "FrodoPC:Prefs"
00022 #  define DEFAULT_SYSCONF       "FrodoPC:SysConf"
00023 # else
00024 #  define DEFAULT_PREFS "Frodo:Prefs"
00025 #  define DEFAULT_SYSCONF       "Frodo:SysConf"
00026 # endif
00027 #endif
00028 
00029 
00030 // Text written in pane icons:
00031 #define PANE_TEXT_PAUSE         "Pause"
00032 #define PANE_TEXT_RESUME        "Cont"
00033 #define PANE_TEXT_ZOOM1         "1 x"
00034 #define PANE_TEXT_ZOOM2         "2 x"
00035 
00036 
00037 // OS units of extra space between EmuWindow and Pane
00038 #define EmuPaneSpace            2
00039 // OS units of the (volume) well's border
00040 #define WellBorder              12
00041 // Height of title bar in OS units
00042 #define TitleBarHeight          44
00043 // Maximum volume of the Sound system
00044 #define MaximumVolume           127
00045 
00046 
00047 
00048 
00049 // Message Block indices
00050 #define MsgB_Size       0
00051 #define MsgB_Sender     1
00052 #define MsgB_MyRef      2
00053 #define MsgB_YourRef    3
00054 #define MsgB_Action     4
00055 
00056 
00057 // Messages
00058 #define Message_Quit            0x00000
00059 #define Message_DataSave        0x00001
00060 #define Message_DataSaveAck     0x00002
00061 #define Message_DataLoad        0x00003
00062 #define Message_DataLoadAck     0x00004
00063 #define Message_DataOpen        0x00005
00064 #define Message_RAMFetch        0x00006
00065 #define Message_RAMTransmit     0x00007
00066 #define Message_PreQuit         0x00008
00067 #define Message_PaletteChange   0x00009
00068 #define Message_MenuWarning     0x400c0
00069 #define Message_ModeChange      0x400c1
00070 
00071 
00072 // Redraw Window Block
00073 #define RedrawB_Handle          0
00074 #define RedrawB_VMinX           1
00075 #define RedrawB_VMinY           2
00076 #define RedrawB_VMaxX           3
00077 #define RedrawB_VMaxY           4
00078 #define RedrawB_ScrollX         5
00079 #define RedrawB_ScrollY         6
00080 #define RedrawB_CMinX           7
00081 #define RedrawB_CMinY           8
00082 #define RedrawB_CMaxX           9
00083 #define RedrawB_CMaxY           10
00084 
00085 
00086 // Window block (e.g. open, getstate.... For create: subtract -1 (no handle))
00087 #define WindowB_Handle          0
00088 #define WindowB_VMinX           1
00089 #define WindowB_VMinY           2
00090 #define WindowB_VMaxX           3
00091 #define WindowB_VMaxY           4
00092 #define WindowB_ScrollX         5
00093 #define WindowB_ScrollY         6
00094 #define WindowB_Stackpos        7
00095 #define WindowB_WFlags          8
00096 #define WindowB_Colours1        9
00097 #define WindowB_Colours2        10
00098 #define WindowB_WMinX           11
00099 #define WindowB_WMinY           12
00100 #define WindowB_WMaxX           13
00101 #define WindowB_WMaxY           14
00102 #define WindowB_TFlags          15
00103 #define WindowB_WAFlags         16
00104 #define WindowB_SpriteArea      17
00105 #define WindowB_MinDims         18
00106 #define WindowB_Data            19
00107 #define WindowB_Icons           22
00108 
00109 
00110 // Raw icon block
00111 #define RawIB_MinX              0
00112 #define RawIB_MinY              1
00113 #define RawIB_MaxX              2
00114 #define RawIB_MaxY              3
00115 #define RawIB_Flags             4
00116 #define RawIB_Data0             5
00117 #define RawIB_Data1             6
00118 #define RawIB_Data2             7
00119 
00120 
00121 // Icon block (as in GetIconState)
00122 #define IconB_Handle            0
00123 #define IconB_Number            1
00124 #define IconB_MinX              2
00125 #define IconB_MinY              3
00126 #define IconB_MaxX              4
00127 #define IconB_MaxY              5
00128 #define IconB_Flags             6
00129 #define IconB_Data0             7
00130 #define IconB_Data1             8
00131 #define IconB_Data2             9
00132 
00133 
00134 // Mouse click block (also: get pointer info):
00135 #define MouseB_PosX             0
00136 #define MouseB_PosY             1
00137 #define MouseB_Buttons          2
00138 #define MouseB_Window           3
00139 #define MouseB_Icon             4
00140 
00141 
00142 // Key pressed block
00143 #define KeyPB_Window            0
00144 #define KeyPB_Icon              1
00145 #define KeyPB_PosX              2
00146 #define KeyPB_PosY              3
00147 #define KeyPB_CHeight           4
00148 #define KeyPB_Index             5
00149 #define KeyPB_Key               6
00150 
00151 
00152 // Drag Block
00153 #define DragB_Handle            0
00154 #define DragB_Type              1
00155 #define DragB_IMinX             2
00156 #define DragB_IMinY             3
00157 #define DragB_IMaxX             4
00158 #define DragB_IMaxY             5
00159 #define DragB_BBMinX            6
00160 #define DragB_BBMinY            7
00161 #define DragB_BBMaxX            8
00162 #define DragB_BBMaxY            9
00163 #define DragB_R12               10
00164 #define DragB_DrawCode          11
00165 #define DragB_RemoveCode        12
00166 #define DragB_MoveCode          13
00167 
00168 
00169 // Drag A Sprite Block
00170 #define DASB_MinX               0
00171 #define DASB_MinY               1
00172 #define DASB_MaxX               2
00173 #define DASB_MaxY               3
00174 
00175 
00176 
00177 
00178 
00179 // Menu definitions
00180 #define Menu_IBar               1
00181 #define Menu_Emulator           2
00182 
00183 #define Menu_Height             44
00184 #define Menu_Flags              0x07003011
00185 
00186 #define Menu_IBar_Items         5
00187 #define Menu_IBar_Width         256
00188 #define Menu_IBar_Info          0
00189 #define Menu_IBar_Prefs         1
00190 #define Menu_IBar_Config        2
00191 #define Menu_IBar_Sound         3
00192 #define Menu_IBar_Quit          4
00193 
00194 #define Menu_EWind_Items        4
00195 #define Menu_EWind_Width        200
00196 #define Menu_EWind_Info         0
00197 #define Menu_EWind_Sound        1
00198 #define Menu_EWind_SaveRAM      2
00199 #define Menu_EWind_Snapshot     3
00200 
00201 
00202 
00203 
00204 
00205 // Icons used in window definitions:
00206 #define Icon_Pane_LED0          1
00207 #define Icon_Pane_LED1          3
00208 #define Icon_Pane_LED2          5
00209 #define Icon_Pane_LED3          7
00210 #define Icon_Pane_Drive0        0
00211 #define Icon_Pane_Drive1        2
00212 #define Icon_Pane_Drive2        4
00213 #define Icon_Pane_Drive3        6
00214 #define Icon_Pane_Reset         8
00215 #define Icon_Pane_Pause         9
00216 #define Icon_Pane_Speed         10
00217 #define Icon_Pane_Toggle        11
00218 
00219 #define Icon_Prefs_Dr8DIR       6
00220 #define Icon_Prefs_Dr8D64       7
00221 #define Icon_Prefs_Dr8T64       8
00222 #define Icon_Prefs_Dr8Path      9
00223 #define Icon_Prefs_Dr9DIR       11
00224 #define Icon_Prefs_Dr9D64       12
00225 #define Icon_Prefs_Dr9T64       13
00226 #define Icon_Prefs_Dr9Path      14
00227 #define Icon_Prefs_Dr10DIR      16
00228 #define Icon_Prefs_Dr10D64      17
00229 #define Icon_Prefs_Dr10T64      18
00230 #define Icon_Prefs_Dr10Path     19
00231 #define Icon_Prefs_Dr11DIR      21
00232 #define Icon_Prefs_Dr11D64      22
00233 #define Icon_Prefs_Dr11T64      23
00234 #define Icon_Prefs_Dr11Path     24
00235 #define Icon_Prefs_Emul1541     25
00236 #define Icon_Prefs_MapSlash     26
00237 #define Icon_Prefs_SIDNone      29
00238 #define Icon_Prefs_SIDDigi      30
00239 #define Icon_Prefs_SIDCard      31
00240 #define Icon_Prefs_SIDFilter    32
00241 #define Icon_Prefs_REUNone      35
00242 #define Icon_Prefs_REU128       36
00243 #define Icon_Prefs_REU256       37
00244 #define Icon_Prefs_REU512       38
00245 #define Icon_Prefs_SkipFLeft    41
00246 #define Icon_Prefs_SkipFRight   42
00247 #define Icon_Prefs_SkipFText    43
00248 #define Icon_Prefs_SprOn        47
00249 #define Icon_Prefs_SprColl      48
00250 #define Icon_Prefs_Joy1On       50
00251 #define Icon_Prefs_Joy2On       51
00252 #define Icon_Prefs_JoySwap      52
00253 #define Icon_Prefs_LimSpeed     55
00254 #define Icon_Prefs_FastReset    56
00255 #define Icon_Prefs_CIAHack      57
00256 #define Icon_Prefs_CycleNorm    64
00257 #define Icon_Prefs_CycleBad     65
00258 #define Icon_Prefs_CycleCIA     66
00259 #define Icon_Prefs_CycleFloppy  67
00260 #define Icon_Prefs_Cancel       68
00261 #define Icon_Prefs_OK           69
00262 #define Icon_Prefs_PrefPath     70
00263 #define Icon_Prefs_Save         71
00264 #define Icon_Prefs_PrefSprite   72
00265 
00266 #define Icon_Conf_PollAfter     3
00267 #define Icon_Conf_SpeedAfter    5
00268 #define Icon_Conf_Joy1Up        15
00269 #define Icon_Conf_Joy1Down      16
00270 #define Icon_Conf_Joy1Left      17
00271 #define Icon_Conf_Joy1Right     18
00272 #define Icon_Conf_Joy1Fire      19
00273 #define Icon_Conf_Joy2Up        27
00274 #define Icon_Conf_Joy2Down      28
00275 #define Icon_Conf_Joy2Left      29
00276 #define Icon_Conf_Joy2Right     30
00277 #define Icon_Conf_Joy2Fire      31
00278 #define Icon_Conf_OK            32
00279 #define Icon_Conf_Save          33
00280 #define Icon_Conf_ConfPath      34
00281 #define Icon_Conf_ConfSprite    35
00282 #define Icon_Conf_SoundAfter    37
00283 
00284 #define Icon_Info_Name          4
00285 #define Icon_Info_Purpose       5
00286 #define Icon_Info_Author        6
00287 #define Icon_Info_AuthorPort    7
00288 #define Icon_Info_Version       8
00289 
00290 #define Icon_Sound_Volume       0
00291 #define Icon_Sound_Notes        1
00292 
00293 #define Icon_Save_Sprite        0
00294 #define Icon_Save_Path          1
00295 #define Icon_Save_OK            2
00296 
00297 
00298 
00299 
00300 // Drag types
00301 #define DRAG_PrefsSprite        1
00302 #define DRAG_ConfSprite         2
00303 #define DRAG_SaveSprite         3
00304 #define DRAG_VolumeWell         16
00305 
00306 
00307 
00308 // Save types
00309 #define SAVE_RAM                1
00310 #define SAVE_Snapshot           2
00311 
00312 
00313 
00314 
00315 // variables
00316 
00317 extern char LEDtoIcon[4];
00318 extern char DriveToIcon[16];
00319 extern char SIDtoIcon[3];
00320 extern char REUtoIcon[4];
00321 
00322 
00323 
00324 
00325 
00326 // Plotter structs and variables
00327 typedef struct {
00328   int x, y, dimx, dimy;
00329 } graph_env;
00330 
00331 #define PLOTTER_ARGS    const graph_env *GraphEnv, const int *Clipwindow,\
00332                         const uint8 *Bitmap, const unsigned int *TransTab
00333 
00334 // Plotters provided in Plotters.s -- declare as C-functions !
00335 extern "C"
00336 {
00337 extern void PlotZoom1(PLOTTER_ARGS);
00338 extern void PlotZoom2(PLOTTER_ARGS);
00339 }
00340 
00341 #endif

Generated on Tue Feb 8 04:07:15 2005 for E32frodo by doxygen 1.3.3