home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Tele / Internet / NewsWatch.sit / source / userint.c < prev   
MacBinary  |  1991-04-03  |  60.4 KB  |  [TEXT/MPS ]

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: userint.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Wed Apr 3 18:30:27 1991, modified Wed Apr 3 18:30:27 1991, creator 'MPS ', type ASCII, 60071 bytes "userint.c" , at 0xeb27 1502 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 75 73 65 72 69 6e | 74 2e 63 00 00 00 00 00 |..userin|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 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 ea a7 00 | 00 05 de a4 20 16 13 a4 |........|.... ...|
|00000060| 20 16 13 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 21 9a 00 00 |........|....!...|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 23 0d 23 |--------|----.#.#|
|000000c0| 09 4e 65 77 73 57 61 74 | 63 68 65 72 09 2d 20 4d |.NewsWat|cher.- M|
|000000d0| 61 63 69 6e 74 6f 73 68 | 20 4e 4e 54 50 20 43 6c |acintosh| NNTP Cl|
|000000e0| 69 65 6e 74 20 41 70 70 | 6c 69 63 61 74 69 6f 6e |ient App|lication|
|000000f0| 0d 23 0d 23 09 57 72 69 | 74 74 65 6e 20 62 79 20 |.#.#.Wri|tten by |
|00000100| 53 74 65 76 65 6e 20 46 | 61 6c 6b 65 6e 62 75 72 |Steven F|alkenbur|
|00000110| 67 0d 23 09 a9 31 39 39 | 30 20 41 70 70 6c 65 20 |g.#..199|0 Apple |
|00000120| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 0d 23 |Computer|, Inc..#|
|00000130| 0d 23 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.#------|--------|
|00000140| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000150| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 23 0d |--------|-----.#.|
|00000170| 23 09 75 73 65 72 69 6e | 74 2e 63 0d 23 0d 23 09 |#.userin|t.c.#.#.|
|00000180| 54 68 69 73 20 63 6f 64 | 65 20 73 65 67 6d 65 6e |This cod|e segmen|
|00000190| 74 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 6d |t contai|ns the m|
|000001a0| 61 69 6e 20 70 72 6f 67 | 72 61 6d 20 77 68 69 63 |ain prog|ram whic|
|000001b0| 68 20 63 6f 6e 74 72 6f | 6c 73 0d 23 09 74 68 65 |h contro|ls.#.the|
|000001c0| 20 75 73 65 72 20 69 6e | 74 65 72 66 61 63 65 20 | user in|terface |
|000001d0| 66 6f 72 20 4e 65 77 73 | 57 61 74 63 68 65 72 2e |for News|Watcher.|
|000001e0| 0d 23 0d 23 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.#.#----|--------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |--------|-------*|
|00000220| 2f 0d 0d 23 70 72 61 67 | 6d 61 20 73 65 67 6d 65 |/..#prag|ma segme|
|00000230| 6e 74 20 75 73 65 72 69 | 6e 74 0d 0d 23 69 6e 63 |nt useri|nt..#inc|
|00000240| 6c 75 64 65 20 22 63 6f | 6d 70 61 74 2e 68 22 0d |lude "co|mpat.h".|
|00000250| 0d 23 69 66 64 65 66 20 | 50 52 4f 54 4f 53 0d 0d |.#ifdef |PROTOS..|
|00000260| 23 69 6e 63 6c 75 64 65 | 20 3c 54 79 70 65 73 2e |#include| <Types.|
|00000270| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 51 75 69 |h>.#incl|ude <Qui|
|00000280| 63 6b 44 72 61 77 2e 68 | 3e 0d 23 69 6e 63 6c 75 |ckDraw.h|>.#inclu|
|00000290| 64 65 20 3c 46 6f 6e 74 | 73 2e 68 3e 0d 23 69 6e |de <Font|s.h>.#in|
|000002a0| 63 6c 75 64 65 20 3c 57 | 69 6e 64 6f 77 73 2e 68 |clude <W|indows.h|
|000002b0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 4d 65 6e 75 |>.#inclu|de <Menu|
|000002c0| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 54 |s.h>.#in|clude <T|
|000002d0| 65 78 74 45 64 69 74 2e | 68 3e 0d 23 69 6e 63 6c |extEdit.|h>.#incl|
|000002e0| 75 64 65 20 3c 44 69 61 | 6c 6f 67 73 2e 68 3e 0d |ude <Dia|logs.h>.|
|000002f0| 23 69 6e 63 6c 75 64 65 | 20 3c 4f 53 55 74 69 6c |#include| <OSUtil|
|00000300| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 44 |s.h>.#in|clude <D|
|00000310| 65 73 6b 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |esk.h>.#|include |
|00000320| 3c 54 6f 6f 6c 55 74 69 | 6c 73 2e 68 3e 0d 23 69 |<ToolUti|ls.h>.#i|
|00000330| 6e 63 6c 75 64 65 20 3c | 4f 53 45 76 65 6e 74 73 |nclude <|OSEvents|
|00000340| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 4c 69 |.h>.#inc|lude <Li|
|00000350| 73 74 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |sts.h>.#|include |
|00000360| 3c 43 75 72 73 6f 72 43 | 74 6c 2e 68 3e 0d 23 69 |<CursorC|tl.h>.#i|
|00000370| 6e 63 6c 75 64 65 20 3c | 50 61 63 6b 61 67 65 73 |nclude <|Packages|
|00000380| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 53 63 |.h>.#inc|lude <Sc|
|00000390| 72 61 70 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |rap.h>.#|include |
|000003a0| 3c 52 65 73 6f 75 72 63 | 65 73 2e 68 3e 0d 23 69 |<Resourc|es.h>.#i|
|000003b0| 6e 63 6c 75 64 65 20 3c | 53 74 64 4c 69 62 2e 68 |nclude <|StdLib.h|
|000003c0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 43 54 79 70 |>.#inclu|de <CTyp|
|000003d0| 65 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 53 |e.h>.#in|clude <S|
|000003e0| 63 72 69 70 74 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |cript.h>|.#includ|
|000003f0| 65 20 3c 50 72 69 6e 74 | 69 6e 67 2e 68 3e 0d 23 |e <Print|ing.h>.#|
|00000400| 69 6e 63 6c 75 64 65 20 | 3c 54 72 61 70 73 2e 68 |include |<Traps.h|
|00000410| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 53 65 67 4c |>.#inclu|de <SegL|
|00000420| 6f 61 64 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 23 |oad.h>.#|endif..#|
|00000430| 69 6e 63 6c 75 64 65 20 | 3c 53 74 72 69 6e 67 2e |include |<String.|
|00000440| 68 3e 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 6e 6e |h>..#inc|lude "nn|
|00000450| 74 70 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |tp.h".#i|nclude "|
|00000460| 63 6f 6d 6d 61 6e 64 73 | 2e 68 22 0d 23 69 6e 63 |commands|.h".#inc|
|00000470| 6c 75 64 65 20 22 75 73 | 65 72 69 6e 74 2e 68 22 |lude "us|erint.h"|
|00000480| 0d 23 69 6e 63 6c 75 64 | 65 20 22 6e 65 77 73 70 |.#includ|e "newsp|
|00000490| 72 6f 63 65 73 73 2e 68 | 22 0d 23 69 6e 63 6c 75 |rocess.h|".#inclu|
|000004a0| 64 65 20 22 53 63 72 6f | 6c 6c 53 74 75 66 66 2e |de "Scro|llStuff.|
|000004b0| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 6e 65 74 |h".#incl|ude "net|
|000004c0| 73 74 75 66 66 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |stuff.h"|.#includ|
|000004d0| 65 20 22 6d 69 73 63 73 | 74 75 66 66 2e 68 22 0d |e "miscs|tuff.h".|
|000004e0| 23 69 6e 63 6c 75 64 65 | 20 22 70 72 69 6e 74 73 |#include| "prints|
|000004f0| 74 75 66 66 2e 68 22 0d | 23 69 6e 63 6c 75 64 65 |tuff.h".|#include|
|00000500| 20 22 4e 4e 54 50 4c 6f | 77 2e 68 22 0d 0d 23 69 | "NNTPLo|w.h"..#i|
|00000510| 66 6e 64 65 66 09 5f 55 | 6e 69 6d 70 6c 65 6d 65 |fndef._U|nimpleme|
|00000520| 6e 74 65 64 0d 23 64 65 | 66 69 6e 65 20 5f 55 6e |nted.#de|fine _Un|
|00000530| 69 6d 70 6c 65 6d 65 6e | 74 65 64 09 09 09 09 09 |implemen|ted.....|
|00000540| 30 78 41 38 39 46 0d 23 | 64 65 66 69 6e 65 20 5f |0xA89F.#|define _|
|00000550| 57 61 69 74 4e 65 78 74 | 45 76 65 6e 74 09 09 09 |WaitNext|Event...|
|00000560| 09 09 30 78 41 38 36 30 | 0d 23 65 6e 64 69 66 0d |..0xA860|.#endif.|
|00000570| 0d 2f 2a 20 67 6c 6f 62 | 61 6c 73 20 2a 2f 0d 0d |./* glob|als */..|
|00000580| 48 61 6e 64 6c 65 09 67 | 4c 69 66 65 42 6f 61 74 |Handle.g|LifeBoat|
|00000590| 3b 09 09 09 09 09 09 09 | 2f 2a 20 6c 69 66 65 62 |;.......|/* lifeb|
|000005a0| 6f 61 74 20 6d 65 6d 6f | 72 79 20 2d 2d 20 64 65 |oat memo|ry -- de|
|000005b0| 2d 61 6c 6c 6f 63 61 74 | 65 64 20 77 68 65 6e 20 |-allocat|ed when |
|000005c0| 6d 65 6d 6f 72 79 20 67 | 65 74 73 20 6c 6f 77 20 |memory g|ets low |
|000005d0| 2a 2f 0d 42 6f 6f 6c 65 | 61 6e 09 67 53 69 6e 6b |*/.Boole|an.gSink|
|000005e0| 69 6e 67 20 3d 20 74 72 | 75 65 3b 09 09 09 09 09 |ing = tr|ue;.....|
|000005f0| 2f 2a 20 66 6c 61 67 20 | 73 65 74 20 61 66 74 65 |/* flag |set afte|
|00000600| 72 20 6c 69 66 65 62 6f | 61 74 20 68 61 73 20 62 |r lifebo|at has b|
|00000610| 65 65 6e 20 6a 65 74 74 | 69 73 6f 6e 65 64 20 2a |een jett|isoned *|
|00000620| 2f 0d 42 6f 6f 6c 65 61 | 6e 20 67 4f 75 74 4f 66 |/.Boolea|n gOutOf|
|00000630| 4d 65 6d 6f 72 79 20 3d | 20 66 61 6c 73 65 3b 09 |Memory =| false;.|
|00000640| 09 09 09 2f 2a 20 66 6c | 61 67 20 73 65 74 20 77 |.../* fl|ag set w|
|00000650| 68 65 6e 20 6f 75 74 20 | 6f 66 20 6d 65 6d 6f 72 |hen out |of memor|
|00000660| 79 20 2d 20 61 6e 64 20 | 6c 75 63 6b 20 2a 2f 0d |y - and |luck */.|
|00000670| 0d 42 6f 6f 6c 65 61 6e | 09 67 44 6f 6e 65 20 3d |.Boolean|.gDone =|
|00000680| 20 74 72 75 65 3b 09 09 | 09 09 09 09 2f 2a 20 66 | true;..|..../* f|
|00000690| 6c 61 67 20 73 65 74 20 | 74 72 75 65 20 75 70 6f |lag set |true upo|
|000006a0| 6e 20 70 72 6f 67 72 61 | 6d 20 74 65 72 6d 69 6e |n progra|m termin|
|000006b0| 61 74 69 6f 6e 20 2a 2f | 0d 42 6f 6f 6c 65 61 6e |ation */|.Boolean|
|000006c0| 20 67 43 61 6e 63 65 6c | 20 3d 20 66 61 6c 73 65 | gCancel| = false|
|000006d0| 3b 09 09 09 09 09 2f 2a | 20 66 6c 61 67 20 73 65 |;...../*| flag se|
|000006e0| 74 20 77 68 65 6e 20 75 | 73 65 72 20 63 61 6e 63 |t when u|ser canc|
|000006f0| 65 6c 73 20 61 6e 20 61 | 63 74 69 6f 6e 20 2a 2f |els an a|ction */|
|00000700| 0d 73 68 6f 72 74 09 67 | 4d 6f 76 65 4d 6f 64 61 |.short.g|MoveModa|
|00000710| 6c 50 72 6f 63 3b 09 09 | 09 09 09 09 2f 2a 20 70 |lProc;..|..../* p|
|00000720| 72 6f 63 20 49 44 20 66 | 6f 72 20 6d 6f 76 61 62 |roc ID f|or movab|
|00000730| 6c 65 20 6d 6f 64 61 6c | 20 64 69 61 6c 6f 67 20 |le modal| dialog |
|00000740| 2a 2f 0d 42 6f 6f 6c 65 | 61 6e 09 67 49 6e 42 61 |*/.Boole|an.gInBa|
|00000750| 63 6b 67 72 6f 75 6e 64 | 20 3d 20 66 61 6c 73 65 |ckground| = false|
|00000760| 3b 09 09 09 09 2f 2a 20 | 62 61 63 6b 67 72 6f 75 |;..../* |backgrou|
|00000770| 6e 64 2f 66 6f 72 65 67 | 72 6f 75 6e 64 20 66 6c |nd/foreg|round fl|
|00000780| 61 67 20 2a 2f 0d 52 65 | 63 74 09 64 65 73 6b 74 |ag */.Re|ct.deskt|
|00000790| 6f 70 45 78 74 65 6e 74 | 3b 0d 42 6f 6f 6c 65 61 |opExtent|;.Boolea|
|000007a0| 6e 09 67 48 61 73 43 6f | 6c 6f 72 51 44 3b 0d 42 |n.gHasCo|lorQD;.B|
|000007b0| 6f 6f 6c 65 61 6e 20 67 | 41 75 74 68 65 6e 74 69 |oolean g|Authenti|
|000007c0| 63 61 74 65 64 20 3d 20 | 66 61 6c 73 65 3b 09 09 |cated = |false;..|
|000007d0| 09 09 2f 2a 20 74 72 75 | 65 20 77 68 65 6e 20 75 |../* tru|e when u|
|000007e0| 73 65 72 20 68 61 73 20 | 62 65 65 6e 20 61 75 74 |ser has |been aut|
|000007f0| 68 65 6e 74 69 63 61 74 | 65 64 20 2a 2f 0d 63 68 |henticat|ed */.ch|
|00000800| 61 72 20 09 67 50 61 73 | 73 5b 32 35 36 5d 3b 09 |ar .gPas|s[256];.|
|00000810| 09 09 09 09 09 09 2f 2a | 20 70 61 73 73 77 6f 72 |....../*| passwor|
|00000820| 64 20 2a 2f 0d 54 45 48 | 61 6e 64 6c 65 20 67 46 |d */.TEH|andle gF|
|00000830| 72 6f 6e 74 54 45 3b 0d | 42 6f 6f 6c 65 61 6e 20 |rontTE;.|Boolean |
|00000840| 67 48 61 73 57 61 69 74 | 4e 65 78 74 45 76 65 6e |gHasWait|NextEven|
|00000850| 74 20 3d 20 66 61 6c 73 | 65 3b 09 09 09 2f 2a 20 |t = fals|e;.../* |
|00000860| 74 72 75 65 20 69 66 20 | 57 61 69 74 4e 65 78 74 |true if |WaitNext|
|00000870| 45 76 65 6e 74 20 61 76 | 61 69 6c 61 62 6c 65 20 |Event av|ailable |
|00000880| 2a 2f 0d 54 50 72 65 66 | 52 65 63 20 67 50 72 65 |*/.TPref|Rec gPre|
|00000890| 66 73 3b 09 09 09 09 09 | 09 09 2f 2a 20 70 72 65 |fs;.....|../* pre|
|000008a0| 66 65 72 65 6e 63 65 73 | 20 2a 2f 0d 43 75 72 73 |ferences| */.Curs|
|000008b0| 6f 72 09 67 49 42 65 61 | 6d 43 75 72 73 2c 67 57 |or.gIBea|mCurs,gW|
|000008c0| 61 74 63 68 43 75 72 73 | 3b 0d 0d 73 74 61 74 69 |atchCurs|;..stati|
|000008d0| 63 09 4d 65 6e 75 48 61 | 6e 64 6c 65 09 67 54 68 |c.MenuHa|ndle.gTh|
|000008e0| 65 4d 65 6e 75 5b 6b 4e | 75 6d 4d 65 6e 75 73 5d |eMenu[kN|umMenus]|
|000008f0| 3b 09 2f 2a 20 70 75 6c | 6c 2d 64 6f 77 6e 20 6d |;./* pul|l-down m|
|00000900| 65 6e 75 20 73 74 6f 72 | 61 67 65 20 2a 2f 0d 73 |enu stor|age */.s|
|00000910| 74 61 74 69 63 09 52 65 | 63 74 09 09 67 44 72 61 |tatic.Re|ct..gDra|
|00000920| 67 52 65 63 74 2c 67 57 | 69 6e 64 4c 69 6d 69 74 |gRect,gW|indLimit|
|00000930| 73 3b 09 2f 2a 20 64 72 | 61 67 2f 72 65 73 69 7a |s;./* dr|ag/resiz|
|00000940| 65 20 6c 69 6d 69 74 20 | 72 65 63 74 61 6e 67 6c |e limit |rectangl|
|00000950| 65 73 20 2a 2f 0d 73 74 | 61 74 69 63 09 4c 69 73 |es */.st|atic.Lis|
|00000960| 74 48 61 6e 64 6c 65 20 | 09 67 54 68 65 4c 69 73 |tHandle |.gTheLis|
|00000970| 74 3b 0d 73 74 61 74 69 | 63 09 42 6f 6f 6c 65 61 |t;.stati|c.Boolea|
|00000980| 6e 09 09 67 43 6c 69 63 | 6b 65 64 20 3d 20 66 61 |n..gClic|ked = fa|
|00000990| 6c 73 65 3b 0d 73 74 61 | 74 69 63 09 42 6f 6f 6c |lse;.sta|tic.Bool|
|000009a0| 65 61 6e 09 09 67 53 63 | 72 61 70 44 69 72 74 79 |ean..gSc|rapDirty|
|000009b0| 2c 67 53 63 72 61 70 43 | 68 61 6e 67 65 64 3b 0d |,gScrapC|hanged;.|
|000009c0| 73 74 61 74 69 63 09 73 | 68 6f 72 74 09 09 67 53 |static.s|hort..gS|
|000009d0| 63 72 61 70 43 6f 6d 70 | 61 72 65 3b 0d 73 74 61 |crapComp|are;.sta|
|000009e0| 74 69 63 09 57 69 6e 64 | 6f 77 50 74 72 09 67 47 |tic.Wind|owPtr.gG|
|000009f0| 72 6f 75 70 57 69 6e 64 | 6f 77 3b 0d 0d 2f 2a 20 |roupWind|ow;../* |
|00000a00| 6d 61 69 6e 20 70 72 6f | 67 72 61 6d 20 2d 20 63 |main pro|gram - c|
|00000a10| 61 6c 6c 73 20 6f 74 68 | 65 72 20 74 68 69 6e 67 |alls oth|er thing|
|00000a20| 73 20 2a 2f 0d 0d 76 6f | 69 64 20 6d 61 69 6e 28 |s */..vo|id main(|
|00000a30| 76 6f 69 64 29 0d 7b 0d | 09 4d 6f 72 65 4d 61 73 |void).{.|.MoreMas|
|00000a40| 74 65 72 73 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |ters();.|.MoreMas|
|00000a50| 74 65 72 73 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |ters();.|.MoreMas|
|00000a60| 74 65 72 73 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |ters();.|.MoreMas|
|00000a70| 74 65 72 73 28 29 3b 0d | 09 4d 6f 72 65 4d 61 73 |ters();.|.MoreMas|
|00000a80| 74 65 72 73 28 29 3b 0d | 09 49 6e 69 74 53 74 75 |ters();.|.InitStu|
|00000a90| 66 66 28 29 3b 0d 09 4d | 61 69 6e 45 76 65 6e 74 |ff();..M|ainEvent|
|00000aa0| 28 29 3b 0d 09 45 78 69 | 74 54 6f 53 68 65 6c 6c |();..Exi|tToShell|
|00000ab0| 28 29 3b 09 2f 2a 20 59 | 65 73 2c 20 79 6f 75 20 |();./* Y|es, you |
|00000ac0| 72 65 61 6c 6c 79 20 64 | 6f 20 6e 65 65 64 20 74 |really d|o need t|
|00000ad0| 6f 20 64 6f 20 74 68 69 | 73 21 20 2a 2f 0d 7d 0d |o do thi|s! */.}.|
|00000ae0| 0d 0d 2f 2a 20 49 6e 69 | 74 53 74 75 66 66 3a 20 |../* Ini|tStuff: |
|00000af0| 69 6e 69 74 69 61 6c 69 | 7a 65 73 20 6d 61 63 69 |initiali|zes maci|
|00000b00| 6e 74 6f 73 68 20 6d 61 | 6e 61 67 65 72 73 20 2a |ntosh ma|nagers *|
|00000b10| 2f 0d 0d 76 6f 69 64 20 | 49 6e 69 74 53 74 75 66 |/..void |InitStuf|
|00000b20| 66 28 76 6f 69 64 29 0d | 7b 0d 09 45 76 65 6e 74 |f(void).|{..Event|
|00000b30| 52 65 63 6f 72 64 20 65 | 76 3b 0d 09 53 79 73 45 |Record e|v;..SysE|
|00000b40| 6e 76 52 65 63 20 74 68 | 65 45 6e 76 3b 0d 09 73 |nvRec th|eEnv;..s|
|00000b50| 68 6f 72 74 20 74 4e 75 | 6d 62 65 72 3b 0d 09 0d |hort tNu|mber;...|
|00000b60| 09 67 4c 69 66 65 42 6f | 61 74 20 3d 20 4e 65 77 |.gLifeBo|at = New|
|00000b70| 48 61 6e 64 6c 65 28 6b | 4c 69 66 65 42 6f 61 74 |Handle(k|LifeBoat|
|00000b80| 53 69 7a 65 29 3b 0d 09 | 69 66 20 28 4d 65 6d 45 |Size);..|if (MemE|
|00000b90| 72 72 6f 72 28 29 20 3d | 3d 20 6e 6f 45 72 72 29 |rror() =|= noErr)|
|00000ba0| 0d 09 09 67 53 69 6e 6b | 69 6e 67 20 3d 20 66 61 |...gSink|ing = fa|
|00000bb0| 6c 73 65 3b 0d 09 4d 6f | 76 65 48 48 69 28 67 4c |lse;..Mo|veHHi(gL|
|00000bc0| 69 66 65 42 6f 61 74 29 | 3b 0d 09 48 4c 6f 63 6b |ifeBoat)|;..HLock|
|00000bd0| 28 67 4c 69 66 65 42 6f | 61 74 29 3b 0d 09 0d 09 |(gLifeBo|at);....|
|00000be0| 49 6e 69 74 47 72 61 66 | 28 26 51 44 54 48 45 50 |InitGraf|(&QDTHEP|
|00000bf0| 4f 52 54 29 3b 0d 09 49 | 6e 69 74 46 6f 6e 74 73 |ORT);..I|nitFonts|
|00000c00| 28 29 3b 0d 09 49 6e 69 | 74 57 69 6e 64 6f 77 73 |();..Ini|tWindows|
|00000c10| 28 29 3b 0d 09 49 6e 69 | 74 4d 65 6e 75 73 28 29 |();..Ini|tMenus()|
|00000c20| 3b 0d 09 54 45 49 6e 69 | 74 28 29 3b 0d 09 49 6e |;..TEIni|t();..In|
|00000c30| 69 74 44 69 61 6c 6f 67 | 73 28 6e 69 6c 29 3b 0d |itDialog|s(nil);.|
|00000c40| 09 49 6e 69 74 43 75 72 | 73 6f 72 28 29 3b 0d 09 |.InitCur|sor();..|
|00000c50| 49 6e 69 74 43 75 72 73 | 6f 72 43 74 6c 28 6e 69 |InitCurs|orCtl(ni|
|00000c60| 6c 29 3b 0d 09 49 6e 69 | 74 50 72 69 6e 74 28 29 |l);..Ini|tPrint()|
|00000c70| 3b 0d 09 0d 09 46 6c 75 | 73 68 45 76 65 6e 74 73 |;....Flu|shEvents|
|00000c80| 28 65 76 65 72 79 45 76 | 65 6e 74 2c 30 29 3b 0d |(everyEv|ent,0);.|
|00000c90| 09 45 76 65 6e 74 41 76 | 61 69 6c 28 65 76 65 72 |.EventAv|ail(ever|
|00000ca0| 79 45 76 65 6e 74 2c 26 | 65 76 29 3b 0d 09 0d 09 |yEvent,&|ev);....|
|00000cb0| 64 65 73 6b 74 6f 70 45 | 78 74 65 6e 74 20 3d 20 |desktopE|xtent = |
|00000cc0| 28 2a 2a 47 65 74 47 72 | 61 79 52 67 6e 28 29 29 |(**GetGr|ayRgn())|
|00000cd0| 2e 72 67 6e 42 42 6f 78 | 3b 0d 0d 09 67 4d 6f 76 |.rgnBBox|;...gMov|
|00000ce0| 65 4d 6f 64 61 6c 50 72 | 6f 63 20 3d 20 32 30 35 |eModalPr|oc = 205|
|00000cf0| 33 3b 0d 09 0d 09 69 66 | 20 28 53 79 73 45 6e 76 |3;....if| (SysEnv|
|00000d00| 69 72 6f 6e 73 28 31 2c | 26 74 68 65 45 6e 76 29 |irons(1,|&theEnv)|
|00000d10| 20 3d 3d 20 6e 6f 45 72 | 72 20 26 26 20 74 68 65 | == noEr|r && the|
|00000d20| 45 6e 76 2e 73 79 73 74 | 65 6d 56 65 72 73 69 6f |Env.syst|emVersio|
|00000d30| 6e 20 3e 3d 20 31 37 39 | 32 29 0d 09 09 67 4d 6f |n >= 179|2)...gMo|
|00000d40| 76 65 4d 6f 64 61 6c 50 | 72 6f 63 20 3d 20 35 3b |veModalP|roc = 5;|
|00000d50| 0d 09 67 48 61 73 43 6f | 6c 6f 72 51 44 20 3d 20 |..gHasCo|lorQD = |
|00000d60| 74 68 65 45 6e 76 2e 68 | 61 73 43 6f 6c 6f 72 51 |theEnv.h|asColorQ|
|00000d70| 44 3b 0d 09 0d 09 69 66 | 20 20 28 28 20 74 68 65 |D;....if| (( the|
|00000d80| 45 6e 76 2e 6d 61 63 68 | 69 6e 65 54 79 70 65 20 |Env.mach|ineType |
|00000d90| 3e 20 65 6e 76 4d 61 63 | 68 55 6e 6b 6e 6f 77 6e |> envMac|hUnknown|
|00000da0| 20 29 20 26 26 0d 09 09 | 28 20 74 68 65 45 6e 76 | ) &&...|( theEnv|
|00000db0| 2e 6d 61 63 68 69 6e 65 | 54 79 70 65 20 3c 20 65 |.machine|Type < e|
|00000dc0| 6e 76 4d 61 63 49 49 20 | 29 20 29 20 7b 09 09 2f |nvMacII |) ) {../|
|00000dd0| 2a 20 69 74 27 73 20 61 | 20 35 31 32 4b 45 2c 20 |* it's a| 512KE, |
|00000de0| 50 6c 75 73 2c 20 6f 72 | 20 53 45 20 2a 2f 0d 09 |Plus, or| SE */..|
|00000df0| 09 74 4e 75 6d 62 65 72 | 20 3d 20 5f 57 61 69 74 |.tNumber| = _Wait|
|00000e00| 4e 65 78 74 45 76 65 6e | 74 20 26 20 30 78 30 33 |NextEven|t & 0x03|
|00000e10| 46 46 3b 0d 09 09 69 66 | 20 28 20 74 4e 75 6d 62 |FF;...if| ( tNumb|
|00000e20| 65 72 20 3e 20 30 78 30 | 31 46 46 20 29 09 09 09 |er > 0x0|1FF )...|
|00000e30| 09 09 2f 2a 20 77 68 69 | 63 68 20 6d 65 61 6e 73 |../* whi|ch means|
|00000e40| 20 74 68 65 20 74 6f 6f | 6c 20 74 72 61 70 73 20 | the too|l traps |
|00000e50| 2a 2f 0d 09 09 09 74 4e | 75 6d 62 65 72 20 3d 20 |*/....tN|umber = |
|00000e60| 5f 55 6e 69 6d 70 6c 65 | 6d 65 6e 74 65 64 3b 09 |_Unimple|mented;.|
|00000e70| 09 09 2f 2a 20 6f 6e 6c | 79 20 67 6f 20 74 6f 20 |../* onl|y go to |
|00000e80| 30 78 30 31 46 46 20 2a | 2f 0d 09 7d 0d 09 67 48 |0x01FF *|/..}..gH|
|00000e90| 61 73 57 61 69 74 4e 65 | 78 74 45 76 65 6e 74 20 |asWaitNe|xtEvent |
|00000ea0| 3d 20 4e 47 65 74 54 72 | 61 70 41 64 64 72 65 73 |= NGetTr|apAddres|
|00000eb0| 73 28 74 4e 75 6d 62 65 | 72 2c 20 54 6f 6f 6c 54 |s(tNumbe|r, ToolT|
|00000ec0| 72 61 70 29 20 21 3d 20 | 47 65 74 54 72 61 70 41 |rap) != |GetTrapA|
|00000ed0| 64 64 72 65 73 73 28 5f | 55 6e 69 6d 70 6c 65 6d |ddress(_|Unimplem|
|00000ee0| 65 6e 74 65 64 29 3b 0d | 0d 09 0d 09 53 65 74 52 |ented);.|....SetR|
|00000ef0| 65 63 74 28 26 67 44 72 | 61 67 52 65 63 74 2c 34 |ect(&gDr|agRect,4|
|00000f00| 2c 32 34 2c 64 65 73 6b | 74 6f 70 45 78 74 65 6e |,24,desk|topExten|
|00000f10| 74 2e 72 69 67 68 74 2d | 34 2c 64 65 73 6b 74 6f |t.right-|4,deskto|
|00000f20| 70 45 78 74 65 6e 74 2e | 62 6f 74 74 6f 6d 2d 34 |pExtent.|bottom-4|
|00000f30| 29 3b 0d 09 53 65 74 52 | 65 63 74 28 26 67 57 69 |);..SetR|ect(&gWi|
|00000f40| 6e 64 4c 69 6d 69 74 73 | 2c 35 30 2c 35 30 2c 36 |ndLimits|,50,50,6|
|00000f50| 30 30 30 2c 36 30 30 30 | 29 3b 0d 09 67 49 42 65 |000,6000|);..gIBe|
|00000f60| 61 6d 43 75 72 73 20 3d | 20 2a 2a 28 47 65 74 43 |amCurs =| **(GetC|
|00000f70| 75 72 73 6f 72 28 69 42 | 65 61 6d 43 75 72 73 6f |ursor(iB|eamCurso|
|00000f80| 72 29 29 3b 0d 09 67 57 | 61 74 63 68 43 75 72 73 |r));..gW|atchCurs|
|00000f90| 20 3d 20 2a 2a 28 47 65 | 74 43 75 72 73 6f 72 28 | = **(Ge|tCursor(|
|00000fa0| 77 61 74 63 68 43 75 72 | 73 6f 72 29 29 3b 0d 09 |watchCur|sor));..|
|00000fb0| 0d 09 52 65 61 64 50 72 | 65 66 73 28 26 67 50 72 |..ReadPr|efs(&gPr|
|00000fc0| 65 66 73 29 3b 0d 09 53 | 65 74 55 70 4d 65 6e 75 |efs);..S|etUpMenu|
|00000fd0| 73 28 29 3b 0d 09 53 74 | 61 72 74 4e 4e 54 50 28 |s();..St|artNNTP(|
|00000fe0| 29 3b 0d 0d 09 67 53 63 | 72 61 70 43 6f 6d 70 61 |);...gSc|rapCompa|
|00000ff0| 72 65 20 3d 20 49 6e 66 | 6f 53 63 72 61 70 28 29 |re = Inf|oScrap()|
|00001000| 2d 3e 73 63 72 61 70 43 | 6f 75 6e 74 20 2b 20 31 |->scrapC|ount + 1|
|00001010| 3b 0d 09 67 53 63 72 61 | 70 44 69 72 74 79 20 3d |;..gScra|pDirty =|
|00001020| 20 66 61 6c 73 65 3b 0d | 09 52 65 61 64 44 65 73 | false;.|.ReadDes|
|00001030| 6b 53 63 72 61 70 28 29 | 3b 0d 0d 09 43 6c 6f 73 |kScrap()|;...Clos|
|00001040| 65 53 74 61 74 75 73 57 | 69 6e 64 6f 77 28 29 3b |eStatusW|indow();|
|00001050| 0d 0d 09 53 65 74 55 70 | 57 69 6e 64 6f 77 73 28 |...SetUp|Windows(|
|00001060| 29 3b 0d 09 43 68 65 63 | 6b 47 72 6f 75 70 73 28 |);..Chec|kGroups(|
|00001070| 29 3b 0d 0d 09 43 6c 6f | 73 65 53 74 61 74 75 73 |);...Clo|seStatus|
|00001080| 57 69 6e 64 6f 77 28 29 | 3b 0d 0d 09 44 6f 53 74 |Window()|;...DoSt|
|00001090| 61 72 74 55 70 28 29 3b | 0d 09 67 44 6f 6e 65 20 |artUp();|..gDone |
|000010a0| 3d 20 66 61 6c 73 65 3b | 0d 09 0d 7d 0d 0d 0d 2f |= false;|...}.../|
|000010b0| 2a 20 53 65 74 55 70 4d | 65 6e 75 73 3a 20 64 72 |* SetUpM|enus: dr|
|000010c0| 61 77 73 20 74 68 65 20 | 70 75 6c 6c 2d 64 6f 77 |aws the |pull-dow|
|000010d0| 6e 20 6d 65 6e 75 73 20 | 6f 6e 74 6f 20 74 68 65 |n menus |onto the|
|000010e0| 20 73 63 72 65 65 6e 20 | 2a 2f 0d 0d 76 6f 69 64 | screen |*/..void|
|000010f0| 20 53 65 74 55 70 4d 65 | 6e 75 73 28 76 6f 69 64 | SetUpMe|nus(void|
|00001100| 29 0d 7b 0d 09 73 68 6f | 72 74 20 69 3b 0d 09 0d |).{..sho|rt i;...|
|00001110| 09 66 6f 72 20 28 69 3d | 30 3b 20 69 3c 6b 4e 75 |.for (i=|0; i<kNu|
|00001120| 6d 4d 65 6e 75 73 3b 20 | 69 2b 2b 29 0d 09 09 67 |mMenus; |i++)...g|
|00001130| 54 68 65 4d 65 6e 75 5b | 69 5d 20 3d 20 47 65 74 |TheMenu[|i] = Get|
|00001140| 4d 65 6e 75 28 69 2b 6b | 4d 65 6e 75 4f 66 66 73 |Menu(i+k|MenuOffs|
|00001150| 65 74 29 3b 0d 09 41 64 | 64 52 65 73 4d 65 6e 75 |et);..Ad|dResMenu|
|00001160| 28 67 54 68 65 4d 65 6e | 75 5b 6b 41 70 70 6c 65 |(gTheMen|u[kApple|
|00001170| 4d 65 6e 75 5d 2c 27 44 | 52 56 52 27 29 3b 0d 09 |Menu],'D|RVR');..|
|00001180| 41 64 64 52 65 73 4d 65 | 6e 75 28 67 54 68 65 4d |AddResMe|nu(gTheM|
|00001190| 65 6e 75 5b 6b 46 6f 6e | 74 4d 65 6e 75 5d 2c 27 |enu[kFon|tMenu],'|
|000011a0| 46 4f 4e 54 27 29 3b 0d | 09 66 6f 72 20 28 69 3d |FONT');.|.for (i=|
|000011b0| 30 3b 20 69 3c 6b 4e 75 | 6d 4d 65 6e 75 73 3b 20 |0; i<kNu|mMenus; |
|000011c0| 69 2b 2b 29 0d 09 09 49 | 6e 73 65 72 74 4d 65 6e |i++)...I|nsertMen|
|000011d0| 75 28 67 54 68 65 4d 65 | 6e 75 5b 69 5d 2c 30 29 |u(gTheMe|nu[i],0)|
|000011e0| 3b 0d 09 44 72 61 77 4d | 65 6e 75 42 61 72 28 29 |;..DrawM|enuBar()|
|000011f0| 3b 0d 7d 0d 0d 0d 2f 2a | 20 53 65 74 55 70 57 69 |;.}.../*| SetUpWi|
|00001200| 6e 64 6f 77 73 3a 20 63 | 72 65 61 74 65 73 20 61 |ndows: c|reates a|
|00001210| 6e 20 69 6e 69 74 69 61 | 6c 2c 20 65 6d 70 74 79 |n initia|l, empty|
|00001220| 20 77 69 6e 64 6f 77 20 | 2a 2f 0d 0d 76 6f 69 64 | window |*/..void|
|00001230| 20 53 65 74 55 70 57 69 | 6e 64 6f 77 73 28 76 6f | SetUpWi|ndows(vo|
|00001240| 69 64 29 0d 7b 0d 09 57 | 69 6e 64 6f 77 50 74 72 |id).{..W|indowPtr|
|00001250| 20 74 68 65 57 69 6e 64 | 3b 0d 09 54 77 69 6e 64 | theWind|;..Twind|
|00001260| 6f 77 49 6e 66 6f 20 2a | 74 68 65 49 6e 66 6f 3b |owInfo *|theInfo;|
|00001270| 0d 09 47 72 61 66 50 74 | 72 20 73 61 76 65 50 6f |..GrafPt|r savePo|
|00001280| 72 74 3b 0d 09 65 78 74 | 65 72 6e 20 73 68 6f 72 |rt;..ext|ern shor|
|00001290| 74 20 67 4e 75 6d 47 72 | 6f 75 70 73 3b 0d 09 65 |t gNumGr|oups;..e|
|000012a0| 78 74 65 72 6e 20 54 47 | 72 6f 75 70 20 2a 67 47 |xtern TG|roup *gG|
|000012b0| 72 6f 75 70 4c 69 73 74 | 3b 0d 09 50 6f 69 6e 74 |roupList|;..Point|
|000012c0| 20 66 69 72 73 74 4f 66 | 66 73 65 74 3b 0d 09 50 | firstOf|fset;..P|
|000012d0| 6f 69 6e 74 20 74 68 65 | 50 74 3b 0d 0d 09 53 65 |oint the|Pt;...Se|
|000012e0| 74 50 74 28 26 66 69 72 | 73 74 4f 66 66 73 65 74 |tPt(&fir|stOffset|
|000012f0| 2c 6b 4f 66 66 4c 65 66 | 74 2c 6b 4f 66 66 54 6f |,kOffLef|t,kOffTo|
|00001300| 70 29 3b 0d 09 74 68 65 | 49 6e 66 6f 20 3d 20 28 |p);..the|Info = (|
|00001310| 54 77 69 6e 64 6f 77 49 | 6e 66 6f 20 2a 29 20 47 |TwindowI|nfo *) G|
|00001320| 65 74 57 52 65 66 43 6f | 6e 28 67 47 72 6f 75 70 |etWRefCo|n(gGroup|
|00001330| 57 69 6e 64 6f 77 20 3d | 20 74 68 65 57 69 6e 64 |Window =| theWind|
|00001340| 20 3d 20 4d 61 6b 65 4e | 65 77 57 69 6e 64 6f 77 | = MakeN|ewWindow|
|00001350| 28 63 47 72 6f 75 70 2c | 66 61 6c 73 65 2c 66 69 |(cGroup,|false,fi|
|00001360| 72 73 74 4f 66 66 73 65 | 74 2c 22 5c 70 4e 65 77 |rstOffse|t,"\pNew|
|00001370| 73 67 72 6f 75 70 73 22 | 29 29 3b 0d 0d 09 74 68 |sgroups"|));...th|
|00001380| 65 49 6e 66 6f 2d 3e 6e | 75 6d 47 72 6f 75 70 73 |eInfo->n|umGroups|
|00001390| 20 3d 20 67 4e 75 6d 47 | 72 6f 75 70 73 3b 0d 09 | = gNumG|roups;..|
|000013a0| 74 68 65 49 6e 66 6f 2d | 3e 64 61 74 61 32 20 3d |theInfo-|>data2 =|
|000013b0| 20 28 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 29 | (unsign|ed long)|
|000013c0| 20 67 47 72 6f 75 70 4c | 69 73 74 3b 0d 09 74 68 | gGroupL|ist;..th|
|000013d0| 65 49 6e 66 6f 2d 3e 70 | 61 72 65 6e 74 47 72 6f |eInfo->p|arentGro|
|000013e0| 75 70 20 3d 20 6e 69 6c | 3b 0d 09 74 68 65 49 6e |up = nil|;..theIn|
|000013f0| 66 6f 2d 3e 70 61 72 65 | 6e 74 57 69 6e 64 6f 77 |fo->pare|ntWindow|
|00001400| 20 3d 20 6e 69 6c 3b 0d | 09 74 68 65 49 6e 66 6f | = nil;.|.theInfo|
|00001410| 2d 3e 63 68 69 6c 64 4c | 69 73 74 20 3d 20 6e 69 |->childL|ist = ni|
|00001420| 6c 3b 0d 09 0d 09 4d 61 | 6b 65 47 72 6f 75 70 4c |l;....Ma|keGroupL|
|00001430| 69 73 74 28 28 4c 69 73 | 74 48 61 6e 64 6c 65 29 |ist((Lis|tHandle)|
|00001440| 74 68 65 49 6e 66 6f 2d | 3e 64 61 74 61 2c 67 4e |theInfo-|>data,gN|
|00001450| 75 6d 47 72 6f 75 70 73 | 2c 67 47 72 6f 75 70 4c |umGroups|,gGroupL|
|00001460| 69 73 74 29 3b 0d 09 53 | 65 74 50 74 28 26 74 68 |ist);..S|etPt(&th|
|00001470| 65 50 74 2c 30 2c 30 29 | 3b 0d 09 4c 53 65 74 53 |ePt,0,0)|;..LSetS|
|00001480| 65 6c 65 63 74 28 74 72 | 75 65 2c 74 68 65 50 74 |elect(tr|ue,thePt|
|00001490| 2c 28 4c 69 73 74 48 61 | 6e 64 6c 65 29 74 68 65 |,(ListHa|ndle)the|
|000014a0| 49 6e 66 6f 2d 3e 64 61 | 74 61 29 3b 0d 09 0d 09 |Info->da|ta);....|
|000014b0| 47 65 74 50 6f 72 74 28 | 26 73 61 76 65 50 6f 72 |GetPort(|&savePor|
|000014c0| 74 29 3b 0d 09 53 65 74 | 50 6f 72 74 28 74 68 65 |t);..Set|Port(the|
|000014d0| 57 69 6e 64 29 3b 0d 0d | 09 53 69 7a 65 57 69 6e |Wind);..|.SizeWin|
|000014e0| 64 6f 77 28 74 68 65 57 | 69 6e 64 2c 67 50 72 65 |dow(theW|ind,gPre|
|000014f0| 66 73 2e 67 72 6f 75 70 | 57 69 6e 64 6f 77 53 69 |fs.group|WindowSi|
|00001500| 7a 65 2e 72 69 67 68 74 | 2d 67 50 72 65 66 73 2e |ze.right|-gPrefs.|
|00001510| 67 72 6f 75 70 57 69 6e | 64 6f 77 53 69 7a 65 2e |groupWin|dowSize.|
|00001520| 6c 65 66 74 2c 0d 09 09 | 09 09 09 67 50 72 65 66 |left,...|...gPref|
|00001530| 73 2e 67 72 6f 75 70 57 | 69 6e 64 6f 77 53 69 7a |s.groupW|indowSiz|
|00001540| 65 2e 62 6f 74 74 6f 6d | 2d 67 50 72 65 66 73 2e |e.bottom|-gPrefs.|
|00001550| 67 72 6f 75 70 57 69 6e | 64 6f 77 53 69 7a 65 2e |groupWin|dowSize.|
|00001560| 74 6f 70 2c 74 72 75 65 | 29 3b 0d 09 53 69 7a 65 |top,true|);..Size|
|00001570| 43 6f 6e 74 65 6e 74 73 | 28 67 50 72 65 66 73 2e |Contents|(gPrefs.|
|00001580| 67 72 6f 75 70 57 69 6e | 64 6f 77 53 69 7a 65 2e |groupWin|dowSize.|
|00001590| 72 69 67 68 74 2d 67 50 | 72 65 66 73 2e 67 72 6f |right-gP|refs.gro|
|000015a0| 75 70 57 69 6e 64 6f 77 | 53 69 7a 65 2e 6c 65 66 |upWindow|Size.lef|
|000015b0| 74 2c 0d 09 09 09 09 09 | 67 50 72 65 66 73 2e 67 |t,......|gPrefs.g|
|000015c0| 72 6f 75 70 57 69 6e 64 | 6f 77 53 69 7a 65 2e 62 |roupWind|owSize.b|
|000015d0| 6f 74 74 6f 6d 2d 67 50 | 72 65 66 73 2e 67 72 6f |ottom-gP|refs.gro|
|000015e0| 75 70 57 69 6e 64 6f 77 | 53 69 7a 65 2e 74 6f 70 |upWindow|Size.top|
|000015f0| 2c 74 68 65 57 69 6e 64 | 29 3b 0d 09 4d 6f 76 65 |,theWind|);..Move|
|00001600| 57 69 6e 64 6f 77 28 74 | 68 65 57 69 6e 64 2c 67 |Window(t|heWind,g|
|00001610| 50 72 65 66 73 2e 67 72 | 6f 75 70 57 69 6e 64 6f |Prefs.gr|oupWindo|
|00001620| 77 53 69 7a 65 2e 6c 65 | 66 74 2c 67 50 72 65 66 |wSize.le|ft,gPref|
|00001630| 73 2e 67 72 6f 75 70 57 | 69 6e 64 6f 77 53 69 7a |s.groupW|indowSiz|
|00001640| 65 2e 74 6f 70 2c 66 61 | 6c 73 65 29 3b 0d 0d 09 |e.top,fa|lse);...|
|00001650| 43 6c 6f 73 65 53 74 61 | 74 75 73 57 69 6e 64 6f |CloseSta|tusWindo|
|00001660| 77 28 29 3b 0d 09 69 66 | 20 28 67 50 72 65 66 73 |w();..if| (gPrefs|
|00001670| 2e 6f 70 65 6e 57 69 6e | 64 6f 77 73 5a 6f 6f 6d |.openWin|dowsZoom|
|00001680| 65 64 29 0d 09 09 44 6f | 5a 6f 6f 6d 28 74 68 65 |ed)...Do|Zoom(the|
|00001690| 57 69 6e 64 2c 69 6e 5a | 6f 6f 6d 4f 75 74 29 3b |Wind,inZ|oomOut);|
|000016a0| 0d 0d 09 69 66 20 28 21 | 67 50 72 65 66 73 2e 67 |...if (!|gPrefs.g|
|000016b0| 72 6f 75 70 57 69 6e 64 | 6f 77 56 69 73 69 62 6c |roupWind|owVisibl|
|000016c0| 65 29 20 7b 0d 09 09 67 | 50 72 65 66 73 2e 67 72 |e) {...g|Prefs.gr|
|000016d0| 6f 75 70 57 69 6e 64 6f | 77 56 69 73 69 62 6c 65 |oupWindo|wVisible|
|000016e0| 20 3d 20 21 67 50 72 65 | 66 73 2e 67 72 6f 75 70 | = !gPre|fs.group|
|000016f0| 57 69 6e 64 6f 77 56 69 | 73 69 62 6c 65 3b 0d 09 |WindowVi|sible;..|
|00001700| 09 48 69 64 65 53 68 6f | 77 47 72 6f 75 70 73 28 |.HideSho|wGroups(|
|00001710| 29 3b 0d 09 7d 0d 09 65 | 6c 73 65 0d 09 09 53 68 |);..}..e|lse...Sh|
|00001720| 6f 77 57 69 6e 64 6f 77 | 28 74 68 65 57 69 6e 64 |owWindow|(theWind|
|00001730| 29 3b 0d 0d 09 49 6e 76 | 61 6c 52 65 63 74 28 26 |);...Inv|alRect(&|
|00001740| 74 68 65 57 69 6e 64 2d | 3e 70 6f 72 74 52 65 63 |theWind-|>portRec|
|00001750| 74 29 3b 0d 09 53 65 74 | 50 6f 72 74 28 73 61 76 |t);..Set|Port(sav|
|00001760| 65 50 6f 72 74 29 3b 0d | 09 0d 09 67 46 72 6f 6e |ePort);.|...gFron|
|00001770| 74 54 45 20 3d 20 6e 69 | 6c 3b 0d 7d 0d 0d 0d 2f |tTE = ni|l;.}.../|
|00001780| 2a 09 4e 65 77 47 72 6f | 75 70 57 69 6e 64 6f 77 |*.NewGro|upWindow|
|00001790| 20 63 72 65 61 74 65 73 | 20 61 20 6e 65 77 20 75 | creates| a new u|
|000017a0| 73 65 72 20 67 72 6f 75 | 70 20 77 69 6e 64 6f 77 |ser grou|p window|
|000017b0| 20 2a 2f 0d 0d 57 69 6e | 64 6f 77 50 74 72 20 4e | */..Win|dowPtr N|
|000017c0| 65 77 47 72 6f 75 70 57 | 69 6e 64 6f 77 28 63 68 |ewGroupW|indow(ch|
|000017d0| 61 72 20 2a 67 72 6f 75 | 70 4e 61 6d 65 29 0d 7b |ar *grou|pName).{|
|000017e0| 0d 09 57 69 6e 64 6f 77 | 50 74 72 20 74 68 65 57 |..Window|Ptr theW|
|000017f0| 69 6e 64 3b 0d 09 54 77 | 69 6e 64 6f 77 49 6e 66 |ind;..Tw|indowInf|
|00001800| 6f 20 2a 74 68 65 49 6e | 66 6f 3b 0d 09 50 6f 69 |o *theIn|fo;..Poi|
|00001810| 6e 74 20 66 69 72 73 74 | 4f 66 66 73 65 74 3b 0d |nt first|Offset;.|
|00001820| 09 0d 09 53 65 74 50 74 | 28 26 66 69 72 73 74 4f |...SetPt|(&firstO|
|00001830| 66 66 73 65 74 2c 6b 4f | 66 66 4c 65 66 74 2c 6b |ffset,kO|ffLeft,k|
|00001840| 4f 66 66 54 6f 70 29 3b | 0d 09 0d 09 74 68 65 49 |OffTop);|....theI|
|00001850| 6e 66 6f 20 3d 20 28 54 | 77 69 6e 64 6f 77 49 6e |nfo = (T|windowIn|
|00001860| 66 6f 20 2a 29 20 47 65 | 74 57 52 65 66 43 6f 6e |fo *) Ge|tWRefCon|
|00001870| 28 74 68 65 57 69 6e 64 | 20 3d 20 4d 61 6b 65 4e |(theWind| = MakeN|
|00001880| 65 77 57 69 6e 64 6f 77 | 28 63 55 73 65 72 47 72 |ewWindow|(cUserGr|
|00001890| 6f 75 70 2c 74 72 75 65 | 2c 66 69 72 73 74 4f 66 |oup,true|,firstOf|
|000018a0| 66 73 65 74 2c 67 72 6f | 75 70 4e 61 6d 65 29 29 |fset,gro|upName))|
|000018b0| 3b 0d 09 42 6c 6f 63 6b | 4d 6f 76 65 28 67 72 6f |;..Block|Move(gro|
|000018c0| 75 70 4e 61 6d 65 2c 74 | 68 65 49 6e 66 6f 2d 3e |upName,t|heInfo->|
|000018d0| 64 69 73 6b 46 69 6c 65 | 2c 67 72 6f 75 70 4e 61 |diskFile|,groupNa|
|000018e0| 6d 65 5b 30 5d 2b 31 29 | 3b 0d 09 74 68 65 49 6e |me[0]+1)|;..theIn|
|000018f0| 66 6f 2d 3e 63 68 61 6e | 67 65 64 20 3d 20 66 61 |fo->chan|ged = fa|
|00001900| 6c 73 65 3b 0d 09 74 68 | 65 49 6e 66 6f 2d 3e 6e |lse;..th|eInfo->n|
|00001910| 75 6d 47 72 6f 75 70 73 | 20 3d 20 30 3b 0d 09 74 |umGroups| = 0;..t|
|00001920| 68 65 49 6e 66 6f 2d 3e | 73 61 76 65 64 20 3d 20 |heInfo->|saved = |
|00001930| 66 61 6c 73 65 3b 0d 09 | 74 68 65 49 6e 66 6f 2d |false;..|theInfo-|
|00001940| 3e 64 61 74 61 32 20 3d | 20 6e 69 6c 3b 0d 09 74 |>data2 =| nil;..t|
|00001950| 68 65 49 6e 66 6f 2d 3e | 63 68 69 6c 64 4c 69 73 |heInfo->|childLis|
|00001960| 74 20 3d 20 6e 69 6c 3b | 0d 09 74 68 65 49 6e 66 |t = nil;|..theInf|
|00001970| 6f 2d 3e 70 61 72 65 6e | 74 57 69 6e 64 6f 77 20 |o->paren|tWindow |
|00001980| 3d 20 6e 69 6c 3b 0d 09 | 53 68 6f 77 57 69 6e 64 |= nil;..|ShowWind|
|00001990| 6f 77 28 74 68 65 57 69 | 6e 64 29 3b 0d 09 72 65 |ow(theWi|nd);..re|
|000019a0| 74 75 72 6e 20 74 68 65 | 57 69 6e 64 3b 0d 7d 0d |turn the|Wind;.}.|
|000019b0| 0d 0d 2f 2a 09 4d 79 4f | 66 66 53 65 74 20 6f 66 |../*.MyO|ffSet of|
|000019c0| 66 73 65 74 73 20 61 20 | 77 69 6e 64 6f 77 20 73 |fsets a |window s|
|000019d0| 6f 20 6e 6f 20 74 77 6f | 20 77 69 6e 64 6f 77 73 |o no two| windows|
|000019e0| 20 61 72 65 20 61 74 20 | 74 68 65 20 73 61 6d 65 | are at |the same|
|000019f0| 20 6f 72 69 67 69 6e 20 | 61 6e 64 20 74 68 65 0d | origin |and the.|
|00001a00| 09 77 69 6e 64 6f 77 73 | 20 64 6f 20 6e 6f 74 20 |.windows| do not |
|00001a10| 68 61 6e 67 20 6f 66 66 | 20 6f 66 20 74 68 65 20 |hang off| of the |
|00001a20| 73 63 72 65 65 6e 2e 0d | 2a 2f 0d 0d 52 65 63 74 |screen..|*/..Rect|
|00001a30| 20 2a 4d 79 4f 66 66 53 | 65 74 28 52 65 63 74 20 | *MyOffS|et(Rect |
|00001a40| 2a 74 68 65 52 65 63 74 | 29 0d 7b 0d 09 57 69 6e |*theRect|).{..Win|
|00001a50| 64 6f 77 50 74 72 20 77 | 69 6e 64 3b 0d 09 52 65 |dowPtr w|ind;..Re|
|00001a60| 63 74 20 66 69 72 73 74 | 52 65 63 74 3b 0d 09 0d |ct first|Rect;...|
|00001a70| 09 66 69 72 73 74 52 65 | 63 74 20 3d 20 2a 74 68 |.firstRe|ct = *th|
|00001a80| 65 52 65 63 74 3b 0d 09 | 77 69 6e 64 20 3d 20 46 |eRect;..|wind = F|
|00001a90| 72 6f 6e 74 57 69 6e 64 | 6f 77 28 29 3b 0d 0d 09 |rontWind|ow();...|
|00001aa0| 77 68 69 6c 65 20 28 77 | 69 6e 64 29 20 7b 0d 09 |while (w|ind) {..|
|00001ab0| 09 69 66 20 28 28 74 68 | 65 52 65 63 74 2d 3e 74 |.if ((th|eRect->t|
|00001ac0| 6f 70 20 3d 3d 20 28 2d | 77 69 6e 64 2d 3e 70 6f |op == (-|wind->po|
|00001ad0| 72 74 42 69 74 73 2e 62 | 6f 75 6e 64 73 2e 74 6f |rtBits.b|ounds.to|
|00001ae0| 70 29 29 20 26 26 20 28 | 74 68 65 52 65 63 74 2d |p)) && (|theRect-|
|00001af0| 3e 6c 65 66 74 20 3d 3d | 20 28 2d 77 69 6e 64 2d |>left ==| (-wind-|
|00001b00| 3e 70 6f 72 74 42 69 74 | 73 2e 62 6f 75 6e 64 73 |>portBit|s.bounds|
|00001b10| 2e 6c 65 66 74 29 29 29 | 20 7b 0d 09 09 09 4f 66 |.left)))| {....Of|
|00001b20| 66 73 65 74 52 65 63 74 | 28 74 68 65 52 65 63 74 |fsetRect|(theRect|
|00001b30| 2c 67 50 72 65 66 73 2e | 77 69 6e 64 6f 77 4f 66 |,gPrefs.|windowOf|
|00001b40| 66 73 65 74 2e 68 2c 67 | 50 72 65 66 73 2e 77 69 |fset.h,g|Prefs.wi|
|00001b50| 6e 64 6f 77 4f 66 66 73 | 65 74 2e 76 29 3b 0d 09 |ndowOffs|et.v);..|
|00001b60| 09 09 69 66 20 28 74 68 | 65 52 65 63 74 2d 3e 72 |..if (th|eRect->r|
|00001b70| 69 67 68 74 20 3e 20 64 | 65 73 6b 74 6f 70 45 78 |ight > d|esktopEx|
|00001b80| 74 65 6e 74 2e 72 69 67 | 68 74 29 20 7b 0d 09 09 |tent.rig|ht) {...|
|00001b90| 09 09 4f 66 66 73 65 74 | 52 65 63 74 28 26 66 69 |..Offset|Rect(&fi|
|00001ba0| 72 73 74 52 65 63 74 2c | 30 2c 67 50 72 65 66 73 |rstRect,|0,gPrefs|
|00001bb0| 2e 77 69 6e 64 6f 77 4f | 66 66 73 65 74 2e 76 2b |.windowO|ffset.v+|
|00001bc0| 32 29 3b 0d 09 09 09 09 | 2a 74 68 65 52 65 63 74 |2);.....|*theRect|
|00001bd0| 20 3d 20 66 69 72 73 74 | 52 65 63 74 3b 0d 09 09 | = first|Rect;...|
|00001be0| 09 7d 0d 09 09 09 69 66 | 20 28 74 68 65 52 65 63 |.}....if| (theRec|
|00001bf0| 74 2d 3e 62 6f 74 74 6f | 6d 20 3e 20 64 65 73 6b |t->botto|m > desk|
|00001c00| 74 6f 70 45 78 74 65 6e | 74 2e 62 6f 74 74 6f 6d |topExten|t.bottom|
|00001c10| 29 20 7b 0d 09 09 09 09 | 4f 66 66 73 65 74 52 65 |) {.....|OffsetRe|
|00001c20| 63 74 28 26 66 69 72 73 | 74 52 65 63 74 2c 67 50 |ct(&firs|tRect,gP|
|00001c30| 72 65 66 73 2e 77 69 6e | 64 6f 77 4f 66 66 73 65 |refs.win|dowOffse|
|00001c40| 74 2e 68 2b 32 2c 30 29 | 3b 0d 09 09 09 09 2a 74 |t.h+2,0)|;.....*t|
|00001c50| 68 65 52 65 63 74 20 3d | 20 66 69 72 73 74 52 65 |heRect =| firstRe|
|00001c60| 63 74 3b 0d 09 09 09 7d | 0d 09 09 09 77 69 6e 64 |ct;....}|....wind|
|00001c70| 20 3d 20 46 72 6f 6e 74 | 57 69 6e 64 6f 77 28 29 | = Front|Window()|
|00001c80| 3b 0d 09 09 7d 0d 09 09 | 65 6c 73 65 0d 09 09 09 |;...}...|else....|
|00001c90| 77 69 6e 64 20 3d 20 28 | 57 69 6e 64 6f 77 50 74 |wind = (|WindowPt|
|00001ca0| 72 29 20 28 28 57 69 6e | 64 6f 77 50 65 65 6b 29 |r) ((Win|dowPeek)|
|00001cb0| 20 77 69 6e 64 29 2d 3e | 6e 65 78 74 57 69 6e 64 | wind)->|nextWind|
|00001cc0| 6f 77 3b 0d 09 7d 0d 09 | 0d 09 69 66 20 28 74 68 |ow;..}..|..if (th|
|00001cd0| 65 52 65 63 74 2d 3e 74 | 6f 70 20 3e 20 64 65 73 |eRect->t|op > des|
|00001ce0| 6b 74 6f 70 45 78 74 65 | 6e 74 2e 62 6f 74 74 6f |ktopExte|nt.botto|
|00001cf0| 6d 29 0d 09 09 74 68 65 | 52 65 63 74 2d 3e 74 6f |m)...the|Rect->to|
|00001d00| 70 20 3d 20 64 65 73 6b | 74 6f 70 45 78 74 65 6e |p = desk|topExten|
|00001d10| 74 2e 62 6f 74 74 6f 6d | 20 2d 20 31 30 3b 0d 09 |t.bottom| - 10;..|
|00001d20| 69 66 20 28 74 68 65 52 | 65 63 74 2d 3e 6c 65 66 |if (theR|ect->lef|
|00001d30| 74 20 3e 20 64 65 73 6b | 74 6f 70 45 78 74 65 6e |t > desk|topExten|
|00001d40| 74 2e 72 69 67 68 74 29 | 0d 09 09 74 68 65 52 65 |t.right)|...theRe|
|00001d50| 63 74 2d 3e 6c 65 66 74 | 20 3d 20 64 65 73 6b 74 |ct->left| = deskt|
|00001d60| 6f 70 45 78 74 65 6e 74 | 2e 72 69 67 68 74 20 2d |opExtent|.right -|
|00001d70| 20 31 30 3b 0d 09 69 66 | 20 28 74 68 65 52 65 63 | 10;..if| (theRec|
|00001d80| 74 2d 3e 62 6f 74 74 6f | 6d 20 3e 20 64 65 73 6b |t->botto|m > desk|
|00001d90| 74 6f 70 45 78 74 65 6e | 74 2e 62 6f 74 74 6f 6d |topExten|t.bottom|
|00001da0| 20 26 26 20 74 68 65 52 | 65 63 74 2d 3e 74 6f 70 | && theR|ect->top|
|00001db0| 20 3c 20 28 64 65 73 6b | 74 6f 70 45 78 74 65 6e | < (desk|topExten|
|00001dc0| 74 2e 62 6f 74 74 6f 6d | 2d 36 34 29 29 0d 09 09 |t.bottom|-64))...|
|00001dd0| 74 68 65 52 65 63 74 2d | 3e 62 6f 74 74 6f 6d 20 |theRect-|>bottom |
|00001de0| 3d 20 64 65 73 6b 74 6f | 70 45 78 74 65 6e 74 2e |= deskto|pExtent.|
|00001df0| 62 6f 74 74 6f 6d 3b 0d | 09 69 66 20 28 74 68 65 |bottom;.|.if (the|
|00001e00| 52 65 63 74 2d 3e 72 69 | 67 68 74 20 3e 20 64 65 |Rect->ri|ght > de|
|00001e10| 73 6b 74 6f 70 45 78 74 | 65 6e 74 2e 72 69 67 68 |sktopExt|ent.righ|
|00001e20| 74 20 26 26 20 74 68 65 | 52 65 63 74 2d 3e 6c 65 |t && the|Rect->le|
|00001e30| 66 74 20 3c 20 28 64 65 | 73 6b 74 6f 70 45 78 74 |ft < (de|sktopExt|
|00001e40| 65 6e 74 2e 72 69 67 68 | 74 2d 36 34 29 29 0d 09 |ent.righ|t-64))..|
|00001e50| 09 74 68 65 52 65 63 74 | 2d 3e 72 69 67 68 74 20 |.theRect|->right |
|00001e60| 3d 20 64 65 73 6b 74 6f | 70 45 78 74 65 6e 74 2e |= deskto|pExtent.|
|00001e70| 72 69 67 68 74 3b 0d 09 | 09 0d 09 72 65 74 75 72 |right;..|...retur|
|00001e80| 6e 28 74 68 65 52 65 63 | 74 29 3b 0d 7d 0d 0d 0d |n(theRec|t);.}...|
|00001e90| 2f 2a 09 4d 61 6b 65 4e | 65 77 57 69 6e 64 6f 77 |/*.MakeN|ewWindow|
|00001ea0| 20 69 73 20 74 68 65 20 | 6c 6f 77 2d 6c 65 76 65 | is the |low-leve|
|00001eb0| 6c 20 70 72 6f 63 65 64 | 75 72 65 20 74 6f 20 6d |l proced|ure to m|
|00001ec0| 61 6b 65 20 61 20 6e 65 | 77 20 4e 65 77 73 57 61 |ake a ne|w NewsWa|
|00001ed0| 74 63 68 65 72 20 77 69 | 6e 64 6f 77 2e 0d 09 44 |tcher wi|ndow...D|
|00001ee0| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 77 68 61 74 |epending| on what|
|00001ef0| 20 74 79 70 65 20 69 73 | 20 6e 65 65 64 65 64 2c | type is| needed,|
|00001f00| 20 74 68 65 20 77 69 6e | 64 6f 77 20 77 69 6c 6c | the win|dow will|
|00001f10| 20 68 61 76 65 20 64 69 | 66 66 65 72 65 6e 74 0d | have di|fferent.|
|00001f20| 09 66 65 61 74 75 72 65 | 73 2e 0d 2a 2f 0d 0d 57 |.feature|s..*/..W|
|00001f30| 69 6e 64 6f 77 50 74 72 | 20 4d 61 6b 65 4e 65 77 |indowPtr| MakeNew|
|00001f40| 57 69 6e 64 6f 77 28 73 | 68 6f 72 74 20 74 79 70 |Window(s|hort typ|
|00001f50| 65 2c 42 6f 6f 6c 65 61 | 6e 20 68 61 73 43 6c 6f |e,Boolea|n hasClo|
|00001f60| 73 65 2c 50 6f 69 6e 74 | 20 74 6f 70 4c 65 66 74 |se,Point| topLeft|
|00001f70| 2c 63 68 61 72 20 2a 74 | 69 74 6c 65 29 0d 7b 0d |,char *t|itle).{.|
|00001f80| 09 0d 09 57 69 6e 64 6f | 77 50 74 72 20 74 68 65 |...Windo|wPtr the|
|00001f90| 57 69 6e 64 6f 77 3b 0d | 09 54 77 69 6e 64 6f 77 |Window;.|.Twindow|
|00001fa0| 49 6e 66 6f 20 2a 74 68 | 65 49 6e 66 6f 3b 0d 09 |Info *th|eInfo;..|
|00001fb0| 52 65 63 74 20 62 6f 75 | 6e 64 73 3b 0d 09 73 68 |Rect bou|nds;..sh|
|00001fc0| 6f 72 74 20 72 69 67 68 | 74 4d 61 72 6b 3b 0d 09 |ort righ|tMark;..|
|00001fd0| 0d 09 69 66 20 28 21 67 | 50 72 65 66 73 2e 70 61 |..if (!g|Prefs.pa|
|00001fe0| 72 65 6e 74 57 69 6e 64 | 6f 77 73 29 0d 09 09 53 |rentWind|ows)...S|
|00001ff0| 65 74 50 74 28 26 74 6f | 70 4c 65 66 74 2c 6b 4f |etPt(&to|pLeft,kO|
|00002000| 66 66 4c 65 66 74 2c 6b | 4f 66 66 54 6f 70 29 3b |ffLeft,k|OffTop);|
|00002010| 0d 09 09 0d 09 73 77 69 | 74 63 68 20 28 74 79 70 |.....swi|tch (typ|
|00002020| 65 29 20 7b 0d 09 09 63 | 61 73 65 20 63 47 72 6f |e) {...c|ase cGro|
|00002030| 75 70 3a 0d 09 09 63 61 | 73 65 20 63 4e 65 77 47 |up:...ca|se cNewG|
|00002040| 72 6f 75 70 3a 0d 09 09 | 63 61 73 65 20 63 55 73 |roup:...|case cUs|
|00002050| 65 72 47 72 6f 75 70 3a | 0d 09 09 09 72 69 67 68 |erGroup:|....righ|
|00002060| 74 4d 61 72 6b 20 3d 20 | 74 6f 70 4c 65 66 74 2e |tMark = |topLeft.|
|00002070| 68 2b 33 30 30 3b 0d 09 | 09 09 62 72 65 61 6b 3b |h+300;..|..break;|
|00002080| 0d 09 09 63 61 73 65 20 | 63 53 75 62 6a 65 63 74 |...case |cSubject|
|00002090| 3a 0d 09 09 09 72 69 67 | 68 74 4d 61 72 6b 20 3d |:....rig|htMark =|
|000020a0| 20 74 6f 70 4c 65 66 74 | 2e 68 2b 34 30 30 3b 0d | topLeft|.h+400;.|
|000020b0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 63 61 73 65 |...break|;...case|
|000020c0| 20 63 4d 65 73 73 61 67 | 65 3a 0d 09 09 63 61 73 | cMessag|e:...cas|
|000020d0| 65 20 63 4d 69 73 63 4d | 65 73 73 61 67 65 3a 0d |e cMiscM|essage:.|
|000020e0| 09 09 63 61 73 65 20 63 | 53 65 6e 64 4d 65 73 73 |..case c|SendMess|
|000020f0| 61 67 65 3a 0d 09 09 63 | 61 73 65 20 63 50 6f 73 |age:...c|ase cPos|
|00002100| 74 4d 65 73 73 61 67 65 | 3a 0d 09 09 09 72 69 67 |tMessage|:....rig|
|00002110| 68 74 4d 61 72 6b 20 3d | 20 74 6f 70 4c 65 66 74 |htMark =| topLeft|
|00002120| 2e 68 2b 34 39 35 3b 0d | 09 09 09 62 72 65 61 6b |.h+495;.|...break|
|00002130| 3b 0d 09 7d 0d 0d 09 53 | 65 74 52 65 63 74 28 26 |;..}...S|etRect(&|
|00002140| 62 6f 75 6e 64 73 2c 74 | 6f 70 4c 65 66 74 2e 68 |bounds,t|opLeft.h|
|00002150| 2c 74 6f 70 4c 65 66 74 | 2e 76 2c 72 69 67 68 74 |,topLeft|.v,right|
|00002160| 4d 61 72 6b 2c 6b 48 65 | 69 67 68 74 57 69 6e 64 |Mark,kHe|ightWind|
|00002170| 6f 77 2b 74 6f 70 4c 65 | 66 74 2e 76 29 3b 09 0d |ow+topLe|ft.v);..|
|00002180| 09 74 68 65 57 69 6e 64 | 6f 77 20 3d 20 4e 65 77 |.theWind|ow = New|
|00002190| 57 69 6e 64 6f 77 28 6e | 69 6c 2c 4d 79 4f 66 66 |Window(n|il,MyOff|
|000021a0| 53 65 74 28 26 62 6f 75 | 6e 64 73 29 2c 22 5c 70 |Set(&bou|nds),"\p|
|000021b0| 55 6e 74 69 74 6c 65 64 | 22 2c 66 61 6c 73 65 2c |Untitled|",false,|
|000021c0| 7a 6f 6f 6d 44 6f 63 50 | 72 6f 63 2c 28 57 69 6e |zoomDocP|roc,(Win|
|000021d0| 64 6f 77 50 74 72 29 2d | 31 2c 68 61 73 43 6c 6f |dowPtr)-|1,hasClo|
|000021e0| 73 65 2c 6e 69 6c 29 3b | 0d 09 0d 09 74 68 65 49 |se,nil);|....theI|
|000021f0| 6e 66 6f 20 3d 20 28 54 | 77 69 6e 64 6f 77 49 6e |nfo = (T|windowIn|
|00002200| 66 6f 20 2a 29 20 4d 79 | 4e 65 77 50 74 72 28 73 |fo *) My|NewPtr(s|
|00002210| 69 7a 65 6f 66 28 54 77 | 69 6e 64 6f 77 49 6e 66 |izeof(Tw|indowInf|
|00002220| 6f 29 29 3b 0d 09 69 66 | 20 28 4d 79 4d 65 6d 45 |o));..if| (MyMemE|
|00002230| 72 72 28 29 20 21 3d 20 | 6e 6f 45 72 72 29 0d 09 |rr() != |noErr)..|
|00002240| 09 72 65 74 75 72 6e 20 | 6e 69 6c 3b 0d 09 09 0d |.return |nil;....|
|00002250| 09 74 68 65 49 6e 66 6f | 2d 3e 6b 69 6e 64 20 3d |.theInfo|->kind =|
|00002260| 20 74 79 70 65 3b 0d 09 | 73 77 69 74 63 68 20 28 | type;..|switch (|
|00002270| 74 79 70 65 29 20 7b 0d | 09 09 63 61 73 65 20 63 |type) {.|..case c|
|00002280| 47 72 6f 75 70 3a 0d 09 | 09 63 61 73 65 20 63 4e |Group:..|.case cN|
|00002290| 65 77 47 72 6f 75 70 3a | 0d 09 09 09 74 68 65 49 |ewGroup:|....theI|
|000022a0| 6e 66 6f 2d 3e 66 69 6c | 74 65 72 5b 30 5d 20 3d |nfo->fil|ter[0] =|
|000022b0| 20 27 5c 30 27 3b 0d 09 | 09 09 74 68 65 49 6e 66 | '\0';..|..theInf|
|000022c0| 6f 2d 3e 66 69 6c 74 65 | 72 4c 65 6e 20 3d 20 30 |o->filte|rLen = 0|
|000022d0| 3b 0d 09 09 09 74 68 65 | 49 6e 66 6f 2d 3e 64 61 |;....the|Info->da|
|000022e0| 74 61 20 3d 20 28 48 61 | 6e 64 6c 65 29 4e 65 77 |ta = (Ha|ndle)New|
|000022f0| 4c 69 73 74 28 74 68 65 | 57 69 6e 64 6f 77 29 3b |List(the|Window);|
|00002300| 0d 09 09 09 28 2a 2a 28 | 28 4c 69 73 74 48 61 6e |....(**(|(ListHan|
|00002310| 64 6c 65 29 74 68 65 49 | 6e 66 6f 2d 3e 64 61 74 |dle)theI|nfo->dat|
|00002320| 61 29 29 2e 6c 69 73 74 | 46 6c 61 67 73 20 3d 20 |a)).list|Flags = |
|00002330| 30 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 63 |0;....br|eak;...c|
|00002340| 61 73 65 20 63 55 73 65 | 72 47 72 6f 75 70 3a 0d |ase cUse|rGroup:.|
|00002350| 09 09 63 61 73 65 20 63 | 53 75 62 6a 65 63 74 3a |..case c|Subject:|
|00002360| 0d 09 09 09 74 68 65 49 | 6e 66 6f 2d 3e 66 69 6c |....theI|nfo->fil|
|00002370| 74 65 72 5b 30 5d 20 3d | 20 27 5c 30 27 3b 0d 09 |ter[0] =| '\0';..|
|00002380| 09 09 74 68 65 49 6e 66 | 6f 2d 3e 66 69 6c 74 65 |..theInf|o->filte|
|00002390| 72 4c 65 6e 20 3d 20 30 | 3b 0d 09 09 09 74 68 65 |rLen = 0|;....the|
|000023a0| 49 6e 66 6f 2d 3e 64 61 | 74 61 20 3d 20 28 48 61 |Info->da|ta = (Ha|
|000023b0| 6e 64 6c 65 29 4e 65 77 | 4c 69 73 74 28 74 68 65 |ndle)New|List(the|
|000023c0| 57 69 6e 64 6f 77 29 3b | 0d 09 09 09 4c 44 6f 44 |Window);|....LDoD|
|000023d0| 72 61 77 28 74 72 75 65 | 2c 28 4c 69 73 74 48 61 |raw(true|,(ListHa|
|000023e0| 6e 64 6c 65 29 74 68 65 | 49 6e 66 6f 2d 3e 64 61 |ndle)the|Info->da|
|000023f0| 74 61 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |ta);....|break;..|
|00002400| 09 63 61 73 65 20 63 4d | 65 73 73 61 67 65 3a 0d |.case cM|essage:.|
|00002410| 09 09 63 61 73 65 20 63 | 4d 69 73 63 4d 65 73 73 |..case c|MiscMess|
|00002420| 61 67 65 3a 0d 09 09 63 | 61 73 65 20 63 50 6f 73 |age:...c|ase cPos|
|00002430| 74 4d 65 73 73 61 67 65 | 3a 0d 09 09 63 61 73 65 |tMessage|:...case|
|00002440| 20 63 53 65 6e 64 4d 65 | 73 73 61 67 65 3a 0d 09 | cSendMe|ssage:..|
|00002450| 09 09 74 68 65 49 6e 66 | 6f 2d 3e 64 61 74 61 20 |..theInf|o->data |
|00002460| 3d 20 28 48 61 6e 64 6c | 65 29 4e 65 77 54 65 78 |= (Handl|e)NewTex|
|00002470| 74 28 74 68 65 57 69 6e | 64 6f 77 29 3b 0d 09 09 |t(theWin|dow);...|
|00002480| 09 4d 61 6b 65 53 63 72 | 6f 6c 6c 65 72 73 28 74 |.MakeScr|ollers(t|
|00002490| 68 65 57 69 6e 64 6f 77 | 29 3b 0d 09 09 09 62 72 |heWindow|);....br|
|000024a0| 65 61 6b 3b 0d 09 7d 0d | 09 69 66 20 28 74 79 70 |eak;..}.|.if (typ|
|000024b0| 65 20 3d 3d 20 63 47 72 | 6f 75 70 20 7c 7c 20 74 |e == cGr|oup || t|
|000024c0| 79 70 65 20 3d 3d 20 63 | 4e 65 77 47 72 6f 75 70 |ype == c|NewGroup|
|000024d0| 20 7c 7c 20 74 79 70 65 | 20 3d 3d 20 63 55 73 65 | || type| == cUse|
|000024e0| 72 47 72 6f 75 70 29 0d | 09 09 28 2a 2a 28 28 4c |rGroup).|..(**((L|
|000024f0| 69 73 74 48 61 6e 64 6c | 65 29 74 68 65 49 6e 66 |istHandl|e)theInf|
|00002500| 6f 2d 3e 64 61 74 61 29 | 29 2e 6c 43 6c 69 6b 4c |o->data)|).lClikL|
|00002510| 6f 6f 70 20 3d 20 28 50 | 72 6f 63 50 74 72 29 20 |oop = (P|rocPtr) |
|00002520| 44 6f 43 6c 69 6b 4c 6f | 6f 70 3b 0d 0d 09 53 65 |DoClikLo|op;...Se|
|00002530| 74 57 52 65 66 43 6f 6e | 28 74 68 65 57 69 6e 64 |tWRefCon|(theWind|
|00002540| 6f 77 2c 28 6c 6f 6e 67 | 29 74 68 65 49 6e 66 6f |ow,(long|)theInfo|
|00002550| 29 3b 0d 09 53 65 74 57 | 54 69 74 6c 65 28 74 68 |);..SetW|Title(th|
|00002560| 65 57 69 6e 64 6f 77 2c | 28 53 74 72 69 6e 67 50 |eWindow,|(StringP|
|00002570| 74 72 29 20 74 69 74 6c | 65 29 3b 0d 09 41 64 64 |tr) titl|e);..Add|
|00002580| 57 69 6e 64 6f 77 73 4d | 65 6e 75 28 74 68 65 57 |WindowsM|enu(theW|
|00002590| 69 6e 64 6f 77 29 3b 0d | 09 72 65 74 75 72 6e 20 |indow);.|.return |
|000025a0| 74 68 65 57 69 6e 64 6f | 77 3b 0d 7d 0d 0d 0d 2f |theWindo|w;.}.../|
|000025b0| 2a 09 4d 61 6b 65 53 63 | 72 6f 6c 6c 65 72 73 20 |*.MakeSc|rollers |
|000025c0| 61 64 64 73 20 73 63 72 | 6f 6c 6c 20 62 61 72 73 |adds scr|oll bars|
|000025d0| 20 74 6f 20 74 65 78 74 | 65 64 69 74 20 77 69 6e | to text|edit win|
|000025e0| 64 6f 77 73 20 2a 2f 0d | 0d 76 6f 69 64 20 4d 61 |dows */.|.void Ma|
|000025f0| 6b 65 53 63 72 6f 6c 6c | 65 72 73 28 57 69 6e 64 |keScroll|ers(Wind|
|00002600| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 6f 77 29 |owPtr th|eWindow)|
|00002610| 0d 7b 0d 09 52 65 63 74 | 20 77 69 6e 64 6f 77 52 |.{..Rect| windowR|
|00002620| 65 63 74 2c 68 53 63 72 | 6f 6c 6c 52 65 63 74 2c |ect,hScr|ollRect,|
|00002630| 76 53 63 72 6f 6c 6c 52 | 65 63 74 3b 0d 09 0d 09 |vScrollR|ect;....|
|00002640| 77 69 6e 64 6f 77 52 65 | 63 74 20 3d 20 74 68 65 |windowRe|ct = the|
|00002650| 57 69 6e 64 6f 77 2d 3e | 70 6f 72 74 52 65 63 74 |Window->|portRect|
|00002660| 3b 0d 09 0d 09 53 65 74 | 52 65 63 74 28 26 68 53 |;....Set|Rect(&hS|
|00002670| 63 72 6f 6c 6c 52 65 63 | 74 2c 2d 31 2c 28 77 69 |crollRec|t,-1,(wi|
|00002680| 6e 64 6f 77 52 65 63 74 | 2e 62 6f 74 74 6f 6d 2d |ndowRect|.bottom-|
|00002690| 77 69 6e 64 6f 77 52 65 | 63 74 2e 74 6f 70 20 2d |windowRe|ct.top -|
|000026a0| 20 31 35 29 2c 0d 09 09 | 09 28 77 69 6e 64 6f 77 | 15),...|.(window|
|000026b0| 52 65 63 74 2e 72 69 67 | 68 74 2d 77 69 6e 64 6f |Rect.rig|ht-windo|
|000026c0| 77 52 65 63 74 2e 6c 65 | 66 74 20 2d 20 31 34 29 |wRect.le|ft - 14)|
|000026d0| 2c 0d 09 09 09 28 77 69 | 6e 64 6f 77 52 65 63 74 |,....(wi|ndowRect|
|000026e0| 2e 62 6f 74 74 6f 6d 2d | 77 69 6e 64 6f 77 52 65 |.bottom-|windowRe|
|000026f0| 63 74 2e 74 6f 70 20 2b | 20 31 29 29 3b 0d 09 53 |ct.top +| 1));..S|
|00002700| 65 74 52 65 63 74 28 26 | 76 53 63 72 6f 6c 6c 52 |etRect(&|vScrollR|
|00002710| 65 63 74 2c 28 77 69 6e | 64 6f 77 52 65 63 74 2e |ect,(win|dowRect.|
|00002720| 72 69 67 68 74 2d 77 69 | 6e 64 6f 77 52 65 63 74 |right-wi|ndowRect|
|00002730| 2e 6c 65 66 74 20 2d 20 | 31 35 29 2c 2d 31 2c 0d |.left - |15),-1,.|
|00002740| 09 09 09 28 77 69 6e 64 | 6f 77 52 65 63 74 2e 72 |...(wind|owRect.r|
|00002750| 69 67 68 74 2d 77 69 6e | 64 6f 77 52 65 63 74 2e |ight-win|dowRect.|
|00002760| 6c 65 66 74 2b 31 29 2c | 0d 09 09 09 28 77 69 6e |left+1),|....(win|
|00002770| 64 6f 77 52 65 63 74 2e | 62 6f 74 74 6f 6d 2d 77 |dowRect.|bottom-w|
|00002780| 69 6e 64 6f 77 52 65 63 | 74 2e 74 6f 70 2d 31 34 |indowRec|t.top-14|
|00002790| 29 29 3b 0d 09 53 65 74 | 43 52 65 66 43 6f 6e 28 |));..Set|CRefCon(|
|000027a0| 4e 65 77 43 6f 6e 74 72 | 6f 6c 28 74 68 65 57 69 |NewContr|ol(theWi|
|000027b0| 6e 64 6f 77 2c 26 76 53 | 63 72 6f 6c 6c 52 65 63 |ndow,&vS|crollRec|
|000027c0| 74 2c 22 5c 70 22 2c 74 | 72 75 65 2c 30 2c 30 2c |t,"\p",t|rue,0,0,|
|000027d0| 30 2c 31 36 2c 30 29 2c | 6b 56 52 65 66 29 3b 0d |0,16,0),|kVRef);.|
|000027e0| 09 53 65 74 43 52 65 66 | 43 6f 6e 28 4e 65 77 43 |.SetCRef|Con(NewC|
|000027f0| 6f 6e 74 72 6f 6c 28 74 | 68 65 57 69 6e 64 6f 77 |ontrol(t|heWindow|
|00002800| 2c 26 68 53 63 72 6f 6c | 6c 52 65 63 74 2c 22 5c |,&hScrol|lRect,"\|
|00002810| 70 22 2c 74 72 75 65 2c | 30 2c 30 2c 6b 4d 61 78 |p",true,|0,0,kMax|
|00002820| 43 6f 6c 75 6d 6e 73 2c | 31 36 2c 31 29 2c 6b 48 |Columns,|16,1),kH|
|00002830| 52 65 66 29 3b 0d 7d 0d | 0d 0d 2f 2a 09 4e 65 77 |Ref);.}.|../*.New|
|00002840| 4c 69 73 74 20 6d 61 6b | 65 73 20 61 20 6e 65 77 |List mak|es a new|
|00002850| 20 6c 69 73 74 20 6d 61 | 6e 61 67 65 72 20 6c 69 | list ma|nager li|
|00002860| 73 74 20 66 6f 72 20 6c | 69 73 74 20 77 69 6e 64 |st for l|ist wind|
|00002870| 6f 77 73 20 2a 2f 0d 0d | 4c 69 73 74 48 61 6e 64 |ows */..|ListHand|
|00002880| 6c 65 20 4e 65 77 4c 69 | 73 74 28 57 69 6e 64 6f |le NewLi|st(Windo|
|00002890| 77 50 74 72 20 74 68 65 | 57 69 6e 64 6f 77 29 0d |wPtr the|Window).|
|000028a0| 7b 0d 09 4c 69 73 74 48 | 61 6e 64 6c 65 20 74 68 |{..ListH|andle th|
|000028b0| 65 4c 69 73 74 3b 0d 09 | 0d 09 50 6f 69 6e 74 20 |eList;..|..Point |
|000028c0| 74 68 65 50 74 3b 0d 09 | 52 65 63 74 20 6c 69 73 |thePt;..|Rect lis|
|000028d0| 74 52 65 63 74 2c 73 69 | 7a 65 52 65 63 74 3b 0d |tRect,si|zeRect;.|
|000028e0| 09 47 72 61 66 50 74 72 | 20 73 61 76 65 50 6f 72 |.GrafPtr| savePor|
|000028f0| 74 3b 0d 09 73 68 6f 72 | 74 20 66 6f 6e 74 4e 75 |t;..shor|t fontNu|
|00002900| 6d 3b 0d 09 0d 09 53 65 | 74 50 74 28 26 74 68 65 |m;....Se|tPt(&the|
|00002910| 50 74 2c 30 2c 30 29 3b | 0d 09 53 65 74 52 65 63 |Pt,0,0);|..SetRec|
|00002920| 74 28 26 73 69 7a 65 52 | 65 63 74 2c 30 2c 30 2c |t(&sizeR|ect,0,0,|
|00002930| 31 2c 30 29 3b 0d 09 53 | 65 74 52 65 63 74 28 26 |1,0);..S|etRect(&|
|00002940| 6c 69 73 74 52 65 63 74 | 2c 74 68 65 57 69 6e 64 |listRect|,theWind|
|00002950| 6f 77 2d 3e 70 6f 72 74 | 52 65 63 74 2e 6c 65 66 |ow->port|Rect.lef|
|00002960| 74 2c 74 68 65 57 69 6e | 64 6f 77 2d 3e 70 6f 72 |t,theWin|dow->por|
|00002970| 74 52 65 63 74 2e 74 6f | 70 2c 74 68 65 57 69 6e |tRect.to|p,theWin|
|00002980| 64 6f 77 2d 3e 70 6f 72 | 74 52 65 63 74 2e 72 69 |dow->por|tRect.ri|
|00002990| 67 68 74 2d 31 35 2c 74 | 68 65 57 69 6e 64 6f 77 |ght-15,t|heWindow|
|000029a0| 2d 3e 70 6f 72 74 52 65 | 63 74 2e 62 6f 74 74 6f |->portRe|ct.botto|
|000029b0| 6d 2d 31 35 29 3b 0d 09 | 47 65 74 50 6f 72 74 28 |m-15);..|GetPort(|
|000029c0| 26 73 61 76 65 50 6f 72 | 74 29 3b 0d 09 53 65 74 |&savePor|t);..Set|
|000029d0| 50 6f 72 74 28 74 68 65 | 57 69 6e 64 6f 77 29 3b |Port(the|Window);|
|000029e0| 0d 09 0d 09 47 65 74 46 | 4e 75 6d 28 67 50 72 65 |....GetF|Num(gPre|
|000029f0| 66 73 2e 6c 69 73 74 46 | 6f 6e 74 2c 26 66 6f 6e |fs.listF|ont,&fon|
|00002a00| 74 4e 75 6d 29 3b 0d 09 | 54 65 78 74 46 6f 6e 74 |tNum);..|TextFont|
|00002a10| 28 66 6f 6e 74 4e 75 6d | 29 3b 0d 09 54 65 78 74 |(fontNum|);..Text|
|00002a20| 53 69 7a 65 28 67 50 72 | 65 66 73 2e 6c 69 73 74 |Size(gPr|efs.list|
|00002a30| 53 69 7a 65 29 3b 0d 09 | 74 68 65 4c 69 73 74 20 |Size);..|theList |
|00002a40| 3d 20 4c 4e 65 77 28 26 | 6c 69 73 74 52 65 63 74 |= LNew(&|listRect|
|00002a50| 2c 26 73 69 7a 65 52 65 | 63 74 2c 74 68 65 50 74 |,&sizeRe|ct,thePt|
|00002a60| 2c 6b 4c 44 45 46 50 72 | 6f 63 2c 74 68 65 57 69 |,kLDEFPr|oc,theWi|
|00002a70| 6e 64 6f 77 2c 66 61 6c | 73 65 2c 74 72 75 65 2c |ndow,fal|se,true,|
|00002a80| 66 61 6c 73 65 2c 74 72 | 75 65 29 3b 0d 09 28 2a |false,tr|ue);..(*|
|00002a90| 2a 74 68 65 4c 69 73 74 | 29 2e 73 65 6c 46 6c 61 |*theList|).selFla|
|00002aa0| 67 73 20 7c 3d 20 6c 4e | 6f 4e 69 6c 48 69 6c 69 |gs |= lN|oNilHili|
|00002ab0| 74 65 3b 0d 09 53 65 74 | 50 6f 72 74 28 73 61 76 |te;..Set|Port(sav|
|00002ac0| 65 50 6f 72 74 29 3b 0d | 09 72 65 74 75 72 6e 20 |ePort);.|.return |
|00002ad0| 74 68 65 4c 69 73 74 3b | 0d 7d 0d 0d 0d 2f 2a 09 |theList;|.}.../*.|
|00002ae0| 44 6f 43 6c 69 6b 4c 6f | 6f 70 20 69 73 20 74 68 |DoClikLo|op is th|
|00002af0| 65 20 63 6c 69 63 6b 20 | 6c 6f 6f 70 20 72 6f 75 |e click |loop rou|
|00002b00| 74 69 6e 65 20 66 6f 72 | 20 6c 69 73 74 20 77 69 |tine for| list wi|
|00002b10| 6e 64 6f 77 73 20 69 6e | 20 6e 65 77 73 77 61 74 |ndows in| newswat|
|00002b20| 63 68 65 72 2e 20 20 49 | 74 0d 09 68 61 6e 64 6c |cher. I|t..handl|
|00002b30| 65 73 20 73 75 62 73 63 | 72 69 62 69 6e 67 20 74 |es subsc|ribing t|
|00002b40| 6f 20 61 6e 64 20 72 65 | 2d 6f 72 64 65 72 69 6e |o and re|-orderin|
|00002b50| 67 20 6f 66 20 67 72 6f | 75 70 73 2e 0d 2a 2f 0d |g of gro|ups..*/.|
|00002b60| 0d 70 61 73 63 61 6c 20 | 42 6f 6f 6c 65 61 6e 20 |.pascal |Boolean |
|00002b70| 44 6f 43 6c 69 6b 4c 6f | 6f 70 28 76 6f 69 64 29 |DoClikLo|op(void)|
|00002b80| 0d 7b 09 0d 09 52 65 63 | 74 20 63 65 6c 6c 52 65 |.{...Rec|t cellRe|
|00002b90| 63 74 3b 0d 09 43 65 6c | 6c 20 6c 61 73 74 43 6c |ct;..Cel|l lastCl|
|00002ba0| 69 63 6b 65 64 3b 0d 09 | 50 6f 69 6e 74 20 74 68 |icked;..|Point th|
|00002bb0| 65 50 74 3b 0d 09 73 74 | 61 74 69 63 20 50 6f 69 |ePt;..st|atic Poi|
|00002bc0| 6e 74 20 66 69 72 73 74 | 50 74 3b 0d 09 6c 6f 6e |nt first|Pt;..lon|
|00002bd0| 67 20 74 68 65 43 6c 69 | 63 6b 3b 0d 09 0d 09 69 |g theCli|ck;....i|
|00002be0| 66 20 28 21 67 43 6c 69 | 63 6b 65 64 29 20 7b 0d |f (!gCli|cked) {.|
|00002bf0| 09 09 67 43 6c 69 63 6b | 65 64 20 3d 20 74 72 75 |..gClick|ed = tru|
|00002c00| 65 3b 0d 09 09 47 65 74 | 4d 6f 75 73 65 28 26 66 |e;...Get|Mouse(&f|
|00002c10| 69 72 73 74 50 74 29 3b | 0d 09 09 72 65 74 75 72 |irstPt);|...retur|
|00002c20| 6e 20 74 72 75 65 3b 0d | 09 7d 0d 0d 23 69 66 64 |n true;.|.}..#ifd|
|00002c30| 65 66 20 54 48 49 4e 4b | 5f 43 0d 09 74 68 65 43 |ef THINK|_C..theC|
|00002c40| 6c 69 63 6b 20 3d 20 4c | 4c 61 73 74 43 6c 69 63 |lick = L|LastClic|
|00002c50| 6b 28 67 54 68 65 4c 69 | 73 74 29 3b 0d 09 6c 61 |k(gTheLi|st);..la|
|00002c60| 73 74 43 6c 69 63 6b 65 | 64 20 3d 20 2a 20 28 28 |stClicke|d = * ((|
|00002c70| 43 65 6c 6c 20 2a 29 20 | 26 74 68 65 43 6c 69 63 |Cell *) |&theClic|
|00002c80| 6b 29 3b 0d 23 65 6c 73 | 65 0d 09 23 70 72 61 67 |k);.#els|e..#prag|
|00002c90| 6d 61 20 75 6e 75 73 65 | 64 20 28 74 68 65 43 6c |ma unuse|d (theCl|
|00002ca0| 69 63 6b 29 0d 09 6c 61 | 73 74 43 6c 69 63 6b 65 |ick)..la|stClicke|
|00002cb0| 64 20 3d 20 4c 4c 61 73 | 74 43 6c 69 63 6b 28 67 |d = LLas|tClick(g|
|00002cc0| 54 68 65 4c 69 73 74 29 | 3b 0d 23 65 6e 64 69 66 |TheList)|;.#endif|
|00002cd0| 0d 0d 09 4c 52 65 63 74 | 28 26 63 65 6c 6c 52 65 |...LRect|(&cellRe|
|00002ce0| 63 74 2c 6c 61 73 74 43 | 6c 69 63 6b 65 64 2c 67 |ct,lastC|licked,g|
|00002cf0| 54 68 65 4c 69 73 74 29 | 3b 0d 09 47 65 74 4d 6f |TheList)|;..GetMo|
|00002d00| 75 73 65 28 26 74 68 65 | 50 74 29 3b 0d 09 0d 09 |use(&the|Pt);....|
|00002d10| 69 66 20 28 50 74 49 6e | 52 65 63 74 28 74 68 65 |if (PtIn|Rect(the|
|00002d20| 50 74 2c 26 63 65 6c 6c | 52 65 63 74 29 29 20 7b |Pt,&cell|Rect)) {|
|00002d30| 0d 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00002d40| 09 7d 0d 09 65 6c 73 65 | 20 7b 0d 09 09 54 72 61 |.}..else| {...Tra|
|00002d50| 63 6b 43 6c 69 63 6b 28 | 66 69 72 73 74 50 74 29 |ckClick(|firstPt)|
|00002d60| 3b 0d 09 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |;...retu|rn false|
|00002d70| 3b 0d 09 7d 0d 7d 0d 0d | 0d 2f 2a 09 54 72 61 63 |;..}.}..|./*.Trac|
|00002d80| 6b 43 6c 69 63 6b 20 69 | 73 20 63 61 6c 6c 65 64 |kClick i|s called|
|00002d90| 20 62 79 20 74 68 65 20 | 63 6c 69 63 6b 4c 6f 6f | by the |clickLoo|
|00002da0| 70 20 72 6f 75 74 69 6e | 65 20 77 68 65 6e 20 74 |p routin|e when t|
|00002db0| 68 65 20 6d 6f 75 73 65 | 20 67 6f 65 73 20 6f 75 |he mouse| goes ou|
|00002dc0| 74 73 69 64 65 0d 09 74 | 68 65 20 62 6f 75 6e 64 |tside..t|he bound|
|00002dd0| 61 72 69 65 73 20 6f 66 | 20 74 68 65 20 63 65 6c |aries of| the cel|
|00002de0| 6c 20 63 6c 69 63 6b 65 | 64 20 69 6e 2e 0d 2a 2f |l clicke|d in..*/|
|00002df0| 0d 0d 76 6f 69 64 20 54 | 72 61 63 6b 43 6c 69 63 |..void T|rackClic|
|00002e00| 6b 28 50 6f 69 6e 74 20 | 74 68 65 50 74 29 0d 7b |k(Point |thePt).{|
|00002e10| 0d 09 52 67 6e 48 61 6e | 64 6c 65 20 64 72 61 67 |..RgnHan|dle drag|
|00002e20| 52 67 6e 3b 0d 09 52 65 | 63 74 20 63 65 6c 6c 52 |Rgn;..Re|ct cellR|
|00002e30| 65 63 74 3b 0d 09 43 65 | 6c 6c 20 63 75 72 43 65 |ect;..Ce|ll curCe|
|00002e40| 6c 6c 2c 66 69 72 73 74 | 43 65 6c 6c 2c 6c 61 73 |ll,first|Cell,las|
|00002e50| 74 43 65 6c 6c 2c 63 6f | 75 6e 74 43 65 6c 6c 3b |tCell,co|untCell;|
|00002e60| 0d 09 50 6f 69 6e 74 20 | 63 75 72 50 74 3b 0d 09 |..Point |curPt;..|
|00002e70| 47 72 61 66 50 74 72 20 | 66 75 6c 6c 50 6f 72 74 |GrafPtr |fullPort|
|00002e80| 2c 73 61 76 65 50 6f 72 | 74 3b 0d 09 57 69 6e 64 |,savePor|t;..Wind|
|00002e90| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 6f 77 2c |owPtr th|eWindow,|
|00002ea0| 73 74 61 72 74 57 69 6e | 64 6f 77 3b 0d 09 54 77 |startWin|dow;..Tw|
|00002eb0| 69 6e 64 6f 77 49 6e 66 | 6f 20 2a 69 6e 66 6f 3b |indowInf|o *info;|
|00002ec0| 0d 09 73 68 6f 72 74 20 | 70 61 72 74 2c 63 65 6c |..short |part,cel|
|00002ed0| 6c 48 65 69 67 68 74 2c | 64 69 66 66 3b 0d 09 63 |lHeight,|diff;..c|
|00002ee0| 68 61 72 20 63 65 6c 6c | 44 61 74 61 5b 35 31 32 |har cell|Data[512|
|00002ef0| 5d 3b 0d 09 73 68 6f 72 | 74 20 64 61 74 61 4c 65 |];..shor|t dataLe|
|00002f00| 6e 3b 0d 09 54 47 72 6f | 75 70 20 2a 63 75 72 47 |n;..TGro|up *curG|
|00002f10| 72 6f 75 70 2c 2a 63 75 | 72 50 72 65 76 2c 2a 66 |roup,*cu|rPrev,*f|
|00002f20| 69 72 73 74 47 72 6f 75 | 70 2c 2a 66 69 72 73 74 |irstGrou|p,*first|
|00002f30| 50 72 65 76 2c 2a 6c 61 | 73 74 47 72 6f 75 70 3b |Prev,*la|stGroup;|
|00002f40| 0d 09 0d 09 73 74 61 72 | 74 57 69 6e 64 6f 77 20 |....star|tWindow |
|00002f50| 3d 20 46 72 6f 6e 74 57 | 69 6e 64 6f 77 28 29 3b |= FrontW|indow();|
|00002f60| 0d 09 69 6e 66 6f 20 3d | 20 28 54 77 69 6e 64 6f |..info =| (Twindo|
|00002f70| 77 49 6e 66 6f 20 2a 29 | 47 65 74 57 52 65 66 43 |wInfo *)|GetWRefC|
|00002f80| 6f 6e 28 73 74 61 72 74 | 57 69 6e 64 6f 77 29 3b |on(start|Window);|
|00002f90| 0d 0d 09 64 72 61 67 52 | 67 6e 20 3d 20 4e 65 77 |...dragR|gn = New|
|00002fa0| 52 67 6e 28 29 3b 0d 09 | 0d 09 53 65 74 50 74 28 |Rgn();..|..SetPt(|
|00002fb0| 26 63 75 72 43 65 6c 6c | 2c 30 2c 30 29 3b 0d 09 |&curCell|,0,0);..|
|00002fc0| 53 65 74 50 74 28 26 66 | 69 72 73 74 43 65 6c 6c |SetPt(&f|irstCell|
|00002fd0| 2c 30 2c 30 29 3b 0d 09 | 53 65 74 50 74 28 26 6c |,0,0);..|SetPt(&l|
|00002fe0| 61 73 74 43 65 6c 6c 2c | 30 2c 30 29 3b 0d 09 4f |astCell,|0,0);..O|
|00002ff0| 70 65 6e 52 67 6e 28 29 | 3b 0d 09 4c 47 65 74 53 |penRgn()|;..LGetS|
|00003000| 65 6c 65 63 74 28 74 72 | 75 65 2c 26 66 69 72 73 |elect(tr|ue,&firs|
|00003010| 74 43 65 6c 6c 2c 67 54 | 68 65 4c 69 73 74 29 3b |tCell,gT|heList);|
|00003020| 0d 09 77 68 69 6c 65 20 | 28 4c 47 65 74 53 65 6c |..while |(LGetSel|
|00003030| 65 63 74 28 74 72 75 65 | 2c 26 63 75 72 43 65 6c |ect(true|,&curCel|
|00003040| 6c 2c 67 54 68 65 4c 69 | 73 74 29 29 20 7b 0d 09 |l,gTheLi|st)) {..|
|00003050| 09 4c 52 65 63 74 28 26 | 63 65 6c 6c 52 65 63 74 |.LRect(&|cellRect|
|00003060| 2c 63 75 72 43 65 6c 6c | 2c 67 54 68 65 4c 69 73 |,curCell|,gTheLis|
|00003070| 74 29 3b 0d 09 09 46 72 | 61 6d 65 52 65 63 74 28 |t);...Fr|ameRect(|
|00003080| 26 63 65 6c 6c 52 65 63 | 74 29 3b 0d 09 09 6c 61 |&cellRec|t);...la|
|00003090| 73 74 43 65 6c 6c 20 3d | 20 63 75 72 43 65 6c 6c |stCell =| curCell|
|000030a0| 3b 0d 09 09 63 75 72 43 | 65 6c 6c 2e 76 2b 2b 3b |;...curC|ell.v++;|
|000030b0| 0d 09 7d 0d 09 0d 09 43 | 6c 6f 73 65 52 67 6e 28 |..}....C|loseRgn(|
|000030c0| 64 72 61 67 52 67 6e 29 | 3b 0d 09 0d 09 47 65 74 |dragRgn)|;....Get|
|000030d0| 4d 6f 75 73 65 28 26 63 | 75 72 50 74 29 3b 0d 09 |Mouse(&c|urPt);..|
|000030e0| 53 75 62 50 74 28 63 75 | 72 50 74 2c 26 74 68 65 |SubPt(cu|rPt,&the|
|000030f0| 50 74 29 3b 0d 09 4f 66 | 66 73 65 74 52 67 6e 28 |Pt);..Of|fsetRgn(|
|00003100| 64 72 61 67 52 67 6e 2c | 2d 74 68 65 50 74 2e 68 |dragRgn,|-thePt.h|
|00003110| 2c 2d 74 68 65 50 74 2e | 76 29 3b 0d 09 4c 6f 63 |,-thePt.|v);..Loc|
|00003120| 61 6c 54 6f 47 6c 6f 62 | 61 6c 28 26 63 75 72 50 |alToGlob|al(&curP|
|00003130| 74 29 3b 0d 09 0d 09 53 | 65 74 50 74 28 26 74 68 |t);....S|etPt(&th|
|00003140| 65 50 74 2c 30 2c 30 29 | 3b 0d 09 4c 6f 63 61 6c |ePt,0,0)|;..Local|
|00003150| 54 6f 47 6c 6f 62 61 6c | 28 26 74 68 65 50 74 29 |ToGlobal|(&thePt)|
|00003160| 3b 0d 09 4f 66 66 73 65 | 74 52 67 6e 28 64 72 61 |;..Offse|tRgn(dra|
|00003170| 67 52 67 6e 2c 74 68 65 | 50 74 2e 68 2c 74 68 65 |gRgn,the|Pt.h,the|
|00003180| 50 74 2e 76 29 3b 0d 09 | 0d 09 66 75 6c 6c 50 6f |Pt.v);..|..fullPo|
|00003190| 72 74 20 3d 20 28 47 72 | 61 66 50 74 72 29 20 4d |rt = (Gr|afPtr) M|
|000031a0| 79 4e 65 77 50 74 72 28 | 73 69 7a 65 6f 66 28 47 |yNewPtr(|sizeof(G|
|000031b0| 72 61 66 50 6f 72 74 29 | 29 3b 0d 09 69 66 20 28 |rafPort)|);..if (|
|000031c0| 4d 79 4d 65 6d 45 72 72 | 28 29 20 21 3d 20 6e 6f |MyMemErr|() != no|
|000031d0| 45 72 72 29 0d 09 09 72 | 65 74 75 72 6e 3b 0d 09 |Err)...r|eturn;..|
|000031e0| 0d 09 47 65 74 50 6f 72 | 74 28 26 73 61 76 65 50 |..GetPor|t(&saveP|
|000031f0| 6f 72 74 29 3b 0d 09 4f | 70 65 6e 50 6f 72 74 28 |ort);..O|penPort(|
|00003200| 66 75 6c 6c 50 6f 72 74 | 29 3b 0d 09 43 6f 70 79 |fullPort|);..Copy|
|00003210| 52 67 6e 28 47 65 74 47 | 72 61 79 52 67 6e 28 29 |Rgn(GetG|rayRgn()|
|00003220| 2c 66 75 6c 6c 50 6f 72 | 74 2d 3e 76 69 73 52 67 |,fullPor|t->visRg|
|00003230| 6e 29 3b 0d 09 66 75 6c | 6c 50 6f 72 74 2d 3e 70 |n);..ful|lPort->p|
|00003240| 6f 72 74 52 65 63 74 20 | 3d 20 64 65 73 6b 74 6f |ortRect |= deskto|
|00003250| 70 45 78 74 65 6e 74 3b | 0d 09 0d 09 44 72 61 67 |pExtent;|....Drag|
|00003260| 47 72 61 79 52 67 6e 28 | 64 72 61 67 52 67 6e 2c |GrayRgn(|dragRgn,|
|00003270| 63 75 72 50 74 2c 26 64 | 65 73 6b 74 6f 70 45 78 |curPt,&d|esktopEx|
|00003280| 74 65 6e 74 2c 26 64 65 | 73 6b 74 6f 70 45 78 74 |tent,&de|sktopExt|
|00003290| 65 6e 74 2c 6e 6f 43 6f | 6e 73 74 72 61 69 6e 74 |ent,noCo|nstraint|
|000032a0| 2c 6e 69 6c 29 3b 0d 09 | 44 69 73 70 6f 73 65 52 |,nil);..|DisposeR|
|000032b0| 67 6e 28 64 72 61 67 52 | 67 6e 29 3b 0d 09 47 65 |gn(dragR|gn);..Ge|
|000032c0| 74 4d 6f 75 73 65 28 26 | 63 75 72 50 74 29 3b 0d |tMouse(&|curPt);.|
|000032d0| 09 4c 6f 63 61 6c 54 6f | 47 6c 6f 62 61 6c 28 26 |.LocalTo|Global(&|
|000032e0| 63 75 72 50 74 29 3b 0d | 09 0d 09 53 65 74 50 6f |curPt);.|...SetPo|
|000032f0| 72 74 28 73 61 76 65 50 | 6f 72 74 29 3b 0d 09 43 |rt(saveP|ort);..C|
|00003300| 6c 6f 73 65 50 6f 72 74 | 28 66 75 6c 6c 50 6f 72 |losePort|(fullPor|
|00003310| 74 29 3b 0d 09 4d 79 44 | 69 73 70 6f 73 50 74 72 |t);..MyD|isposPtr|
|00003320| 28 28 50 74 72 29 66 75 | 6c 6c 50 6f 72 74 29 3b |((Ptr)fu|llPort);|
|00003330| 0d 09 0d 09 70 61 72 74 | 20 3d 20 46 69 6e 64 57 |....part| = FindW|
|00003340| 69 6e 64 6f 77 28 63 75 | 72 50 74 2c 26 74 68 65 |indow(cu|rPt,&the|
|00003350| 57 69 6e 64 6f 77 29 3b | 0d 09 0d 09 73 77 69 74 |Window);|....swit|
|00003360| 63 68 20 28 69 6e 66 6f | 2d 3e 6b 69 6e 64 29 20 |ch (info|->kind) |
|00003370| 7b 0d 09 09 63 61 73 65 | 20 63 47 72 6f 75 70 3a |{...case| cGroup:|
|00003380| 0d 09 09 63 61 73 65 20 | 63 4e 65 77 47 72 6f 75 |...case |cNewGrou|
|00003390| 70 3a 0d 09 09 09 69 66 | 20 28 70 61 72 74 20 3d |p:....if| (part =|
|000033a0| 3d 20 69 6e 43 6f 6e 74 | 65 6e 74 29 20 7b 0d 09 |= inCont|ent) {..|
|000033b0| 09 09 09 69 66 20 28 28 | 28 54 77 69 6e 64 6f 77 |...if ((|(Twindow|
|000033c0| 49 6e 66 6f 20 2a 29 47 | 65 74 57 52 65 66 43 6f |Info *)G|etWRefCo|
|000033d0| 6e 28 74 68 65 57 69 6e | 64 6f 77 29 29 2d 3e 6b |n(theWin|dow))->k|
|000033e0| 69 6e 64 20 3d 3d 20 63 | 55 73 65 72 47 72 6f 75 |ind == c|UserGrou|
|000033f0| 70 29 20 7b 0d 09 09 09 | 09 09 53 75 62 73 63 72 |p) {....|..Subscr|
|00003400| 69 62 65 53 65 6c 65 63 | 74 65 64 28 28 54 77 69 |ibeSelec|ted((Twi|
|00003410| 6e 64 6f 77 49 6e 66 6f | 20 2a 29 47 65 74 57 52 |ndowInfo| *)GetWR|
|00003420| 65 66 43 6f 6e 28 73 74 | 61 72 74 57 69 6e 64 6f |efCon(st|artWindo|
|00003430| 77 29 2c 67 54 68 65 4c | 69 73 74 2c 74 68 65 57 |w),gTheL|ist,theW|
|00003440| 69 6e 64 6f 77 29 3b 0d | 09 09 09 09 7d 0d 09 09 |indow);.|....}...|
|00003450| 09 09 65 6c 73 65 0d 09 | 09 09 09 09 53 79 73 42 |..else..|....SysB|
|00003460| 65 65 70 28 31 29 3b 0d | 09 09 09 7d 0d 09 09 09 |eep(1);.|...}....|
|00003470| 62 72 65 61 6b 3b 0d 09 | 09 63 61 73 65 20 63 55 |break;..|.case cU|
|00003480| 73 65 72 47 72 6f 75 70 | 3a 0d 09 09 09 69 66 20 |serGroup|:....if |
|00003490| 28 74 68 65 57 69 6e 64 | 6f 77 20 3d 3d 20 73 74 |(theWind|ow == st|
|000034a0| 61 72 74 57 69 6e 64 6f | 77 20 26 26 20 70 61 72 |artWindo|w && par|
|000034b0| 74 20 3d 3d 20 69 6e 43 | 6f 6e 74 65 6e 74 29 20 |t == inC|ontent) |
|000034c0| 7b 0d 09 09 09 09 4c 44 | 6f 44 72 61 77 28 66 61 |{.....LD|oDraw(fa|
|000034d0| 6c 73 65 2c 67 54 68 65 | 4c 69 73 74 29 3b 0d 09 |lse,gThe|List);..|
|000034e0| 09 09 09 47 6c 6f 62 61 | 6c 54 6f 4c 6f 63 61 6c |...Globa|lToLocal|
|000034f0| 28 26 63 75 72 50 74 29 | 3b 0d 09 09 09 09 63 65 |(&curPt)|;.....ce|
|00003500| 6c 6c 48 65 69 67 68 74 | 20 3d 20 63 65 6c 6c 52 |llHeight| = cellR|
|00003510| 65 63 74 2e 62 6f 74 74 | 6f 6d 20 2d 20 63 65 6c |ect.bott|om - cel|
|00003520| 6c 52 65 63 74 2e 74 6f | 70 3b 0d 09 09 09 09 69 |lRect.to|p;.....i|
|00003530| 66 20 28 63 65 6c 6c 48 | 65 69 67 68 74 20 3d 3d |f (cellH|eight ==|
|00003540| 20 30 29 0d 09 09 09 09 | 09 63 65 6c 6c 48 65 69 | 0).....|.cellHei|
|00003550| 67 68 74 3d 31 3b 0d 09 | 09 09 09 63 75 72 43 65 |ght=1;..|...curCe|
|00003560| 6c 6c 2e 76 20 3d 20 28 | 2a 2a 67 54 68 65 4c 69 |ll.v = (|**gTheLi|
|00003570| 73 74 29 2e 76 69 73 69 | 62 6c 65 2e 74 6f 70 20 |st).visi|ble.top |
|00003580| 2b 20 28 63 75 72 50 74 | 2e 76 20 2f 20 63 65 6c |+ (curPt|.v / cel|
|00003590| 6c 48 65 69 67 68 74 29 | 3b 0d 09 09 09 09 63 75 |lHeight)|;.....cu|
|000035a0| 72 43 65 6c 6c 2e 68 20 | 3d 20 30 3b 0d 09 09 09 |rCell.h |= 0;....|
|000035b0| 09 0d 09 09 09 09 69 66 | 20 28 63 75 72 43 65 6c |......if| (curCel|
|000035c0| 6c 2e 76 20 3c 20 66 69 | 72 73 74 43 65 6c 6c 2e |l.v < fi|rstCell.|
|000035d0| 76 20 7c 7c 20 63 75 72 | 43 65 6c 6c 2e 76 20 3e |v || cur|Cell.v >|
|000035e0| 20 6c 61 73 74 43 65 6c | 6c 2e 76 29 20 7b 0d 09 | lastCel|l.v) {..|
|000035f0| 09 09 09 09 63 75 72 43 | 65 6c 6c 2e 76 20 3d 20 |....curC|ell.v = |
|00003600| 4c 41 64 64 52 6f 77 28 | 28 6c 61 73 74 43 65 6c |LAddRow(|(lastCel|
|00003610| 6c 2e 76 20 2d 20 66 69 | 72 73 74 43 65 6c 6c 2e |l.v - fi|rstCell.|
|00003620| 76 20 2b 20 31 29 2c 63 | 75 72 43 65 6c 6c 2e 76 |v + 1),c|urCell.v|
|00003630| 2c 67 54 68 65 4c 69 73 | 74 29 3b 0d 09 09 09 09 |,gTheLis|t);.....|
|00003640| 09 0d 09 09 09 09 09 2f | 2a 20 72 65 2d 6f 72 64 |......./|* re-ord|
|00003650| 65 72 20 6c 69 6e 6b 65 | 64 20 6c 69 73 74 20 2a |er linke|d list *|
|00003660| 2f 0d 0d 09 09 09 09 09 | 69 66 20 28 63 75 72 43 |/.......|if (curC|
|00003670| 65 6c 6c 2e 76 20 3e 20 | 30 29 20 7b 0d 09 09 09 |ell.v > |0) {....|
|00003680| 09 09 09 63 75 72 50 72 | 65 76 20 3d 20 4e 74 68 |...curPr|ev = Nth|
|00003690| 47 72 6f 75 70 28 28 54 | 47 72 6f 75 70 20 2a 29 |Group((T|Group *)|
|000036a0| 69 6e 66 6f 2d 3e 64 61 | 74 61 32 2c 63 75 72 43 |info->da|ta2,curC|
|000036b0| 65 6c 6c 2e 76 2d 31 29 | 3b 0d 09 09 09 09 09 09 |ell.v-1)|;.......|
|000036c0| 63 75 72 47 72 6f 75 70 | 20 3d 20 63 75 72 50 72 |curGroup| = curPr|
|000036d0| 65 76 2d 3e 6e 65 78 74 | 3b 0d 09 09 09 09 09 7d |ev->next|;......}|
|000036e0| 0d 09 09 09 09 09 65 6c | 73 65 20 7b 0d 09 09 09 |......el|se {....|
|000036f0| 09 09 09 63 75 72 50 72 | 65 76 20 3d 20 6e 69 6c |...curPr|ev = nil|
|00003700| 3b 0d 09 09 09 09 09 09 | 63 75 72 47 72 6f 75 70 |;.......|curGroup|
|00003710| 20 3d 20 28 54 47 72 6f | 75 70 20 2a 29 69 6e 66 | = (TGro|up *)inf|
|00003720| 6f 2d 3e 64 61 74 61 32 | 3b 0d 09 09 09 09 09 7d |o->data2|;......}|
|00003730| 0d 09 09 09 09 09 0d 09 | 09 09 09 09 69 66 20 28 |........|....if (|
|00003740| 66 69 72 73 74 43 65 6c | 6c 2e 76 20 3e 20 30 29 |firstCel|l.v > 0)|
|00003750| 20 7b 0d 09 09 09 09 09 | 09 66 69 72 73 74 50 72 | {......|.firstPr|
|00003760| 65 76 20 3d 20 4e 74 68 | 47 72 6f 75 70 28 28 54 |ev = Nth|Group((T|
|00003770| 47 72 6f 75 70 20 2a 29 | 69 6e 66 6f 2d 3e 64 61 |Group *)|info->da|
|00003780| 74 61 32 2c 66 69 72 73 | 74 43 65 6c 6c 2e 76 2d |ta2,firs|tCell.v-|
|00003790| 31 29 3b 0d 09 09 09 09 | 09 09 66 69 72 73 74 47 |1);.....|..firstG|
|000037a0| 72 6f 75 70 20 3d 20 66 | 69 72 73 74 50 72 65 76 |roup = f|irstPrev|
|000037b0| 2d 3e 6e 65 78 74 3b 0d | 09 09 09 09 09 7d 0d 09 |->next;.|.....}..|
|000037c0| 09 09 09 09 65 6c 73 65 | 20 7b 0d 09 09 09 09 09 |....else| {......|
|000037d0| 09 66 69 72 73 74 50 72 | 65 76 20 3d 20 6e 69 6c |.firstPr|ev = nil|
|000037e0| 3b 0d 09 09 09 09 09 09 | 66 69 72 73 74 47 72 6f |;.......|firstGro|
|000037f0| 75 70 20 3d 20 28 54 47 | 72 6f 75 70 20 2a 29 69 |up = (TG|roup *)i|
|00003800| 6e 66 6f 2d 3e 64 61 74 | 61 32 3b 0d 09 09 09 09 |nfo->dat|a2;.....|
|00003810| 09 7d 0d 09 09 09 09 09 | 0d 09 09 09 09 09 6c 61 |.}......|......la|
|00003820| 73 74 47 72 6f 75 70 20 | 3d 20 4e 74 68 47 72 6f |stGroup |= NthGro|
|00003830| 75 70 28 28 54 47 72 6f | 75 70 20 2a 29 69 6e 66 |up((TGro|up *)inf|
|00003840| 6f 2d 3e 64 61 74 61 32 | 2c 6c 61 73 74 43 65 6c |o->data2|,lastCel|
|00003850| 6c 2e 76 29 3b 0d 0d 09 | 09 09 09 09 69 66 20 28 |l.v);...|....if (|
|00003860| 21 66 69 72 73 74 47 72 | 6f 75 70 20 7c 7c 20 21 |!firstGr|oup || !|
|00003870| 6c 61 73 74 47 72 6f 75 | 70 29 20 7b 0d 09 09 09 |lastGrou|p) {....|
|00003880| 09 09 09 53 79 73 42 65 | 65 70 28 31 29 3b 0d 09 |...SysBe|ep(1);..|
|00003890| 09 09 09 09 09 72 65 74 | 75 72 6e 3b 0d 09 09 09 |.....ret|urn;....|
|000038a0| 09 09 7d 0d 09 09 09 09 | 09 09 0d 09 09 09 09 09 |..}.....|........|
|000038b0| 69 66 20 28 63 75 72 50 | 72 65 76 29 0d 09 09 09 |if (curP|rev)....|
|000038c0| 09 09 09 63 75 72 50 72 | 65 76 2d 3e 6e 65 78 74 |...curPr|ev->next|
|000038d0| 20 3d 20 66 69 72 73 74 | 47 72 6f 75 70 3b 0d 09 | = first|Group;..|
|000038e0| 09 09 09 09 65 6c 73 65 | 0d 09 09 09 09 09 09 69 |....else|.......i|
|000038f0| 6e 66 6f 2d 3e 64 61 74 | 61 32 20 3d 20 28 75 6e |nfo->dat|a2 = (un|
|00003900| 73 69 67 6e 65 64 20 6c | 6f 6e 67 29 20 66 69 72 |signed l|ong) fir|
|00003910| 73 74 47 72 6f 75 70 3b | 0d 09 09 09 09 09 0d 09 |stGroup;|........|
|00003920| 09 09 09 09 69 66 20 28 | 66 69 72 73 74 50 72 65 |....if (|firstPre|
|00003930| 76 29 0d 09 09 09 09 09 | 09 66 69 72 73 74 50 72 |v)......|.firstPr|
|00003940| 65 76 2d 3e 6e 65 78 74 | 20 3d 20 6c 61 73 74 47 |ev->next| = lastG|
|00003950| 72 6f 75 70 2d 3e 6e 65 | 78 74 3b 0d 09 09 09 09 |roup->ne|xt;.....|
|00003960| 09 65 6c 73 65 0d 09 09 | 09 09 09 09 69 6e 66 6f |.else...|....info|
|00003970| 2d 3e 64 61 74 61 32 20 | 3d 20 28 75 6e 73 69 67 |->data2 |= (unsig|
|00003980| 6e 65 64 20 6c 6f 6e 67 | 29 20 28 6c 61 73 74 47 |ned long|) (lastG|
|00003990| 72 6f 75 70 2d 3e 6e 65 | 78 74 29 3b 0d 09 09 09 |roup->ne|xt);....|
|000039a0| 09 09 09 0d 09 09 09 09 | 09 6c 61 73 74 47 72 6f |........|.lastGro|
|000039b0| 75 70 2d 3e 6e 65 78 74 | 20 3d 20 63 75 72 47 72 |up->next| = curGr|
|000039c0| 6f 75 70 3b 0d 0d 09 09 | 09 09 09 69 66 20 28 63 |oup;....|...if (c|
|000039d0| 75 72 43 65 6c 6c 2e 76 | 20 3c 20 66 69 72 73 74 |urCell.v| < first|
|000039e0| 43 65 6c 6c 2e 76 29 20 | 7b 0d 09 09 09 09 09 09 |Cell.v) |{.......|
|000039f0| 64 69 66 66 20 3d 20 28 | 6c 61 73 74 43 65 6c 6c |diff = (|lastCell|
|00003a00| 2e 76 20 2d 20 66 69 72 | 73 74 43 65 6c 6c 2e 76 |.v - fir|stCell.v|
|00003a10| 20 2b 20 31 29 3b 0d 09 | 09 09 09 09 09 66 69 72 | + 1);..|.....fir|
|00003a20| 73 74 43 65 6c 6c 2e 76 | 20 2b 3d 20 64 69 66 66 |stCell.v| += diff|
|00003a30| 3b 0d 09 09 09 09 09 09 | 6c 61 73 74 43 65 6c 6c |;.......|lastCell|
|00003a40| 2e 76 20 2b 3d 20 64 69 | 66 66 3b 0d 09 09 09 09 |.v += di|ff;.....|
|00003a50| 09 7d 0d 09 09 09 09 09 | 63 6f 75 6e 74 43 65 6c |.}......|countCel|
|00003a60| 6c 2e 68 20 3d 20 30 3b | 0d 09 09 09 09 09 66 6f |l.h = 0;|......fo|
|00003a70| 72 20 28 63 6f 75 6e 74 | 43 65 6c 6c 2e 76 20 3d |r (count|Cell.v =|
|00003a80| 20 66 69 72 73 74 43 65 | 6c 6c 2e 76 3b 20 63 6f | firstCe|ll.v; co|
|00003a90| 75 6e 74 43 65 6c 6c 2e | 76 20 3c 3d 20 6c 61 73 |untCell.|v <= las|
|00003aa0| 74 43 65 6c 6c 2e 76 3b | 20 63 6f 75 6e 74 43 65 |tCell.v;| countCe|
|00003ab0| 6c 6c 2e 76 2b 2b 2c 63 | 75 72 43 65 6c 6c 2e 76 |ll.v++,c|urCell.v|
|00003ac0| 2b 2b 29 20 7b 0d 09 09 | 09 09 09 09 64 61 74 61 |++) {...|....data|
|00003ad0| 4c 65 6e 20 3d 20 35 31 | 32 3b 0d 09 09 09 09 09 |Len = 51|2;......|
|00003ae0| 09 4c 47 65 74 43 65 6c | 6c 28 63 65 6c 6c 44 61 |.LGetCel|l(cellDa|
|00003af0| 74 61 2c 26 64 61 74 61 | 4c 65 6e 2c 63 6f 75 6e |ta,&data|Len,coun|
|00003b00| 74 43 65 6c 6c 2c 67 54 | 68 65 4c 69 73 74 29 3b |tCell,gT|heList);|
|00003b10| 0d 09 09 09 09 09 09 4c | 53 65 74 43 65 6c 6c 28 |.......L|SetCell(|
|00003b20| 63 65 6c 6c 44 61 74 61 | 2c 64 61 74 61 4c 65 6e |cellData|,dataLen|
|00003b30| 2c 63 75 72 43 65 6c 6c | 2c 67 54 68 65 4c 69 73 |,curCell|,gTheLis|
|00003b40| 74 29 3b 0d 09 09 09 09 | 09 7d 0d 09 09 09 09 09 |t);.....|.}......|
|00003b50| 4c 44 65 6c 52 6f 77 28 | 28 6c 61 73 74 43 65 6c |LDelRow(|(lastCel|
|00003b60| 6c 2e 76 20 2d 20 66 69 | 72 73 74 43 65 6c 6c 2e |l.v - fi|rstCell.|
|00003b70| 76 20 2b 20 31 29 2c 66 | 69 72 73 74 43 65 6c 6c |v + 1),f|irstCell|
|00003b80| 2e 76 2c 67 54 68 65 4c | 69 73 74 29 3b 0d 09 09 |.v,gTheL|ist);...|
|00003b90| 09 09 7d 0d 09 09 09 09 | 65 6c 73 65 0d 09 09 09 |..}.....|else....|
|00003ba0| 09 09 53 79 73 42 65 65 | 70 28 31 29 3b 0d 09 09 |..SysBee|p(1);...|
|00003bb0| 09 09 49 6e 76 61 6c 52 | 65 63 74 28 26 73 74 61 |..InvalR|ect(&sta|
|00003bc0| 72 74 57 69 6e 64 6f 77 | 2d 3e 70 6f 72 74 52 65 |rtWindow|->portRe|
|00003bd0| 63 74 29 3b 0d 09 09 09 | 09 4c 44 6f 44 72 61 77 |ct);....|.LDoDraw|
|00003be0| 28 74 72 75 65 2c 67 54 | 68 65 4c 69 73 74 29 3b |(true,gT|heList);|
|00003bf0| 0d 09 09 09 7d 0d 09 09 | 09 65 6c 73 65 0d 09 09 |....}...|.else...|
|00003c00| 09 09 53 79 73 42 65 65 | 70 28 31 29 3b 0d 09 09 |..SysBee|p(1);...|
|00003c10| 09 62 72 65 61 6b 3b 0d | 09 09 64 65 66 61 75 6c |.break;.|..defaul|
|00003c20| 74 3a 0d 09 09 09 53 79 | 73 42 65 65 70 28 31 29 |t:....Sy|sBeep(1)|
|00003c30| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 7d 0d 7d |;....bre|ak;..}.}|
|00003c40| 0d 0d 0d 2f 2a 09 4e 74 | 68 47 72 6f 75 70 20 67 |.../*.Nt|hGroup g|
|00003c50| 65 74 73 20 74 68 65 20 | 6e 74 68 20 67 72 6f 75 |ets the |nth grou|
|00003c60| 70 20 6f 75 74 20 6f 66 | 20 74 68 65 20 75 73 65 |p out of| the use|
|00003c70| 72 20 67 72 6f 75 70 20 | 6c 69 6e 6b 65 64 20 6c |r group |linked l|
|00003c80| 69 73 74 2e 0d 2a 2f 0d | 0d 54 47 72 6f 75 70 20 |ist..*/.|.TGroup |
|00003c90| 2a 4e 74 68 47 72 6f 75 | 70 28 54 47 72 6f 75 70 |*NthGrou|p(TGroup|
|00003ca0| 20 2a 68 65 61 64 2c 73 | 68 6f 72 74 20 69 6e 64 | *head,s|hort ind|
|00003cb0| 65 78 29 0d 7b 0d 09 73 | 68 6f 72 74 20 69 3b 0d |ex).{..s|hort i;.|
|00003cc0| 09 54 47 72 6f 75 70 20 | 2a 63 75 72 47 72 6f 75 |.TGroup |*curGrou|
|00003cd0| 70 3b 0d 09 0d 09 66 6f | 72 20 28 69 3d 30 2c 63 |p;....fo|r (i=0,c|
|00003ce0| 75 72 47 72 6f 75 70 20 | 3d 20 68 65 61 64 3b 0d |urGroup |= head;.|
|00003cf0| 09 09 69 3c 69 6e 64 65 | 78 20 26 26 20 63 75 72 |..i<inde|x && cur|
|00003d00| 47 72 6f 75 70 3b 0d 09 | 09 69 2b 2b 2c 63 75 72 |Group;..|.i++,cur|
|00003d10| 47 72 6f 75 70 20 3d 20 | 63 75 72 47 72 6f 75 70 |Group = |curGroup|
|00003d20| 2d 3e 6e 65 78 74 29 0d | 09 09 3b 0d 09 72 65 74 |->next).|..;..ret|
|00003d30| 75 72 6e 20 63 75 72 47 | 72 6f 75 70 3b 0d 7d 0d |urn curG|roup;.}.|
|00003d40| 0d 0d 2f 2a 09 4e 65 77 | 54 65 78 74 20 63 72 65 |../*.New|Text cre|
|00003d50| 61 74 65 73 20 61 20 6e | 65 77 20 74 65 78 74 65 |ates a n|ew texte|
|00003d60| 64 69 74 20 72 65 63 6f | 72 64 20 66 6f 72 20 6d |dit reco|rd for m|
|00003d70| 65 73 73 61 67 65 20 77 | 69 6e 64 6f 77 73 2e 0d |essage w|indows..|
|00003d80| 2a 2f 0d 0d 54 45 48 61 | 6e 64 6c 65 20 4e 65 77 |*/..TEHa|ndle New|
|00003d90| 54 65 78 74 28 57 69 6e | 64 6f 77 50 74 72 20 74 |Text(Win|dowPtr t|
|00003da0| 68 65 57 69 6e 64 6f 77 | 29 0d 7b 0d 09 54 45 48 |heWindow|).{..TEH|
|00003db0| 61 6e 64 6c 65 20 74 68 | 65 54 45 3b 0d 09 52 65 |andle th|eTE;..Re|
|00003dc0| 63 74 20 74 68 65 52 65 | 63 74 3b 0d 09 73 68 6f |ct theRe|ct;..sho|
|00003dd0| 72 74 20 66 6f 6e 74 4e | 75 6d 3b 0d 09 0d 09 53 |rt fontN|um;....S|
|00003de0| 65 74 50 6f 72 74 28 74 | 68 65 57 69 6e 64 6f 77 |etPort(t|heWindow|
|00003df0| 29 3b 0d 09 0d 09 47 65 | 74 46 4e 75 6d 28 67 50 |);....Ge|tFNum(gP|
|00003e00| 72 65 66 73 2e 74 65 78 | 74 46 6f 6e 74 2c 26 66 |refs.tex|tFont,&f|
|00003e10| 6f 6e 74 4e 75 6d 29 3b | 0d 09 54 65 78 74 46 6f |ontNum);|..TextFo|
|00003e20| 6e 74 28 66 6f 6e 74 4e | 75 6d 29 3b 0d 09 54 65 |nt(fontN|um);..Te|
|00003e30| 78 74 53 69 7a 65 28 67 | 50 72 65 66 73 2e 74 65 |xtSize(g|Prefs.te|
|00003e40| 78 74 53 69 7a 65 29 3b | 0d 09 0d 09 53 65 74 52 |xtSize);|....SetR|
|00003e50| 65 63 74 28 26 74 68 65 | 52 65 63 74 2c 74 68 65 |ect(&the|Rect,the|
|00003e60| 57 69 6e 64 6f 77 2d 3e | 70 6f 72 74 52 65 63 74 |Window->|portRect|
|00003e70| 2e 6c 65 66 74 2c 74 68 | 65 57 69 6e 64 6f 77 2d |.left,th|eWindow-|
|00003e80| 3e 70 6f 72 74 52 65 63 | 74 2e 74 6f 70 2c 74 68 |>portRec|t.top,th|
|00003e90| 65 57 69 6e 64 6f 77 2d | 3e 70 6f 72 74 52 65 63 |eWindow-|>portRec|
|00003ea0| 74 2e 72 69 67 68 74 2d | 31 35 2c 0d 09 09 09 09 |t.right-|15,.....|
|00003eb0| 09 74 68 65 57 69 6e 64 | 6f 77 2d 3e 70 6f 72 74 |.theWind|ow->port|
|00003ec0| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 2d 31 35 29 3b |Rect.bot|tom-15);|
|00003ed0| 0d 09 49 6e 73 65 74 52 | 65 63 74 28 26 74 68 65 |..InsetR|ect(&the|
|00003ee0| 52 65 63 74 2c 6b 54 65 | 78 74 4d 61 72 67 69 6e |Rect,kTe|xtMargin|
|00003ef0| 2c 6b 54 65 78 74 4d 61 | 72 67 69 6e 29 3b 0d 0d |,kTextMa|rgin);..|
|00003f00| 09 74 68 65 54 45 20 3d | 20 54 45 4e 65 77 28 26 |.theTE =| TENew(&|
|00003f10| 74 68 65 52 65 63 74 2c | 26 74 68 65 52 65 63 74 |theRect,|&theRect|
|00003f20| 29 3b 0d 09 28 2a 2a 74 | 68 65 54 45 29 2e 63 72 |);..(**t|heTE).cr|
|00003f30| 4f 6e 6c 79 20 3d 20 2d | 31 3b 0d 09 53 65 74 43 |Only = -|1;..SetC|
|00003f40| 6c 69 6b 4c 6f 6f 70 28 | 41 75 74 6f 53 63 72 6f |likLoop(|AutoScro|
|00003f50| 6c 6c 2c 74 68 65 54 45 | 29 3b 0d 09 0d 09 72 65 |ll,theTE|);....re|
|00003f60| 74 75 72 6e 20 74 68 65 | 54 45 3b 0d 7d 0d 0d 0d |turn the|TE;.}...|
|00003f70| 2f 2a 20 44 6f 43 6c 6f | 73 65 57 69 6e 64 6f 77 |/* DoClo|seWindow|
|00003f80| 20 72 65 6d 6f 76 65 73 | 20 61 20 77 69 6e 64 6f | removes| a windo|
|00003f90| 77 20 66 72 6f 6d 20 74 | 68 65 20 73 63 72 65 65 |w from t|he scree|
|00003fa0| 6e 20 2a 2f 0d 0d 42 6f | 6f 6c 65 61 6e 20 44 6f |n */..Bo|olean Do|
|00003fb0| 43 6c 6f 73 65 57 69 6e | 64 6f 77 28 57 69 6e 64 |CloseWin|dow(Wind|
|00003fc0| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 29 0d 7b |owPtr th|eWind).{|
|00003fd0| 0d 09 54 77 69 6e 64 6f | 77 49 6e 66 6f 20 2a 69 |..Twindo|wInfo *i|
|00003fe0| 6e 66 6f 3b 0d 09 54 47 | 72 6f 75 70 20 2a 74 6d |nfo;..TG|roup *tm|
|00003ff0| 70 50 74 72 2c 2a 74 6d | 70 50 74 72 32 3b 0d 09 |pPtr,*tm|pPtr2;..|
|00004000| 54 52 65 61 64 52 65 63 | 20 2a 74 6d 70 50 74 72 |TReadRec| *tmpPtr|
|00004010| 33 2c 2a 74 6d 70 50 74 | 72 34 3b 0d 09 54 53 75 |3,*tmpPt|r4;..TSu|
|00004020| 62 6a 65 63 74 20 2a 74 | 6d 70 53 75 62 6a 65 63 |bject *t|mpSubjec|
|00004030| 74 3b 0d 09 57 69 6e 64 | 6f 77 50 74 72 20 63 68 |t;..Wind|owPtr ch|
|00004040| 69 6c 64 57 69 6e 64 6f | 77 73 3b 0d 09 48 61 6e |ildWindo|ws;..Han|
|00004050| 64 6c 65 20 74 6d 70 48 | 61 6e 64 6c 65 3b 0d 09 |dle tmpH|andle;..|
|00004060| 50 6f 69 6e 74 20 6f 66 | 66 50 74 3b 0d 09 47 72 |Point of|fPt;..Gr|
|00004070| 61 66 50 74 72 20 73 61 | 76 65 50 6f 72 74 3b 0d |afPtr sa|vePort;.|
|00004080| 09 0d 09 52 65 6d 6f 76 | 65 57 69 6e 64 6f 77 73 |...Remov|eWindows|
|00004090| 4d 65 6e 75 28 74 68 65 | 57 69 6e 64 29 3b 0d 09 |Menu(the|Wind);..|
|000040a0| 44 6f 41 63 74 69 76 61 | 74 65 28 74 68 65 57 69 |DoActiva|te(theWi|
|000040b0| 6e 64 2c 66 61 6c 73 65 | 2c 66 61 6c 73 65 29 3b |nd,false|,false);|
|000040c0| 0d 09 0d 09 69 6e 66 6f | 20 3d 20 28 54 77 69 6e |....info| = (Twin|
|000040d0| 64 6f 77 49 6e 66 6f 20 | 2a 29 47 65 74 57 52 65 |dowInfo |*)GetWRe|
|000040e0| 66 43 6f 6e 28 74 68 65 | 57 69 6e 64 29 3b 0d 09 |fCon(the|Wind);..|
|000040f0| 73 77 69 74 63 68 20 28 | 69 6e 66 6f 2d 3e 6b 69 |switch (|info->ki|
|00004100| 6e 64 29 20 7b 0d 09 09 | 63 61 73 65 20 63 47 72 |nd) {...|case cGr|
|00004110| 6f 75 70 3a 0d 09 09 09 | 2f 2a 20 64 6f 6e 27 74 |oup:....|/* don't|
|00004120| 20 64 69 73 70 6f 73 65 | 20 64 61 74 61 20 69 66 | dispose| data if|
|00004130| 20 6d 61 69 6e 20 67 72 | 6f 75 70 20 77 69 6e 64 | main gr|oup wind|
|00004140| 6f 77 20 2d 2d 20 6e 65 | 65 64 20 74 6f 20 73 61 |ow -- ne|ed to sa|
|00004150| 76 65 20 74 68 61 74 20 | 6c 61 74 65 72 20 2a 2f |ve that |later */|
|00004160| 0d 09 09 09 4c 44 69 73 | 70 6f 73 65 28 28 4c 69 |....LDis|pose((Li|
|00004170| 73 74 48 61 6e 64 6c 65 | 29 69 6e 66 6f 2d 3e 64 |stHandle|)info->d|
|00004180| 61 74 61 29 3b 0d 09 09 | 09 67 50 72 65 66 73 2e |ata);...|.gPrefs.|
|00004190| 67 72 6f 75 70 57 69 6e | 64 6f 77 53 69 7a 65 20 |groupWin|dowSize |
|000041a0| 3d 20 74 68 65 57 69 6e | 64 2d 3e 70 6f 72 74 52 |= theWin|d->portR|
|000041b0| 65 63 74 3b 0d 09 09 09 | 53 65 74 50 74 28 26 6f |ect;....|SetPt(&o|
|000041c0| 66 66 50 74 2c 30 2c 30 | 29 3b 0d 09 09 09 47 65 |ffPt,0,0|);....Ge|
|000041d0| 74 50 6f 72 74 28 26 73 | 61 76 65 50 6f 72 74 29 |tPort(&s|avePort)|
|000041e0| 3b 0d 09 09 09 53 65 74 | 50 6f 72 74 28 74 68 65 |;....Set|Port(the|
|000041f0| 57 69 6e 64 29 3b 0d 09 | 09 09 4c 6f 63 61 6c 54 |Wind);..|..LocalT|
|00004200| 6f 47 6c 6f 62 61 6c 28 | 26 6f 66 66 50 74 29 3b |oGlobal(|&offPt);|
|00004210| 0d 09 09 09 53 65 74 50 | 6f 72 74 28 73 61 76 65 |....SetP|ort(save|
|00004220| 50 6f 72 74 29 3b 0d 09 | 09 09 4f 66 66 73 65 74 |Port);..|..Offset|
|00004230| 52 65 63 74 28 26 67 50 | 72 65 66 73 2e 67 72 6f |Rect(&gP|refs.gro|
|00004240| 75 70 57 69 6e 64 6f 77 | 53 69 7a 65 2c 6f 66 66 |upWindow|Size,off|
|00004250| 50 74 2e 68 2c 6f 66 66 | 50 74 2e 76 29 3b 0d 09 |Pt.h,off|Pt.v);..|
|00004260| 09 09 44 69 73 70 6f 73 | 65 57 69 6e 64 6f 77 28 |..Dispos|eWindow(|
|00004270| 74 68 65 57 69 6e 64 29 | 3b 0d 09 09 09 4d 79 44 |theWind)|;....MyD|
|00004280| 69 73 70 6f 73 50 74 72 | 28 28 50 74 72 29 69 6e |isposPtr|((Ptr)in|
|00004290| 66 6f 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |fo);....|break;..|
|000042a0| 09 63 61 73 65 20 63 4e | 65 77 47 72 6f 75 70 3a |.case cN|ewGroup:|
|000042b0| 0d 09 09 09 4c 44 69 73 | 70 6f 73 65 28 28 4c 69 |....LDis|pose((Li|
|000042c0| 73 74 48 61 6e 64 6c 65 | 29 69 6e 66 6f 2d 3e 64 |stHandle|)info->d|
|000042d0| 61 74 61 29 3b 0d 09 09 | 09 74 6d 70 48 61 6e 64 |ata);...|.tmpHand|
|000042e0| 6c 65 20 3d 20 52 65 63 | 6f 76 65 72 48 61 6e 64 |le = Rec|overHand|
|000042f0| 6c 65 28 28 50 74 72 29 | 69 6e 66 6f 2d 3e 64 61 |le((Ptr)|info->da|
|00004300| 74 61 32 29 3b 0d 09 09 | 09 69 66 20 28 74 6d 70 |ta2);...|.if (tmp|
|00004310| 48 61 6e 64 6c 65 20 26 | 26 20 4d 79 4d 65 6d 45 |Handle &|& MyMemE|
|00004320| 72 72 28 29 3d 3d 6e 6f | 45 72 72 29 20 7b 0d 09 |rr()==no|Err) {..|
|00004330| 09 09 09 48 55 6e 6c 6f | 63 6b 28 74 6d 70 48 61 |...HUnlo|ck(tmpHa|
|00004340| 6e 64 6c 65 29 3b 0d 09 | 09 09 09 4d 79 44 69 73 |ndle);..|...MyDis|
|00004350| 70 6f 73 48 61 6e 64 6c | 65 28 74 6d 70 48 61 6e |posHandl|e(tmpHan|
|00004360| 64 6c 65 29 3b 0d 09 09 | 09 7d 0d 09 09 09 44 69 |dle);...|.}....Di|
|00004370| 73 70 6f 73 65 57 69 6e | 64 6f 77 28 74 68 65 57 |sposeWin|dow(theW|
|00004380| 69 6e 64 29 3b 0d 09 09 | 09 4d 79 44 69 73 70 6f |ind);...|.MyDispo|
|00004390| 73 50 74 72 28 28 50 74 | 72 29 69 6e 66 6f 29 3b |sPtr((Pt|r)info);|
|000043a0| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 63 61 73 |....brea|k;...cas|
|000043b0| 65 20 63 53 75 62 6a 65 | 63 74 3a 0d 09 09 09 69 |e cSubje|ct:....i|
|000043c0| 66 20 28 69 6e 66 6f 2d | 3e 70 61 72 65 6e 74 57 |f (info-|>parentW|
|000043d0| 69 6e 64 6f 77 29 0d 09 | 09 09 09 52 65 6d 6f 76 |indow)..|...Remov|
|000043e0| 65 43 68 69 6c 64 28 69 | 6e 66 6f 2d 3e 70 61 72 |eChild(i|nfo->par|
|000043f0| 65 6e 74 57 69 6e 64 6f | 77 2c 74 68 65 57 69 6e |entWindo|w,theWin|
|00004400| 64 29 3b 0d 09 09 09 69 | 66 20 28 69 6e 66 6f 2d |d);....i|f (info-|
|00004410| 3e 70 61 72 65 6e 74 47 | 72 6f 75 70 29 20 0d 09 |>parentG|roup) ..|
|00004420| 09 09 09 4d 61 72 6b 52 | 65 61 64 4d 73 67 73 28 |...MarkR|eadMsgs(|
|00004430| 69 6e 66 6f 29 3b 0d 09 | 09 09 48 4c 6f 63 6b 28 |info);..|..HLock(|
|00004440| 28 48 61 6e 64 6c 65 29 | 69 6e 66 6f 2d 3e 64 61 |(Handle)|info->da|
|00004450| 74 61 32 29 3b 0d 09 09 | 09 74 6d 70 53 75 62 6a |ta2);...|.tmpSubj|
|00004460| 65 63 74 20 3d 20 28 54 | 53 75 62 6a 65 63 74 20 |ect = (T|Subject |
|00004470| 2a 29 20 2a 28 28 48 61 | 6e 64 6c 65 29 28 69 6e |*) *((Ha|ndle)(in|
|00004480| 66 6f 2d 3e 64 61 74 61 | 32 29 29 3b 0d 09 09 09 |fo->data|2));....|
|00004490| 48 55 6e 6c 6f 63 6b 28 | 28 48 61 6e 64 6c 65 29 |HUnlock(|(Handle)|
|000044a0| 69 6e 66 6f 2d 3e 64 61 | 74 61 32 29 3b 0d 09 09 |info->da|ta2);...|
|000044b0| 09 4d 79 44 69 73 70 6f | 73 48 61 6e 64 6c 65 28 |.MyDispo|sHandle(|
|000044c0| 28 48 61 6e 64 6c 65 29 | 69 6e 66 6f 2d 3e 64 61 |(Handle)|info->da|
|000044d0| 74 61 32 29 3b 0d 09 09 | 09 4c 44 69 73 70 6f 73 |ta2);...|.LDispos|
|000044e0| 65 28 28 4c 69 73 74 48 | 61 6e 64 6c 65 29 69 6e |e((ListH|andle)in|
|000044f0| 66 6f 2d 3e 64 61 74 61 | 29 3b 0d 09 09 09 4d 79 |fo->data|);....My|
|00004500| 44 69 73 70 6f 73 50 74 | 72 28 28 50 74 72 29 69 |DisposPt|r((Ptr)i|
|00004510| 6e 66 6f 29 3b 0d 09 09 | 09 0d 09 09 09 2f 2a 20 |nfo);...|...../* |
|00004520| 72 65 6d 6f 76 65 20 72 | 65 66 65 72 65 6e 63 65 |remove r|eference|
|00004530| 73 20 77 69 74 68 69 6e | 20 6d 65 73 73 61 67 65 |s within| message|
|00004540| 20 77 69 6e 64 6f 77 73 | 20 2a 2f 0d 09 09 09 0d | windows| */.....|
|00004550| 09 09 09 63 68 69 6c 64 | 57 69 6e 64 6f 77 73 20 |...child|Windows |
|00004560| 3d 20 28 57 69 6e 64 6f | 77 50 74 72 29 28 28 28 |= (Windo|wPtr)(((|
|00004570| 57 69 6e 64 6f 77 50 65 | 65 6b 29 74 68 65 57 69 |WindowPe|ek)theWi|
|00004580| 6e 64 29 2d 3e 6e 65 78 | 74 57 69 6e 64 6f 77 29 |nd)->nex|tWindow)|
|00004590| 3b 0d 09 09 09 77 68 69 | 6c 65 20 28 63 68 69 6c |;....whi|le (chil|
|000045a0| 64 57 69 6e 64 6f 77 73 | 21 3d 6e 69 6c 29 20 7b |dWindows|!=nil) {|
|000045b0| 0d 09 09 09 09 69 6e 66 | 6f 20 3d 20 28 54 77 69 |.....inf|o = (Twi|
|000045c0| 6e 64 6f 77 49 6e 66 6f | 20 2a 29 47 65 74 57 52 |ndowInfo| *)GetWR|
|000045d0| 65 66 43 6f 6e 28 63 68 | 69 6c 64 57 69 6e 64 6f |efCon(ch|ildWindo|
|000045e0| 77 73 29 3b 0d 09 09 09 | 09 69 66 20 28 69 6e 66 |ws);....|.if (inf|
|000045f0| 6f 2d 3e 6b 69 6e 64 20 | 3d 3d 20 63 4d 65 73 73 |o->kind |== cMess|
|00004600| 61 67 65 20 26 26 20 69 | 6e 66 6f 2d 3e 70 61 72 |age && i|nfo->par|
|00004610| 65 6e 74 57 69 6e 64 6f | 77 20 3d 3d 20 74 68 65 |entWindo|w == the|
|00004620| 57 69 6e 64 29 0d 09 09 | 09 09 09 69 6e 66 6f 2d |Wind)...|...info-|
|00004630| 3e 70 61 72 65 6e 74 57 | 69 6e 64 6f 77 20 3d 20 |>parentW|indow = |
|00004640| 6e 69 6c 3b 0d 09 09 09 | 09 63 68 69 6c 64 57 69 |nil;....|.childWi|
|00004650| 6e 64 6f 77 73 20 3d 20 | 28 57 69 6e 64 6f 77 50 |ndows = |(WindowP|
|00004660| 74 72 29 28 28 28 57 69 | 6e 64 6f 77 50 65 65 6b |tr)(((Wi|ndowPeek|
|00004670| 29 63 68 69 6c 64 57 69 | 6e 64 6f 77 73 29 2d 3e |)childWi|ndows)->|
|00004680| 6e 65 78 74 57 69 6e 64 | 6f 77 29 3b 0d 09 09 09 |nextWind|ow);....|
|00004690| 7d 0d 09 09 09 44 69 73 | 70 6f 73 65 57 69 6e 64 |}....Dis|poseWind|
|000046a0| 6f 77 28 74 68 65 57 69 | 6e 64 29 3b 0d 09 09 09 |ow(theWi|nd);....|
|000046b0| 62 72 65 61 6b 3b 0d 09 | 09 09 0d 09 09 63 61 73 |break;..|.....cas|
|000046c0| 65 20 63 55 73 65 72 47 | 72 6f 75 70 3a 0d 09 09 |e cUserG|roup:...|
|000046d0| 09 77 68 69 6c 65 20 28 | 69 6e 66 6f 2d 3e 63 68 |.while (|info->ch|
|000046e0| 69 6c 64 4c 69 73 74 29 | 0d 09 09 09 09 44 6f 43 |ildList)|.....DoC|
|000046f0| 6c 6f 73 65 57 69 6e 64 | 6f 77 28 69 6e 66 6f 2d |loseWind|ow(info-|
|00004700| 3e 63 68 69 6c 64 4c 69 | 73 74 2d 3e 63 68 69 6c |>childLi|st->chil|
|00004710| 64 57 69 6e 64 6f 77 29 | 3b 0d 09 09 09 69 66 20 |dWindow)|;....if |
|00004720| 28 69 6e 66 6f 2d 3e 63 | 68 61 6e 67 65 64 20 26 |(info->c|hanged &|
|00004730| 26 20 21 28 43 68 65 63 | 6b 46 6f 72 53 61 76 65 |& !(Chec|kForSave|
|00004740| 28 74 68 65 57 69 6e 64 | 29 29 29 0d 09 09 09 09 |(theWind|))).....|
|00004750| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 09 09 |return f|alse;...|
|00004760| 09 4c 44 69 73 70 6f 73 | 65 28 28 4c 69 73 74 48 |.LDispos|e((ListH|
|00004770| 61 6e 64 6c 65 29 69 6e | 66 6f 2d 3e 64 61 74 61 |andle)in|fo->data|
|00004780| 29 3b 0d 09 09 09 66 6f | 72 20 28 74 6d 70 50 74 |);....fo|r (tmpPt|
|00004790| 72 20 3d 20 28 54 47 72 | 6f 75 70 20 2a 29 69 6e |r = (TGr|oup *)in|
|000047a0| 66 6f 2d 3e 64 61 74 61 | 32 3b 20 74 6d 70 50 74 |fo->data|2; tmpPt|
|000047b0| 72 21 3d 6e 69 6c 3b 29 | 20 7b 0d 09 09 09 09 74 |r!=nil;)| {.....t|
|000047c0| 6d 70 50 74 72 32 20 3d | 20 74 6d 70 50 74 72 3b |mpPtr2 =| tmpPtr;|
|000047d0| 0d 09 09 09 09 74 6d 70 | 50 74 72 20 3d 20 74 6d |.....tmp|Ptr = tm|
|000047e0| 70 50 74 72 2d 3e 6e 65 | 78 74 3b 0d 09 09 09 09 |pPtr->ne|xt;.....|
|000047f0| 66 6f 72 20 28 74 6d 70 | 50 74 72 33 20 3d 20 74 |for (tmp|Ptr3 = t|
|00004800| 6d 70 50 74 72 32 2d 3e | 72 65 61 64 3b 20 74 6d |mpPtr2->|read; tm|
|00004810| 70 50 74 72 33 21 3d 6e | 69 6c 3b 29 20 7b 0d 09 |pPtr3!=n|il;) {..|
|00004820| 09 09 09 09 74 6d 70 50 | 74 72 34 20 3d 20 74 6d |....tmpP|tr4 = tm|
|00004830| 70 50 74 72 33 3b 0d 09 | 09 09 09 09 74 6d 70 50 |pPtr3;..|....tmpP|
|00004840| 74 72 33 20 3d 20 74 6d | 70 50 74 72 33 2d 3e 6e |tr3 = tm|pPtr3->n|
|00004850| 65 78 74 3b 0d 09 09 09 | 09 09 4d 79 44 69 73 70 |ext;....|..MyDisp|
|00004860| 6f 73 50 74 72 28 28 50 | 74 72 29 74 6d 70 50 74 |osPtr((P|tr)tmpPt|
|00004870| 72 34 29 3b 0d 09 09 09 | 09 7d 0d 09 09 09 09 4d |r4);....|.}.....M|
|00004880| 79 44 69 73 70 6f 73 50 | 74 72 28 28 50 74 72 29 |yDisposP|tr((Ptr)|
|00004890| 74 6d 70 50 74 72 32 29 | 3b 0d 09 09 09 7d 0d 09 |tmpPtr2)|;....}..|
|000048a0| 09 09 4d 79 44 69 73 70 | 6f 73 50 74 72 28 28 50 |..MyDisp|osPtr((P|
|000048b0| 74 72 29 69 6e 66 6f 29 | 3b 0d 09 09 09 44 69 73 |tr)info)|;....Dis|
|000048c0| 70 6f 73 65 57 69 6e 64 | 6f 77 28 74 68 65 57 69 |poseWind|ow(theWi|
|000048d0| 6e 64 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |nd);....|break;..|
|000048e0| 09 0d 09 09 63 61 73 65 | 20 63 50 6f 73 74 4d 65 |....case| cPostMe|
|000048f0| 73 73 61 67 65 3a 0d 09 | 09 63 61 73 65 20 63 53 |ssage:..|.case cS|
|00004900| 65 6e 64 4d 65 73 73 61 | 67 65 3a 0d 09 09 09 69 |endMessa|ge:....i|
|00004910| 66 20 28 69 6e 66 6f 2d | 3e 63 68 61 6e 67 65 64 |f (info-|>changed|
|00004920| 20 26 26 20 21 43 68 65 | 63 6b 46 6f 72 53 65 6e | && !Che|ckForSen|
|00004930| 64 28 74 68 65 57 69 6e | 64 29 29 0d 09 09 09 09 |d(theWin|d)).....|
|00004940| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 09 09 |return f|alse;...|
|00004950| 63 61 73 65 20 63 4d 65 | 73 73 61 67 65 3a 0d 09 |case cMe|ssage:..|
|00004960| 09 63 61 73 65 20 63 4d | 69 73 63 4d 65 73 73 61 |.case cM|iscMessa|
|00004970| 67 65 3a 0d 09 09 09 54 | 45 44 69 73 70 6f 73 65 |ge:....T|EDispose|
|00004980| 28 28 54 45 48 61 6e 64 | 6c 65 29 69 6e 66 6f 2d |((TEHand|le)info-|
|00004990| 3e 64 61 74 61 29 3b 0d | 09 09 09 4d 79 44 69 73 |>data);.|...MyDis|
|000049a0| 70 6f 73 50 74 72 28 28 | 50 74 72 29 69 6e 66 6f |posPtr((|Ptr)info|
|000049b0| 29 3b 0d 09 09 09 44 69 | 73 70 6f 73 65 57 69 6e |);....Di|sposeWin|
|000049c0| 64 6f 77 28 74 68 65 57 | 69 6e 64 29 3b 0d 09 09 |dow(theW|ind);...|
|000049d0| 09 67 46 72 6f 6e 74 54 | 45 20 3d 20 6e 69 6c 3b |.gFrontT|E = nil;|
|000049e0| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 7d 0d 09 72 |....brea|k;..}..r|
|000049f0| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 7d 0d 0d 0d |eturn tr|ue;.}...|
|00004a00| 2f 2a 20 53 68 6f 77 41 | 62 6f 75 74 3a 20 73 68 |/* ShowA|bout: sh|
|00004a10| 6f 77 73 20 74 68 65 20 | 61 62 6f 75 74 20 62 6f |ows the |about bo|
|00004a20| 78 20 2a 2f 0d 0d 76 6f | 69 64 20 53 68 6f 77 41 |x */..vo|id ShowA|
|00004a30| 62 6f 75 74 28 76 6f 69 | 64 29 0d 7b 0d 09 44 69 |bout(voi|d).{..Di|
|00004a40| 61 6c 6f 67 50 74 72 20 | 74 68 65 44 6c 67 3b 0d |alogPtr |theDlg;.|
|00004a50| 09 73 68 6f 72 74 20 69 | 74 65 6d 3b 0d 09 0d 09 |.short i|tem;....|
|00004a60| 74 68 65 44 6c 67 20 3d | 20 47 65 74 4e 65 77 44 |theDlg =| GetNewD|
|00004a70| 69 61 6c 6f 67 28 6b 41 | 62 6f 75 74 49 44 2c 6e |ialog(kA|boutID,n|
|00004a80| 69 6c 2c 28 57 69 6e 64 | 6f 77 50 74 72 29 2d 31 |il,(Wind|owPtr)-1|
|00004a90| 4c 29 3b 0d 09 4f 75 74 | 6c 69 6e 65 4f 4b 28 74 |L);..Out|lineOK(t|
|00004aa0| 68 65 44 6c 67 29 3b 0d | 09 0d 09 64 6f 0d 09 09 |heDlg);.|...do...|
|00004ab0| 4d 6f 64 61 6c 44 69 61 | 6c 6f 67 28 43 6d 64 4b |ModalDia|log(CmdK|
|00004ac0| 65 79 46 69 6c 74 65 72 | 2c 26 69 74 65 6d 29 3b |eyFilter|,&item);|
|00004ad0| 0d 09 77 68 69 6c 65 20 | 28 69 74 65 6d 20 21 3d |..while |(item !=|
|00004ae0| 20 6f 6b 42 75 74 74 6f | 6e 29 3b 0d 09 09 09 0d | okButto|n);.....|
|00004af0| 09 44 69 73 70 6f 73 44 | 69 61 6c 6f 67 28 74 68 |.DisposD|ialog(th|
|00004b00| 65 44 6c 67 29 3b 0d 09 | 0d 7d 0d 0d 0d 2f 2a 20 |eDlg);..|.}.../* |
|00004b10| 4d 61 69 6e 45 76 65 6e | 74 3a 20 6d 61 69 6e 20 |MainEven|t: main |
|00004b20| 65 76 65 6e 74 20 6c 6f | 6f 70 2d 20 64 69 73 70 |event lo|op- disp|
|00004b30| 61 74 63 68 65 73 20 74 | 6f 20 6f 74 68 65 72 20 |atches t|o other |
|00004b40| 68 61 6e 64 6c 65 72 73 | 20 2a 2f 0d 0d 76 6f 69 |handlers| */..voi|
|00004b50| 64 20 4d 61 69 6e 45 76 | 65 6e 74 28 76 6f 69 64 |d MainEv|ent(void|
|00004b60| 29 0d 7b 0d 09 45 76 65 | 6e 74 52 65 63 6f 72 64 |).{..Eve|ntRecord|
|00004b70| 20 65 76 3b 0d 09 52 67 | 6e 48 61 6e 64 6c 65 09 | ev;..Rg|nHandle.|
|00004b80| 63 75 72 73 6f 72 52 67 | 6e 3b 0d 09 42 6f 6f 6c |cursorRg|n;..Bool|
|00004b90| 65 61 6e 09 09 67 6f 74 | 45 76 74 3b 0d 09 0d 09 |ean..got|Evt;....|
|00004ba0| 63 75 72 73 6f 72 52 67 | 6e 20 3d 20 4e 65 77 52 |cursorRg|n = NewR|
|00004bb0| 67 6e 28 29 3b 0d 09 64 | 6f 20 7b 0d 09 09 67 43 |gn();..d|o {...gC|
|00004bc0| 61 6e 63 65 6c 20 3d 20 | 66 61 6c 73 65 3b 0d 09 |ancel = |false;..|
|00004bd0| 09 0d 09 09 69 66 20 28 | 49 73 4d 6f 76 61 62 6c |....if (|IsMovabl|
|00004be0| 65 4d 6f 64 61 6c 28 46 | 72 6f 6e 74 57 69 6e 64 |eModal(F|rontWind|
|00004bf0| 6f 77 28 29 29 29 0d 09 | 09 09 43 6c 6f 73 65 53 |ow()))..|..CloseS|
|00004c00| 74 61 74 75 73 57 69 6e | 64 6f 77 28 29 3b 0d 09 |tatusWin|dow();..|
|00004c10| 09 0d 09 09 69 66 20 28 | 67 48 61 73 57 61 69 74 |....if (|gHasWait|
|00004c20| 4e 65 78 74 45 76 65 6e | 74 29 0d 09 09 09 67 6f |NextEven|t)....go|
|00004c30| 74 45 76 74 20 3d 20 57 | 61 69 74 4e 65 78 74 45 |tEvt = W|aitNextE|
|00004c40| 76 65 6e 74 28 65 76 65 | 72 79 45 76 65 6e 74 2c |vent(eve|ryEvent,|
|00004c50| 26 65 76 2c 6b 53 6c 65 | 65 70 54 69 6d 65 2c 63 |&ev,kSle|epTime,c|
|00004c60| 75 72 73 6f 72 52 67 6e | 29 3b 0d 09 09 65 6c 73 |ursorRgn|);...els|
|00004c70| 65 20 7b 0d 09 09 09 67 | 6f 74 45 76 74 20 3d 20 |e {....g|otEvt = |
|00004c80| 47 65 74 4e 65 78 74 45 | 76 65 6e 74 28 65 76 65 |GetNextE|vent(eve|
|00004c90| 72 79 45 76 65 6e 74 2c | 26 65 76 29 3b 0d 09 09 |ryEvent,|&ev);...|
|00004ca0| 09 53 79 73 74 65 6d 54 | 61 73 6b 28 29 3b 0d 09 |.SystemT|ask();..|
|00004cb0| 09 7d 0d 09 09 0d 09 09 | 46 69 78 43 75 72 73 6f |.}......|FixCurso|
|00004cc0| 72 28 65 76 2e 77 68 65 | 72 65 2c 63 75 72 73 6f |r(ev.whe|re,curso|
|00004cd0| 72 52 67 6e 29 3b 0d 09 | 09 69 66 20 28 67 6f 74 |rRgn);..|.if (got|
|00004ce0| 45 76 74 29 20 7b 0d 09 | 09 09 73 77 69 74 63 68 |Evt) {..|..switch|
|00004cf0| 20 28 65 76 2e 77 68 61 | 74 29 20 7b 0d 09 09 09 | (ev.wha|t) {....|
|00004d00| 09 63 61 73 65 20 6d 6f | 75 73 65 44 6f 77 6e 3a |.case mo|useDown:|
|00004d10| 0d 09 09 09 09 09 48 61 | 6e 64 6c 65 4d 6f 75 73 |......Ha|ndleMous|
|00004d20| 65 44 6f 77 6e 73 28 26 | 65 76 29 3b 0d 09 09 09 |eDowns(&|ev);....|
|00004d30| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 09 63 61 73 |..break;|.....cas|
|00004d40| 65 20 6b 65 79 44 6f 77 | 6e 3a 0d 09 09 09 09 63 |e keyDow|n:.....c|
|00004d50| 61 73 65 20 61 75 74 6f | 4b 65 79 3a 0d 09 09 09 |ase auto|Key:....|
|00004d60| 09 09 48 61 6e 64 6c 65 | 4b 65 79 44 6f 77 6e 73 |..Handle|KeyDowns|
|00004d70| 28 26 65 76 29 3b 0d 09 | 09 09 09 09 62 72 65 61 |(&ev);..|....brea|
|00004d80| 6b 3b 0d 09 09 09 09 63 | 61 73 65 20 61 63 74 69 |k;.....c|ase acti|
|00004d90| 76 61 74 65 45 76 74 3a | 0d 09 09 09 09 09 48 61 |vateEvt:|......Ha|
|00004da0| 6e 64 6c 65 41 63 74 69 | 76 61 74 65 73 28 26 65 |ndleActi|vates(&e|
|00004db0| 76 29 3b 0d 09 09 09 09 | 09 62 72 65 61 6b 3b 0d |v);.....|.break;.|
|00004dc0| 09 09 09 09 63 61 73 65 | 20 75 70 64 61 74 65 45 |....case| updateE|
|00004dd0| 76 74 3a 0d 09 09 09 09 | 09 48 61 6e 64 6c 65 55 |vt:.....|.HandleU|
|00004de0| 70 64 61 74 65 73 28 28 | 57 69 6e 64 6f 77 50 74 |pdates((|WindowPt|
|00004df0| 72 29 28 65 76 2e 6d 65 | 73 73 61 67 65 29 29 3b |r)(ev.me|ssage));|
|00004e00| 0d 09 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |......br|eak;....|
|00004e10| 09 63 61 73 65 20 61 70 | 70 34 45 76 74 3a 0d 09 |.case ap|p4Evt:..|
|00004e20| 09 09 09 09 48 61 6e 64 | 6c 65 53 52 45 76 74 28 |....Hand|leSREvt(|
|00004e30| 65 76 2e 6d 65 73 73 61 | 67 65 29 3b 0d 09 09 09 |ev.messa|ge);....|
|00004e40| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 7d 0d 09 09 |..break;|....}...|
|00004e50| 09 46 69 78 43 75 72 73 | 6f 72 28 65 76 2e 77 68 |.FixCurs|or(ev.wh|
|00004e60| 65 72 65 2c 63 75 72 73 | 6f 72 52 67 6e 29 3b 0d |ere,curs|orRgn);.|
|00004e70| 09 09 7d 0d 09 0d 09 09 | 69 66 20 28 67 46 72 6f |..}.....|if (gFro|
|00004e80| 6e 74 54 45 29 0d 09 09 | 09 54 45 49 64 6c 65 28 |ntTE)...|.TEIdle(|
|00004e90| 67 46 72 6f 6e 74 54 45 | 29 3b 0d 09 7d 09 09 0d |gFrontTE|);..}...|
|00004ea0| 09 77 68 69 6c 65 20 28 | 21 67 44 6f 6e 65 29 3b |.while (|!gDone);|
|00004eb0| 0d 09 0d 09 2f 2a 20 63 | 6c 65 61 72 20 70 72 69 |..../* c|lear pri|
|00004ec0| 76 61 74 65 20 75 73 65 | 72 20 69 6e 66 6f 20 62 |vate use|r info b|
|00004ed0| 65 66 6f 72 65 20 71 75 | 69 74 74 69 6e 67 20 2a |efore qu|itting *|
|00004ee0| 2f 0d 09 0d 09 4c 6f 67 | 6f 75 74 28 29 3b 09 0d |/....Log|out();..|
|00004ef0| 09 44 69 73 70 6f 73 65 | 52 67 6e 28 63 75 72 73 |.Dispose|Rgn(curs|
|00004f00| 6f 72 52 67 6e 29 3b 0d | 09 0d 09 43 6c 6f 73 65 |orRgn);.|...Close|
|00004f10| 4e 65 77 73 43 6f 6e 6e | 65 63 74 69 6f 6e 28 29 |NewsConn|ection()|
|00004f20| 3b 0d 09 57 72 69 74 65 | 50 72 65 66 73 28 26 67 |;..Write|Prefs(&g|
|00004f30| 50 72 65 66 73 29 3b 0d | 09 57 72 69 74 65 47 72 |Prefs);.|.WriteGr|
|00004f40| 6f 75 70 73 28 29 3b 0d | 7d 0d 0d 0d 2f 2a 09 49 |oups();.|}.../*.I|
|00004f50| 73 41 70 70 57 69 6e 64 | 6f 77 20 72 65 74 75 72 |sAppWind|ow retur|
|00004f60| 6e 73 20 74 72 75 65 20 | 69 66 20 74 68 65 20 77 |ns true |if the w|
|00004f70| 69 6e 64 6f 77 20 62 65 | 6c 6f 6e 67 73 20 74 6f |indow be|longs to|
|00004f80| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00004f90| 0d 2a 2f 0d 0d 42 6f 6f | 6c 65 61 6e 20 49 73 41 |.*/..Boo|lean IsA|
|00004fa0| 70 70 57 69 6e 64 6f 77 | 28 57 69 6e 64 6f 77 50 |ppWindow|(WindowP|
|00004fb0| 74 72 20 77 69 6e 64 6f | 77 29 0d 7b 0d 09 73 68 |tr windo|w).{..sh|
|00004fc0| 6f 72 74 09 09 77 69 6e | 64 6f 77 4b 69 6e 64 3b |ort..win|dowKind;|
|00004fd0| 0d 09 0d 09 69 66 20 28 | 77 69 6e 64 6f 77 20 3d |....if (|window =|
|00004fe0| 3d 20 6e 69 6c 29 0d 09 | 09 72 65 74 75 72 6e 28 |= nil)..|.return(|
|00004ff0| 66 61 6c 73 65 29 3b 0d | 09 65 6c 73 65 20 7b 0d |false);.|.else {.|
|00005000| 09 09 77 69 6e 64 6f 77 | 4b 69 6e 64 20 3d 20 28 |..window|Kind = (|
|00005010| 28 57 69 6e 64 6f 77 50 | 65 65 6b 29 20 77 69 6e |(WindowP|eek) win|
|00005020| 64 6f 77 29 2d 3e 77 69 | 6e 64 6f 77 4b 69 6e 64 |dow)->wi|ndowKind|
|00005030| 3b 0d 09 09 72 65 74 75 | 72 6e 20 28 28 77 69 6e |;...retu|rn ((win|
|00005040| 64 6f 77 4b 69 6e 64 20 | 3e 3d 20 75 73 65 72 4b |dowKind |>= userK|
|00005050| 69 6e 64 29 20 7c 7c 20 | 28 77 69 6e 64 6f 77 4b |ind) || |(windowK|
|00005060| 69 6e 64 20 3d 3d 20 64 | 69 61 6c 6f 67 4b 69 6e |ind == d|ialogKin|
|00005070| 64 29 29 3b 0d 09 7d 0d | 7d 0d 0d 0d 2f 2a 09 49 |d));..}.|}.../*.I|
|00005080| 73 44 41 57 69 6e 64 6f | 77 20 72 65 74 75 72 6e |sDAWindo|w return|
|00005090| 73 20 74 72 75 65 20 69 | 66 20 74 68 65 20 77 69 |s true i|f the wi|
|000050a0| 6e 64 6f 77 20 69 73 20 | 61 20 44 41 20 77 69 6e |ndow is |a DA win|
|000050b0| 64 6f 77 0d 2a 2f 0d 0d | 42 6f 6f 6c 65 61 6e 20 |dow.*/..|Boolean |
|000050c0| 49 73 44 41 57 69 6e 64 | 6f 77 28 57 69 6e 64 6f |IsDAWind|ow(Windo|
|000050d0| 77 50 74 72 20 77 69 6e | 64 6f 77 29 0d 7b 0d 09 |wPtr win|dow).{..|
|000050e0| 69 66 20 28 20 77 69 6e | 64 6f 77 20 3d 3d 20 6e |if ( win|dow == n|
|000050f0| 69 6c 20 29 0d 09 09 72 | 65 74 75 72 6e 28 66 61 |il )...r|eturn(fa|
|00005100| 6c 73 65 29 3b 0d 09 65 | 6c 73 65 09 2f 2a 20 44 |lse);..e|lse./* D|
|00005110| 41 20 77 69 6e 64 6f 77 | 73 20 68 61 76 65 20 6e |A window|s have n|
|00005120| 65 67 61 74 69 76 65 20 | 77 69 6e 64 6f 77 4b 69 |egative |windowKi|
|00005130| 6e 64 73 20 2a 2f 0d 09 | 09 72 65 74 75 72 6e 20 |nds */..|.return |
|00005140| 28 28 28 57 69 6e 64 6f | 77 50 65 65 6b 29 20 77 |(((Windo|wPeek) w|
|00005150| 69 6e 64 6f 77 29 2d 3e | 77 69 6e 64 6f 77 4b 69 |indow)->|windowKi|
|00005160| 6e 64 20 3c 20 30 29 3b | 0d 7d 0d 0d 0d 2f 2a 09 |nd < 0);|.}.../*.|
|00005170| 49 73 4d 6f 76 61 62 6c | 65 4d 6f 64 61 6c 20 72 |IsMovabl|eModal r|
|00005180| 65 74 75 72 6e 73 20 74 | 72 75 65 20 69 66 20 74 |eturns t|rue if t|
|00005190| 68 65 20 77 69 6e 64 6f | 77 20 69 73 20 61 20 6d |he windo|w is a m|
|000051a0| 6f 76 61 62 6c 65 20 6d | 6f 64 61 6c 0d 09 28 74 |ovable m|odal..(t|
|000051b0| 68 69 73 20 77 69 6c 6c | 20 62 65 20 74 68 65 20 |his will| be the |
|000051c0| 73 74 61 74 75 73 20 77 | 69 6e 64 6f 77 29 2e 0d |status w|indow)..|
|000051d0| 2a 2f 0d 0d 42 6f 6f 6c | 65 61 6e 20 49 73 4d 6f |*/..Bool|ean IsMo|
|000051e0| 76 61 62 6c 65 4d 6f 64 | 61 6c 28 57 69 6e 64 6f |vableMod|al(Windo|
|000051f0| 77 50 74 72 20 77 69 6e | 64 6f 77 29 0d 7b 0d 09 |wPtr win|dow).{..|
|00005200| 72 65 74 75 72 6e 20 28 | 49 73 41 70 70 57 69 6e |return (|IsAppWin|
|00005210| 64 6f 77 28 77 69 6e 64 | 6f 77 29 20 26 26 20 28 |dow(wind|ow) && (|
|00005220| 28 54 77 69 6e 64 6f 77 | 49 6e 66 6f 20 2a 29 47 |(Twindow|Info *)G|
|00005230| 65 74 57 52 65 66 43 6f | 6e 28 77 69 6e 64 6f 77 |etWRefCo|n(window|
|00005240| 29 29 2d 3e 6b 69 6e 64 | 3d 3d 63 4d 6f 76 65 4d |))->kind|==cMoveM|
|00005250| 6f 64 61 6c 29 3b 0d 7d | 0d 0d 0d 2f 2a 09 46 69 |odal);.}|.../*.Fi|
|00005260| 78 43 75 72 73 6f 72 20 | 73 65 74 73 20 75 70 20 |xCursor |sets up |
|00005270| 74 68 65 20 74 79 70 65 | 20 6f 66 20 63 75 72 73 |the type| of curs|
|00005280| 6f 72 20 6e 65 65 64 65 | 64 2c 20 64 65 70 65 6e |or neede|d, depen|
|00005290| 64 69 6e 67 20 6f 6e 20 | 77 68 65 72 65 20 74 68 |ding on |where th|
|000052a0| 65 20 6d 6f 75 73 65 0d | 09 70 6f 69 6e 74 65 72 |e mouse.|.pointer|
|000052b0| 20 69 73 20 6c 6f 63 61 | 74 65 64 2e 20 20 54 68 | is loca|ted. Th|
|000052c0| 69 73 20 72 6f 75 74 69 | 6e 65 20 69 73 20 63 61 |is routi|ne is ca|
|000052d0| 6c 6c 65 64 20 69 6e 20 | 63 6f 6e 6a 75 6e 63 74 |lled in |conjunct|
|000052e0| 69 6f 6e 20 77 69 74 68 | 20 57 61 69 74 4e 65 78 |ion with| WaitNex|
|000052f0| 74 45 76 65 6e 74 2e 0d | 2a 2f 0d 0d 76 6f 69 64 |tEvent..|*/..void|
|00005300| 20 46 69 78 43 75 72 73 | 6f 72 28 50 6f 69 6e 74 | FixCurs|or(Point|
|00005310| 20 6d 6f 75 73 65 2c 52 | 67 6e 48 61 6e 64 6c 65 | mouse,R|gnHandle|
|00005320| 20 72 65 67 69 6f 6e 29 | 0d 7b 0d 09 57 69 6e 64 | region)|.{..Wind|
|00005330| 6f 77 50 74 72 09 66 72 | 6f 6e 74 4d 6f 73 74 3b |owPtr.fr|ontMost;|
|00005340| 0d 09 52 67 6e 48 61 6e | 64 6c 65 09 61 72 72 6f |..RgnHan|dle.arro|
|00005350| 77 52 67 6e 2c 69 42 65 | 61 6d 52 67 6e 3b 0d 09 |wRgn,iBe|amRgn;..|
|00005360| 52 65 63 74 09 09 69 42 | 65 61 6d 52 65 63 74 3b |Rect..iB|eamRect;|
|00005370| 0d 09 50 6f 69 6e 74 09 | 09 74 6f 70 4c 65 66 74 |..Point.|.topLeft|
|00005380| 50 74 2c 62 6f 74 52 69 | 67 68 74 50 74 3b 0d 09 |Pt,botRi|ghtPt;..|
|00005390| 0d 09 66 72 6f 6e 74 4d | 6f 73 74 20 3d 20 46 72 |..frontM|ost = Fr|
|000053a0| 6f 6e 74 57 69 6e 64 6f | 77 28 29 3b 0d 09 69 66 |ontWindo|w();..if|
|000053b0| 20 28 28 21 67 49 6e 42 | 61 63 6b 67 72 6f 75 6e | ((!gInB|ackgroun|
|000053c0| 64 29 20 26 26 20 28 21 | 49 73 44 41 57 69 6e 64 |d) && (!|IsDAWind|
|000053d0| 6f 77 28 66 72 6f 6e 74 | 4d 6f 73 74 29 29 29 20 |ow(front|Most))) |
|000053e0| 7b 0d 09 09 61 72 72 6f | 77 52 67 6e 20 3d 20 4e |{...arro|wRgn = N|
|000053f0| 65 77 52 67 6e 28 29 3b | 0d 09 09 69 42 65 61 6d |ewRgn();|...iBeam|
|00005400| 52 67 6e 20 3d 20 4e 65 | 77 52 67 6e 28 29 3b 0d |Rgn = Ne|wRgn();.|
|00005410| 09 09 53 65 74 52 65 63 | 74 52 67 6e 28 61 72 72 |..SetRec|tRgn(arr|
|00005420| 6f 77 52 67 6e 2c 2d 33 | 32 37 36 38 2c 2d 33 32 |owRgn,-3|2768,-32|
|00005430| 37 36 38 2c 33 32 37 36 | 37 2c 33 32 37 36 37 29 |768,3276|7,32767)|
|00005440| 3b 0d 09 09 69 66 20 28 | 49 73 41 70 70 57 69 6e |;...if (|IsAppWin|
|00005450| 64 6f 77 28 66 72 6f 6e | 74 4d 6f 73 74 29 20 26 |dow(fron|tMost) &|
|00005460| 26 20 67 46 72 6f 6e 74 | 54 45 20 29 20 7b 0d 09 |& gFront|TE ) {..|
|00005470| 09 09 69 42 65 61 6d 52 | 65 63 74 20 3d 20 28 2a |..iBeamR|ect = (*|
|00005480| 2a 67 46 72 6f 6e 74 54 | 45 29 2e 76 69 65 77 52 |*gFrontT|E).viewR|
|00005490| 65 63 74 3b 0d 09 09 09 | 53 65 74 50 6f 72 74 28 |ect;....|SetPort(|
|000054a0| 66 72 6f 6e 74 4d 6f 73 | 74 29 3b 0d 09 09 09 53 |frontMos|t);....S|
|000054b0| 65 74 50 74 28 26 74 6f | 70 4c 65 66 74 50 74 2c |etPt(&to|pLeftPt,|
|000054c0| 69 42 65 61 6d 52 65 63 | 74 2e 6c 65 66 74 2c 69 |iBeamRec|t.left,i|
|000054d0| 42 65 61 6d 52 65 63 74 | 2e 74 6f 70 29 3b 0d 09 |BeamRect|.top);..|
|000054e0| 09 09 53 65 74 50 74 28 | 26 62 6f 74 52 69 67 68 |..SetPt(|&botRigh|
|000054f0| 74 50 74 2c 69 42 65 61 | 6d 52 65 63 74 2e 72 69 |tPt,iBea|mRect.ri|
|00005500| 67 68 74 2c 69 42 65 61 | 6d 52 65 63 74 2e 62 6f |ght,iBea|mRect.bo|
|00005510| 74 74 6f 6d 29 3b 0d 09 | 09 09 4c 6f 63 61 6c 54 |ttom);..|..LocalT|
|00005520| 6f 47 6c 6f 62 61 6c 28 | 26 74 6f 70 4c 65 66 74 |oGlobal(|&topLeft|
|00005530| 50 74 29 3b 0d 09 09 09 | 4c 6f 63 61 6c 54 6f 47 |Pt);....|LocalToG|
|00005540| 6c 6f 62 61 6c 28 26 62 | 6f 74 52 69 67 68 74 50 |lobal(&b|otRightP|
|00005550| 74 29 3b 0d 09 09 09 69 | 42 65 61 6d 52 65 63 74 |t);....i|BeamRect|
|00005560| 2e 6c 65 66 74 20 3d 20 | 74 6f 70 4c 65 66 74 50 |.left = |topLeftP|
|00005570| 74 2e 68 3b 0d 09 09 09 | 69 42 65 61 6d 52 65 63 |t.h;....|iBeamRec|
|00005580| 74 2e 74 6f 70 20 3d 20 | 74 6f 70 4c 65 66 74 50 |t.top = |topLeftP|
|00005590| 74 2e 76 3b 0d 09 09 09 | 69 42 65 61 6d 52 65 63 |t.v;....|iBeamRec|
|000055a0| 74 2e 72 69 67 68 74 20 | 3d 20 62 6f 74 52 69 67 |t.right |= botRig|
|000055b0| 68 74 50 74 2e 68 3b 0d | 09 09 09 69 42 65 61 6d |htPt.h;.|...iBeam|
|000055c0| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 20 3d 20 62 6f |Rect.bot|tom = bo|
|000055d0| 74 52 69 67 68 74 50 74 | 2e 76 3b 0d 09 09 09 52 |tRightPt|.v;....R|
|000055e0| 65 63 74 52 67 6e 28 69 | 42 65 61 6d 52 67 6e 2c |ectRgn(i|BeamRgn,|
|000055f0| 26 69 42 65 61 6d 52 65 | 63 74 29 3b 0d 09 09 09 |&iBeamRe|ct);....|
|00005600| 53 65 74 4f 72 69 67 69 | 6e 28 2d 66 72 6f 6e 74 |SetOrigi|n(-front|
|00005610| 4d 6f 73 74 2d 3e 70 6f | 72 74 42 69 74 73 2e 62 |Most->po|rtBits.b|
|00005620| 6f 75 6e 64 73 2e 6c 65 | 66 74 2c 20 2d 66 72 6f |ounds.le|ft, -fro|
|00005630| 6e 74 4d 6f 73 74 2d 3e | 70 6f 72 74 42 69 74 73 |ntMost->|portBits|
|00005640| 2e 62 6f 75 6e 64 73 2e | 74 6f 70 29 3b 0d 09 09 |.bounds.|top);...|
|00005650| 09 53 65 63 74 52 67 6e | 28 69 42 65 61 6d 52 67 |.SectRgn|(iBeamRg|
|00005660| 6e 2c 20 66 72 6f 6e 74 | 4d 6f 73 74 2d 3e 76 69 |n, front|Most->vi|
|00005670| 73 52 67 6e 2c 20 69 42 | 65 61 6d 52 67 6e 29 3b |sRgn, iB|eamRgn);|
|00005680| 0d 09 09 09 53 65 74 4f | 72 69 67 69 6e 28 30 2c |....SetO|rigin(0,|
|00005690| 30 29 3b 0d 09 09 7d 0d | 09 09 44 69 66 66 52 67 |0);...}.|..DiffRg|
|000056a0| 6e 28 61 72 72 6f 77 52 | 67 6e 2c 69 42 65 61 6d |n(arrowR|gn,iBeam|
|000056b0| 52 67 6e 2c 61 72 72 6f | 77 52 67 6e 29 3b 0d 09 |Rgn,arro|wRgn);..|
|000056c0| 09 69 66 20 28 50 74 49 | 6e 52 67 6e 28 6d 6f 75 |.if (PtI|nRgn(mou|
|000056d0| 73 65 2c 69 42 65 61 6d | 52 67 6e 29 29 20 7b 0d |se,iBeam|Rgn)) {.|
|000056e0| 09 09 09 53 65 74 43 75 | 72 73 6f 72 28 26 67 49 |...SetCu|rsor(&gI|
|000056f0| 42 65 61 6d 43 75 72 73 | 29 3b 0d 09 09 09 43 6f |BeamCurs|);....Co|
|00005700| 70 79 52 67 6e 28 69 42 | 65 61 6d 52 67 6e 2c 72 |pyRgn(iB|eamRgn,r|
|00005710| 65 67 69 6f 6e 29 3b 0d | 09 09 7d 0d 09 09 65 6c |egion);.|..}...el|
|00005720| 73 65 20 7b 0d 09 09 09 | 53 65 74 43 75 72 73 6f |se {....|SetCurso|
|00005730| 72 28 26 51 44 41 52 52 | 4f 57 29 3b 0d 09 09 09 |r(&QDARR|OW);....|
|00005740| 43 6f 70 79 52 67 6e 28 | 61 72 72 6f 77 52 67 6e |CopyRgn(|arrowRgn|
|00005750| 2c 72 65 67 69 6f 6e 29 | 3b 0d 09 09 7d 0d 09 09 |,region)|;...}...|
|00005760| 44 69 73 70 6f 73 65 52 | 67 6e 28 61 72 72 6f 77 |DisposeR|gn(arrow|
|00005770| 52 67 6e 29 3b 0d 09 09 | 44 69 73 70 6f 73 65 52 |Rgn);...|DisposeR|
|00005780| 67 6e 28 69 42 65 61 6d | 52 67 6e 29 3b 0d 09 7d |gn(iBeam|Rgn);..}|
|00005790| 0d 7d 0d 0d 0d 0d 2f 2a | 20 48 61 6e 64 6c 65 53 |.}..../*| HandleS|
|000057a0| 52 45 76 74 3a 20 48 61 | 6e 64 6c 65 73 20 73 75 |REvt: Ha|ndles su|
|000057b0| 73 70 65 6e 64 2f 72 65 | 73 75 6d 65 20 65 76 65 |spend/re|sume eve|
|000057c0| 6e 74 73 2d 20 61 63 74 | 69 76 61 74 65 73 20 6d |nts- act|ivates m|
|000057d0| 61 69 6e 20 77 69 6e 64 | 6f 77 20 2a 2f 0d 0d 76 |ain wind|ow */..v|
|000057e0| 6f 69 64 20 48 61 6e 64 | 6c 65 53 52 45 76 74 28 |oid Hand|leSREvt(|
|000057f0| 6c 6f 6e 67 20 6d 65 73 | 73 61 67 65 29 0d 7b 0d |long mes|sage).{.|
|00005800| 09 53 65 74 43 75 72 73 | 6f 72 28 26 51 44 41 52 |.SetCurs|or(&QDAR|
|00005810| 52 4f 57 29 3b 0d 09 69 | 66 20 28 28 6d 65 73 73 |ROW);..i|f ((mess|
|00005820| 61 67 65 20 3e 3e 20 32 | 34 29 20 3d 3d 20 6b 53 |age >> 2|4) == kS|
|00005830| 52 4d 65 73 73 29 0d 09 | 09 69 66 20 28 28 6d 65 |RMess)..|.if ((me|
|00005840| 73 73 61 67 65 20 26 20 | 31 29 20 21 3d 20 30 29 |ssage & |1) != 0)|
|00005850| 20 7b 0d 09 09 09 67 49 | 6e 42 61 63 6b 67 72 6f | {....gI|nBackgro|
|00005860| 75 6e 64 20 3d 20 66 61 | 6c 73 65 3b 0d 09 09 09 |und = fa|lse;....|
|00005870| 44 6f 41 63 74 69 76 61 | 74 65 28 46 72 6f 6e 74 |DoActiva|te(Front|
|00005880| 57 69 6e 64 6f 77 28 29 | 2c 74 72 75 65 2c 74 72 |Window()|,true,tr|
|00005890| 75 65 29 3b 0d 09 09 7d | 0d 09 09 65 6c 73 65 20 |ue);...}|...else |
|000058a0| 7b 0d 09 09 09 67 49 6e | 42 61 63 6b 67 72 6f 75 |{....gIn|Backgrou|
|000058b0| 6e 64 20 3d 20 74 72 75 | 65 3b 0d 09 09 09 44 6f |nd = tru|e;....Do|
|000058c0| 41 63 74 69 76 61 74 65 | 28 46 72 6f 6e 74 57 69 |Activate|(FrontWi|
|000058d0| 6e 64 6f 77 28 29 2c 66 | 61 6c 73 65 2c 74 72 75 |ndow(),f|alse,tru|
|000058e0| 65 29 3b 0d 09 09 7d 0d | 7d 0d 0d 0d 2f 2a 20 48 |e);...}.|}.../* H|
|000058f0| 61 6e 64 6c 65 41 63 74 | 69 76 61 74 65 73 3a 20 |andleAct|ivates: |
|00005900| 48 61 6e 64 6c 65 73 20 | 61 63 74 69 76 61 74 65 |Handles |activate|
|00005910| 20 65 76 65 6e 74 73 20 | 2a 2f 0d 0d 76 6f 69 64 | events |*/..void|
|00005920| 20 48 61 6e 64 6c 65 41 | 63 74 69 76 61 74 65 73 | HandleA|ctivates|
|00005930| 28 45 76 65 6e 74 52 65 | 63 6f 72 64 20 2a 65 76 |(EventRe|cord *ev|
|00005940| 29 0d 7b 0d 09 44 6f 41 | 63 74 69 76 61 74 65 28 |).{..DoA|ctivate(|
|00005950| 28 57 69 6e 64 6f 77 50 | 74 72 29 65 76 2d 3e 6d |(WindowP|tr)ev->m|
|00005960| 65 73 73 61 67 65 2c 28 | 28 65 76 2d 3e 6d 6f 64 |essage,(|(ev->mod|
|00005970| 69 66 69 65 72 73 20 26 | 20 61 63 74 69 76 65 46 |ifiers &| activeF|
|00005980| 6c 61 67 29 20 21 3d 20 | 30 29 2c 28 28 65 76 2d |lag) != |0),((ev-|
|00005990| 3e 6d 6f 64 69 66 69 65 | 72 73 20 26 20 30 78 30 |>modifie|rs & 0x0|
|000059a0| 30 30 32 29 20 21 3d 20 | 30 29 29 3b 20 0d 7d 0d |002) != |0)); .}.|
|000059b0| 0d 0d 2f 2a 09 44 6f 41 | 63 74 69 76 61 74 65 20 |../*.DoA|ctivate |
|000059c0| 61 63 74 69 76 61 74 65 | 73 2f 64 65 61 63 74 69 |activate|s/deacti|
|000059d0| 76 61 74 65 73 20 77 69 | 6e 64 6f 77 73 20 2a 2f |vates wi|ndows */|
|000059e0| 0d 0d 76 6f 69 64 20 44 | 6f 41 63 74 69 76 61 74 |..void D|oActivat|
|000059f0| 65 28 57 69 6e 64 6f 77 | 50 74 72 20 74 68 65 57 |e(Window|Ptr theW|
|00005a00| 69 6e 64 2c 42 6f 6f 6c | 65 61 6e 20 61 63 74 46 |ind,Bool|ean actF|
|00005a10| 6c 61 67 2c 42 6f 6f 6c | 65 61 6e 20 63 68 46 6c |lag,Bool|ean chFl|
|00005a20| 61 67 29 0d 7b 0d 09 54 | 77 69 6e 64 6f 77 49 6e |ag).{..T|windowIn|
|00005a30| 66 6f 20 2a 74 68 65 49 | 6e 66 6f 3b 0d 09 47 72 |fo *theI|nfo;..Gr|
|00005a40| 61 66 50 74 72 20 73 61 | 76 65 50 6f 72 74 3b 0d |afPtr sa|vePort;.|
|00005a50| 09 52 65 63 74 20 67 72 | 6f 77 42 6f 78 52 65 63 |.Rect gr|owBoxRec|
|00005a60| 74 3b 0d 09 73 68 6f 72 | 74 20 66 6f 6e 74 4e 75 |t;..shor|t fontNu|
|00005a70| 6d 3b 0d 09 0d 09 69 66 | 20 28 49 73 41 70 70 57 |m;....if| (IsAppW|
|00005a80| 69 6e 64 6f 77 28 74 68 | 65 57 69 6e 64 29 29 20 |indow(th|eWind)) |
|00005a90| 7b 0d 09 09 74 68 65 49 | 6e 66 6f 20 3d 20 28 54 |{...theI|nfo = (T|
|00005aa0| 77 69 6e 64 6f 77 49 6e | 66 6f 20 2a 29 47 65 74 |windowIn|fo *)Get|
|00005ab0| 57 52 65 66 43 6f 6e 28 | 74 68 65 57 69 6e 64 29 |WRefCon(|theWind)|
|00005ac0| 3b 0d 09 09 73 77 69 74 | 63 68 20 28 74 68 65 49 |;...swit|ch (theI|
|00005ad0| 6e 66 6f 2d 3e 6b 69 6e | 64 29 20 7b 0d 09 09 09 |nfo->kin|d) {....|
|00005ae0| 63 61 73 65 20 63 47 72 | 6f 75 70 3a 0d 09 09 09 |case cGr|oup:....|
|00005af0| 63 61 73 65 20 63 4e 65 | 77 47 72 6f 75 70 3a 0d |case cNe|wGroup:.|
|00005b00| 09 09 09 63 61 73 65 20 | 63 55 73 65 72 47 72 6f |...case |cUserGro|
|00005b10| 75 70 3a 0d 09 09 09 63 | 61 73 65 20 63 53 75 62 |up:....c|ase cSub|
|00005b20| 6a 65 63 74 3a 0d 09 09 | 09 09 4c 41 63 74 69 76 |ject:...|..LActiv|
|00005b30| 61 74 65 28 61 63 74 46 | 6c 61 67 2c 28 4c 69 73 |ate(actF|lag,(Lis|
|00005b40| 74 48 61 6e 64 6c 65 29 | 74 68 65 49 6e 66 6f 2d |tHandle)|theInfo-|
|00005b50| 3e 64 61 74 61 29 3b 0d | 09 09 09 09 69 66 20 28 |>data);.|....if (|
|00005b60| 61 63 74 46 6c 61 67 29 | 20 7b 0d 09 09 09 09 09 |actFlag)| {......|
|00005b70| 47 65 74 46 4e 75 6d 28 | 67 50 72 65 66 73 2e 6c |GetFNum(|gPrefs.l|
|00005b80| 69 73 74 46 6f 6e 74 2c | 26 66 6f 6e 74 4e 75 6d |istFont,|&fontNum|
|00005b90| 29 3b 0d 09 09 09 09 09 | 53 77 69 74 63 68 46 6f |);......|SwitchFo|
|00005ba0| 6e 74 28 66 6f 6e 74 4e | 75 6d 2c 67 50 72 65 66 |nt(fontN|um,gPref|
|00005bb0| 73 2e 6c 69 73 74 53 69 | 7a 65 29 3b 0d 09 09 09 |s.listSi|ze);....|
|00005bc0| 09 09 67 54 68 65 4c 69 | 73 74 20 3d 20 28 4c 69 |..gTheLi|st = (Li|
|00005bd0| 73 74 48 61 6e 64 6c 65 | 29 74 68 65 49 6e 66 6f |stHandle|)theInfo|
|00005be0| 2d 3e 64 61 74 61 3b 0d | 09 09 09 09 7d 0d 09 09 |->data;.|....}...|
|00005bf0| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 63 61 73 65 |..break;|....case|
|00005c00| 20 63 4d 65 73 73 61 67 | 65 3a 0d 09 09 09 63 61 | cMessag|e:....ca|
|00005c10| 73 65 20 63 4d 69 73 63 | 4d 65 73 73 61 67 65 3a |se cMisc|Message:|
|00005c20| 0d 09 09 09 63 61 73 65 | 20 63 50 6f 73 74 4d 65 |....case| cPostMe|
|00005c30| 73 73 61 67 65 3a 0d 09 | 09 09 63 61 73 65 20 63 |ssage:..|..case c|
|00005c40| 53 65 6e 64 4d 65 73 73 | 61 67 65 3a 0d 09 09 09 |SendMess|age:....|
|00005c50| 09 69 66 20 28 61 63 74 | 46 6c 61 67 29 20 7b 0d |.if (act|Flag) {.|
|00005c60| 09 09 09 09 09 47 65 74 | 46 4e 75 6d 28 67 50 72 |.....Get|FNum(gPr|
|00005c70| 65 66 73 2e 74 65 78 74 | 46 6f 6e 74 2c 26 66 6f |efs.text|Font,&fo|
|00005c80| 6e 74 4e 75 6d 29 3b 0d | 09 09 09 09 09 53 77 69 |ntNum);.|.....Swi|
|00005c90| 74 63 68 46 6f 6e 74 28 | 66 6f 6e 74 4e 75 6d 2c |tchFont(|fontNum,|
|00005ca0| 67 50 72 65 66 73 2e 74 | 65 78 74 53 69 7a 65 29 |gPrefs.t|extSize)|
|00005cb0| 3b 0d 09 09 09 09 09 53 | 68 6f 77 43 6f 6e 74 72 |;......S|howContr|
|00005cc0| 6f 6c 28 20 28 28 57 69 | 6e 64 6f 77 50 65 65 6b |ol( ((Wi|ndowPeek|
|00005cd0| 29 20 74 68 65 57 69 6e | 64 29 2d 3e 63 6f 6e 74 |) theWin|d)->cont|
|00005ce0| 72 6f 6c 4c 69 73 74 20 | 29 3b 0d 09 09 09 09 09 |rolList |);......|
|00005cf0| 53 68 6f 77 43 6f 6e 74 | 72 6f 6c 28 20 28 2a 28 |ShowCont|rol( (*(|
|00005d00| 28 28 57 69 6e 64 6f 77 | 50 65 65 6b 29 20 74 68 |((Window|Peek) th|
|00005d10| 65 57 69 6e 64 29 2d 3e | 63 6f 6e 74 72 6f 6c 4c |eWind)->|controlL|
|00005d20| 69 73 74 29 29 2d 3e 6e | 65 78 74 43 6f 6e 74 72 |ist))->n|extContr|
|00005d30| 6f 6c 29 3b 0d 09 09 09 | 09 09 54 45 41 63 74 69 |ol);....|..TEActi|
|00005d40| 76 61 74 65 28 28 54 45 | 48 61 6e 64 6c 65 29 74 |vate((TE|Handle)t|
|00005d50| 68 65 49 6e 66 6f 2d 3e | 64 61 74 61 29 3b 0d 09 |heInfo->|data);..|
|00005d60| 09 09 09 09 67 46 72 6f | 6e 74 54 45 20 3d 20 28 |....gFro|ntTE = (|
|00005d70| 54 45 48 61 6e 64 6c 65 | 29 74 68 65 49 6e 66 6f |TEHandle|)theInfo|
|00005d80| 2d 3e 64 61 74 61 3b 0d | 09 09 09 09 7d 0d 09 09 |->data;.|....}...|
|00005d90| 09 09 65 6c 73 65 20 7b | 0d 09 09 09 09 09 48 69 |..else {|......Hi|
|00005da0| 64 65 43 6f 6e 74 72 6f | 6c 28 20 28 28 57 69 6e |deContro|l( ((Win|
|00005db0| 64 6f 77 50 65 65 6b 29 | 20 74 68 65 57 69 6e 64 |dowPeek)| theWind|
|00005dc0| 29 2d 3e 63 6f 6e 74 72 | 6f 6c 4c 69 73 74 20 29 |)->contr|olList )|
|00005dd0| 3b 0d 09 09 09 09 09 48 | 69 64 65 43 6f 6e 74 72 |;......H|ideContr|
|00005de0| 6f 6c 28 20 28 2a 28 28 | 28 57 69 6e 64 6f 77 50 |ol( (*((|(WindowP|
|00005df0| 65 65 6b 29 20 74 68 65 | 57 69 6e 64 29 2d 3e 63 |eek) the|Wind)->c|
|00005e00| 6f 6e 74 72 6f 6c 4c 69 | 73 74 29 29 2d 3e 6e 65 |ontrolLi|st))->ne|
|00005e10| 78 74 43 6f 6e 74 72 6f | 6c 29 3b 0d 09 09 09 09 |xtContro|l);.....|
|00005e20| 09 54 45 44 65 61 63 74 | 69 76 61 74 65 28 28 54 |.TEDeact|ivate((T|
|00005e30| 45 48 61 6e 64 6c 65 29 | 74 68 65 49 6e 66 6f 2d |EHandle)|theInfo-|
|00005e40| 3e 64 61 74 61 29 3b 0d | 09 09 09 09 09 67 46 72 |>data);.|.....gFr|
|00005e50| 6f 6e 74 54 45 20 3d 20 | 6e 69 6c 3b 0d 09 09 09 |ontTE = |nil;....|
|00005e60| 09 7d 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |.}.....b|reak;...|
|00005e70| 09 63 61 73 65 20 63 4d | 6f 76 65 4d 6f 64 61 6c |.case cM|oveModal|
|00005e80| 3a 0d 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 7d |:.....br|eak;...}|
|00005e90| 0d 09 09 47 65 74 50 6f | 72 74 28 26 73 61 76 65 |...GetPo|rt(&save|
|00005ea0| 50 6f 72 74 29 3b 0d 09 | 09 53 65 74 50 6f 72 74 |Port);..|.SetPort|
|00005eb0| 28 74 68 65 57 69 6e 64 | 29 3b 0d 09 09 53 65 74 |(theWind|);...Set|
|00005ec0| 52 65 63 74 28 26 67 72 | 6f 77 42 6f 78 52 65 63 |Rect(&gr|owBoxRec|
|00005ed0| 74 2c 74 68 65 57 69 6e | 64 2d 3e 70 6f 72 74 52 |t,theWin|d->portR|
|00005ee0| 65 63 74 2e 72 69 67 68 | 74 2d 31 35 2c 74 68 65 |ect.righ|t-15,the|
|00005ef0| 57 69 6e 64 2d 3e 70 6f | 72 74 52 65 63 74 2e 74 |Wind->po|rtRect.t|
|00005f00| 6f 70 2c 0d 09 09 09 09 | 09 74 68 65 57 69 6e 64 |op,.....|.theWind|
|00005f10| 2d 3e 70 6f 72 74 52 65 | 63 74 2e 72 69 67 68 74 |->portRe|ct.right|
|00005f20| 2c 74 68 65 57 69 6e 64 | 2d 3e 70 6f 72 74 52 65 |,theWind|->portRe|
|00005f30| 63 74 2e 62 6f 74 74 6f | 6d 29 3b 0d 09 09 49 6e |ct.botto|m);...In|
|00005f40| 76 61 6c 52 65 63 74 28 | 26 67 72 6f 77 42 6f 78 |valRect(|&growBox|
|00005f50| 52 65 63 74 29 3b 0d 09 | 09 53 65 74 50 6f 72 74 |Rect);..|.SetPort|
|00005f60| 28 73 61 76 65 50 6f 72 | 74 29 3b 0d 0d 09 09 69 |(savePor|t);....i|
|00005f70| 66 20 28 63 68 46 6c 61 | 67 29 0d 09 09 09 69 66 |f (chFla|g)....if|
|00005f80| 20 28 61 63 74 46 6c 61 | 67 29 20 7b 0d 09 09 09 | (actFla|g) {....|
|00005f90| 09 52 65 61 64 44 65 73 | 6b 53 63 72 61 70 28 29 |.ReadDes|kScrap()|
|00005fa0| 3b 0d 09 09 09 09 44 69 | 73 61 62 6c 65 49 74 65 |;.....Di|sableIte|
|00005fb0| 6d 28 67 54 68 65 4d 65 | 6e 75 5b 6b 45 64 69 74 |m(gTheMe|nu[kEdit|
|00005fc0| 4d 65 6e 75 5d 2c 6b 55 | 6e 64 6f 49 74 65 6d 29 |Menu],kU|ndoItem)|
|00005fd0| 3b 0d 09 09 09 09 44 69 | 73 61 62 6c 65 49 74 65 |;.....Di|sableIte|
|00005fe0| 6d 28 67 54 68 65 4d 65 | 6e 75 5b 6b 45 64 69 74 |m(gTheMe|nu[kEdit|
|00005ff0| 4d 65 6e 75 5d 2c 6b 43 | 75 74 49 74 65 6d 29 3b |Menu],kC|utItem);|
|00006000| 0d 09 09 09 09 44 69 73 | 61 62 6c 65 49 74 65 6d |.....Dis|ableItem|
|00006010| 28 67 54 68 65 4d 65 6e | 75 5b 6b 45 64 69 74 4d |(gTheMen|u[kEditM|
|00006020| 65 6e 75 5d 2c 6b 43 6f | 70 79 49 74 65 6d 29 3b |enu],kCo|pyItem);|
|00006030| 0d 09 09 09 09 44 69 73 | 61 62 6c 65 49 74 65 6d |.....Dis|ableItem|
|00006040| 28 67 54 68 65 4d 65 6e | 75 5b 6b 45 64 69 74 4d |(gTheMen|u[kEditM|
|00006050| 65 6e 75 5d 2c 6b 50 61 | 73 74 65 49 74 65 6d 29 |enu],kPa|steItem)|
|00006060| 3b 0d 09 09 09 09 44 69 | 73 61 62 6c 65 49 74 65 |;.....Di|sableIte|
|00006070| 6d 28 67 54 68 65 4d 65 | 6e 75 5b 6b 45 64 69 74 |m(gTheMe|nu[kEdit|
|00006080| 4d 65 6e 75 5d 2c 6b 43 | 6c 65 61 72 49 74 65 6d |Menu],kC|learItem|
|00006090| 29 3b 0d 09 09 09 7d 0d | 09 09 09 65 6c 73 65 20 |);....}.|...else |
|000060a0| 7b 0d 09 09 09 09 57 72 | 69 74 65 44 65 73 6b 53 |{.....Wr|iteDeskS|
|000060b0| 63 72 61 70 28 29 3b 0d | 09 09 09 09 45 6e 61 62 |crap();.|....Enab|
|000060c0| 6c 65 49 74 65 6d 28 67 | 54 68 65 4d 65 6e 75 5b |leItem(g|TheMenu[|
|000060d0| 6b 45 64 69 74 4d 65 6e | 75 5d 2c 6b 55 6e 64 6f |kEditMen|u],kUndo|
|000060e0| 49 74 65 6d 29 3b 0d 09 | 09 09 09 45 6e 61 62 6c |Item);..|...Enabl|
|000060f0| 65 49 74 65 6d 28 67 54 | 68 65 4d 65 6e 75 5b 6b |eItem(gT|heMenu[k|
|00006100| 45 64 69 74 4d 65 6e 75 | 5d 2c 6b 43 75 74 49 74 |EditMenu|],kCutIt|
|00006110| 65 6d 29 3b 0d 09 09 09 | 09 45 6e 61 62 6c 65 49 |em);....|.EnableI|
|00006120| 74 65 6d 28 67 54 68 65 | 4d 65 6e 75 5b 6b 45 64 |tem(gThe|Menu[kEd|
|00006130| 69 74 4d 65 6e 75 5d 2c | 6b 43 6f 70 79 49 74 65 |itMenu],|kCopyIte|
|00006140| 6d 29 3b 0d 09 09 09 09 | 45 6e 61 62 6c 65 49 74 |m);.....|EnableIt|
|00006150| 65 6d 28 67 54 68 65 4d | 65 6e 75 5b 6b 45 64 69 |em(gTheM|enu[kEdi|
|00006160| 74 4d 65 6e 75 5d 2c 6b | 50 61 73 74 65 49 74 65 |tMenu],k|PasteIte|
|00006170| 6d 29 3b 0d 09 09 09 09 | 45 6e 61 62 6c 65 49 74 |m);.....|EnableIt|
|00006180| 65 6d 28 67 54 68 65 4d | 65 6e 75 5b 6b 45 64 69 |em(gTheM|enu[kEdi|
|00006190| 74 4d 65 6e 75 5d 2c 6b | 43 6c 65 61 72 49 74 65 |tMenu],k|ClearIte|
|000061a0| 6d 29 3b 0d 09 09 09 7d | 0d 09 09 45 6e 61 62 6c |m);....}|...Enabl|
|000061b0| 65 49 74 65 6d 73 28 74 | 68 65 49 6e 66 6f 2d 3e |eItems(t|heInfo->|
|000061c0| 6b 69 6e 64 2c 61 63 74 | 46 6c 61 67 29 3b 0d 09 |kind,act|Flag);..|
|000061d0| 09 44 69 73 61 62 6c 65 | 49 74 65 6d 73 28 74 68 |.Disable|Items(th|
|000061e0| 65 49 6e 66 6f 2d 3e 6b | 69 6e 64 2c 61 63 74 46 |eInfo->k|ind,actF|
|000061f0| 6c 61 67 29 3b 0d 09 7d | 0d 7d 0d 0d 0d 2f 2a 09 |lag);..}|.}.../*.|
|00006200| 45 6e 61 62 6c 65 49 74 | 65 6d 73 20 65 6e 61 62 |EnableIt|ems enab|
|00006210| 6c 65 73 20 6d 65 6e 75 | 20 69 74 65 6d 73 2c 20 |les menu| items, |
|00006220| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 77 68 65 |dependin|g on whe|
|00006230| 74 68 65 72 20 6f 72 20 | 6e 6f 74 0d 09 74 68 65 |ther or |not..the|
|00006240| 20 74 79 70 65 20 6f 66 | 20 77 69 6e 64 6f 77 20 | type of| window |
|00006250| 62 65 69 6e 67 20 61 63 | 74 69 76 61 74 65 64 20 |being ac|tivated |
|00006260| 69 73 20 6f 66 20 61 20 | 63 65 72 74 61 69 6e 20 |is of a |certain |
|00006270| 74 79 70 65 0d 2a 2f 0d | 0d 76 6f 69 64 20 45 6e |type.*/.|.void En|
|00006280| 61 62 6c 65 49 74 65 6d | 73 28 73 68 6f 72 74 20 |ableItem|s(short |
|00006290| 6b 69 6e 64 2c 42 6f 6f | 6c 65 61 6e 20 61 63 74 |kind,Boo|lean act|
|000062a0| 46 6c 61 67 29 0d 7b 0d | 09 73 77 69 74 63 68 20 |Flag).{.|.switch |
|000062b0| 28 6b 69 6e 64 29 20 7b | 0d 09 09 63 61 73 65 20 |(kind) {|...case |
|000062c0| 63 47 72 6f 75 70 3a 0d | 09 09 09 69 66 20 28 21 |cGroup:.|...if (!|
|000062d0| 61 63 74 46 6c 61 67 29 | 20 7b 0d 09 09 09 09 45 |actFlag)| {.....E|
|000062e0| 6e 61 62 6c 65 49 74 65 | 6d 28 67 54 68 65 4d 65 |nableIte|m(gTheMe|
|000062f0| 6e 75 5b 6b 53 70 65 63 | 69 61 6c 4d 65 6e 75 5d |nu[kSpec|ialMenu]|
|00006300| 2c 6b 4e 65 78 74 49 74 | 65 6d 29 3b 0d 09 09 09 |,kNextIt|em);....|
|00006310| 09 45 6e 61 62 6c 65 49 | 74 65 6d 28 67 54 68 65 |.EnableI|tem(gThe|
|00006320| 4d 65 6e 75 5b 6b 46 69 | 6c 65 4d 65 6e 75 5d 2c |Menu[kFi|leMenu],|
|00006330| 6b 43 6c 6f 73 65 49 74 | 65 6d 29 3b 0d 09 09 09 |kCloseIt|em);....|
|00006340| 09 45 6e 61 62 6c 65 49 | 74 65 6d 28 67 54 68 65 |.EnableI|tem(gThe|
|00006350| 4d 65 6e 75 5b 6b 46 69 | 6c 65 4d 65 6e 75 5d 2c |Menu[kFi|leMenu],|
|00006360| 6b 53 61 76 65 49 74 65 | 6d 29 3b 0d 09 09 09 09 |kSaveIte|m);.....|
|00006370| 45 6e 61 62 6c 65 49 74 | 65 6d 28 67 54 68 65 4d |EnableIt|em(gTheM|
|00006380| 65 6e 75 5b 6b 46 69 6c | 65 4d 65 6e 75 5d 2c 6b |enu[kFil|eMenu],k|
|00006390| 53 61 76 65 41 73 49 74 | 65 6d 29 3b 0d 09 09 09 |SaveAsIt|em);....|
|000063a0| 7d 0d 09 09 09 65 6c 73 | 65 20 7b 0d 09 09 09 09 |}....els|e {.....|
|000063b0| 45 6e 61 62 6c 65 49 74 | 65 6d 28 67 54 68 65 4d |EnableIt|em(gTheM|
|000063c0| 65 6e 75 5b 6b 53 70 65 | 63 69 61 6c 4d 65 6e 75 |enu[kSpe|cialMenu|
|000063d0| 5d 2c 6b 53 75 62 73 63 | 72 69 62 65 49 74 65 6d |],kSubsc|ribeItem|
|000063e0| 29 3b 0d 09 09 09 09 45 | 6e 61 62 6c 65 49 74 65 |);.....E|nableIte|
|000063f0| 6d 28 67 54 68 65 4d 65 | 6e 75 5b 6b 53 70 65 63 |m(gTheMe|nu[kSpec|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.