home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-05-23 | 4.5 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: dialog.c.bin
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 May 18 12:17:21 1989, modified Fri Jan 26 14:29:00 1990, creator Think C, type ASCII, 4415 bytes "dialog.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 08 64 69 61 6c 6f 67 | 2e 63 00 00 00 00 00 00 |..dialog|.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 11 3f 00 | 00 00 00 a0 98 9d 11 a1 |......?.|........|
|00000060| e6 55 7c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.U|.....|........|
|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 64 69 61 | 6c 6f 67 2e 63 0d 20 2a |*. *.dia|log.c. *|
|000000e0| 0d 20 2a 09 44 69 61 6c | 6f 67 20 4d 61 6e 61 67 |. *.Dial|og Manag|
|000000f0| 65 6d 65 6e 74 20 50 61 | 63 6b 61 67 65 0d 20 2a |ement Pa|ckage. *|
|00000100| 0d 20 2a 09 57 72 69 74 | 74 65 6e 20 62 79 20 50 |. *.Writ|ten by P|
|00000110| 61 63 6f 20 58 61 6e 64 | 65 72 20 4e 61 74 68 61 |aco Xand|er Natha|
|00000120| 6e 0d 20 2a 09 a9 31 39 | 39 30 2c 20 4d 6f 74 6f |n. *..19|90, Moto|
|00000130| 72 6f 6c 61 20 49 6e 63 | 2e 20 20 50 75 62 6c 69 |rola Inc|. Publi|
|00000140| 63 20 64 6f 6d 61 69 6e | 20 73 6f 75 72 63 65 20 |c domain| source |
|00000150| 63 6f 64 65 2e 0d 20 2a | 2a 2a 2a 2a 2a 2a 2a 2a |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 2f | 0d 0d 23 69 6e 63 6c 75 |*******/|..#inclu|
|000001b0| 64 65 20 22 61 70 70 6c | 69 63 2e 68 22 0d 23 69 |de "appl|ic.h".#i|
|000001c0| 6e 63 6c 75 64 65 20 22 | 77 69 6e 64 6f 77 2e 68 |nclude "|window.h|
|000001d0| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 64 69 61 6c |".#inclu|de "dial|
|000001e0| 6f 67 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |og.h".#i|nclude "|
|000001f0| 61 73 63 69 69 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |ascii.h"|.#includ|
|00000200| 65 20 22 61 62 6f 75 74 | 2e 68 22 0d 23 69 6e 63 |e "about|.h".#inc|
|00000210| 6c 75 64 65 20 22 74 65 | 73 74 2e 68 22 0d 23 69 |lude "te|st.h".#i|
|00000220| 6e 63 6c 75 64 65 20 22 | 65 72 72 6f 72 2e 68 22 |nclude "|error.h"|
|00000230| 0d 0d 0d 2f 2a 20 45 78 | 74 65 72 6e 61 6c 20 44 |.../* Ex|ternal D|
|00000240| 61 74 61 20 53 74 72 75 | 63 74 75 72 65 73 0d 20 |ata Stru|ctures. |
|00000250| 2a 2f 0d 44 69 61 6c 6f | 67 50 74 72 0d 09 64 50 |*/.Dialo|gPtr..dP|
|00000260| 74 72 41 62 6f 75 74 20 | 3d 20 4e 55 4c 4c 2c 0d |trAbout |= NULL,.|
|00000270| 09 64 50 74 72 41 6e 61 | 6c 20 3d 20 4e 55 4c 4c |.dPtrAna|l = NULL|
|00000280| 3b 0d 0d 0d 2f 2a 20 4c | 6f 63 61 6c 20 46 75 6e |;.../* L|ocal Fun|
|00000290| 63 74 69 6f 6e 20 50 72 | 6f 74 6f 74 79 70 65 73 |ction Pr|ototypes|
|000002a0| 0d 20 2a 2f 0d 23 69 66 | 64 65 66 20 50 52 4f 54 |. */.#if|def PROT|
|000002b0| 4f 54 59 50 45 53 0d 23 | 65 6e 64 69 66 0d 0d 0d |OTYPES.#|endif...|
|000002c0| 2f 2a 20 47 65 6e 65 72 | 61 74 65 20 61 20 72 61 |/* Gener|ate a ra|
|000002d0| 6e 64 6f 6d 20 6e 75 6d | 62 65 72 20 62 65 74 77 |ndom num|ber betw|
|000002e0| 65 65 6e 20 7a 65 72 6f | 20 61 6e 64 20 74 68 65 |een zero| and the|
|000002f0| 20 67 69 76 65 6e 20 63 | 65 69 6c 69 6e 67 20 6e | given c|eiling n|
|00000300| 75 6d 62 65 72 0d 20 2a | 2f 0d 73 68 6f 72 74 0d |umber. *|/.short.|
|00000310| 44 6c 6f 67 52 61 6e 64 | 6f 6d 20 28 63 65 69 6c |DlogRand|om (ceil|
|00000320| 69 6e 67 29 0d 09 72 65 | 67 69 73 74 65 72 20 73 |ing)..re|gister s|
|00000330| 68 6f 72 74 20 63 65 69 | 6c 69 6e 67 3b 0d 7b 0d |hort cei|ling;.{.|
|00000340| 09 72 65 67 69 73 74 65 | 72 20 73 68 6f 72 74 20 |.registe|r short |
|00000350| 72 65 73 75 6c 74 3b 0d | 09 0d 09 69 66 20 28 28 |result;.|...if ((|
|00000360| 72 65 73 75 6c 74 20 3d | 20 52 61 6e 64 6f 6d 28 |result =| Random(|
|00000370| 29 29 20 3c 20 30 29 0d | 09 09 72 65 73 75 6c 74 |)) < 0).|..result|
|00000380| 20 3d 20 2d 72 65 73 75 | 6c 74 3b 0d 0d 09 69 66 | = -resu|lt;...if|
|00000390| 20 28 63 65 69 6c 69 6e | 67 29 0d 09 09 72 65 73 | (ceilin|g)...res|
|000003a0| 75 6c 74 20 25 3d 20 63 | 65 69 6c 69 6e 67 3b 0d |ult %= c|eiling;.|
|000003b0| 0d 09 72 65 74 75 72 6e | 20 72 65 73 75 6c 74 3b |..return| result;|
|000003c0| 0d 7d 0d 0d 0d 2f 2a 20 | 53 65 74 20 74 68 65 20 |.}.../* |Set the |
|000003d0| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 66 6f 72 20 |coordina|tes for |
|000003e0| 63 65 6e 74 65 72 69 6e | 67 20 53 46 47 65 74 2f |centerin|g SFGet/|
|000003f0| 50 75 74 20 61 6e 64 20 | 6f 74 68 65 72 20 73 74 |Put and |other st|
|00000400| 61 6e 64 61 72 64 20 61 | 6c 65 72 74 73 0d 20 2a |andard a|lerts. *|
|00000410| 2f 0d 76 6f 69 64 0d 44 | 6c 6f 67 4f 72 69 67 69 |/.void.D|logOrigi|
|00000420| 6e 20 28 61 6c 65 72 74 | 49 44 2c 20 74 68 65 50 |n (alert|ID, theP|
|00000430| 6f 69 6e 74 29 0d 09 72 | 65 67 69 73 74 65 72 20 |oint)..r|egister |
|00000440| 73 68 6f 72 74 20 61 6c | 65 72 74 49 44 3b 0d 09 |short al|ertID;..|
|00000450| 72 65 67 69 73 74 65 72 | 20 50 6f 69 6e 74 20 2a |register| Point *|
|00000460| 74 68 65 50 6f 69 6e 74 | 3b 0d 7b 0d 09 3b 0d 7d |thePoint|;.{..;.}|
|00000470| 0d 0d 0d 2f 2a 20 46 69 | 6c 74 65 72 20 61 6c 65 |.../* Fi|lter ale|
|00000480| 72 74 20 61 6e 64 20 6d | 6f 64 61 6c 20 64 69 61 |rt and m|odal dia|
|00000490| 6c 6f 67 20 65 76 65 6e | 74 73 20 74 6f 20 6b 65 |log even|ts to ke|
|000004a0| 65 70 20 74 68 65 20 62 | 61 63 6b 67 72 6f 75 6e |ep the b|ackgroun|
|000004b0| 64 20 65 76 65 6e 74 73 | 20 70 72 6f 63 65 73 73 |d events| process|
|000004c0| 65 64 0d 20 2a 20 61 6e | 64 20 6f 75 74 6c 69 6e |ed. * an|d outlin|
|000004d0| 65 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 62 75 |e the de|fault bu|
|000004e0| 74 74 6f 6e 20 69 6e 20 | 61 20 73 70 65 63 69 61 |tton in |a specia|
|000004f0| 6c 20 77 61 79 0d 20 2a | 2f 0d 70 61 73 63 61 6c |l way. *|/.pascal|
|00000500| 20 42 6f 6f 6c 65 61 6e | 20 0d 44 6c 6f 67 4d 6f | Boolean| .DlogMo|
|00000510| 64 61 6c 45 76 65 6e 74 | 20 28 74 68 65 44 69 61 |dalEvent| (theDia|
|00000520| 6c 6f 67 2c 20 74 68 65 | 45 76 65 6e 74 2c 20 69 |log, the|Event, i|
|00000530| 74 65 6d 4e 75 6d 29 0d | 09 72 65 67 69 73 74 65 |temNum).|.registe|
|00000540| 72 20 44 69 61 6c 6f 67 | 50 74 72 20 74 68 65 44 |r Dialog|Ptr theD|
|00000550| 69 61 6c 6f 67 3b 0d 09 | 72 65 67 69 73 74 65 72 |ialog;..|register|
|00000560| 20 45 76 65 6e 74 52 65 | 63 6f 72 64 20 2a 74 68 | EventRe|cord *th|
|00000570| 65 45 76 65 6e 74 3b 0d | 09 72 65 67 69 73 74 65 |eEvent;.|.registe|
|00000580| 72 20 73 68 6f 72 74 20 | 2a 69 74 65 6d 4e 75 6d |r short |*itemNum|
|00000590| 3b 0d 7b 0d 09 72 65 67 | 69 73 74 65 72 20 42 6f |;.{..reg|ister Bo|
|000005a0| 6f 6c 65 61 6e 20 66 69 | 6c 74 65 72 65 64 20 3d |olean fi|ltered =|
|000005b0| 20 46 41 4c 53 45 3b 0d | 09 72 65 67 69 73 74 65 | FALSE;.|.registe|
|000005c0| 72 20 63 68 61 72 20 74 | 68 65 43 68 61 72 3b 0d |r char t|heChar;.|
|000005d0| 09 52 65 63 74 20 62 6f | 75 6e 64 73 3b 0d 09 73 |.Rect bo|unds;..s|
|000005e0| 68 6f 72 74 20 6b 69 6e | 64 3b 0d 09 6c 6f 6e 67 |hort kin|d;..long|
|000005f0| 20 66 69 6e 61 6c 54 69 | 63 6b 3b 0d 09 48 61 6e | finalTi|ck;..Han|
|00000600| 64 6c 65 20 74 68 65 49 | 74 65 6d 3b 0d 0d 09 2f |dle theI|tem;.../|
|00000610| 2a 20 4e 6f 77 20 74 61 | 6b 65 20 63 61 72 65 20 |* Now ta|ke care |
|00000620| 6f 66 20 74 68 65 20 69 | 6d 70 6f 72 74 61 6e 74 |of the i|mportant|
|00000630| 2c 20 62 6f 72 69 6e 67 | 20 73 74 75 66 66 2e 2e |, boring| stuff..|
|00000640| 2e 0d 09 20 2a 2f 0d 09 | 69 66 20 28 74 68 65 45 |... */..|if (theE|
|00000650| 76 65 6e 74 2d 3e 77 68 | 61 74 20 3d 3d 20 6b 65 |vent->wh|at == ke|
|00000660| 79 44 6f 77 6e 29 20 7b | 0d 09 09 74 68 65 43 68 |yDown) {|...theCh|
|00000670| 61 72 20 3d 20 28 63 68 | 61 72 29 20 42 69 74 41 |ar = (ch|ar) BitA|
|00000680| 6e 64 28 74 68 65 45 76 | 65 6e 74 2d 3e 6d 65 73 |nd(theEv|ent->mes|
|00000690| 73 61 67 65 2c 20 63 68 | 61 72 43 6f 64 65 4d 61 |sage, ch|arCodeMa|
|000006a0| 73 6b 29 3b 0d 0d 09 09 | 69 66 20 28 28 74 68 65 |sk);....|if ((the|
|000006b0| 43 68 61 72 20 3d 3d 20 | 61 73 63 69 69 52 65 74 |Char == |asciiRet|
|000006c0| 75 72 6e 29 20 7c 7c 20 | 28 74 68 65 43 68 61 72 |urn) || |(theChar|
|000006d0| 20 3d 3d 20 61 73 63 69 | 69 45 6e 74 65 72 29 29 | == asci|iEnter))|
|000006e0| 20 7b 0d 09 09 09 47 65 | 74 44 49 74 65 6d 28 74 | {....Ge|tDItem(t|
|000006f0| 68 65 44 69 61 6c 6f 67 | 2c 20 31 2c 20 26 6b 69 |heDialog|, 1, &ki|
|00000700| 6e 64 2c 20 26 74 68 65 | 49 74 65 6d 2c 20 26 62 |nd, &the|Item, &b|
|00000710| 6f 75 6e 64 73 29 3b 0d | 09 09 09 48 69 6c 69 74 |ounds);.|...Hilit|
|00000720| 65 43 6f 6e 74 72 6f 6c | 28 28 43 6f 6e 74 72 6f |eControl|((Contro|
|00000730| 6c 48 61 6e 64 6c 65 29 | 20 74 68 65 49 74 65 6d |lHandle)| theItem|
|00000740| 2c 20 31 29 3b 0d 09 09 | 09 44 65 6c 61 79 28 33 |, 1);...|.Delay(3|
|00000750| 2c 20 26 66 69 6e 61 6c | 54 69 63 6b 29 3b 0d 0d |, &final|Tick);..|
|00000760| 09 09 09 2a 69 74 65 6d | 4e 75 6d 20 3d 20 31 3b |...*item|Num = 1;|
|00000770| 0d 09 09 09 66 69 6c 74 | 65 72 65 64 20 3d 20 54 |....filt|ered = T|
|00000780| 52 55 45 3b 0d 09 09 7d | 0d 09 7d 0d 0d 09 72 65 |RUE;...}|..}...re|
|00000790| 74 75 72 6e 20 66 69 6c | 74 65 72 65 64 3b 0d 7d |turn fil|tered;.}|
|000007a0| 0d 0d 0d 2f 2a 20 43 72 | 65 61 74 65 20 74 68 65 |.../* Cr|eate the|
|000007b0| 20 73 70 65 63 69 66 69 | 65 64 20 64 69 61 6c 6f | specifi|ed dialo|
|000007c0| 67 20 61 6e 64 20 63 65 | 6e 74 65 72 20 69 74 0d |g and ce|nter it.|
|000007d0| 20 2a 2f 0d 70 61 73 63 | 61 6c 20 44 69 61 6c 6f | */.pasc|al Dialo|
|000007e0| 67 50 74 72 0d 44 6c 6f | 67 4f 70 65 6e 4d 6f 64 |gPtr.Dlo|gOpenMod|
|000007f0| 61 6c 20 28 64 69 61 6c | 6f 67 49 44 29 0d 09 72 |al (dial|ogID)..r|
|00000800| 65 67 69 73 74 65 72 20 | 73 68 6f 72 74 20 64 69 |egister |short di|
|00000810| 61 6c 6f 67 49 44 3b 0d | 7b 0d 09 72 65 67 69 73 |alogID;.|{..regis|
|00000820| 74 65 72 20 44 69 61 6c | 6f 67 50 74 72 20 74 68 |ter Dial|ogPtr th|
|00000830| 65 44 69 61 6c 6f 67 20 | 3d 20 4e 55 4c 4c 3b 0d |eDialog |= NULL;.|
|00000840| 0d 09 2f 2a 20 43 72 65 | 61 74 65 20 61 6e 64 20 |../* Cre|ate and |
|00000850| 65 72 72 6f 72 20 63 68 | 65 63 6b 20 74 68 65 20 |error ch|eck the |
|00000860| 6e 65 77 20 6d 6f 64 61 | 6c 20 64 69 61 6c 6f 67 |new moda|l dialog|
|00000870| 0d 09 20 2a 2f 0d 09 69 | 66 20 28 74 68 65 44 69 |.. */..i|f (theDi|
|00000880| 61 6c 6f 67 20 3d 20 47 | 65 74 4e 65 77 44 69 61 |alog = G|etNewDia|
|00000890| 6c 6f 67 28 64 69 61 6c | 6f 67 49 44 2c 20 4e 55 |log(dial|ogID, NU|
|000008a0| 4c 4c 2c 20 2d 31 4c 29 | 29 20 7b 0d 09 09 2f 2a |LL, -1L)|) {.../*|
|000008b0| 20 43 65 6e 74 65 72 20 | 61 6e 64 20 64 69 73 70 | Center |and disp|
|000008c0| 6c 61 79 0d 09 09 20 2a | 2f 0d 09 09 57 69 6e 64 |lay... *|/...Wind|
|000008d0| 43 65 6e 74 65 72 28 74 | 68 65 44 69 61 6c 6f 67 |Center(t|heDialog|
|000008e0| 29 3b 0d 09 09 57 69 6e | 64 5a 61 70 50 6f 72 74 |);...Win|dZapPort|
|000008f0| 28 74 68 65 44 69 61 6c | 6f 67 2c 20 54 52 55 45 |(theDial|og, TRUE|
|00000900| 29 3b 0d 09 09 42 72 69 | 6e 67 54 6f 46 72 6f 6e |);...Bri|ngToFron|
|00000910| 74 28 74 68 65 44 69 61 | 6c 6f 67 29 3b 0d 09 0d |t(theDia|log);...|
|00000920| 09 09 2f 2a 20 4d 61 6b | 65 20 73 75 72 65 20 77 |../* Mak|e sure w|
|00000930| 65 20 68 61 76 65 20 61 | 6e 20 61 72 72 6f 77 20 |e have a|n arrow |
|00000940| 63 75 72 73 6f 72 20 62 | 65 66 6f 72 65 20 72 65 |cursor b|efore re|
|00000950| 74 75 72 6e 69 6e 67 0d | 09 09 20 2a 2f 0d 09 20 |turning.|.. */.. |
|00000960| 09 49 6e 69 74 43 75 72 | 73 6f 72 28 29 3b 0d 09 |.InitCur|sor();..|
|00000970| 7d 0d 0d 20 09 72 65 74 | 75 72 6e 20 74 68 65 44 |}.. .ret|urn theD|
|00000980| 69 61 6c 6f 67 3b 0d 7d | 0d 0d 0d 2f 2a 20 44 69 |ialog;.}|.../* Di|
|00000990| 73 70 6f 73 65 20 74 68 | 65 20 73 70 65 63 69 66 |spose th|e specif|
|000009a0| 69 65 64 20 6d 6f 64 61 | 6c 20 64 69 61 6c 6f 67 |ied moda|l dialog|
|000009b0| 0d 20 2a 2f 0d 76 6f 69 | 64 0d 44 6c 6f 67 43 6c |. */.voi|d.DlogCl|
|000009c0| 6f 73 65 4d 6f 64 61 6c | 20 28 74 68 65 44 69 61 |oseModal| (theDia|
|000009d0| 6c 6f 67 2c 20 74 72 69 | 70 73 29 0d 09 72 65 67 |log, tri|ps)..reg|
|000009e0| 69 73 74 65 72 20 44 69 | 61 6c 6f 67 50 74 72 20 |ister Di|alogPtr |
|000009f0| 74 68 65 44 69 61 6c 6f | 67 3b 0d 09 72 65 67 69 |theDialo|g;..regi|
|00000a00| 73 74 65 72 20 42 6f 6f | 6c 65 61 6e 20 74 72 69 |ster Boo|lean tri|
|00000a10| 70 73 3b 0d 7b 0d 09 69 | 66 20 28 74 68 65 44 69 |ps;.{..i|f (theDi|
|00000a20| 61 6c 6f 67 29 20 7b 0d | 09 09 69 66 20 28 74 72 |alog) {.|..if (tr|
|00000a30| 69 70 73 29 0d 09 09 09 | 57 69 6e 64 5a 61 70 50 |ips)....|WindZapP|
|00000a40| 6f 72 74 28 74 68 65 44 | 69 61 6c 6f 67 2c 20 46 |ort(theD|ialog, F|
|00000a50| 41 4c 53 45 29 3b 0d 09 | 0d 09 09 44 69 73 70 6f |ALSE);..|...Dispo|
|00000a60| 73 44 69 61 6c 6f 67 28 | 74 68 65 44 69 61 6c 6f |sDialog(|theDialo|
|00000a70| 67 29 3b 0d 09 7d 0d 7d | 0d 0d 0d 2f 2a 20 53 68 |g);..}.}|.../* Sh|
|00000a80| 6f 72 74 20 63 75 74 20 | 74 6f 20 73 65 74 20 61 |ort cut |to set a|
|00000a90| 20 63 6f 6e 74 72 6f 6c | 20 69 74 65 6d 20 76 61 | control| item va|
|00000aa0| 6c 75 65 20 69 6e 20 61 | 6e 20 61 63 74 69 76 65 |lue in a|n active|
|00000ab0| 20 64 69 61 6c 6f 67 20 | 6c 69 73 74 0d 20 2a 2f | dialog |list. */|
|00000ac0| 0d 76 6f 69 64 0d 44 6c | 6f 67 53 65 74 49 74 65 |.void.Dl|ogSetIte|
|00000ad0| 6d 20 28 74 68 65 44 69 | 61 6c 6f 67 2c 20 69 74 |m (theDi|alog, it|
|00000ae0| 65 6d 4e 75 6d 2c 20 76 | 61 6c 75 65 29 0d 09 72 |emNum, v|alue)..r|
|00000af0| 65 67 69 73 74 65 72 20 | 44 69 61 6c 6f 67 50 74 |egister |DialogPt|
|00000b00| 72 20 74 68 65 44 69 61 | 6c 6f 67 3b 0d 09 72 65 |r theDia|log;..re|
|00000b10| 67 69 73 74 65 72 20 73 | 68 6f 72 74 20 69 74 65 |gister s|hort ite|
|00000b20| 6d 4e 75 6d 3b 0d 09 72 | 65 67 69 73 74 65 72 20 |mNum;..r|egister |
|00000b30| 73 68 6f 72 74 20 76 61 | 6c 75 65 3b 0d 7b 0d 09 |short va|lue;.{..|
|00000b40| 73 68 6f 72 74 20 6b 69 | 6e 64 3b 0d 09 48 61 6e |short ki|nd;..Han|
|00000b50| 64 6c 65 20 74 68 65 49 | 74 65 6d 3b 0d 09 52 65 |dle theI|tem;..Re|
|00000b60| 63 74 20 62 6f 75 6e 64 | 73 3b 0d 0d 09 47 65 74 |ct bound|s;...Get|
|00000b70| 44 49 74 65 6d 28 74 68 | 65 44 69 61 6c 6f 67 2c |DItem(th|eDialog,|
|00000b80| 20 69 74 65 6d 4e 75 6d | 2c 20 26 6b 69 6e 64 2c | itemNum|, &kind,|
|00000b90| 20 26 74 68 65 49 74 65 | 6d 2c 20 26 62 6f 75 6e | &theIte|m, &boun|
|00000ba0| 64 73 29 3b 0d 09 53 65 | 74 43 74 6c 56 61 6c 75 |ds);..Se|tCtlValu|
|00000bb0| 65 28 28 43 6f 6e 74 72 | 6f 6c 48 61 6e 64 6c 65 |e((Contr|olHandle|
|00000bc0| 29 20 74 68 65 49 74 65 | 6d 2c 20 76 61 6c 75 65 |) theIte|m, value|
|00000bd0| 29 3b 0d 7d 0d 0d 0d 2f | 2a 20 4d 6f 64 65 6c 65 |);.}.../|* Modele|
|00000be0| 73 73 20 64 69 61 6c 6f | 67 20 65 76 65 6e 74 20 |ss dialo|g event |
|00000bf0| 68 61 6e 64 6c 65 72 0d | 20 2a 2f 0d 76 6f 69 64 |handler.| */.void|
|00000c00| 0d 44 6c 6f 67 4d 6f 64 | 65 6c 65 73 73 45 76 65 |.DlogMod|elessEve|
|00000c10| 6e 74 20 28 74 68 65 45 | 76 65 6e 74 29 0d 09 72 |nt (theE|vent)..r|
|00000c20| 65 67 69 73 74 65 72 20 | 45 76 65 6e 74 52 65 63 |egister |EventRec|
|00000c30| 6f 72 64 20 2a 74 68 65 | 45 76 65 6e 74 3b 0d 7b |ord *the|Event;.{|
|00000c40| 0d 09 44 69 61 6c 6f 67 | 50 74 72 20 74 68 65 44 |..Dialog|Ptr theD|
|00000c50| 69 61 6c 6f 67 3b 0d 09 | 73 68 6f 72 74 20 64 69 |ialog;..|short di|
|00000c60| 61 6c 6f 67 49 44 2c 20 | 69 74 65 6d 4e 75 6d 2c |alogID, |itemNum,|
|00000c70| 20 6b 69 6e 64 3b 0d 09 | 48 61 6e 64 6c 65 20 74 | kind;..|Handle t|
|00000c80| 68 65 49 74 65 6d 3b 0d | 09 52 65 63 74 20 62 6f |heItem;.|.Rect bo|
|00000c90| 75 6e 64 73 3b 0d 09 0d | 09 69 66 20 28 44 69 61 |unds;...|.if (Dia|
|00000ca0| 6c 6f 67 53 65 6c 65 63 | 74 28 74 68 65 45 76 65 |logSelec|t(theEve|
|00000cb0| 6e 74 2c 20 26 74 68 65 | 44 69 61 6c 6f 67 2c 20 |nt, &the|Dialog, |
|00000cc0| 26 69 74 65 6d 4e 75 6d | 29 29 20 7b 0d 09 09 69 |&itemNum|)) {...i|
|00000cd0| 66 20 28 74 68 65 44 69 | 61 6c 6f 67 20 3d 3d 20 |f (theDi|alog == |
|00000ce0| 64 50 74 72 41 62 6f 75 | 74 29 0d 09 09 09 41 62 |dPtrAbou|t)....Ab|
|00000cf0| 6f 75 74 45 76 65 6e 74 | 28 69 74 65 6d 4e 75 6d |outEvent|(itemNum|
|00000d00| 29 3b 0d 09 7d 0d 7d 0d | 0d 0d 2f 2a 20 43 72 65 |);..}.}.|../* Cre|
|00000d10| 61 74 65 20 61 20 6d 6f | 64 65 6c 65 73 73 20 64 |ate a mo|deless d|
|00000d20| 69 61 6c 6f 67 20 77 69 | 6e 64 6f 77 3b 20 64 69 |ialog wi|ndow; di|
|00000d30| 61 6c 6f 67 20 77 69 6e | 64 6f 77 20 74 65 6d 70 |alog win|dow temp|
|00000d40| 6c 61 74 65 20 73 68 6f | 75 6c 64 20 68 61 76 65 |late sho|uld have|
|00000d50| 20 70 72 6f 63 20 74 79 | 70 65 20 34 0d 20 2a 20 | proc ty|pe 4. * |
|00000d60| 61 6e 64 20 6e 65 65 64 | 73 20 74 6f 20 68 61 76 |and need|s to hav|
|00000d70| 65 20 61 20 67 6f 41 77 | 61 79 42 6f 78 0d 20 2a |e a goAw|ayBox. *|
|00000d80| 2f 0d 70 61 73 63 61 6c | 20 44 69 61 6c 6f 67 50 |/.pascal| DialogP|
|00000d90| 74 72 0d 44 6c 6f 67 57 | 69 6e 64 6f 77 20 28 64 |tr.DlogW|indow (d|
|00000da0| 6c 6f 67 49 44 29 0d 09 | 72 65 67 69 73 74 65 72 |logID)..|register|
|00000db0| 20 73 68 6f 72 74 20 64 | 6c 6f 67 49 44 3b 0d 7b | short d|logID;.{|
|00000dc0| 0d 09 72 65 67 69 73 74 | 65 72 20 44 69 61 6c 6f |..regist|er Dialo|
|00000dd0| 67 50 74 72 20 74 68 65 | 44 69 61 6c 6f 67 3b 0d |gPtr the|Dialog;.|
|00000de0| 09 72 65 67 69 73 74 65 | 72 20 49 6e 66 6f 50 74 |.registe|r InfoPt|
|00000df0| 72 20 69 6e 66 6f 50 74 | 72 3b 0d 09 47 72 61 66 |r infoPt|r;..Graf|
|00000e00| 50 74 72 20 73 61 76 65 | 50 6f 72 74 3b 0d 0d 20 |Ptr save|Port;.. |
|00000e10| 09 2f 2a 20 43 72 65 61 | 74 65 20 74 68 65 20 64 |./* Crea|te the d|
|00000e20| 69 61 6c 6f 67 0d 20 09 | 20 2a 2f 0d 20 09 69 66 |ialog. .| */. .if|
|00000e30| 20 28 74 68 65 44 69 61 | 6c 6f 67 20 3d 20 47 65 | (theDia|log = Ge|
|00000e40| 74 4e 65 77 44 69 61 6c | 6f 67 28 64 6c 6f 67 49 |tNewDial|og(dlogI|
|00000e50| 44 2c 20 4e 55 4c 4c 2c | 20 2d 31 4c 29 29 20 7b |D, NULL,| -1L)) {|
|00000e60| 0d 09 09 47 65 74 50 6f | 72 74 28 26 73 61 76 65 |...GetPo|rt(&save|
|00000e70| 50 6f 72 74 29 3b 0d 09 | 09 53 65 74 50 6f 72 74 |Port);..|.SetPort|
|00000e80| 28 74 68 65 44 69 61 6c | 6f 67 29 3b 0d 09 0d 09 |(theDial|og);....|
|00000e90| 09 57 69 6e 64 43 65 6e | 74 65 72 28 74 68 65 44 |.WindCen|ter(theD|
|00000ea0| 69 61 6c 6f 67 29 3b 0d | 09 09 57 69 6e 64 5a 61 |ialog);.|..WindZa|
|00000eb0| 70 50 6f 72 74 28 74 68 | 65 44 69 61 6c 6f 67 2c |pPort(th|eDialog,|
|00000ec0| 20 54 52 55 45 29 3b 0d | 09 0d 09 09 2f 2a 20 43 | TRUE);.|..../* C|
|00000ed0| 72 65 61 74 65 20 74 68 | 65 20 77 69 6e 64 6f 77 |reate th|e window|
|00000ee0| 20 69 6e 66 6f 20 72 65 | 63 6f 72 64 0d 09 09 20 | info re|cord... |
|00000ef0| 2a 2f 0d 09 09 69 66 20 | 28 69 6e 66 6f 50 74 72 |*/...if |(infoPtr|
|00000f00| 20 3d 20 28 49 6e 66 6f | 50 74 72 29 20 45 72 72 | = (Info|Ptr) Err|
|00000f10| 4e 65 77 50 74 72 28 73 | 69 7a 65 6f 66 28 49 6e |NewPtr(s|izeof(In|
|00000f20| 66 6f 52 65 63 6f 72 64 | 29 29 29 20 7b 0d 09 09 |foRecord|))) {...|
|00000f30| 09 69 6e 66 6f 50 74 72 | 2d 3e 6b 69 6e 64 20 3d |.infoPtr|->kind =|
|00000f40| 20 77 6b 44 6c 6f 67 3b | 0d 09 09 09 69 6e 66 6f | wkDlog;|....info|
|00000f50| 50 74 72 2d 3e 61 63 74 | 69 76 65 20 3d 20 69 6e |Ptr->act|ive = in|
|00000f60| 66 6f 50 74 72 2d 3e 64 | 69 72 74 79 20 3d 20 46 |foPtr->d|irty = F|
|00000f70| 41 4c 53 45 3b 0d 09 09 | 09 69 6e 66 6f 50 74 72 |ALSE;...|.infoPtr|
|00000f80| 2d 3e 6e 61 6d 65 64 20 | 3d 20 54 52 55 45 3b 0d |->named |= TRUE;.|
|00000f90| 09 09 09 69 6e 66 6f 50 | 74 72 2d 3e 69 74 65 6d |...infoP|tr->item|
|00000fa0| 2e 64 6c 6f 67 20 3d 20 | 74 68 65 44 69 61 6c 6f |.dlog = |theDialo|
|00000fb0| 67 3b 0d 09 09 09 53 65 | 74 57 52 65 66 43 6f 6e |g;....Se|tWRefCon|
|00000fc0| 28 74 68 65 44 69 61 6c | 6f 67 2c 20 28 6c 6f 6e |(theDial|og, (lon|
|00000fd0| 67 29 20 69 6e 66 6f 50 | 74 72 29 3b 0d 09 09 7d |g) infoP|tr);...}|
|00000fe0| 0d 09 09 65 6c 73 65 20 | 7b 0d 09 09 09 44 69 73 |...else |{....Dis|
|00000ff0| 70 6f 73 44 69 61 6c 6f | 67 28 74 68 65 44 69 61 |posDialo|g(theDia|
|00001000| 6c 6f 67 29 3b 0d 09 09 | 09 74 68 65 44 69 61 6c |log);...|.theDial|
|00001010| 6f 67 20 3d 20 4e 55 4c | 4c 3b 0d 09 09 7d 0d 0d |og = NUL|L;...}..|
|00001020| 09 09 53 65 74 50 6f 72 | 74 28 73 61 76 65 50 6f |..SetPor|t(savePo|
|00001030| 72 74 29 3b 0d 09 7d 0d | 0d 09 72 65 74 75 72 6e |rt);..}.|..return|
|00001040| 20 74 68 65 44 69 61 6c | 6f 67 3b 0d 7d 0d 0d 0d | theDial|og;.}...|
|00001050| 2f 2a 20 44 69 73 70 6f | 73 65 20 61 20 6d 6f 64 |/* Dispo|se a mod|
|00001060| 65 6c 65 73 73 20 64 69 | 61 6c 6f 67 20 77 69 6e |eless di|alog win|
|00001070| 64 6f 77 0d 20 2a 2f 0d | 76 6f 69 64 0d 44 6c 6f |dow. */.|void.Dlo|
|00001080| 67 44 69 73 70 6f 73 65 | 20 28 74 68 65 57 69 6e |gDispose| (theWin|
|00001090| 64 6f 77 29 0d 09 72 65 | 67 69 73 74 65 72 20 57 |dow)..re|gister W|
|000010a0| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|000010b0| 6f 77 3b 0d 7b 0d 09 72 | 65 67 69 73 74 65 72 20 |ow;.{..r|egister |
|000010c0| 49 6e 66 6f 50 74 72 20 | 69 6e 66 6f 50 74 72 20 |InfoPtr |infoPtr |
|000010d0| 3d 20 28 49 6e 66 6f 50 | 74 72 29 20 47 65 74 57 |= (InfoP|tr) GetW|
|000010e0| 52 65 66 43 6f 6e 28 74 | 68 65 57 69 6e 64 6f 77 |RefCon(t|heWindow|
|000010f0| 29 3b 0d 09 72 65 67 69 | 73 74 65 72 20 44 69 61 |);..regi|ster Dia|
|00001100| 6c 6f 67 50 74 72 20 74 | 68 65 44 69 61 6c 6f 67 |logPtr t|heDialog|
|00001110| 20 3d 20 69 6e 66 6f 50 | 74 72 2d 3e 69 74 65 6d | = infoP|tr->item|
|00001120| 2e 64 6c 6f 67 3b 0d 0d | 09 69 66 20 28 74 68 65 |.dlog;..|.if (the|
|00001130| 44 69 61 6c 6f 67 20 3d | 3d 20 64 50 74 72 41 62 |Dialog =|= dPtrAb|
|00001140| 6f 75 74 29 0d 09 09 64 | 50 74 72 41 62 6f 75 74 |out)...d|PtrAbout|
|00001150| 20 3d 20 4e 55 4c 4c 3b | 0d 09 65 6c 73 65 20 69 | = NULL;|..else i|
|00001160| 66 20 28 74 68 65 44 69 | 61 6c 6f 67 20 3d 3d 20 |f (theDi|alog == |
|00001170| 64 50 74 72 41 6e 61 6c | 29 0d 09 09 64 50 74 72 |dPtrAnal|)...dPtr|
|00001180| 41 6e 61 6c 20 3d 20 4e | 55 4c 4c 3b 0d 0d 09 44 |Anal = N|ULL;...D|
|00001190| 69 73 70 6f 73 50 74 72 | 28 69 6e 66 6f 50 74 72 |isposPtr|(infoPtr|
|000011a0| 29 3b 0d 09 44 69 73 70 | 6f 73 44 69 61 6c 6f 67 |);..Disp|osDialog|
|000011b0| 28 74 68 65 44 69 61 6c | 6f 67 29 3b 0d 7d 0d 00 |(theDial|og);.}..|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+