home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / soft / sdkplnet / mac / plgsk401.sit / PluginSDK 4.01a / Examples / Framework / CMacPluginView.cpp next >
MacBinary  |  1996-09-17  |  8.9 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Sep 17 16:07:11 1996, modified Tue Sep 17 16:07:11 1996, creator 'CWIE', type ASCII, 8424 bytes "CMacPluginView.cpp" , at 0x2168 410 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[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 43 4d 61 63 50 6c | 75 67 69 6e 56 69 65 77 |..CMacPl|uginView|
|00000010| 2e 63 70 70 00 00 00 00 | 00 00 00 00 00 00 00 00 |.cpp....|........|
|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 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 20 e8 00 | 00 01 9a ae 64 b5 6f ae |..... ..|....d.o.|
|00000060| 64 b5 6f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |d.o.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 99 ca 00 00 |........|........|
|00000080| 2f 2f 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |//::::::|::::::::|
|00000090| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|000000a0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|000000b0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|000000c0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|000000d0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 0a 2f 2f 0a |::::::::|::::.//.|
|000000e0| 2f 2f 20 4e 65 74 73 63 | 61 70 65 50 6c 75 67 69 |// Netsc|apePlugi|
|000000f0| 6e 2e 63 70 70 0a 2f 2f | 0a 2f 2f 0a 2f 2f 3a 3a |n.cpp.//|.//.//::|
|00000100| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000110| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000120| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000130| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000140| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000150| 3a 3a 3a 3a 3a 3a 3a 3a | 0a 23 69 6e 63 6c 75 64 |::::::::|.#includ|
|00000160| 65 20 22 43 4d 61 63 50 | 6c 75 67 69 6e 56 69 65 |e "CMacP|luginVie|
|00000170| 77 2e 68 22 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |w.h"..#i|nclude <|
|00000180| 73 74 72 69 6e 67 2e 68 | 3e 0a 23 69 6e 63 6c 75 |string.h|>.#inclu|
|00000190| 64 65 20 22 46 69 6c 65 | 73 2e 68 22 0a 23 69 6e |de "File|s.h".#in|
|000001a0| 63 6c 75 64 65 20 22 52 | 65 73 6f 75 72 63 65 73 |clude "R|esources|
|000001b0| 2e 68 22 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 55 |.h"..#in|clude <U|
|000001c0| 44 72 61 77 69 6e 67 53 | 74 61 74 65 2e 68 3e 0a |DrawingS|tate.h>.|
|000001d0| 23 69 6e 63 6c 75 64 65 | 20 3c 55 45 6e 76 69 72 |#include| <UEnvir|
|000001e0| 6f 6e 6d 65 6e 74 2e 68 | 3e 0a 23 69 6e 63 6c 75 |onment.h|>.#inclu|
|000001f0| 64 65 20 3c 55 52 65 67 | 69 73 74 72 61 72 2e 68 |de <UReg|istrar.h|
|00000200| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 55 52 65 61 |>.#inclu|de <URea|
|00000210| 6e 69 6d 61 74 6f 72 2e | 68 3e 0a 0a 23 69 6e 63 |nimator.|h>..#inc|
|00000220| 6c 75 64 65 20 3c 4c 53 | 63 72 6f 6c 6c 65 72 2e |lude <LS|croller.|
|00000230| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 4c 54 65 |h>.#incl|ude <LTe|
|00000240| 78 74 45 64 69 74 2e 68 | 3e 0a 23 69 6e 63 6c 75 |xtEdit.h|>.#inclu|
|00000250| 64 65 20 3c 4c 41 63 74 | 69 76 65 53 63 72 6f 6c |de <LAct|iveScrol|
|00000260| 6c 65 72 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ler.h>.#|include |
|00000270| 3c 4c 43 61 70 74 69 6f | 6e 2e 68 3e 0a 0a 65 78 |<LCaptio|n.h>..ex|
|00000280| 74 65 72 6e 20 51 44 47 | 6c 6f 62 61 6c 73 2a 09 |tern QDG|lobals*.|
|00000290| 67 51 44 50 74 72 3b 0a | 65 78 74 65 72 6e 20 73 |gQDPtr;.|extern s|
|000002a0| 68 6f 72 74 09 09 67 52 | 65 73 46 69 6c 65 3b 0a |hort..gR|esFile;.|
|000002b0| 0a 63 6f 6e 73 74 20 52 | 65 73 49 44 54 09 09 72 |.const R|esIDT..r|
|000002c0| 50 50 6f 62 5f 50 6c 75 | 67 69 6e 56 69 65 77 09 |PPob_Plu|ginView.|
|000002d0| 3d 20 31 30 30 31 3b 0a | 0a 2f 2f 3d 3d 3d 3d 3d |= 1001;.|.//=====|
|000002e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000002f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000300| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000310| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000320| 3d 0a 2f 2f 09 09 43 4d | 61 63 50 6c 75 67 69 6e |=.//..CM|acPlugin|
|00000330| 56 69 65 77 3a 3a 49 6e | 69 74 69 61 6c 69 7a 65 |View::In|itialize|
|00000340| 28 29 0a 2f 2f 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |().//===|========|
|00000350| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000360| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000370| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 0a 4e 50 45 |========|===..NPE|
|00000390| 72 72 6f 72 20 43 4d 61 | 63 50 6c 75 67 69 6e 56 |rror CMa|cPluginV|
|000003a0| 69 65 77 3a 3a 49 6e 69 | 74 69 61 6c 69 7a 65 28 |iew::Ini|tialize(|
|000003b0| 29 0a 7b 0a 09 55 51 44 | 47 6c 6f 62 61 6c 73 3a |).{..UQD|Globals:|
|000003c0| 3a 53 65 74 51 44 47 6c | 6f 62 61 6c 73 28 67 51 |:SetQDGl|obals(gQ|
|000003d0| 44 50 74 72 29 3b 0a 09 | 0a 09 49 6e 74 33 32 09 |DPtr);..|..Int32.|
|000003e0| 09 71 64 56 65 72 73 69 | 6f 6e 20 3d 20 67 65 73 |.qdVersi|on = ges|
|000003f0| 74 61 6c 74 4f 72 69 67 | 69 6e 61 6c 51 44 3b 0a |taltOrig|inalQD;.|
|00000400| 09 47 65 73 74 61 6c 74 | 28 67 65 73 74 61 6c 74 |.Gestalt|(gestalt|
|00000410| 51 75 69 63 6b 64 72 61 | 77 56 65 72 73 69 6f 6e |Quickdra|wVersion|
|00000420| 2c 20 26 71 64 56 65 72 | 73 69 6f 6e 29 3b 0a 09 |, &qdVer|sion);..|
|00000430| 55 45 6e 76 69 72 6f 6e | 6d 65 6e 74 3a 3a 53 65 |UEnviron|ment::Se|
|00000440| 74 46 65 61 74 75 72 65 | 28 65 6e 76 5f 53 75 70 |tFeature|(env_Sup|
|00000450| 70 6f 72 74 73 43 6f 6c | 6f 72 2c 20 28 71 64 56 |portsCol|or, (qdV|
|00000460| 65 72 73 69 6f 6e 20 3e | 20 67 65 73 74 61 6c 74 |ersion >| gestalt|
|00000470| 4f 72 69 67 69 6e 61 6c | 51 44 29 29 3b 0a 0a 09 |Original|QD));...|
|00000480| 55 52 65 67 69 73 74 72 | 61 72 3a 3a 52 65 67 69 |URegistr|ar::Regi|
|00000490| 73 74 65 72 43 6c 61 73 | 73 28 4c 47 72 61 66 50 |sterClas|s(LGrafP|
|000004a0| 6f 72 74 56 69 65 77 3a | 3a 63 6c 61 73 73 5f 49 |ortView:|:class_I|
|000004b0| 44 2c 09 28 43 6c 61 73 | 73 43 72 65 61 74 6f 72 |D,.(Clas|sCreator|
|000004c0| 46 75 6e 63 29 20 4c 47 | 72 61 66 50 6f 72 74 56 |Func) LG|rafPortV|
|000004d0| 69 65 77 3a 3a 43 72 65 | 61 74 65 47 72 61 66 50 |iew::Cre|ateGrafP|
|000004e0| 6f 72 74 56 69 65 77 53 | 74 72 65 61 6d 29 3b 0a |ortViewS|tream);.|
|000004f0| 09 55 52 65 67 69 73 74 | 72 61 72 3a 3a 52 65 67 |.URegist|rar::Reg|
|00000500| 69 73 74 65 72 43 6c 61 | 73 73 28 4c 50 61 6e 65 |isterCla|ss(LPane|
|00000510| 3a 3a 63 6c 61 73 73 5f | 49 44 2c 09 09 09 28 43 |::class_|ID,...(C|
|00000520| 6c 61 73 73 43 72 65 61 | 74 6f 72 46 75 6e 63 29 |lassCrea|torFunc)|
|00000530| 20 4c 50 61 6e 65 3a 3a | 43 72 65 61 74 65 50 61 | LPane::|CreatePa|
|00000540| 6e 65 53 74 72 65 61 6d | 29 3b 0a 09 55 52 65 67 |neStream|);..UReg|
|00000550| 69 73 74 72 61 72 3a 3a | 52 65 67 69 73 74 65 72 |istrar::|Register|
|00000560| 43 6c 61 73 73 28 4c 56 | 69 65 77 3a 3a 63 6c 61 |Class(LV|iew::cla|
|00000570| 73 73 5f 49 44 2c 09 09 | 09 28 43 6c 61 73 73 43 |ss_ID,..|.(ClassC|
|00000580| 72 65 61 74 6f 72 46 75 | 6e 63 29 20 4c 56 69 65 |reatorFu|nc) LVie|
|00000590| 77 3a 3a 43 72 65 61 74 | 65 56 69 65 77 53 74 72 |w::Creat|eViewStr|
|000005a0| 65 61 6d 29 3b 0a 0a 09 | 72 65 74 75 72 6e 20 4e |eam);...|return N|
|000005b0| 50 45 52 52 5f 4e 4f 5f | 45 52 52 4f 52 3b 0a 7d |PERR_NO_|ERROR;.}|
|000005c0| 0a 0a 2f 2f 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |..//====|========|
|000005d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000005e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000005f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000600| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 2f 2f 09 09 43 |========|==.//..C|
|00000610| 4d 61 63 50 6c 75 67 69 | 6e 56 69 65 77 3a 3a 43 |MacPlugi|nView::C|
|00000620| 4d 61 63 50 6c 75 67 69 | 6e 56 69 65 77 28 29 0a |MacPlugi|nView().|
|00000630| 2f 2f 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//======|========|
|00000640| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000650| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000660| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000670| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 0a 43 4d 61 63 50 6c |========|..CMacPl|
|00000680| 75 67 69 6e 56 69 65 77 | 3a 3a 43 4d 61 63 50 6c |uginView|::CMacPl|
|00000690| 75 67 69 6e 56 69 65 77 | 28 20 43 4e 65 74 73 63 |uginView|( CNetsc|
|000006a0| 61 70 65 50 6c 75 67 69 | 6e 2a 20 63 6f 6e 74 72 |apePlugi|n* contr|
|000006b0| 6f 6c 6c 65 72 2c 20 49 | 6e 74 31 36 20 69 6e 46 |oller, I|nt16 inF|
|000006c0| 72 61 6d 65 54 68 69 63 | 6b 6e 65 73 73 20 29 0a |rameThic|kness ).|
|000006d0| 3a 09 43 50 6c 75 67 69 | 6e 56 69 65 77 28 20 63 |:.CPlugi|nView( c|
|000006e0| 6f 6e 74 72 6f 6c 6c 65 | 72 20 29 2c 0a 09 4c 47 |ontrolle|r ),..LG|
|000006f0| 72 61 66 50 6f 72 74 56 | 69 65 77 28 29 2c 0a 09 |rafPortV|iew(),..|
|00000700| 6d 46 72 61 6d 65 50 65 | 6e 54 68 69 63 6b 6e 65 |mFramePe|nThickne|
|00000710| 73 73 28 20 69 6e 46 72 | 61 6d 65 54 68 69 63 6b |ss( inFr|ameThick|
|00000720| 6e 65 73 73 20 29 2c 0a | 09 6d 4e 65 74 73 63 61 |ness ),.|.mNetsca|
|00000730| 70 65 57 69 6e 64 6f 77 | 28 20 6e 69 6c 20 29 2c |peWindow|( nil ),|
|00000740| 0a 09 6d 43 6f 6e 74 65 | 6e 74 50 61 6e 65 28 20 |..mConte|ntPane( |
|00000750| 6e 69 6c 20 29 0a 7b 0a | 2f 2f 09 53 42 6f 6f 6c |nil ).{.|//.SBool|
|00000760| 65 61 6e 52 65 63 74 20 | 6e 65 77 42 69 6e 64 69 |eanRect |newBindi|
|00000770| 6e 67 20 3d 20 7b 20 66 | 61 6c 73 65 2c 20 66 61 |ng = { f|alse, fa|
|00000780| 6c 73 65 2c 20 66 61 6c | 73 65 2c 20 66 61 6c 73 |lse, fal|se, fals|
|00000790| 65 20 7d 3b 0a 2f 2f 09 | 53 65 74 46 72 61 6d 65 |e };.//.|SetFrame|
|000007a0| 42 69 6e 64 69 6e 67 28 | 20 6e 65 77 42 69 6e 64 |Binding(| newBind|
|000007b0| 69 6e 67 20 29 3b 0a 09 | 6d 46 6f 72 65 43 6f 6c |ing );..|mForeCol|
|000007c0| 6f 72 2e 72 65 64 20 3d | 20 6d 46 6f 72 65 43 6f |or.red =| mForeCo|
|000007d0| 6c 6f 72 2e 67 72 65 65 | 6e 20 3d 20 6d 46 6f 72 |lor.gree|n = mFor|
|000007e0| 65 43 6f 6c 6f 72 2e 62 | 6c 75 65 20 3d 20 33 32 |eColor.b|lue = 32|
|000007f0| 37 36 38 3b 09 2f 2f 20 | 47 72 65 79 0a 0a 09 6d |768;.// |Grey...m|
|00000800| 43 6f 6e 74 65 6e 74 50 | 61 6e 65 20 3d 20 43 72 |ContentP|ane = Cr|
|00000810| 65 61 74 65 43 6f 6e 74 | 65 6e 74 50 61 6e 65 28 |eateCont|entPane(|
|00000820| 20 29 3b 0a 09 6d 43 6f | 6e 74 65 6e 74 50 61 6e | );..mCo|ntentPan|
|00000830| 65 2d 3e 50 75 74 49 6e | 73 69 64 65 28 20 74 68 |e->PutIn|side( th|
|00000840| 69 73 20 29 3b 0a 7d 0a | 0a 2f 2f 3d 3d 3d 3d 3d |is );.}.|.//=====|
|00000850| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000860| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000870| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000880| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000890| 3d 0a 2f 2f 09 09 43 4d | 61 63 50 6c 75 67 69 6e |=.//..CM|acPlugin|
|000008a0| 56 69 65 77 3a 3a 7e 43 | 4d 61 63 50 6c 75 67 69 |View::~C|MacPlugi|
|000008b0| 6e 56 69 65 77 28 29 0a | 2f 2f 3d 3d 3d 3d 3d 3d |nView().|//======|
|000008c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000008d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000008e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000008f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000900| 0a 0a 43 4d 61 63 50 6c | 75 67 69 6e 56 69 65 77 |..CMacPl|uginView|
|00000910| 3a 3a 7e 43 4d 61 63 50 | 6c 75 67 69 6e 56 69 65 |::~CMacP|luginVie|
|00000920| 77 28 29 0a 7b 0a 7d 0a | 0a 2f 2f 3a 3a 3a 3a 3a |w().{.}.|.//:::::|
|00000930| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000940| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000950| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000960| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000970| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000980| 3a 3a 3a 3a 3a 0a 2f 2f | 0a 2f 2f 09 4f 62 6a 65 |:::::.//|.//.Obje|
|00000990| 63 74 20 49 6e 74 65 72 | 66 61 63 65 20 4d 65 74 |ct Inter|face Met|
|000009a0| 68 6f 64 73 0a 2f 2f 0a | 2f 2f 09 54 68 65 73 65 |hods.//.|//.These|
|000009b0| 20 6d 65 74 68 6f 64 73 | 20 61 72 65 20 63 61 6c | methods| are cal|
|000009c0| 6c 65 64 20 62 79 20 74 | 68 65 20 70 72 6f 63 65 |led by t|he proce|
|000009d0| 64 75 72 61 6c 20 6d 65 | 74 68 6f 64 73 20 61 62 |dural me|thods ab|
|000009e0| 6f 76 65 2e 20 54 68 65 | 79 20 74 61 6b 65 20 63 |ove. The|y take c|
|000009f0| 61 72 65 20 6f 66 20 62 | 61 73 69 63 20 68 6f 75 |are of b|asic hou|
|00000a00| 73 65 6b 65 65 70 69 6e | 67 2c 0a 2f 2f 09 73 75 |sekeepin|g,.//.su|
|00000a10| 63 68 20 61 73 20 6b 65 | 65 70 69 6e 67 20 74 72 |ch as ke|eping tr|
|00000a20| 61 63 6b 20 6f 66 20 73 | 74 72 65 61 6d 73 20 61 |ack of s|treams a|
|00000a30| 6e 64 20 77 69 6e 64 6f | 77 73 2c 20 74 68 65 6e |nd windo|ws, then|
|00000a40| 20 6e 6f 74 69 66 79 20 | 61 6e 79 20 69 6e 68 65 | notify |any inhe|
|00000a50| 72 69 74 65 64 20 63 6c | 61 73 73 65 73 20 74 68 |rited cl|asses th|
|00000a60| 72 6f 75 67 68 20 74 68 | 65 0a 2f 2f 09 76 69 72 |rough th|e.//.vir|
|00000a70| 74 75 61 6c 20 48 61 6e | 64 6c 65 5f 2a 28 29 20 |tual Han|dle_*() |
|00000a80| 6d 65 6d 62 65 72 20 66 | 75 6e 63 74 69 6f 6e 73 |member f|unctions|
|00000a90| 2e 0a 2f 2f 0a 2f 2f 3a | 3a 3a 3a 3a 3a 3a 3a 3a |..//.//:|::::::::|
|00000aa0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000ab0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000ac0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000ad0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000ae0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000af0| 3a 0a 0a 0a 2f 2f 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |:...//--|--------|
|00000b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 2f 2f 20 43 4d |--------|--.// CM|
|00000b50| 61 63 50 6c 75 67 69 6e | 56 69 65 77 3a 3a 52 65 |acPlugin|View::Re|
|00000b60| 63 61 6c 63 46 72 61 6d | 65 4c 61 79 6f 75 74 0a |calcFram|eLayout.|
|00000b70| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |//------|--------|
|00000b80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ba0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000bb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000bc0| 2d 2d 2d 2d 2d 2d 0a 76 | 6f 69 64 09 0a 43 4d 61 |------.v|oid..CMa|
|00000bd0| 63 50 6c 75 67 69 6e 56 | 69 65 77 3a 3a 52 65 63 |cPluginV|iew::Rec|
|00000be0| 61 6c 63 46 72 61 6d 65 | 4c 61 79 6f 75 74 28 20 |alcFrame|Layout( |
|00000bf0| 29 0a 7b 0a 09 69 66 28 | 20 6d 4e 65 74 73 63 61 |).{..if(| mNetsca|
|00000c00| 70 65 57 69 6e 64 6f 77 | 20 3d 3d 20 30 20 29 0a |peWindow| == 0 ).|
|00000c10| 09 09 72 65 74 75 72 6e | 3b 0a 09 09 0a 09 4e 50 |..return|;.....NP|
|00000c20| 5f 50 6f 72 74 2a 20 6e | 70 50 6f 72 74 20 3d 20 |_Port* n|pPort = |
|00000c30| 28 4e 50 5f 50 6f 72 74 | 2a 29 20 6d 4e 65 74 73 |(NP_Port|*) mNets|
|00000c40| 63 61 70 65 57 69 6e 64 | 6f 77 2d 3e 77 69 6e 64 |capeWind|ow->wind|
|00000c50| 6f 77 3b 0a 09 6d 47 72 | 61 66 50 74 72 20 3d 20 |ow;..mGr|afPtr = |
|00000c60| 28 47 72 61 66 50 74 72 | 29 20 47 65 74 4e 65 74 |(GrafPtr|) GetNet|
|00000c70| 73 63 61 70 65 47 72 61 | 66 50 6f 72 74 28 29 3b |scapeGra|fPort();|
|00000c80| 0a 0a 09 6d 50 6f 72 74 | 4f 72 69 67 69 6e 2e 68 |...mPort|Origin.h|
|00000c90| 20 3d 20 6e 70 50 6f 72 | 74 2d 3e 70 6f 72 74 78 | = npPor|t->portx|
|00000ca0| 3b 0a 09 6d 50 6f 72 74 | 4f 72 69 67 69 6e 2e 76 |;..mPort|Origin.v|
|00000cb0| 20 3d 20 6e 70 50 6f 72 | 74 2d 3e 70 6f 72 74 79 | = npPor|t->porty|
|00000cc0| 3b 0a 09 0a 09 6d 46 72 | 61 6d 65 4c 6f 63 61 74 |;....mFr|ameLocat|
|00000cd0| 69 6f 6e 2e 68 20 3d 20 | 6d 4e 65 74 73 63 61 70 |ion.h = |mNetscap|
|00000ce0| 65 57 69 6e 64 6f 77 2d | 3e 78 3b 0a 09 6d 46 72 |eWindow-|>x;..mFr|
|00000cf0| 61 6d 65 4c 6f 63 61 74 | 69 6f 6e 2e 76 20 3d 20 |ameLocat|ion.v = |
|00000d00| 6d 4e 65 74 73 63 61 70 | 65 57 69 6e 64 6f 77 2d |mNetscap|eWindow-|
|00000d10| 3e 79 3b 0a 0a 09 6d 46 | 72 61 6d 65 53 69 7a 65 |>y;...mF|rameSize|
|00000d20| 2e 77 69 64 74 68 20 3d | 20 6d 4e 65 74 73 63 61 |.width =| mNetsca|
|00000d30| 70 65 57 69 6e 64 6f 77 | 2d 3e 77 69 64 74 68 3b |peWindow|->width;|
|00000d40| 0a 09 6d 46 72 61 6d 65 | 53 69 7a 65 2e 68 65 69 |..mFrame|Size.hei|
|00000d50| 67 68 74 20 3d 20 6d 4e | 65 74 73 63 61 70 65 57 |ght = mN|etscapeW|
|00000d60| 69 6e 64 6f 77 2d 3e 68 | 65 69 67 68 74 3b 0a 09 |indow->h|eight;..|
|00000d70| 0a 09 6d 43 6f 6e 74 65 | 6e 74 50 61 6e 65 2d 3e |..mConte|ntPane->|
|00000d80| 50 6c 61 63 65 49 6e 53 | 75 70 65 72 46 72 61 6d |PlaceInS|uperFram|
|00000d90| 65 41 74 28 20 6d 46 72 | 61 6d 65 50 65 6e 54 68 |eAt( mFr|amePenTh|
|00000da0| 69 63 6b 6e 65 73 73 2c | 20 6d 46 72 61 6d 65 50 |ickness,| mFrameP|
|00000db0| 65 6e 54 68 69 63 6b 6e | 65 73 73 2c 20 66 61 6c |enThickn|ess, fal|
|00000dc0| 73 65 20 29 3b 0a 09 49 | 6e 74 31 36 20 63 6f 6e |se );..I|nt16 con|
|00000dd0| 74 65 6e 74 57 69 64 74 | 68 2c 20 63 6f 6e 74 65 |tentWidt|h, conte|
|00000de0| 6e 74 48 65 69 67 68 74 | 3b 0a 09 63 6f 6e 74 65 |ntHeight|;..conte|
|00000df0| 6e 74 57 69 64 74 68 20 | 3d 20 6d 4e 65 74 73 63 |ntWidth |= mNetsc|
|00000e00| 61 70 65 57 69 6e 64 6f | 77 2d 3e 77 69 64 74 68 |apeWindo|w->width|
|00000e10| 20 2d 20 28 20 32 20 2a | 20 6d 46 72 61 6d 65 50 | - ( 2 *| mFrameP|
|00000e20| 65 6e 54 68 69 63 6b 6e | 65 73 73 20 29 3b 0a 09 |enThickn|ess );..|
|00000e30| 63 6f 6e 74 65 6e 74 48 | 65 69 67 68 74 20 3d 20 |contentH|eight = |
|00000e40| 6d 4e 65 74 73 63 61 70 | 65 57 69 6e 64 6f 77 2d |mNetscap|eWindow-|
|00000e50| 3e 68 65 69 67 68 74 20 | 2d 20 28 20 32 20 2a 20 |>height |- ( 2 * |
|00000e60| 6d 46 72 61 6d 65 50 65 | 6e 54 68 69 63 6b 6e 65 |mFramePe|nThickne|
|00000e70| 73 73 20 29 3b 0a 09 6d | 43 6f 6e 74 65 6e 74 50 |ss );..m|ContentP|
|00000e80| 61 6e 65 2d 3e 52 65 73 | 69 7a 65 46 72 61 6d 65 |ane->Res|izeFrame|
|00000e90| 54 6f 28 20 63 6f 6e 74 | 65 6e 74 57 69 64 74 68 |To( cont|entWidth|
|00000ea0| 2c 20 63 6f 6e 74 65 6e | 74 48 65 69 67 68 74 2c |, conten|tHeight,|
|00000eb0| 20 66 61 6c 73 65 20 29 | 3b 0a 09 0a 09 52 65 63 | false )|;....Rec|
|00000ec0| 74 20 63 6c 69 70 52 65 | 63 74 3b 0a 09 63 6c 69 |t clipRe|ct;..cli|
|00000ed0| 70 52 65 63 74 2e 74 6f | 70 20 3d 20 6d 4e 65 74 |pRect.to|p = mNet|
|00000ee0| 73 63 61 70 65 57 69 6e | 64 6f 77 2d 3e 63 6c 69 |scapeWin|dow->cli|
|00000ef0| 70 52 65 63 74 2e 74 6f | 70 3b 0a 09 63 6c 69 70 |pRect.to|p;..clip|
|00000f00| 52 65 63 74 2e 6c 65 66 | 74 20 3d 20 6d 4e 65 74 |Rect.lef|t = mNet|
|00000f10| 73 63 61 70 65 57 69 6e | 64 6f 77 2d 3e 63 6c 69 |scapeWin|dow->cli|
|00000f20| 70 52 65 63 74 2e 6c 65 | 66 74 3b 0a 09 63 6c 69 |pRect.le|ft;..cli|
|00000f30| 70 52 65 63 74 2e 62 6f | 74 74 6f 6d 20 3d 20 6d |pRect.bo|ttom = m|
|00000f40| 4e 65 74 73 63 61 70 65 | 57 69 6e 64 6f 77 2d 3e |Netscape|Window->|
|00000f50| 63 6c 69 70 52 65 63 74 | 2e 62 6f 74 74 6f 6d 3b |clipRect|.bottom;|
|00000f60| 0a 09 63 6c 69 70 52 65 | 63 74 2e 72 69 67 68 74 |..clipRe|ct.right|
|00000f70| 20 3d 20 6d 4e 65 74 73 | 63 61 70 65 57 69 6e 64 | = mNets|capeWind|
|00000f80| 6f 77 2d 3e 63 6c 69 70 | 52 65 63 74 2e 72 69 67 |ow->clip|Rect.rig|
|00000f90| 68 74 3b 0a 09 6d 52 65 | 76 65 61 6c 65 64 52 65 |ht;..mRe|vealedRe|
|00000fa0| 63 74 20 3d 20 63 6c 69 | 70 52 65 63 74 3b 0a 0a |ct = cli|pRect;..|
|00000fb0| 09 6d 43 6f 6e 74 65 6e | 74 50 61 6e 65 2d 3e 41 |.mConten|tPane->A|
|00000fc0| 64 61 70 74 54 6f 4e 65 | 77 53 75 72 72 6f 75 6e |daptToNe|wSurroun|
|00000fd0| 64 69 6e 67 73 28 29 3b | 0a 09 0a 7d 0a 0a 2f 2f |dings();|...}..//|
|00000fe0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ff0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001000| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001030| 2d 2d 2d 2d 0a 2f 2f 20 | 43 4d 61 63 50 6c 75 67 |----.// |CMacPlug|
|00001040| 69 6e 56 69 65 77 3a 3a | 53 65 74 57 69 6e 64 6f |inView::|SetWindo|
|00001050| 77 0a 2f 2f 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |w.//----|--------|
|00001060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000010a0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 4e 50 45 72 72 6f 72 |--------|.NPError|
|000010b0| 09 0a 43 4d 61 63 50 6c | 75 67 69 6e 56 69 65 77 |..CMacPl|uginView|
|000010c0| 3a 3a 53 65 74 57 69 6e | 64 6f 77 28 20 4e 50 57 |::SetWin|dow( NPW|
|000010d0| 69 6e 64 6f 77 2a 20 77 | 69 6e 64 6f 77 20 29 0a |indow* w|indow ).|
|000010e0| 7b 0a 09 6d 4e 65 74 73 | 63 61 70 65 57 69 6e 64 |{..mNets|capeWind|
|000010f0| 6f 77 20 3d 20 77 69 6e | 64 6f 77 3b 0a 09 0a 0a |ow = win|dow;....|
|00001100| 2f 2f 20 4e 6f 74 69 66 | 69 63 61 74 69 6f 6e 20 |// Notif|ication |
|00001110| 2d 20 53 75 62 63 6c 61 | 73 73 65 73 20 64 6f 20 |- Subcla|sses do |
|00001120| 77 68 61 74 65 76 65 72 | 2c 20 61 6e 64 20 77 65 |whatever|, and we|
|00001130| 20 72 65 64 72 61 77 2e | 09 0a 09 4e 50 45 72 72 | redraw.|...NPErr|
|00001140| 6f 72 20 72 65 73 75 6c | 74 20 3d 20 48 61 6e 64 |or resul|t = Hand|
|00001150| 6c 65 5f 53 65 74 57 69 | 6e 64 6f 77 28 29 3b 09 |le_SetWi|ndow();.|
|00001160| 0a 09 50 61 69 6e 74 28 | 29 3b 0a 0a 09 72 65 74 |..Paint(|);...ret|
|00001170| 75 72 6e 20 72 65 73 75 | 6c 74 3b 0a 7d 0a 0a 0a |urn resu|lt;.}...|
|00001180| 0a 0a 2f 2f 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..//----|--------|
|00001190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011d0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 2f 2f 20 43 4d 61 63 |--------|.// CMac|
|000011e0| 50 6c 75 67 69 6e 56 69 | 65 77 3a 3a 50 61 69 6e |PluginVi|ew::Pain|
|000011f0| 74 28 29 0a 2f 2f 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |t().//--|--------|
|00001200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 76 6f 69 64 0a |--------|--.void.|
|00001250| 43 4d 61 63 50 6c 75 67 | 69 6e 56 69 65 77 3a 3a |CMacPlug|inView::|
|00001260| 50 61 69 6e 74 28 29 0a | 7b 0a 09 69 66 28 20 6d |Paint().|{..if( m|
|00001270| 4e 65 74 73 63 61 70 65 | 57 69 6e 64 6f 77 20 3d |Netscape|Window =|
|00001280| 3d 20 30 20 29 0a 09 09 | 72 65 74 75 72 6e 3b 0a |= 0 )...|return;.|
|00001290| 09 53 74 43 6f 6c 6f 72 | 50 6f 72 74 53 74 61 74 |.StColor|PortStat|
|000012a0| 65 09 73 61 76 65 50 6f | 72 74 53 74 61 74 65 28 |e.savePo|rtState(|
|000012b0| 6d 47 72 61 66 50 74 72 | 29 3b 0a 09 0a 09 52 65 |mGrafPtr|);....Re|
|000012c0| 63 61 6c 63 46 72 61 6d | 65 4c 61 79 6f 75 74 28 |calcFram|eLayout(|
|000012d0| 29 3b 0a 09 0a 09 41 70 | 70 6c 79 46 6f 72 65 41 |);....Ap|plyForeA|
|000012e0| 6e 64 42 61 63 6b 43 6f | 6c 6f 72 73 28 29 3b 0a |ndBackCo|lors();.|
|000012f0| 09 46 6f 63 75 73 44 72 | 61 77 28 29 3b 0a 09 44 |.FocusDr|aw();..D|
|00001300| 72 61 77 28 20 6e 69 6c | 20 29 3b 0a 09 4f 75 74 |raw( nil| );..Out|
|00001310| 4f 66 46 6f 63 75 73 28 | 6e 69 6c 29 3b 0a 09 0a |OfFocus(|nil);...|
|00001320| 7d 0a 0a 2f 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |}..//---|--------|
|00001330| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001350| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001360| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 2f 2f 20 43 4d 61 |--------|-.// CMa|
|00001380| 63 50 6c 75 67 69 6e 56 | 69 65 77 3a 3a 55 70 64 |cPluginV|iew::Upd|
|00001390| 61 74 65 50 6f 72 74 28 | 29 0a 2f 2f 2d 2d 2d 2d |atePort(|).//----|
|000013a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013f0| 0a 76 6f 69 64 0a 43 4d | 61 63 50 6c 75 67 69 6e |.void.CM|acPlugin|
|00001400| 56 69 65 77 3a 3a 55 70 | 64 61 74 65 50 6f 72 74 |View::Up|datePort|
|00001410| 28 29 0a 7b 0a 2f 2f 09 | 46 6f 63 75 73 44 72 61 |().{.//.|FocusDra|
|00001420| 77 28 29 3b 0a 09 44 72 | 61 77 28 20 6e 69 6c 20 |w();..Dr|aw( nil |
|00001430| 29 3b 0a 2f 2f 09 4f 75 | 74 4f 66 46 6f 63 75 73 |);.//.Ou|tOfFocus|
|00001440| 28 6e 69 6c 29 3b 0a 7d | 0a 0a 2f 2f 20 2d 2d 2d |(nil);.}|..// ---|
|00001450| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001460| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001470| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001490| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 2f 2f 09 09 a5 20 44 |--------|.//... D|
|000014a0| 72 61 77 53 65 6c 66 0a | 2f 2f 20 2d 2d 2d 2d 2d |rawSelf.|// -----|
|000014b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014f0| 2d 2d 2d 2d 2d 2d 0a 0a | 76 6f 69 64 0a 43 4d 61 |------..|void.CMa|
|00001500| 63 50 6c 75 67 69 6e 56 | 69 65 77 3a 3a 44 72 61 |cPluginV|iew::Dra|
|00001510| 77 53 65 6c 66 28 29 0a | 7b 0a 09 4c 47 72 61 66 |wSelf().|{..LGraf|
|00001520| 50 6f 72 74 56 69 65 77 | 3a 3a 44 72 61 77 53 65 |PortView|::DrawSe|
|00001530| 6c 66 28 29 3b 0a 0a 09 | 53 74 43 6f 6c 6f 72 50 |lf();...|StColorP|
|00001540| 6f 72 74 53 74 61 74 65 | 09 73 61 76 65 50 6f 72 |ortState|.savePor|
|00001550| 74 53 74 61 74 65 28 6d | 47 72 61 66 50 74 72 29 |tState(m|GrafPtr)|
|00001560| 3b 0a 0a 09 3a 3a 50 65 | 6e 53 69 7a 65 28 20 6d |;...::Pe|nSize( m|
|00001570| 46 72 61 6d 65 50 65 6e | 54 68 69 63 6b 6e 65 73 |FramePen|Thicknes|
|00001580| 73 2c 20 6d 46 72 61 6d | 65 50 65 6e 54 68 69 63 |s, mFram|ePenThic|
|00001590| 6b 6e 65 73 73 20 29 3b | 0a 09 09 0a 09 52 65 63 |kness );|.....Rec|
|000015a0| 74 09 66 72 61 6d 65 3b | 0a 09 43 61 6c 63 4c 6f |t.frame;|..CalcLo|
|000015b0| 63 61 6c 46 72 61 6d 65 | 52 65 63 74 28 66 72 61 |calFrame|Rect(fra|
|000015c0| 6d 65 29 3b 0a 09 0a 09 | 46 72 61 6d 65 52 65 63 |me);....|FrameRec|
|000015d0| 74 28 26 66 72 61 6d 65 | 29 3b 0a 7d 0a 0a 2f 2f |t(&frame|);.}..//|
|000015e0| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|000015f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001610| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 2f 2f 09 |--------|----.//.|
|00001630| 09 a5 20 41 63 74 69 76 | 61 74 65 53 65 6c 66 0a |.. Activ|ateSelf.|
|00001640| 2f 2f 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |// -----|--------|
|00001650| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 76 |--------|------.v|
|00001690| 6f 69 64 0a 43 4d 61 63 | 50 6c 75 67 69 6e 56 69 |oid.CMac|PluginVi|
|000016a0| 65 77 3a 3a 41 63 74 69 | 76 61 74 65 53 65 6c 66 |ew::Acti|vateSelf|
|000016b0| 28 29 0a 7b 0a 09 6d 46 | 6f 72 65 43 6f 6c 6f 72 |().{..mF|oreColor|
|000016c0| 2e 72 65 64 20 3d 20 6d | 46 6f 72 65 43 6f 6c 6f |.red = m|ForeColo|
|000016d0| 72 2e 67 72 65 65 6e 20 | 3d 20 6d 46 6f 72 65 43 |r.green |= mForeC|
|000016e0| 6f 6c 6f 72 2e 62 6c 75 | 65 20 3d 20 30 3b 09 09 |olor.blu|e = 0;..|
|000016f0| 2f 2f 20 42 6c 61 63 6b | 0a 09 0a 09 50 61 69 6e |// Black|....Pain|
|00001700| 74 28 29 3b 0a 7d 0a 0a | 2f 2f 20 2d 2d 2d 2d 2d |t();.}..|// -----|
|00001710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001720| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001750| 2d 2d 2d 2d 2d 2d 0a 2f | 2f 09 09 a5 20 44 65 61 |------./|/... Dea|
|00001760| 63 74 69 76 61 74 65 53 | 65 6c 66 0a 2f 2f 20 2d |ctivateS|elf.// -|
|00001770| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001780| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001790| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 76 6f 69 64 0a |--------|--.void.|
|000017c0| 43 4d 61 63 50 6c 75 67 | 69 6e 56 69 65 77 3a 3a |CMacPlug|inView::|
|000017d0| 44 65 61 63 74 69 76 61 | 74 65 53 65 6c 66 28 29 |Deactiva|teSelf()|
|000017e0| 0a 7b 0a 09 6d 46 6f 72 | 65 43 6f 6c 6f 72 2e 72 |.{..mFor|eColor.r|
|000017f0| 65 64 20 3d 20 6d 46 6f | 72 65 43 6f 6c 6f 72 2e |ed = mFo|reColor.|
|00001800| 67 72 65 65 6e 20 3d 20 | 6d 46 6f 72 65 43 6f 6c |green = |mForeCol|
|00001810| 6f 72 2e 62 6c 75 65 20 | 3d 20 33 32 37 36 38 3b |or.blue |= 32768;|
|00001820| 09 2f 2f 20 47 72 65 79 | 0a 09 0a 09 50 61 69 6e |.// Grey|....Pain|
|00001830| 74 28 29 3b 0a 7d 0a 0a | 2f 2f 2d 2d 2d 2d 2d 2d |t();.}..|//------|
|00001840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001870| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 2f |--------|------./|
|00001890| 2f 20 43 4d 61 63 50 6c | 75 67 69 6e 56 69 65 77 |/ CMacPl|uginView|
|000018a0| 3a 3a 43 72 65 61 74 65 | 43 6f 6e 74 65 6e 74 50 |::Create|ContentP|
|000018b0| 61 6e 65 0a 2f 2f 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ane.//--|--------|
|000018c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001900| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 4c 50 61 6e 65 |--------|--.LPane|
|00001910| 2a 0a 43 4d 61 63 50 6c | 75 67 69 6e 56 69 65 77 |*.CMacPl|uginView|
|00001920| 3a 3a 43 72 65 61 74 65 | 43 6f 6e 74 65 6e 74 50 |::Create|ContentP|
|00001930| 61 6e 65 28 29 0a 7b 0a | 09 2f 2f 20 4e 61 76 69 |ane().{.|.// Navi|
|00001940| 67 61 74 6f 72 20 68 61 | 73 20 69 74 27 73 20 6f |gator ha|s it's o|
|00001950| 77 6e 20 50 50 6f 62 20 | 52 65 73 6f 75 72 63 65 |wn PPob |Resource|
|00001960| 73 2e 20 57 65 20 68 61 | 76 65 20 74 6f 20 6d 61 |s. We ha|ve to ma|
|00001970| 6b 65 20 73 75 72 65 20 | 74 68 61 74 20 6f 75 72 |ke sure |that our|
|00001980| 0a 09 2f 2f 20 72 65 73 | 6f 75 72 63 65 20 66 69 |..// res|ource fi|
|00001990| 6c 65 20 69 73 20 74 68 | 65 20 63 75 72 72 65 6e |le is th|e curren|
|000019a0| 74 20 6f 6e 65 2c 20 73 | 6f 20 74 68 61 74 20 6f |t one, s|o that o|
|000019b0| 75 72 20 50 50 6f 62 20 | 77 69 6c 6c 20 62 65 20 |ur PPob |will be |
|000019c0| 74 68 65 20 66 69 72 73 | 74 0a 09 2f 2f 20 6f 6e |the firs|t..// on|
|000019d0| 65 20 66 6f 75 6e 64 2e | 0a 09 0a 09 73 68 6f 72 |e found.|....shor|
|000019e0| 74 20 73 61 76 65 52 65 | 73 46 69 6c 65 20 3d 20 |t saveRe|sFile = |
|000019f0| 43 75 72 52 65 73 46 69 | 6c 65 28 29 3b 0a 09 55 |CurResFi|le();..U|
|00001a00| 73 65 52 65 73 46 69 6c | 65 28 20 67 52 65 73 46 |seResFil|e( gResF|
|00001a10| 69 6c 65 20 29 3b 09 09 | 09 09 2f 2f 20 67 52 65 |ile );..|..// gRe|
|00001a20| 73 46 69 6c 65 20 69 73 | 20 73 65 74 20 75 70 20 |sFile is| set up |
|00001a30| 69 6e 20 6e 70 6d 61 63 | 2e 63 70 70 2c 20 0a 09 |in npmac|.cpp, ..|
|00001a40| 09 09 09 09 09 09 09 09 | 09 2f 2f 20 66 6f 72 20 |........|.// for |
|00001a50| 65 78 61 63 74 6c 79 20 | 74 68 69 73 20 70 75 72 |exactly |this pur|
|00001a60| 70 6f 73 65 0a 09 4c 56 | 69 65 77 09 2a 74 68 65 |pose..LV|iew.*the|
|00001a70| 50 6c 75 67 69 6e 56 69 | 65 77 20 3d 20 28 4c 56 |PluginVi|ew = (LV|
|00001a80| 69 65 77 2a 29 20 55 52 | 65 61 6e 69 6d 61 74 6f |iew*) UR|eanimato|
|00001a90| 72 3a 3a 52 65 61 64 4f | 62 6a 65 63 74 73 28 27 |r::ReadO|bjects('|
|00001aa0| 50 50 6f 62 27 2c 20 72 | 50 50 6f 62 5f 50 6c 75 |PPob', r|PPob_Plu|
|00001ab0| 67 69 6e 56 69 65 77 29 | 3b 0a 09 74 68 65 50 6c |ginView)|;..thePl|
|00001ac0| 75 67 69 6e 56 69 65 77 | 2d 3e 46 69 6e 69 73 68 |uginView|->Finish|
|00001ad0| 43 72 65 61 74 65 28 29 | 3b 09 0a 09 55 73 65 52 |Create()|;...UseR|
|00001ae0| 65 73 46 69 6c 65 28 73 | 61 76 65 52 65 73 46 69 |esFile(s|aveResFi|
|00001af0| 6c 65 29 3b 0a 0a 09 72 | 65 74 75 72 6e 20 74 68 |le);...r|eturn th|
|00001b00| 65 50 6c 75 67 69 6e 56 | 69 65 77 3b 0a 7d 0a 0a |ePluginV|iew;.}..|
|00001b10| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |//------|--------|
|00001b20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b60| 2d 2d 2d 2d 2d 2d 0a 2f | 2f 20 43 4d 61 63 50 6c |------./|/ CMacPl|
|00001b70| 75 67 69 6e 56 69 65 77 | 3a 3a 48 61 6e 64 6c 65 |uginView|::Handle|
|00001b80| 5f 45 76 65 6e 74 0a 2f | 2f 2d 2d 2d 2d 2d 2d 2d |_Event./|/-------|
|00001b90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001ba0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001bb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001bc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001bd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 0a 4e |--------|-----..N|
|00001be0| 50 42 6f 6f 6c 0a 43 4d | 61 63 50 6c 75 67 69 6e |PBool.CM|acPlugin|
|00001bf0| 56 69 65 77 3a 3a 48 61 | 6e 64 6c 65 5f 45 76 65 |View::Ha|ndle_Eve|
|00001c00| 6e 74 28 20 45 76 65 6e | 74 52 65 63 6f 72 64 26 |nt( Even|tRecord&|
|00001c10| 20 65 76 65 6e 74 20 29 | 0a 7b 0a 09 4e 50 42 6f | event )|.{..NPBo|
|00001c20| 6f 6c 20 65 76 65 6e 74 | 48 61 6e 64 6c 65 64 20 |ol event|Handled |
|00001c30| 3d 20 66 61 6c 73 65 3b | 0a 09 0a 09 69 66 28 20 |= false;|....if( |
|00001c40| 6d 4e 65 74 73 63 61 70 | 65 57 69 6e 64 6f 77 20 |mNetscap|eWindow |
|00001c50| 3d 3d 20 30 20 29 0a 09 | 09 72 65 74 75 72 6e 20 |== 0 )..|.return |
|00001c60| 65 76 65 6e 74 48 61 6e | 64 6c 65 64 3b 0a 09 09 |eventHan|dled;...|
|00001c70| 0a 09 53 74 43 6f 6c 6f | 72 50 6f 72 74 53 74 61 |..StColo|rPortSta|
|00001c80| 74 65 09 73 61 76 65 50 | 6f 72 74 53 74 61 74 65 |te.saveP|ortState|
|00001c90| 28 6d 47 72 61 66 50 74 | 72 29 3b 0a 09 0a 09 52 |(mGrafPt|r);....R|
|00001ca0| 65 63 61 6c 63 46 72 61 | 6d 65 4c 61 79 6f 75 74 |ecalcFra|meLayout|
|00001cb0| 28 29 3b 0a 09 0a 09 73 | 77 69 74 63 68 28 20 65 |();....s|witch( e|
|00001cc0| 76 65 6e 74 2e 77 68 61 | 74 20 29 0a 09 7b 0a 09 |vent.wha|t )..{..|
|00001cd0| 09 63 61 73 65 20 6e 75 | 6c 6c 45 76 65 6e 74 3a |.case nu|llEvent:|
|00001ce0| 0a 09 09 7b 0a 09 09 09 | 46 6f 63 75 73 44 72 61 |...{....|FocusDra|
|00001cf0| 77 28 29 3b 0a 09 09 09 | 4c 50 65 72 69 6f 64 69 |w();....|LPeriodi|
|00001d00| 63 61 6c 3a 3a 44 65 76 | 6f 74 65 54 69 6d 65 54 |cal::Dev|oteTimeT|
|00001d10| 6f 49 64 6c 65 72 73 28 | 20 65 76 65 6e 74 20 29 |oIdlers(| event )|
|00001d20| 3b 0a 09 09 09 4f 75 74 | 4f 66 46 6f 63 75 73 28 |;....Out|OfFocus(|
|00001d30| 6e 69 6c 29 3b 0a 09 09 | 09 65 76 65 6e 74 48 61 |nil);...|.eventHa|
|00001d40| 6e 64 6c 65 64 20 3d 20 | 74 72 75 65 3b 0a 09 09 |ndled = |true;...|
|00001d50| 09 62 72 65 61 6b 3b 0a | 09 09 7d 0a 09 09 63 61 |.break;.|..}...ca|
|00001d60| 73 65 20 75 70 64 61 74 | 65 45 76 74 3a 0a 09 09 |se updat|eEvt:...|
|00001d70| 7b 0a 09 09 09 41 70 70 | 6c 79 46 6f 72 65 41 6e |{....App|lyForeAn|
|00001d80| 64 42 61 63 6b 43 6f 6c | 6f 72 73 28 29 3b 0a 09 |dBackCol|ors();..|
|00001d90| 09 09 46 6f 63 75 73 44 | 72 61 77 28 29 3b 0a 09 |..FocusD|raw();..|
|00001da0| 09 09 44 72 61 77 28 20 | 6e 69 6c 20 29 3b 0a 09 |..Draw( |nil );..|
|00001db0| 09 09 4f 75 74 4f 66 46 | 6f 63 75 73 28 6e 69 6c |..OutOfF|ocus(nil|
|00001dc0| 29 3b 09 0a 09 09 09 65 | 76 65 6e 74 48 61 6e 64 |);.....e|ventHand|
|00001dd0| 6c 65 64 20 3d 20 74 72 | 75 65 3b 0a 09 09 09 62 |led = tr|ue;....b|
|00001de0| 72 65 61 6b 3b 0a 09 09 | 7d 0a 09 09 63 61 73 65 |reak;...|}...case|
|00001df0| 20 67 65 74 46 6f 63 75 | 73 45 76 65 6e 74 3a 0a | getFocu|sEvent:.|
|00001e00| 09 09 7b 0a 09 09 09 41 | 63 74 69 76 61 74 65 28 |..{....A|ctivate(|
|00001e10| 29 3b 0a 09 09 09 65 76 | 65 6e 74 48 61 6e 64 6c |);....ev|entHandl|
|00001e20| 65 64 20 3d 20 74 72 75 | 65 3b 0a 09 09 09 62 72 |ed = tru|e;....br|
|00001e30| 65 61 6b 3b 0a 09 09 7d | 0a 09 09 63 61 73 65 20 |eak;...}|...case |
|00001e40| 6c 6f 73 65 46 6f 63 75 | 73 45 76 65 6e 74 3a 0a |loseFocu|sEvent:.|
|00001e50| 09 09 7b 0a 09 09 09 44 | 65 61 63 74 69 76 61 74 |..{....D|eactivat|
|00001e60| 65 28 29 3b 0a 09 09 09 | 65 76 65 6e 74 48 61 6e |e();....|eventHan|
|00001e70| 64 6c 65 64 20 3d 20 74 | 72 75 65 3b 0a 09 09 09 |dled = t|rue;....|
|00001e80| 62 72 65 61 6b 3b 0a 09 | 09 7d 0a 09 09 63 61 73 |break;..|.}...cas|
|00001e90| 65 20 6d 6f 75 73 65 44 | 6f 77 6e 3a 0a 09 09 7b |e mouseD|own:...{|
|00001ea0| 09 09 09 0a 09 09 09 43 | 6c 69 63 6b 49 6e 43 6f |.......C|lickInCo|
|00001eb0| 6e 74 65 6e 74 28 20 65 | 76 65 6e 74 20 29 3b 0a |ntent( e|vent );.|
|00001ec0| 09 09 09 65 76 65 6e 74 | 48 61 6e 64 6c 65 64 20 |...event|Handled |
|00001ed0| 3d 20 74 72 75 65 3b 0a | 09 09 09 62 72 65 61 6b |= true;.|...break|
|00001ee0| 3b 0a 09 09 7d 0a 09 09 | 63 61 73 65 20 6b 65 79 |;...}...|case key|
|00001ef0| 44 6f 77 6e 3a 0a 09 09 | 7b 0a 09 09 4c 43 6f 6d |Down:...|{...LCom|
|00001f00| 6d 61 6e 64 65 72 20 2a | 74 68 65 54 61 72 67 65 |mander *|theTarge|
|00001f10| 74 20 3d 20 4c 43 6f 6d | 6d 61 6e 64 65 72 3a 3a |t = LCom|mander::|
|00001f20| 47 65 74 54 61 72 67 65 | 74 28 29 3b 0a 09 09 69 |GetTarge|t();...i|
|00001f30| 66 20 28 74 68 65 54 61 | 72 67 65 74 20 21 3d 20 |f (theTa|rget != |
|00001f40| 6e 69 6c 29 20 0a 09 09 | 09 7b 0a 09 09 09 74 68 |nil) ...|.{....th|
|00001f50| 65 54 61 72 67 65 74 2d | 3e 50 72 6f 63 65 73 73 |eTarget-|>Process|
|00001f60| 4b 65 79 50 72 65 73 73 | 28 20 65 76 65 6e 74 20 |KeyPress|( event |
|00001f70| 29 3b 0a 09 09 09 65 76 | 65 6e 74 48 61 6e 64 6c |);....ev|entHandl|
|00001f80| 65 64 20 3d 20 74 72 75 | 65 3b 0a 09 09 09 62 72 |ed = tru|e;....br|
|00001f90| 65 61 6b 3b 0a 09 09 09 | 7d 0a 09 09 7d 0a 09 09 |eak;....|}...}...|
|00001fa0| 63 61 73 65 20 61 63 74 | 69 76 61 74 65 45 76 74 |case act|ivateEvt|
|00001fb0| 3a 0a 09 09 7b 0a 09 09 | 09 69 66 28 20 65 76 65 |:...{...|.if( eve|
|00001fc0| 6e 74 2e 6d 6f 64 69 66 | 69 65 72 73 20 26 20 61 |nt.modif|iers & a|
|00001fd0| 63 74 69 76 65 46 6c 61 | 67 20 29 0a 09 09 09 7b |ctiveFla|g )....{|
|00001fe0| 09 2f 2f 20 49 66 20 77 | 65 20 6e 65 65 64 65 64 |.// If w|e needed|
|00001ff0| 20 74 6f 20 64 6f 20 61 | 6e 79 74 68 69 6e 67 20 | to do a|nything |
|00002000| 77 68 65 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |when the| window |
|00002010| 62 65 63 61 6d 65 20 61 | 63 74 69 76 65 2c 20 77 |became a|ctive, w|
|00002020| 65 20 77 6f 75 6c 64 0a | 09 09 09 09 2f 2f 20 64 |e would.|....// d|
|00002030| 6f 20 69 74 20 68 65 72 | 65 2e 20 57 65 20 61 63 |o it her|e. We ac|
|00002040| 74 69 76 61 74 65 20 74 | 68 65 20 76 69 65 77 20 |tivate t|he view |
|00002050| 77 68 65 6e 20 69 74 20 | 67 65 74 73 20 66 6f 63 |when it |gets foc|
|00002060| 75 73 20 28 67 65 74 46 | 6f 63 75 73 45 76 65 6e |us (getF|ocusEven|
|00002070| 74 2c 20 61 62 6f 76 65 | 2e 29 0a 09 09 09 7d 0a |t, above|.)....}.|
|00002080| 09 09 09 65 6c 73 65 0a | 09 09 09 7b 09 2f 2f 20 |...else.|...{.// |
|00002090| 49 66 20 77 65 20 6e 65 | 65 64 65 64 20 74 6f 20 |If we ne|eded to |
|000020a0| 64 6f 20 61 6e 79 74 68 | 69 6e 67 20 77 68 65 6e |do anyth|ing when|
|000020b0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 64 65 61 63 | the win|dow deac|
|000020c0| 74 69 76 61 74 65 64 20 | 28 73 75 63 68 20 61 73 |tivated |(such as|
|000020d0| 20 73 74 6f 70 0a 09 09 | 09 09 2f 2f 20 61 6e 69 | stop...|..// ani|
|000020e0| 6d 61 74 69 6f 6e 29 2c | 20 77 65 20 77 6f 75 6c |mation),| we woul|
|000020f0| 64 20 64 6f 20 69 74 20 | 68 65 72 65 2e 0a 09 09 |d do it |here....|
|00002100| 09 7d 0a 09 09 09 65 76 | 65 6e 74 48 61 6e 64 6c |.}....ev|entHandl|
|00002110| 65 64 20 3d 20 74 72 75 | 65 3b 0a 09 09 09 62 72 |ed = tru|e;....br|
|00002120| 65 61 6b 3b 0a 09 09 7d | 0a 09 09 64 65 66 61 75 |eak;...}|...defau|
|00002130| 6c 74 3a 0a 09 09 09 65 | 76 65 6e 74 48 61 6e 64 |lt:....e|ventHand|
|00002140| 6c 65 64 20 3d 20 66 61 | 6c 73 65 3b 0a 09 7d 0a |led = fa|lse;..}.|
|00002150| 09 72 65 74 75 72 6e 20 | 65 76 65 6e 74 48 61 6e |.return |eventHan|
|00002160| 64 6c 65 64 3b 0a 7d 0a | 00 00 00 00 00 00 00 00 |dled;.}.|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00002190| 63 6f 6d 70 75 74 65 72 | 31 2e 67 69 66 00 70 5d |computer|1.gif.p]|
|000021a0| 2c 32 68 74 74 70 3a 2f | 2f 77 77 77 2e 6d 61 63 |,2http:/|/www.mac|
|000021b0| 12 43 4d 61 63 50 6c 75 | 67 69 6e 56 69 65 77 2e |.CMacPlu|ginView.|
|000021c0| 63 70 70 65 02 00 00 00 | 50 61 72 74 53 49 54 21 |cppe....|PartSIT!|
|000021d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 af e8 0b 5f 00 00 | 00 00 00 00 01 9a 2c 32 |....._..|......,2|
|00002200| 68 74 74 70 3a 2f 2f 77 | 77 77 2e 6d 61 63 77 65 |http://w|ww.macwe|
|00002210| 65 6b 2e 63 6f 6d 2f 6d | 61 63 77 65 65 6b 2f 6d |ek.com/m|acweek/m|
|00002220| 77 5f 61 72 74 2f 6c 6f | 67 6f 73 2f 67 61 c9 96 |w_art/lo|gos/ga..|
|00002230| 2c 32 68 74 74 70 3a 2f | 2f 68 72 2f 63 6f 6d 70 |,2http:/|/hr/comp|
|00002240| 75 74 65 72 31 2e 67 69 | 66 00 70 5d 2c 32 68 74 |uter1.gi|f.p],2ht|
|00002250| 74 70 3a 2f 2f 77 77 77 | 2e 6d 61 63 77 65 65 6b |tp://www|.macweek|
|00002260| 2e 63 6f 6d 2f 6d 61 63 | 77 65 65 6b 2f 6d 77 5f |.com/mac|week/mw_|
|00002270| 61 72 74 2f 6c 6f c9 96 | 2c 32 68 74 74 70 3a 2f |art/lo..|,2http:/|
|00002280| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00002290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022a0| 00 00 00 00 00 00 00 03 | 00 04 00 5a 00 04 02 ed |........|...Z....|
|000022b0| 02 63 00 5a 00 04 02 ed | 02 63 ae 64 7d 30 00 00 |.c.Z....|.c.d}0..|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|000022d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000022e0| 00 00 00 46 04 7c 9f e8 | 20 52 00 00 00 1c 00 46 |...F.|..| R.....F|
|000022f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002300| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002310| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+