home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-05-23 | 4.9 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| AMOS Picture Packer (image/amosPicturePacker)
| ext
| Supported |
1%
| dexvert
| Debian floppy split (archive/debianFloppySplit)
| ext
| Unsupported |
1%
| dexvert
| Sound Images sound sample (audio/soundImagesSoundSample)
| ext
| Unsupported |
1%
| dexvert
| DESI-III drawing (image/desiIIIDrawing)
| ext
| Unsupported |
1%
| dexvert
| MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable)
| ext
| Unsupported |
1%
| dexvert
| Alien Trilogytextures (other/alienTrilogyTextures)
| ext
| Unsupported |
1%
| dexvert
| APT cache data (other/aptCacheData)
| ext
| Unsupported |
1%
| dexvert
| CorelTRACE configuration (other/corelTRACEConfiguration)
| ext
| Unsupported |
1%
| dexvert
| Dreamcast Disc (other/dreamcastDisc)
| ext
| Unsupported |
1%
| dexvert
| EST flat binary (other/estFlatBinary)
| ext
| Unsupported |
1%
| dexvert
| Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat)
| ext
| Unsupported |
1%
| dexvert
| Sega Genesis/Megadrive/32x ROM (other/genesisROM)
| ext
| Unsupported |
1%
| dexvert
| Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive)
| ext
| Unsupported |
1%
| dexvert
| Sound Images Sound Driver (other/soundImagesSoundDriver)
| ext
| Unsupported |
1%
| dexvert
| Symantec/Norton Config (other/symantecNortonConfig)
| ext
| Unsupported |
1%
| dexvert
| Vectrex ROM (other/vectrexROM)
| ext
| Unsupported |
1%
| dexvert
| BIS raP encoded format (other/bisraPEncoded)
| ext
| Unsupported |
1%
| dexvert
| Pascal Script binary (other/pascalScriptBinary)
| ext
| Unsupported |
1%
| dexvert
| 7th Level game data archive (other/seventhLevelGameDataArchive)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Binary Text (image/binaryText)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary, Thu Feb 16 06:49:33 1989, modified Fri Jan 26 14:28:53 1990, creator Think C, type ASCII, 4859 bytes "context.c"
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 1
| default (weak)
| |
100%
| lsar
| MacBinary
| default
| |
100%
| gt2
| MAC Bilddatei
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 63 6f 6e 74 65 78 | 74 2e 63 00 00 00 00 00 |..contex|t.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 12 fb 00 | 00 00 00 a0 20 65 cd a1 |........|.... e..|
|00000060| e6 55 75 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Uu.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 0d 20 2a 09 63 6f 6e | 74 65 78 74 2e 63 0d 20 |*. *.con|text.c. |
|000000e0| 2a 0d 20 2a 09 43 6f 6e | 74 65 78 74 20 4d 61 6e |*. *.Con|text Man|
|000000f0| 61 67 65 6d 65 6e 74 20 | 50 61 63 6b 61 67 65 0d |agement |Package.|
|00000100| 20 2a 0d 20 2a 09 57 72 | 69 74 74 65 6e 20 62 79 | *. *.Wr|itten by|
|00000110| 20 50 61 63 6f 20 58 61 | 6e 64 65 72 20 4e 61 74 | Paco Xa|nder Nat|
|00000120| 68 61 6e 0d 20 2a 09 a9 | 31 39 39 30 2c 20 4d 6f |han. *..|1990, Mo|
|00000130| 74 6f 72 6f 6c 61 20 49 | 6e 63 2e 20 20 50 75 62 |torola I|nc. Pub|
|00000140| 6c 69 63 20 64 6f 6d 61 | 69 6e 20 73 6f 75 72 63 |lic doma|in sourc|
|00000150| 65 20 63 6f 64 65 2e 0d | 20 2a 2a 2a 2a 2a 2a 2a |e code..| *******|
|00000160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 0d 23 69 6e 63 |********|*/..#inc|
|000001b0| 6c 75 64 65 20 22 61 70 | 70 6c 69 63 2e 68 22 0d |lude "ap|plic.h".|
|000001c0| 23 69 6e 63 6c 75 64 65 | 20 22 77 69 6e 64 6f 77 |#include| "window|
|000001d0| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 64 69 |.h".#inc|lude "di|
|000001e0| 61 6c 6f 67 2e 68 22 0d | 23 69 6e 63 6c 75 64 65 |alog.h".|#include|
|000001f0| 20 22 63 6f 6e 74 65 78 | 74 2e 68 22 0d 23 69 6e | "contex|t.h".#in|
|00000200| 63 6c 75 64 65 20 22 65 | 64 69 74 2e 68 22 0d 23 |clude "e|dit.h".#|
|00000210| 69 6e 63 6c 75 64 65 20 | 22 64 6f 63 75 6d 65 6e |include |"documen|
|00000220| 74 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 22 61 |t.h".#in|clude "a|
|00000230| 73 63 69 69 2e 68 22 0d | 23 69 6e 63 6c 75 64 65 |scii.h".|#include|
|00000240| 20 22 61 62 6f 75 74 2e | 68 22 0d 23 69 6e 63 6c | "about.|h".#incl|
|00000250| 75 64 65 20 22 6e 6f 69 | 73 65 2e 68 22 0d 23 69 |ude "noi|se.h".#i|
|00000260| 6e 63 6c 75 64 65 20 22 | 68 65 6c 70 2e 68 22 0d |nclude "|help.h".|
|00000270| 0d 23 69 6e 63 6c 75 64 | 65 20 22 74 65 73 74 2e |.#includ|e "test.|
|00000280| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 67 6e 6f |h".#incl|ude "gno|
|00000290| 73 69 73 2e 68 22 0d 0d | 0d 2f 2a 20 45 78 74 65 |sis.h"..|./* Exte|
|000002a0| 72 6e 61 6c 20 44 61 74 | 61 20 53 74 72 75 63 74 |rnal Dat|a Struct|
|000002b0| 75 72 65 73 0d 20 2a 2f | 0d 4d 65 6e 75 48 61 6e |ures. */|.MenuHan|
|000002c0| 64 6c 65 0d 09 6d 65 6e | 75 5b 4d 41 58 4d 45 4e |dle..men|u[MAXMEN|
|000002d0| 55 5d 3b 0d 09 0d 0d 2f | 2a 20 45 6e 61 62 6c 65 |U];..../|* Enable|
|000002e0| 2f 44 69 73 61 62 6c 65 | 20 61 20 6d 65 6e 75 20 |/Disable| a menu |
|000002f0| 69 74 65 6d 2e 2e 2e 20 | 73 68 6f 75 6c 64 20 68 |item... |should h|
|00000300| 61 76 65 20 62 65 65 6e | 20 69 6e 20 74 68 65 20 |ave been| in the |
|00000310| 4d 65 6e 75 4d 67 72 20 | 54 6f 6f 6c 62 6f 78 0d |MenuMgr |Toolbox.|
|00000320| 20 2a 2f 0d 76 6f 69 64 | 0d 43 6f 6e 74 4d 65 6e | */.void|.ContMen|
|00000330| 75 49 74 65 6d 20 28 74 | 68 65 4d 65 6e 75 2c 20 |uItem (t|heMenu, |
|00000340| 74 68 65 49 74 65 6d 2c | 20 66 6c 61 67 29 0d 09 |theItem,| flag)..|
|00000350| 72 65 67 69 73 74 65 72 | 20 4d 65 6e 75 48 61 6e |register| MenuHan|
|00000360| 64 6c 65 20 74 68 65 4d | 65 6e 75 3b 0d 09 72 65 |dle theM|enu;..re|
|00000370| 67 69 73 74 65 72 20 73 | 68 6f 72 74 20 74 68 65 |gister s|hort the|
|00000380| 49 74 65 6d 3b 0d 09 72 | 65 67 69 73 74 65 72 20 |Item;..r|egister |
|00000390| 73 68 6f 72 74 20 66 6c | 61 67 3b 0d 7b 0d 09 69 |short fl|ag;.{..i|
|000003a0| 66 20 28 66 6c 61 67 29 | 0d 09 09 45 6e 61 62 6c |f (flag)|...Enabl|
|000003b0| 65 49 74 65 6d 28 74 68 | 65 4d 65 6e 75 2c 20 74 |eItem(th|eMenu, t|
|000003c0| 68 65 49 74 65 6d 29 3b | 0d 09 65 6c 73 65 0d 09 |heItem);|..else..|
|000003d0| 09 44 69 73 61 62 6c 65 | 49 74 65 6d 28 74 68 65 |.Disable|Item(the|
|000003e0| 4d 65 6e 75 2c 20 74 68 | 65 49 74 65 6d 29 3b 0d |Menu, th|eItem);.|
|000003f0| 7d 0d 0d 0d 2f 2a 20 45 | 6e 61 62 6c 65 20 61 6e |}.../* E|nable an|
|00000400| 64 20 64 69 73 61 62 6c | 65 20 6d 65 6e 75 73 20 |d disabl|e menus |
|00000410| 62 61 73 65 64 20 6f 6e | 20 74 68 65 20 63 75 72 |based on| the cur|
|00000420| 72 65 6e 74 20 73 74 61 | 74 65 20 6f 66 20 74 68 |rent sta|te of th|
|00000430| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 20 20 |e applic|ation. |
|00000440| 54 68 69 73 20 69 73 0d | 20 2a 20 63 61 6c 6c 65 |This is.| * calle|
|00000450| 64 20 6a 75 73 74 20 62 | 65 66 6f 72 65 20 4d 65 |d just b|efore Me|
|00000460| 6e 75 53 65 6c 65 63 74 | 28 29 20 6f 72 20 4d 65 |nuSelect|() or Me|
|00000470| 6e 75 4b 65 79 28 29 2c | 20 73 6f 20 69 74 20 63 |nuKey(),| so it c|
|00000480| 61 6e 20 73 65 74 20 75 | 70 20 65 76 65 72 79 74 |an set u|p everyt|
|00000490| 68 69 6e 67 20 66 6f 72 | 20 74 68 65 0d 20 2a 20 |hing for| the. * |
|000004a0| 4d 65 6e 75 20 4d 61 6e | 61 67 65 72 2e 20 20 53 |Menu Man|ager. S|
|000004b0| 69 6e 63 65 20 74 68 65 | 73 65 20 61 72 65 20 74 |ince the|se are t|
|000004c0| 68 65 20 74 69 6d 65 73 | 20 77 68 65 6e 20 74 68 |he times| when th|
|000004d0| 65 20 75 73 65 72 20 63 | 61 6e 20 73 65 6c 65 63 |e user c|an selec|
|000004e0| 74 20 6d 65 6e 75 20 69 | 74 65 6d 73 2c 0d 20 2a |t menu i|tems,. *|
|000004f0| 20 79 6f 75 20 6f 6e 6c | 79 20 6e 65 65 64 20 74 | you onl|y need t|
|00000500| 6f 20 65 6e 61 62 6c 65 | 2f 64 69 73 61 62 6c 65 |o enable|/disable|
|00000510| 20 69 74 65 6d 73 20 74 | 68 65 6e 2e 0d 20 2a 2f | items t|hen.. */|
|00000520| 0d 76 6f 69 64 0d 43 6f | 6e 74 41 64 6a 4d 65 6e |.void.Co|ntAdjMen|
|00000530| 75 20 28 29 0d 7b 0d 09 | 72 65 67 69 73 74 65 72 |u ().{..|register|
|00000540| 20 42 6f 6f 6c 65 61 6e | 20 63 6c 6f 73 65 46 6c | Boolean| closeFl|
|00000550| 61 67 2c 20 76 69 65 77 | 46 6c 61 67 3b 0d 0d 09 |ag, view|Flag;...|
|00000560| 2f 2a 20 41 64 6a 75 73 | 74 20 74 68 65 20 66 69 |/* Adjus|t the fi|
|00000570| 6c 65 20 6d 65 6e 75 20 | 6f 70 74 69 6f 6e 73 0d |le menu |options.|
|00000580| 09 20 2a 2f 0d 09 63 6c | 6f 73 65 46 6c 61 67 20 |. */..cl|oseFlag |
|00000590| 3d 20 28 28 57 69 6e 64 | 6f 77 50 65 65 6b 29 20 |= ((Wind|owPeek) |
|000005a0| 77 50 74 72 47 6e 6f 73 | 29 2d 3e 76 69 73 69 62 |wPtrGnos|)->visib|
|000005b0| 6c 65 3b 0d 09 76 69 65 | 77 46 6c 61 67 20 3d 20 |le;..vie|wFlag = |
|000005c0| 28 28 57 69 6e 64 6f 77 | 50 65 65 6b 29 20 64 50 |((Window|Peek) dP|
|000005d0| 74 72 41 6e 61 6c 29 2d | 3e 76 69 73 69 62 6c 65 |trAnal)-|>visible|
|000005e0| 3b 0d 0d 09 43 6f 6e 74 | 4d 65 6e 75 49 74 65 6d |;...Cont|MenuItem|
|000005f0| 28 6d 65 6e 75 5b 66 69 | 6c 65 4d 5d 2c 20 66 6d |(menu[fi|leM], fm|
|00000600| 4e 65 77 2c 20 21 63 6c | 6f 73 65 46 6c 61 67 29 |New, !cl|oseFlag)|
|00000610| 3b 0d 09 43 6f 6e 74 4d | 65 6e 75 49 74 65 6d 28 |;..ContM|enuItem(|
|00000620| 6d 65 6e 75 5b 66 69 6c | 65 4d 5d 2c 20 66 6d 4f |menu[fil|eM], fmO|
|00000630| 70 65 6e 2c 20 21 63 6c | 6f 73 65 46 6c 61 67 29 |pen, !cl|oseFlag)|
|00000640| 3b 0d 09 43 6f 6e 74 4d | 65 6e 75 49 74 65 6d 28 |;..ContM|enuItem(|
|00000650| 6d 65 6e 75 5b 66 69 6c | 65 4d 5d 2c 20 66 6d 43 |menu[fil|eM], fmC|
|00000660| 6c 6f 73 65 2c 20 63 6c | 6f 73 65 46 6c 61 67 29 |lose, cl|oseFlag)|
|00000670| 3b 0d 09 43 6f 6e 74 4d | 65 6e 75 49 74 65 6d 28 |;..ContM|enuItem(|
|00000680| 6d 65 6e 75 5b 66 69 6c | 65 4d 5d 2c 20 66 6d 53 |menu[fil|eM], fmS|
|00000690| 61 76 65 2c 20 21 74 65 | 73 74 55 73 65 72 20 26 |ave, !te|stUser &|
|000006a0| 26 20 63 6c 6f 73 65 46 | 6c 61 67 29 3b 0d 09 43 |& closeF|lag);..C|
|000006b0| 6f 6e 74 4d 65 6e 75 49 | 74 65 6d 28 6d 65 6e 75 |ontMenuI|tem(menu|
|000006c0| 5b 66 69 6c 65 4d 5d 2c | 20 66 6d 53 61 76 65 41 |[fileM],| fmSaveA|
|000006d0| 73 2c 20 21 74 65 73 74 | 55 73 65 72 20 26 26 20 |s, !test|User && |
|000006e0| 63 6c 6f 73 65 46 6c 61 | 67 29 3b 0d 09 43 6f 6e |closeFla|g);..Con|
|000006f0| 74 4d 65 6e 75 49 74 65 | 6d 28 6d 65 6e 75 5b 66 |tMenuIte|m(menu[f|
|00000700| 69 6c 65 4d 5d 2c 20 66 | 6d 52 65 76 65 72 74 2c |ileM], f|mRevert,|
|00000710| 20 63 6c 6f 73 65 46 6c | 61 67 29 3b 0d 09 43 6f | closeFl|ag);..Co|
|00000720| 6e 74 4d 65 6e 75 49 74 | 65 6d 28 6d 65 6e 75 5b |ntMenuIt|em(menu[|
|00000730| 66 69 6c 65 4d 5d 2c 20 | 66 6d 50 72 69 6e 74 2c |fileM], |fmPrint,|
|00000740| 20 76 69 65 77 46 6c 61 | 67 29 3b 0d 0d 09 2f 2a | viewFla|g);.../*|
|00000750| 20 41 64 6a 75 73 74 20 | 74 68 65 20 74 65 73 74 | Adjust |the test|
|00000760| 20 6d 65 6e 75 20 6f 70 | 74 69 6f 6e 73 0d 09 20 | menu op|tions.. |
|00000770| 2a 2f 0d 09 53 65 74 49 | 74 65 6d 4d 61 72 6b 28 |*/..SetI|temMark(|
|00000780| 6d 65 6e 75 5b 74 65 73 | 74 4d 5d 2c 20 74 65 73 |menu[tes|tM], tes|
|00000790| 74 55 73 65 72 4d 6f 64 | 65 2c 20 74 65 73 74 55 |tUserMod|e, testU|
|000007a0| 73 65 72 20 3f 20 61 73 | 63 69 69 43 68 65 63 6b |ser ? as|ciiCheck|
|000007b0| 4d 61 72 6b 20 3a 20 61 | 73 63 69 69 4e 6f 4d 61 |Mark : a|sciiNoMa|
|000007c0| 72 6b 29 3b 0d 09 43 6f | 6e 74 4d 65 6e 75 49 74 |rk);..Co|ntMenuIt|
|000007d0| 65 6d 28 6d 65 6e 75 5b | 74 65 73 74 4d 5d 2c 20 |em(menu[|testM], |
|000007e0| 74 65 73 74 55 73 65 72 | 4d 6f 64 65 2c 20 74 65 |testUser|Mode, te|
|000007f0| 73 74 55 73 65 72 29 3b | 0d 0d 09 53 65 74 49 74 |stUser);|...SetIt|
|00000800| 65 6d 4d 61 72 6b 28 6d | 65 6e 75 5b 74 65 73 74 |emMark(m|enu[test|
|00000810| 4d 5d 2c 20 74 65 73 74 | 42 6f 72 64 65 72 6c 65 |M], test|Borderle|
|00000820| 73 73 2c 20 74 65 73 74 | 42 43 72 61 69 67 20 3f |ss, test|BCraig ?|
|00000830| 20 61 73 63 69 69 4e 6f | 4d 61 72 6b 20 3a 20 61 | asciiNo|Mark : a|
|00000840| 73 63 69 69 43 68 65 63 | 6b 4d 61 72 6b 29 3b 0d |sciiChec|kMark);.|
|00000850| 0d 09 53 65 74 49 74 65 | 6d 4d 61 72 6b 28 6d 65 |..SetIte|mMark(me|
|00000860| 6e 75 5b 74 65 73 74 4d | 5d 2c 20 74 65 73 74 49 |nu[testM|], testI|
|00000870| 6e 43 6f 6c 6f 72 2c 20 | 74 65 73 74 4a 44 61 76 |nColor, |testJDav|
|00000880| 69 73 20 3f 20 61 73 63 | 69 69 4e 6f 4d 61 72 6b |is ? asc|iiNoMark|
|00000890| 20 3a 20 61 73 63 69 69 | 43 68 65 63 6b 4d 61 72 | : ascii|CheckMar|
|000008a0| 6b 29 3b 0d 09 43 6f 6e | 74 4d 65 6e 75 49 74 65 |k);..Con|tMenuIte|
|000008b0| 6d 28 6d 65 6e 75 5b 74 | 65 73 74 4d 5d 2c 20 74 |m(menu[t|estM], t|
|000008c0| 65 73 74 49 6e 43 6f 6c | 6f 72 2c 20 6c 61 4d 61 |estInCol|or, laMa|
|000008d0| 63 68 69 6e 65 2e 68 61 | 73 43 6f 6c 6f 72 29 3b |chine.ha|sColor);|
|000008e0| 0d 0d 09 2f 2a 20 41 64 | 6a 75 73 74 20 74 68 65 |.../* Ad|just the|
|000008f0| 20 70 72 6f 67 6e 6f 73 | 69 73 20 6d 65 6e 75 20 | prognos|is menu |
|00000900| 6f 70 74 69 6f 6e 73 0d | 09 20 2a 2f 0d 09 43 6f |options.|. */..Co|
|00000910| 6e 74 4d 65 6e 75 49 74 | 65 6d 28 6d 65 6e 75 5b |ntMenuIt|em(menu[|
|00000920| 67 6e 6f 73 4d 5d 2c 20 | 67 6e 6f 73 4e 65 77 2c |gnosM], |gnosNew,|
|00000930| 20 21 74 65 73 74 55 73 | 65 72 20 26 26 20 63 6c | !testUs|er && cl|
|00000940| 6f 73 65 46 6c 61 67 29 | 3b 0d 09 43 6f 6e 74 4d |oseFlag)|;..ContM|
|00000950| 65 6e 75 49 74 65 6d 28 | 6d 65 6e 75 5b 67 6e 6f |enuItem(|menu[gno|
|00000960| 73 4d 5d 2c 20 67 6e 6f | 73 44 65 6c 65 74 65 2c |sM], gno|sDelete,|
|00000970| 20 21 74 65 73 74 55 73 | 65 72 20 26 26 20 67 6e | !testUs|er && gn|
|00000980| 6f 73 4c 69 73 74 2e 6f | 70 65 6e 29 3b 0d 09 43 |osList.o|pen);..C|
|00000990| 6f 6e 74 4d 65 6e 75 49 | 74 65 6d 28 6d 65 6e 75 |ontMenuI|tem(menu|
|000009a0| 5b 67 6e 6f 73 4d 5d 2c | 20 67 6e 6f 73 41 6e 61 |[gnosM],| gnosAna|
|000009b0| 6c 79 7a 65 2c 20 76 69 | 65 77 46 6c 61 67 29 3b |lyze, vi|ewFlag);|
|000009c0| 0d 09 43 6f 6e 74 4d 65 | 6e 75 49 74 65 6d 28 6d |..ContMe|nuItem(m|
|000009d0| 65 6e 75 5b 67 6e 6f 73 | 4d 5d 2c 20 67 6e 6f 73 |enu[gnos|M], gnos|
|000009e0| 4c 65 61 72 6e 2c 20 21 | 74 65 73 74 55 73 65 72 |Learn, !|testUser|
|000009f0| 20 26 26 20 63 6c 6f 73 | 65 46 6c 61 67 20 26 26 | && clos|eFlag &&|
|00000a00| 20 76 69 65 77 46 6c 61 | 67 29 3b 0d 09 43 6f 6e | viewFla|g);..Con|
|00000a10| 74 4d 65 6e 75 49 74 65 | 6d 28 6d 65 6e 75 5b 67 |tMenuIte|m(menu[g|
|00000a20| 6e 6f 73 4d 5d 2c 20 67 | 6e 6f 73 52 65 63 61 6c |nosM], g|nosRecal|
|00000a30| 6c 2c 20 63 6c 6f 73 65 | 46 6c 61 67 20 26 26 20 |l, close|Flag && |
|00000a40| 76 69 65 77 46 6c 61 67 | 29 3b 0d 7d 0d 0d 0d 2f |viewFlag|);.}.../|
|00000a50| 2a 20 43 68 61 6e 67 65 | 20 74 68 65 20 63 75 72 |* Change| the cur|
|00000a60| 73 6f 72 27 73 20 73 68 | 61 70 65 2c 20 64 65 70 |sor's sh|ape, dep|
|00000a70| 65 6e 64 69 6e 67 20 6f | 6e 20 69 74 73 20 70 6f |ending o|n its po|
|00000a80| 73 69 74 69 6f 6e 2e 20 | 20 54 68 69 73 20 61 6c |sition. | This al|
|00000a90| 73 6f 20 63 61 6c 63 75 | 6c 61 74 65 73 0d 20 2a |so calcu|lates. *|
|00000aa0| 20 61 20 72 65 67 69 6f | 6e 20 74 68 61 74 20 69 | a regio|n that i|
|00000ab0| 6e 63 6c 75 64 65 73 20 | 74 68 65 20 63 75 72 73 |ncludes |the curs|
|00000ac0| 6f 72 20 66 6f 72 20 57 | 61 69 74 4e 65 78 74 45 |or for W|aitNextE|
|00000ad0| 76 65 6e 74 28 29 0d 20 | 2a 2f 0d 76 6f 69 64 0d |vent(). |*/.void.|
|00000ae0| 43 6f 6e 74 41 64 6a 43 | 75 72 73 20 28 74 68 65 |ContAdjC|urs (the|
|00000af0| 50 6f 69 6e 74 2c 20 74 | 68 65 52 67 6e 29 0d 09 |Point, t|heRgn)..|
|00000b00| 72 65 67 69 73 74 65 72 | 20 50 6f 69 6e 74 20 74 |register| Point t|
|00000b10| 68 65 50 6f 69 6e 74 3b | 0d 09 72 65 67 69 73 74 |hePoint;|..regist|
|00000b20| 65 72 20 52 67 6e 48 61 | 6e 64 6c 65 20 74 68 65 |er RgnHa|ndle the|
|00000b30| 52 67 6e 3b 0d 7b 0d 09 | 72 65 67 69 73 74 65 72 |Rgn;.{..|register|
|00000b40| 20 57 69 6e 64 6f 77 50 | 74 72 20 74 68 65 57 69 | WindowP|tr theWi|
|00000b50| 6e 64 6f 77 20 3d 20 46 | 72 6f 6e 74 57 69 6e 64 |ndow = F|rontWind|
|00000b60| 6f 77 28 29 3b 0d 09 72 | 65 67 69 73 74 65 72 20 |ow();..r|egister |
|00000b70| 49 6e 66 6f 50 74 72 20 | 69 6e 66 6f 50 74 72 20 |InfoPtr |infoPtr |
|00000b80| 3d 20 28 49 6e 66 6f 50 | 74 72 29 20 47 65 74 57 |= (InfoP|tr) GetW|
|00000b90| 52 65 66 43 6f 6e 28 74 | 68 65 57 69 6e 64 6f 77 |RefCon(t|heWindow|
|00000ba0| 29 3b 0d 09 72 65 67 69 | 73 74 65 72 20 52 67 6e |);..regi|ster Rgn|
|00000bb0| 48 61 6e 64 6c 65 20 61 | 72 72 6f 77 52 67 6e 3b |Handle a|rrowRgn;|
|00000bc0| 0d 09 72 65 67 69 73 74 | 65 72 20 52 67 6e 48 61 |..regist|er RgnHa|
|00000bd0| 6e 64 6c 65 20 69 42 65 | 61 6d 52 67 6e 3b 0d 09 |ndle iBe|amRgn;..|
|00000be0| 52 65 63 74 20 69 42 65 | 61 6d 52 65 63 74 3b 0d |Rect iBe|amRect;.|
|00000bf0| 09 47 72 61 66 50 74 72 | 20 73 61 76 65 50 6f 72 |.GrafPtr| savePor|
|00000c00| 74 3b 0d 0d 09 47 65 74 | 50 6f 72 74 28 26 73 61 |t;...Get|Port(&sa|
|00000c10| 76 65 50 6f 72 74 29 3b | 0d 09 53 65 74 50 6f 72 |vePort);|..SetPor|
|00000c20| 74 28 74 68 65 57 69 6e | 64 6f 77 29 3b 0d 0d 09 |t(theWin|dow);...|
|00000c30| 69 66 20 28 21 6c 61 4d | 61 63 68 69 6e 65 2e 69 |if (!laM|achine.i|
|00000c40| 6e 42 61 63 6b 67 72 6f | 75 6e 64 20 26 26 20 21 |nBackgro|und && !|
|00000c50| 57 69 6e 64 49 73 44 41 | 28 74 68 65 57 69 6e 64 |WindIsDA|(theWind|
|00000c60| 6f 77 29 29 20 7b 0d 09 | 09 2f 2a 20 63 61 6c 63 |ow)) {..|./* calc|
|00000c70| 75 6c 61 74 65 20 72 65 | 67 69 6f 6e 73 20 66 6f |ulate re|gions fo|
|00000c80| 72 20 64 69 66 66 65 72 | 65 6e 74 20 63 75 72 73 |r differ|ent curs|
|00000c90| 6f 72 20 73 68 61 70 65 | 73 2c 20 73 74 61 72 74 |or shape|s, start|
|00000ca0| 20 61 72 72 6f 77 52 67 | 6e 20 77 69 64 65 2d 6f | arrowRg|n wide-o|
|00000cb0| 70 65 6e 20 0d 09 09 20 | 2a 2f 0d 09 09 61 72 72 |pen ... |*/...arr|
|00000cc0| 6f 77 52 67 6e 20 3d 20 | 4e 65 77 52 67 6e 28 29 |owRgn = |NewRgn()|
|00000cd0| 3b 0d 09 09 69 42 65 61 | 6d 52 67 6e 20 3d 20 4e |;...iBea|mRgn = N|
|00000ce0| 65 77 52 67 6e 28 29 3b | 0d 09 09 53 65 74 52 65 |ewRgn();|...SetRe|
|00000cf0| 63 74 52 67 6e 28 61 72 | 72 6f 77 52 67 6e 2c 20 |ctRgn(ar|rowRgn, |
|00000d00| 2d 33 32 37 36 38 2c 20 | 2d 33 32 37 36 38 2c 20 |-32768, |-32768, |
|00000d10| 33 32 37 36 37 2c 20 33 | 32 37 36 37 29 3b 0d 09 |32767, 3|2767);..|
|00000d20| 09 0d 09 09 2f 2a 20 63 | 61 6c 63 75 6c 61 74 65 |..../* c|alculate|
|00000d30| 20 69 42 65 61 6d 52 67 | 6e 0d 09 09 20 2a 2f 0d | iBeamRg|n... */.|
|00000d40| 09 09 69 66 20 28 57 69 | 6e 64 49 73 41 70 70 28 |..if (Wi|ndIsApp(|
|00000d50| 74 68 65 57 69 6e 64 6f | 77 29 20 26 26 20 28 69 |theWindo|w) && (i|
|00000d60| 6e 66 6f 50 74 72 2d 3e | 6b 69 6e 64 20 3d 3d 20 |nfoPtr->|kind == |
|00000d70| 77 6b 54 65 78 74 29 29 | 20 7b 0d 09 09 09 69 42 |wkText))| {....iB|
|00000d80| 65 61 6d 52 65 63 74 20 | 3d 20 28 2a 28 69 6e 66 |eamRect |= (*(inf|
|00000d90| 6f 50 74 72 2d 3e 69 74 | 65 6d 2e 74 65 78 74 2e |oPtr->it|em.text.|
|00000da0| 74 65 48 64 6c 29 29 2d | 3e 76 69 65 77 52 65 63 |teHdl))-|>viewRec|
|00000db0| 74 3b 0d 0d 09 09 09 4c | 6f 63 61 6c 54 6f 47 6c |t;.....L|ocalToGl|
|00000dc0| 6f 62 61 6c 28 26 54 6f | 70 4c 65 66 74 28 69 42 |obal(&To|pLeft(iB|
|00000dd0| 65 61 6d 52 65 63 74 29 | 29 3b 0d 09 09 09 4c 6f |eamRect)|);....Lo|
|00000de0| 63 61 6c 54 6f 47 6c 6f | 62 61 6c 28 26 42 6f 74 |calToGlo|bal(&Bot|
|00000df0| 52 69 67 68 74 28 69 42 | 65 61 6d 52 65 63 74 29 |Right(iB|eamRect)|
|00000e00| 29 3b 0d 09 09 09 52 65 | 63 74 52 67 6e 28 69 42 |);....Re|ctRgn(iB|
|00000e10| 65 61 6d 52 67 6e 2c 20 | 26 69 42 65 61 6d 52 65 |eamRgn, |&iBeamRe|
|00000e20| 63 74 29 3b 0d 09 09 7d | 0d 0d 09 09 2f 2a 20 73 |ct);...}|..../* s|
|00000e30| 75 62 74 72 61 63 74 20 | 6f 74 68 65 72 20 72 65 |ubtract |other re|
|00000e40| 67 69 6f 6e 73 20 66 72 | 6f 6d 20 61 72 72 6f 77 |gions fr|om arrow|
|00000e50| 52 67 6e 0d 09 09 20 2a | 2f 0d 09 09 44 69 66 66 |Rgn... *|/...Diff|
|00000e60| 52 67 6e 28 61 72 72 6f | 77 52 67 6e 2c 20 69 42 |Rgn(arro|wRgn, iB|
|00000e70| 65 61 6d 52 67 6e 2c 20 | 61 72 72 6f 77 52 67 6e |eamRgn, |arrowRgn|
|00000e80| 29 3b 0d 09 09 0d 09 09 | 2f 2a 20 63 68 61 6e 67 |);......|/* chang|
|00000e90| 65 20 74 68 65 20 63 75 | 72 73 6f 72 20 61 6e 64 |e the cu|rsor and|
|00000ea0| 20 74 68 65 20 72 65 67 | 69 6f 6e 20 70 61 72 61 | the reg|ion para|
|00000eb0| 6d 65 74 65 72 20 0d 09 | 09 20 2a 2f 0d 09 09 69 |meter ..|. */...i|
|00000ec0| 66 20 28 50 74 49 6e 52 | 67 6e 28 74 68 65 50 6f |f (PtInR|gn(thePo|
|00000ed0| 69 6e 74 2c 20 69 42 65 | 61 6d 52 67 6e 29 29 20 |int, iBe|amRgn)) |
|00000ee0| 7b 0d 09 09 09 53 65 74 | 43 75 72 73 6f 72 28 2a |{....Set|Cursor(*|
|00000ef0| 47 65 74 43 75 72 73 6f | 72 28 69 42 65 61 6d 43 |GetCurso|r(iBeamC|
|00000f00| 75 72 73 6f 72 29 29 3b | 0d 09 09 09 43 6f 70 79 |ursor));|....Copy|
|00000f10| 52 67 6e 28 69 42 65 61 | 6d 52 67 6e 2c 20 74 68 |Rgn(iBea|mRgn, th|
|00000f20| 65 52 67 6e 29 3b 0d 09 | 09 7d 0d 09 09 65 6c 73 |eRgn);..|.}...els|
|00000f30| 65 20 7b 0d 09 09 09 53 | 65 74 43 75 72 73 6f 72 |e {....S|etCursor|
|00000f40| 28 26 61 72 72 6f 77 29 | 3b 0d 09 09 09 43 6f 70 |(&arrow)|;....Cop|
|00000f50| 79 52 67 6e 28 61 72 72 | 6f 77 52 67 6e 2c 20 74 |yRgn(arr|owRgn, t|
|00000f60| 68 65 52 67 6e 29 3b 0d | 09 09 7d 0d 09 09 0d 09 |heRgn);.|..}.....|
|00000f70| 09 2f 2a 20 67 65 74 20 | 72 69 64 20 6f 66 20 6c |./* get |rid of l|
|00000f80| 6f 63 61 6c 20 72 65 67 | 69 6f 6e 73 0d 09 09 20 |ocal reg|ions... |
|00000f90| 2a 2f 0d 09 09 44 69 73 | 70 6f 73 65 52 67 6e 28 |*/...Dis|poseRgn(|
|00000fa0| 61 72 72 6f 77 52 67 6e | 29 3b 0d 09 09 44 69 73 |arrowRgn|);...Dis|
|00000fb0| 70 6f 73 65 52 67 6e 28 | 69 42 65 61 6d 52 67 6e |poseRgn(|iBeamRgn|
|00000fc0| 29 3b 0d 09 7d 0d 0d 09 | 53 65 74 50 6f 72 74 28 |);..}...|SetPort(|
|00000fd0| 73 61 76 65 50 6f 72 74 | 29 3b 0d 7d 0d 0d 0d 2f |savePort|);.}.../|
|00000fe0| 2a 20 52 6f 75 74 65 20 | 74 68 65 20 76 61 72 69 |* Route |the vari|
|00000ff0| 6f 75 73 20 6d 65 6e 75 | 20 61 6e 64 20 6b 65 79 |ous menu| and key|
|00001000| 62 6f 61 72 64 20 63 6f | 6d 6d 61 6e 64 73 20 74 |board co|mmands t|
|00001010| 6f 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |o the ap|propriat|
|00001020| 65 20 6d 6f 64 75 6c 65 | 73 0d 20 2a 2f 0d 73 68 |e module|s. */.sh|
|00001030| 6f 72 74 0d 43 6f 6e 74 | 44 69 73 70 61 74 63 68 |ort.Cont|Dispatch|
|00001040| 20 28 74 68 65 52 65 73 | 75 6c 74 29 0d 09 72 65 | (theRes|ult)..re|
|00001050| 67 69 73 74 65 72 20 6c | 6f 6e 67 20 74 68 65 52 |gister l|ong theR|
|00001060| 65 73 75 6c 74 3b 0d 7b | 0d 09 72 65 67 69 73 74 |esult;.{|..regist|
|00001070| 65 72 20 57 69 6e 64 6f | 77 50 74 72 20 74 68 65 |er Windo|wPtr the|
|00001080| 57 69 6e 64 6f 77 20 3d | 20 46 72 6f 6e 74 57 69 |Window =| FrontWi|
|00001090| 6e 64 6f 77 28 29 3b 0d | 09 72 65 67 69 73 74 65 |ndow();.|.registe|
|000010a0| 72 20 73 68 6f 72 74 20 | 74 68 65 49 74 65 6d 20 |r short |theItem |
|000010b0| 3d 20 4c 6f 57 6f 72 64 | 28 74 68 65 52 65 73 75 |= LoWord|(theResu|
|000010c0| 6c 74 29 3b 0d 09 53 74 | 72 32 35 35 20 69 74 65 |lt);..St|r255 ite|
|000010d0| 6d 4e 61 6d 65 3b 0d 09 | 47 72 61 66 50 74 72 20 |mName;..|GrafPtr |
|000010e0| 73 61 76 65 50 6f 72 74 | 3b 0d 0d 09 73 77 69 74 |savePort|;...swit|
|000010f0| 63 68 28 48 69 57 6f 72 | 64 28 74 68 65 52 65 73 |ch(HiWor|d(theRes|
|00001100| 75 6c 74 29 29 20 7b 0d | 09 63 61 73 65 20 61 70 |ult)) {.|.case ap|
|00001110| 70 6c 65 4d 20 2b 20 52 | 53 52 43 42 41 53 45 3a |pleM + R|SRCBASE:|
|00001120| 0d 09 09 73 77 69 74 63 | 68 20 28 74 68 65 49 74 |...switc|h (theIt|
|00001130| 65 6d 29 20 7b 0d 09 09 | 63 61 73 65 20 61 70 70 |em) {...|case app|
|00001140| 6c 65 41 62 6f 75 74 3a | 0d 09 09 09 4e 6f 69 73 |leAbout:|....Nois|
|00001150| 65 50 6c 61 79 28 6e 6f | 69 73 65 50 61 63 6f 29 |ePlay(no|isePaco)|
|00001160| 3b 0d 09 09 09 41 62 6f | 75 74 41 70 70 6c 28 29 |;....Abo|utAppl()|
|00001170| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 0d 09 09 63 |;....bre|ak;....c|
|00001180| 61 73 65 20 61 70 70 6c | 65 48 65 6c 70 3a 0d 09 |ase appl|eHelp:..|
|00001190| 09 09 48 65 6c 70 41 70 | 70 6c 28 29 3b 0d 09 09 |..HelpAp|pl();...|
|000011a0| 09 62 72 65 61 6b 3b 0d | 0d 09 09 64 65 66 61 75 |.break;.|...defau|
|000011b0| 6c 74 3a 0d 09 09 09 47 | 65 74 49 74 65 6d 28 6d |lt:....G|etItem(m|
|000011c0| 65 6e 75 5b 61 70 70 6c | 65 4d 5d 2c 20 74 68 65 |enu[appl|eM], the|
|000011d0| 49 74 65 6d 2c 20 26 69 | 74 65 6d 4e 61 6d 65 29 |Item, &i|temName)|
|000011e0| 3b 0d 09 09 09 47 65 74 | 50 6f 72 74 28 26 73 61 |;....Get|Port(&sa|
|000011f0| 76 65 50 6f 72 74 29 3b | 0d 09 09 09 4f 70 65 6e |vePort);|....Open|
|00001200| 44 65 73 6b 41 63 63 28 | 26 69 74 65 6d 4e 61 6d |DeskAcc(|&itemNam|
|00001210| 65 29 3b 0d 09 09 09 53 | 65 74 50 6f 72 74 28 73 |e);....S|etPort(s|
|00001220| 61 76 65 50 6f 72 74 29 | 3b 0d 09 09 09 62 72 65 |avePort)|;....bre|
|00001230| 61 6b 3b 0d 09 09 7d 0d | 09 09 62 72 65 61 6b 3b |ak;...}.|..break;|
|00001240| 0d 0d 09 63 61 73 65 20 | 66 69 6c 65 4d 20 2b 20 |...case |fileM + |
|00001250| 52 53 52 43 42 41 53 45 | 3a 0d 09 09 44 6f 63 4d |RSRCBASE|:...DocM|
|00001260| 65 6e 75 28 74 68 65 49 | 74 65 6d 29 3b 20 0d 09 |enu(theI|tem); ..|
|00001270| 09 62 72 65 61 6b 3b 0d | 0d 09 63 61 73 65 20 65 |.break;.|..case e|
|00001280| 64 69 74 4d 20 2b 20 52 | 53 52 43 42 41 53 45 3a |ditM + R|SRCBASE:|
|00001290| 0d 09 09 69 66 20 28 21 | 53 79 73 74 65 6d 45 64 |...if (!|SystemEd|
|000012a0| 69 74 28 74 68 65 49 74 | 65 6d 20 2d 20 31 29 29 |it(theIt|em - 1))|
|000012b0| 0d 09 09 09 45 64 69 74 | 4d 65 6e 75 28 74 68 65 |....Edit|Menu(the|
|000012c0| 49 74 65 6d 29 3b 0d 09 | 09 62 72 65 61 6b 3b 0d |Item);..|.break;.|
|000012d0| 09 0d 09 63 61 73 65 20 | 74 65 73 74 4d 20 2b 20 |...case |testM + |
|000012e0| 52 53 52 43 42 41 53 45 | 3a 0d 09 09 54 65 73 74 |RSRCBASE|:...Test|
|000012f0| 4d 65 6e 75 28 74 68 65 | 49 74 65 6d 29 3b 0d 09 |Menu(the|Item);..|
|00001300| 09 62 72 65 61 6b 3b 0d | 0d 09 63 61 73 65 20 67 |.break;.|..case g|
|00001310| 6e 6f 73 4d 20 2b 20 52 | 53 52 43 42 41 53 45 3a |nosM + R|SRCBASE:|
|00001320| 0d 09 09 47 6e 6f 73 4d | 65 6e 75 28 74 68 65 49 |...GnosM|enu(theI|
|00001330| 74 65 6d 29 3b 0d 09 09 | 62 72 65 61 6b 3b 0d 0d |tem);...|break;..|
|00001340| 09 64 65 66 61 75 6c 74 | 3a 0d 09 09 62 72 65 61 |.default|:...brea|
|00001350| 6b 3b 0d 09 7d 0d 0d 09 | 48 69 6c 69 74 65 4d 65 |k;..}...|HiliteMe|
|00001360| 6e 75 28 46 41 4c 53 45 | 29 3b 0d 09 72 65 74 75 |nu(FALSE|);..retu|
|00001370| 72 6e 20 54 52 55 45 3b | 0d 7d 0d 00 00 00 00 00 |rn TRUE;|.}......|
+--------+-------------------------+-------------------------+--------+--------+