home *** CD-ROM | disk | FTP | other *** search
- unit globs;
- interface
- uses
- PrintTraps, Quickdraw, Picker, Palettes;
-
-
- {======================================================================================= }
- const
- MainWindID = 1000;
-
- AppleMenuID = 1001;
- MenuAbout = 1;
-
- FileMenuID = 1002;
- MenuQuit = 1;
-
- EditMenuID = 1003;
- MenuUndo = 1;
- MenuCut = 3;
- MenuCopy = 4;
- MenuPaste = 5;
- MenuClear = 6;
-
- TileMenuID = 1004;
- MenuDrawEm = 1;
- MenuPrefs = 3;
-
- k_SaveAlrtID = 1001;
- k_ynALRTID = 1006; { Yes No type alert }
- k_yncALRTID = 1007; { Yes, No, Cancel type alert }
-
- {• Low-memory globals:•}
- ROM85 = $28E;
- MBarHeight = $BAA;
-
- type
- TileStyleType = (Arcs, Lines);
-
- GlobalDataRec = record
- Quitting: boolean; { user selected Quit }
- Finished: boolean; { pgm finished Quit Clean-Up }
- Done: boolean; { shut down FrameWork }
- ErrorFlag: boolean; { global error flag }
- MenuHeight: integer; { menu bar height }
- ScreenRect: Rect; { screen minus menu bar }
- GrowRect: Rect; { for GrowWindow }
- DragRect: Rect; { for DragWindow }
- GrowIconRect: Rect; { a pseudo grow-icon }
- HasColorQD: boolean; { can we use color? }
- HasCoProcessor: boolean; { are we fast? }
- showGroBox: boolean; { make grow box (in)visible }
- seedRand: longInt; { save randSeed }
- TileStyle: TileStyleType; { what style to use }
- TileSize: integer; { length of side of a tile }
- InvertRendering: boolean; { shall we invert? }
- showTileBounds: boolean; { show tiles' bounding rect }
- randomness: integer; { degree of randomness }
- end;
- GlobalDataPtr = ^GlobalDataRec;
- GlobalDataHDL = ^GlobalDataPtr;
-
- var
- anInt: integer; {global garbage variables…}
- aLong: longInt;
- aReal: real;
- aChar: char;
- aStr: str255;
- aHdl: handle;
- aRect: rect;
-
- gdh: GlobalDataHDL; { our GlobalDataHandle }
-
- MainWindPtr: WindowPtr;
- mainWindowStorage: WindowRecord;
- {• mainWindPalette: PaletteHandle; we're not using color in the pgm…}
-
- myMenus: array[AppleMenuID..TileMenuID] of MenuHandle; {all of the menus}
-
- gIBeam: CursHandle;
- gWatch: CursHandle;
- gCrossHairs: CursHandle;
-
- MainEvent: EventRecord;
- implementation
- end. {globs Unit}