home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-07-15 | 19.3 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: AutoCompletion.cp
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| MS-DOS Code Page Info (other/dosCodePage)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Fri Jul 15 15:52:46 1994, modified Fri Jul 15 15:52:46 1994, creator 'MPS ', type ASCII, 18662 bytes "AutoCompletion.cp" , at 0x4966 890 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 41 75 74 6f 43 6f | 6d 70 6c 65 74 69 6f 6e |..AutoCo|mpletion|
|00000010| 2e 63 70 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.cp.....|........|
|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 48 e6 00 | 00 03 7a aa 4c 99 8e aa |.....H..|..z.L...|
|00000060| 4c 99 8e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |L.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7a 77 00 00 |........|....zw..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 41 72 72 61 6e 67 |#include| "Arrang|
|00000090| 65 43 61 6c 6c 62 61 63 | 6b 73 2e 68 22 0d 23 69 |eCallbac|ks.h".#i|
|000000a0| 6e 63 6c 75 64 65 20 22 | 50 6c 75 67 69 6e 4c 69 |nclude "|PluginLi|
|000000b0| 62 72 61 72 79 2e 68 22 | 0d 0d 23 69 6e 63 6c 75 |brary.h"|..#inclu|
|000000c0| 64 65 20 3c 44 69 61 6c | 6f 67 73 2e 68 3e 0d 23 |de <Dial|ogs.h>.#|
|000000d0| 69 6e 63 6c 75 64 65 20 | 3c 57 69 6e 64 6f 77 73 |include |<Windows|
|000000e0| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 52 65 |.h>.#inc|lude <Re|
|000000f0| 73 6f 75 72 63 65 73 2e | 68 3e 0d 23 69 6e 63 6c |sources.|h>.#incl|
|00000100| 75 64 65 20 3c 4d 65 6d | 6f 72 79 2e 68 3e 0d 23 |ude <Mem|ory.h>.#|
|00000110| 69 6e 63 6c 75 64 65 20 | 3c 45 76 65 6e 74 73 2e |include |<Events.|
|00000120| 68 3e 0d 0d 2f 2f 20 41 | 75 74 6f 43 6f 6d 70 6c |h>..// A|utoCompl|
|00000130| 65 74 69 6f 6e 2e 63 70 | 20 2d 20 62 61 73 65 64 |etion.cp| - based|
|00000140| 20 6f 6e 20 47 65 6e 65 | 72 69 63 50 6c 75 67 69 | on Gene|ricPlugi|
|00000150| 6e 2e 63 70 20 61 73 20 | 6f 66 20 37 2f 31 35 2f |n.cp as |of 7/15/|
|00000160| 39 34 0d 0d 0d 23 64 65 | 66 69 6e 65 20 4d 6f 64 |94...#de|fine Mod|
|00000170| 75 6c 65 52 73 72 63 49 | 44 20 30 78 46 46 46 46 |uleRsrcI|D 0xFFFF|
|00000180| 38 30 30 30 0d 0d 23 64 | 65 66 69 6e 65 20 62 61 |8000..#d|efine ba|
|00000190| 73 65 43 6d 64 43 6f 64 | 65 20 30 78 31 32 30 30 |seCmdCod|e 0x1200|
|000001a0| 30 31 30 30 20 2f 2f 20 | 72 65 70 6c 61 63 65 20 |0100 // |replace |
|000001b0| 74 68 69 73 20 77 69 74 | 68 20 61 20 76 61 6c 75 |this wit|h a valu|
|000001c0| 65 20 6f 62 74 61 69 6e | 65 64 20 66 72 6f 6d 0d |e obtain|ed from.|
|000001d0| 09 09 09 09 09 09 09 09 | 09 09 20 2f 2f 20 43 6f |........|.. // Co|
|000001e0| 6d 6d 6f 6e 20 4b 6e 6f | 77 6c 65 64 67 65 2e 0d |mmon Kno|wledge..|
|000001f0| 0d 23 64 65 66 69 6e 65 | 20 61 62 6f 75 74 43 6d |.#define| aboutCm|
|00000200| 64 43 6f 64 65 20 20 20 | 20 28 62 61 73 65 43 6d |dCode | (baseCm|
|00000210| 64 43 6f 64 65 20 2b 20 | 30 29 0d 0d 23 64 65 66 |dCode + |0)..#def|
|00000220| 69 6e 65 20 61 75 74 6f | 43 6f 6d 70 6c 65 74 69 |ine auto|Completi|
|00000230| 6f 6e 41 63 74 69 6f 6e | 20 30 78 31 31 30 30 30 |onAction| 0x11000|
|00000240| 30 30 36 0d 0d 0d 63 6c | 61 73 73 20 50 6c 75 67 |006...cl|ass Plug|
|00000250| 69 6e 0d 09 7b 0d 70 75 | 62 6c 69 63 3a 0d 09 50 |in..{.pu|blic:..P|
|00000260| 6c 75 67 69 6e 28 63 6f | 6e 73 74 20 41 72 72 61 |lugin(co|nst Arra|
|00000270| 6e 67 65 43 61 6c 6c 62 | 61 63 6b 54 62 6c 2a 20 |ngeCallb|ackTbl* |
|00000280| 74 68 65 43 61 6c 6c 73 | 29 3b 0d 09 7e 50 6c 75 |theCalls|);..~Plu|
|00000290| 67 69 6e 28 29 3b 0d 09 | 0d 09 61 72 48 6f 6f 6b |gin();..|..arHook|
|000002a0| 52 65 73 75 6c 74 20 43 | 6c 69 63 6b 4e 6f 74 69 |Result C|lickNoti|
|000002b0| 66 79 28 20 61 72 43 6c | 69 63 6b 4c 6f 63 61 74 |fy( arCl|ickLocat|
|000002c0| 69 6f 6e 20 6c 6f 63 2c | 20 50 6f 69 6e 74 20 77 |ion loc,| Point w|
|000002d0| 68 65 72 65 2c 20 53 68 | 6f 72 74 20 6d 6f 64 69 |here, Sh|ort modi|
|000002e0| 66 69 65 72 73 2c 0d 09 | 09 09 09 09 09 09 09 09 |fiers,..|........|
|000002f0| 20 20 53 68 6f 72 74 20 | 63 6c 69 63 6b 43 6f 75 | Short |clickCou|
|00000300| 6e 74 2c 20 61 72 4e 6f | 74 65 49 44 20 6e 6f 74 |nt, arNo|teID not|
|00000310| 65 2c 20 61 72 46 69 65 | 6c 64 49 44 20 66 69 65 |e, arFie|ldID fie|
|00000320| 6c 64 2c 0d 09 09 09 09 | 09 09 09 09 09 20 20 61 |ld,.....|..... a|
|00000330| 72 50 61 74 68 49 44 20 | 70 61 74 68 20 29 3b 0d |rPathID |path );.|
|00000340| 09 61 72 48 6f 6f 6b 52 | 65 73 75 6c 74 20 4b 65 |.arHookR|esult Ke|
|00000350| 79 4e 6f 74 69 66 79 20 | 20 28 20 53 68 6f 72 74 |yNotify | ( Short|
|00000360| 20 74 68 65 43 68 61 72 | 2c 20 53 68 6f 72 74 20 | theChar|, Short |
|00000370| 6b 65 79 2c 20 53 68 6f | 72 74 20 6d 6f 64 69 66 |key, Sho|rt modif|
|00000380| 69 65 72 73 20 29 3b 0d | 09 61 72 48 6f 6f 6b 52 |iers );.|.arHookR|
|00000390| 65 73 75 6c 74 20 4d 65 | 6e 75 4e 6f 74 69 66 79 |esult Me|nuNotify|
|000003a0| 20 28 20 49 6e 74 65 67 | 65 72 20 63 6f 6d 6d 61 | ( Integ|er comma|
|000003b0| 6e 64 43 6f 64 65 2c 20 | 49 6e 74 65 67 65 72 20 |ndCode, |Integer |
|000003c0| 63 6f 6d 6d 61 6e 64 50 | 61 72 61 6d 2c 0d 09 09 |commandP|aram,...|
|000003d0| 09 09 09 09 09 09 09 20 | 20 53 68 6f 72 74 20 6d |....... | Short m|
|000003e0| 6f 64 69 66 69 65 72 73 | 20 29 3b 0d 09 61 72 48 |odifiers| );..arH|
|000003f0| 6f 6f 6b 52 65 73 75 6c | 74 20 46 69 65 6c 64 4e |ookResul|t FieldN|
|00000400| 6f 74 69 66 79 28 20 61 | 72 4e 6f 74 65 49 44 20 |otify( a|rNoteID |
|00000410| 6e 6f 74 65 2c 20 61 72 | 46 69 65 6c 64 49 44 20 |note, ar|FieldID |
|00000420| 66 69 65 6c 64 2c 20 61 | 72 46 69 65 6c 64 41 63 |field, a|rFieldAc|
|00000430| 74 69 6f 6e 20 61 63 74 | 69 6f 6e 2c 0d 09 09 09 |tion act|ion,....|
|00000440| 09 09 09 09 09 09 20 20 | 63 6f 6e 73 74 20 63 68 |...... |const ch|
|00000450| 61 72 2a 20 63 68 6f 69 | 63 65 54 65 78 74 20 29 |ar* choi|ceText )|
|00000460| 3b 0d 09 76 6f 69 64 20 | 20 20 20 20 20 20 20 20 |;..void | |
|00000470| 54 6f 70 69 63 4e 6f 74 | 69 66 79 28 20 61 72 54 |TopicNot|ify( arT|
|00000480| 6f 70 69 63 49 44 20 6e | 65 77 54 6f 70 69 63 2c |opicID n|ewTopic,|
|00000490| 20 61 72 57 69 6e 64 6f | 77 49 44 20 6e 65 77 57 | arWindo|wID newW|
|000004a0| 69 6e 64 6f 77 2c 0d 09 | 09 09 09 09 09 09 09 09 |indow,..|........|
|000004b0| 20 20 61 72 54 6f 70 69 | 63 41 63 74 69 6f 6e 20 | arTopi|cAction |
|000004c0| 61 63 74 69 6f 6e 20 29 | 3b 0d 09 76 6f 69 64 09 |action )|;..void.|
|000004d0| 09 09 20 54 69 63 6b 4e | 6f 74 69 66 79 20 28 20 |.. TickN|otify ( |
|000004e0| 20 29 3b 0d 09 61 72 48 | 6f 6f 6b 52 65 73 75 6c | );..arH|ookResul|
|000004f0| 74 20 46 69 6c 65 4e 6f | 74 69 66 79 20 28 20 61 |t FileNo|tify ( a|
|00000500| 72 46 69 6c 65 41 63 74 | 69 6f 6e 20 61 63 74 69 |rFileAct|ion acti|
|00000510| 6f 6e 20 29 3b 0d 09 61 | 72 48 6f 6f 6b 52 65 73 |on );..a|rHookRes|
|00000520| 75 6c 74 20 51 75 69 74 | 4e 6f 74 69 66 79 20 28 |ult Quit|Notify (|
|00000530| 20 20 29 3b 0d 09 76 6f | 69 64 20 20 20 20 20 20 | );..vo|id |
|00000540| 20 20 20 41 54 4d 4e 6f | 74 69 66 79 20 20 28 20 | ATMNo|tify ( |
|00000550| 20 29 3b 0d 09 0d 70 72 | 69 76 61 74 65 3a 0d 09 | );...pr|ivate:..|
|00000560| 63 6f 6e 73 74 20 41 72 | 72 61 6e 67 65 43 61 6c |const Ar|rangeCal|
|00000570| 6c 62 61 63 6b 54 62 6c | 2a 20 63 61 6c 6c 73 3b |lbackTbl|* calls;|
|00000580| 20 2f 2f 20 63 61 6c 6c | 62 61 63 6b 20 74 61 62 | // call|back tab|
|00000590| 6c 65 0d 09 0d 09 61 72 | 4e 6f 74 65 49 44 20 20 |le....ar|NoteID |
|000005a0| 73 65 6c 4e 6f 74 65 3b | 20 20 2f 2f 20 4e 6f 74 |selNote;| // Not|
|000005b0| 65 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 74 68 65 |e contai|ning the|
|000005c0| 20 63 75 72 72 65 6e 74 | 20 73 65 6c 65 63 74 69 | current| selecti|
|000005d0| 6f 6e 3b 20 6e 69 6c 20 | 69 66 20 74 68 65 72 65 |on; nil |if there|
|000005e0| 0d 09 09 09 09 09 09 09 | 20 20 2f 2f 20 69 73 20 |........| // is |
|000005f0| 6e 6f 20 61 63 74 69 76 | 65 20 74 65 78 74 20 73 |no activ|e text s|
|00000600| 65 6c 65 63 74 69 6f 6e | 2c 20 6f 72 20 69 66 20 |election|, or if |
|00000610| 74 68 65 20 73 65 6c 65 | 63 74 65 64 0d 09 09 09 |the sele|cted....|
|00000620| 09 09 09 09 20 20 2f 2f | 20 66 69 65 6c 64 20 69 |.... //| field i|
|00000630| 73 20 6e 6f 74 20 61 20 | 70 6f 70 75 70 20 66 69 |s not a |popup fi|
|00000640| 65 6c 64 2e 0d 09 0d 09 | 2f 2f 20 54 68 65 73 65 |eld.....|// These|
|00000650| 20 76 61 72 69 61 62 6c | 65 73 20 61 72 65 20 6f | variabl|es are o|
|00000660| 6e 6c 79 20 76 61 6c 69 | 64 20 69 66 20 73 65 6c |nly vali|d if sel|
|00000670| 4e 6f 74 65 20 69 73 20 | 6e 6f 6e 2d 6e 69 6c 2e |Note is |non-nil.|
|00000680| 0d 09 61 72 46 69 65 6c | 64 49 44 20 73 65 6c 46 |..arFiel|dID selF|
|00000690| 69 65 6c 64 3b 09 09 09 | 20 20 2f 2f 20 46 69 65 |ield;...| // Fie|
|000006a0| 6c 64 20 69 6e 20 77 68 | 69 63 68 20 74 68 65 20 |ld in wh|ich the |
|000006b0| 73 65 6c 65 63 74 69 6f | 6e 20 69 73 20 6d 61 64 |selectio|n is mad|
|000006c0| 65 2e 0d 09 49 6e 74 65 | 67 65 72 20 6c 61 73 74 |e...Inte|ger last|
|000006d0| 4b 65 79 54 69 6d 65 3b | 09 09 09 20 20 2f 2f 20 |KeyTime;|... // |
|000006e0| 54 69 63 6b 43 6f 75 6e | 74 20 77 68 65 6e 20 74 |TickCoun|t when t|
|000006f0| 68 65 20 75 73 65 72 20 | 6c 61 73 74 20 74 79 70 |he user |last typ|
|00000700| 65 64 20 61 20 6b 65 79 | 2e 0d 09 42 6f 6f 6c 65 |ed a key|...Boole|
|00000710| 61 6e 20 6c 61 73 74 4b | 65 79 57 61 73 42 61 63 |an lastK|eyWasBac|
|00000720| 6b 73 70 61 63 65 3b 20 | 2f 2f 20 54 72 75 65 20 |kspace; |// True |
|00000730| 69 66 20 6c 61 73 74 20 | 6b 65 79 20 65 76 65 6e |if last |key even|
|00000740| 74 20 77 61 73 20 61 20 | 62 61 63 6b 73 70 61 63 |t was a |backspac|
|00000750| 65 2e 0d 09 42 6f 6f 6c | 65 61 6e 20 74 65 78 74 |e...Bool|ean text|
|00000760| 49 73 44 69 72 74 79 3b | 09 09 09 20 20 2f 2f 20 |IsDirty;|... // |
|00000770| 54 72 75 65 20 69 66 20 | 74 68 65 20 75 73 65 72 |True if |the user|
|00000780| 20 68 61 73 20 6d 61 64 | 65 20 61 6e 79 20 65 64 | has mad|e any ed|
|00000790| 69 74 69 6e 67 0d 09 09 | 09 09 09 09 09 09 09 09 |iting...|........|
|000007a0| 20 20 2f 2f 20 63 68 61 | 6e 67 65 20 73 69 6e 63 | // cha|nge sinc|
|000007b0| 65 20 74 68 65 20 6c 61 | 73 74 20 63 61 6c 6c 20 |e the la|st call |
|000007c0| 74 6f 20 52 75 6e 43 6f | 6d 70 6c 65 74 69 6f 6e |to RunCo|mpletion|
|000007d0| 2e 0d 09 0d 09 76 6f 69 | 64 20 45 6e 74 65 72 46 |.....voi|d EnterF|
|000007e0| 69 65 6c 64 28 61 72 4e | 6f 74 65 49 44 20 6e 6f |ield(arN|oteID no|
|000007f0| 74 65 2c 20 61 72 46 69 | 65 6c 64 49 44 20 66 69 |te, arFi|eldID fi|
|00000800| 65 6c 64 29 3b 0d 09 76 | 6f 69 64 20 45 78 69 74 |eld);..v|oid Exit|
|00000810| 46 69 65 6c 64 28 29 3b | 0d 09 76 6f 69 64 20 4e |Field();|..void N|
|00000820| 6f 74 65 55 73 65 72 41 | 63 74 69 6f 6e 28 42 6f |oteUserA|ction(Bo|
|00000830| 6f 6c 65 61 6e 20 69 73 | 42 61 63 6b 73 70 61 63 |olean is|Backspac|
|00000840| 65 2c 20 42 6f 6f 6c 65 | 61 6e 20 69 73 44 69 72 |e, Boole|an isDir|
|00000850| 74 79 29 3b 0d 09 76 6f | 69 64 20 54 69 63 6b 28 |ty);..vo|id Tick(|
|00000860| 29 3b 0d 09 76 6f 69 64 | 20 52 75 6e 43 6f 6d 70 |);..void| RunComp|
|00000870| 6c 65 74 69 6f 6e 28 29 | 3b 0d 09 0d 09 42 6f 6f |letion()|;....Boo|
|00000880| 6c 65 61 6e 20 46 69 6e | 64 50 6f 70 75 70 4d 61 |lean Fin|dPopupMa|
|00000890| 74 63 68 28 20 63 6f 6e | 73 74 20 63 68 61 72 2a |tch( con|st char*|
|000008a0| 20 6d 61 74 63 68 54 65 | 78 74 2c 20 49 6e 74 65 | matchTe|xt, Inte|
|000008b0| 67 65 72 20 6d 61 74 63 | 68 54 65 78 74 4c 65 6e |ger matc|hTextLen|
|000008c0| 2c 0d 09 09 09 09 09 09 | 09 09 09 63 6f 6e 73 74 |,.......|...const|
|000008d0| 20 63 68 61 72 2a 20 70 | 6f 70 75 70 54 65 78 74 | char* p|opupText|
|000008e0| 2c 20 49 6e 74 65 67 65 | 72 20 70 6f 70 75 70 54 |, Intege|r popupT|
|000008f0| 65 78 74 4c 65 6e 2c 0d | 09 09 09 09 09 09 09 09 |extLen,.|........|
|00000900| 09 4f 55 54 20 63 6f 6e | 73 74 20 63 68 61 72 2a |.OUT con|st char*|
|00000910| 20 26 6d 61 74 63 68 53 | 74 61 72 74 2c 20 4f 55 | &matchS|tart, OU|
|00000920| 54 20 49 6e 74 65 67 65 | 72 20 26 6d 61 74 63 68 |T Intege|r &match|
|00000930| 4c 65 6e 20 29 3b 0d 09 | 7d 3b 20 2f 2f 20 50 6c |Len );..|}; // Pl|
|00000940| 75 67 69 6e 0d 0d 0d 2f | 2a 2a 2a 2a 2a 2a 2a 2a |ugin.../|********|
|00000950| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000970| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000980| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000990| 2a 2f 0d 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*/./****|********|
|000009a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009b0| 20 4d 61 69 6e 20 65 6e | 74 72 79 20 70 6f 69 6e | Main en|try poin|
|000009c0| 74 20 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |t ******|********|
|000009d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0d 2f |********|*****/./|
|000009e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 0d 2f 2a 20 52 |********|*/../* R|
|00000a30| 6f 6f 74 20 65 6e 74 72 | 79 20 70 6f 69 6e 74 20 |oot entr|y point |
|00000a40| 66 6f 72 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 2d |for the |module -|
|00000a50| 20 6d 75 73 74 20 62 65 | 20 74 68 65 20 66 69 72 | must be| the fir|
|00000a60| 73 74 20 66 75 6e 63 74 | 69 6f 6e 20 69 6e 20 74 |st funct|ion in t|
|00000a70| 68 65 0d 20 2a 20 66 69 | 6c 65 2c 20 73 6f 20 74 |he. * fi|le, so t|
|00000a80| 68 61 74 20 74 68 65 20 | 6c 69 6e 6b 65 72 20 77 |hat the |linker w|
|00000a90| 69 6c 6c 20 70 6c 61 63 | 65 20 69 74 20 66 69 72 |ill plac|e it fir|
|00000aa0| 73 74 20 69 6e 20 74 68 | 65 20 63 6f 64 65 20 73 |st in th|e code s|
|00000ab0| 65 67 6d 65 6e 74 2e 0d | 20 2a 20 54 68 69 73 20 |egment..| * This |
|00000ac0| 69 73 20 74 68 65 20 72 | 6f 75 74 69 6e 65 20 77 |is the r|outine w|
|00000ad0| 68 69 63 68 20 41 72 72 | 61 6e 67 65 20 63 61 6c |hich Arr|ange cal|
|00000ae0| 6c 73 20 61 74 20 61 70 | 70 6c 69 63 61 74 69 6f |ls at ap|plicatio|
|00000af0| 6e 20 73 74 61 72 74 75 | 70 20 74 69 6d 65 0d 20 |n startu|p time. |
|00000b00| 2a 20 28 61 6e 64 20 61 | 67 61 69 6e 20 61 74 20 |* (and a|gain at |
|00000b10| 71 75 69 74 20 74 69 6d | 65 29 2e 0d 20 2a 20 0d |quit tim|e).. * .|
|00000b20| 20 2a 20 4d 6f 73 74 20 | 70 6c 75 67 2d 69 6e 73 | * Most |plug-ins|
|00000b30| 20 77 69 6c 6c 20 6e 6f | 74 20 6e 65 65 64 20 74 | will no|t need t|
|00000b40| 6f 20 6d 6f 64 69 66 79 | 20 74 68 69 73 20 72 6f |o modify| this ro|
|00000b50| 75 74 69 6e 65 20 6f 72 | 20 74 68 65 20 48 6f 6f |utine or| the Hoo|
|00000b60| 6b 20 66 75 6e 63 74 69 | 6f 6e 73 0d 20 2a 20 69 |k functi|ons. * i|
|00000b70| 6d 6d 65 64 69 61 74 65 | 6c 79 20 66 6f 6c 6c 6f |mmediate|ly follo|
|00000b80| 77 69 6e 67 2e 20 20 41 | 6c 6c 20 63 75 73 74 6f |wing. A|ll custo|
|00000b90| 6d 69 7a 61 74 69 6f 6e | 20 63 61 6e 20 62 65 20 |mization| can be |
|00000ba0| 64 6f 6e 65 20 69 6e 20 | 74 68 65 20 22 50 6c 75 |done in |the "Plu|
|00000bb0| 67 69 6e 22 0d 20 2a 20 | 73 65 63 74 69 6f 6e 20 |gin". * |section |
|00000bc0| 28 62 65 6c 6f 77 29 2e | 0d 20 2a 2f 0d 65 78 74 |(below).|. */.ext|
|00000bd0| 65 72 6e 20 22 43 22 20 | 49 6e 74 65 67 65 72 20 |ern "C" |Integer |
|00000be0| 4f 75 72 4d 6f 64 75 6c | 65 52 6f 6f 74 28 20 4d |OurModul|eRoot( M|
|00000bf0| 6f 64 75 6c 65 50 61 72 | 61 6d 42 6c 6f 63 6b 20 |odulePar|amBlock |
|00000c00| 2a 70 62 2c 20 4d 6f 64 | 75 6c 65 52 6f 6f 74 41 |*pb, Mod|uleRootA|
|00000c10| 63 74 69 6f 6e 20 61 63 | 74 69 6f 6e 2c 0d 09 09 |ction ac|tion,...|
|00000c20| 09 09 09 09 09 09 09 09 | 09 20 49 6e 74 65 67 65 |........|. Intege|
|00000c30| 72 20 2f 2a 70 31 2a 2f | 20 29 0d 09 7b 0d 09 2f |r /*p1*/| )..{../|
|00000c40| 2a 20 45 78 74 72 61 63 | 74 20 74 68 65 20 63 61 |* Extrac|t the ca|
|00000c50| 6c 6c 62 61 63 6b 20 74 | 61 62 6c 65 20 66 72 6f |llback t|able fro|
|00000c60| 6d 20 6f 75 72 20 70 61 | 72 61 6d 65 74 65 72 20 |m our pa|rameter |
|00000c70| 62 6c 6f 63 6b 2c 20 61 | 6e 64 20 63 6f 65 72 63 |block, a|nd coerc|
|00000c80| 65 20 69 74 0d 09 20 2a | 20 74 6f 20 74 68 65 20 |e it.. *| to the |
|00000c90| 65 78 74 65 6e 64 65 64 | 20 41 72 72 61 6e 67 65 |extended| Arrange|
|00000ca0| 20 74 61 62 6c 65 2e 0d | 09 20 2a 2f 0d 09 41 72 | table..|. */..Ar|
|00000cb0| 72 61 6e 67 65 43 61 6c | 6c 62 61 63 6b 54 62 6c |rangeCal|lbackTbl|
|00000cc0| 2a 20 63 61 6c 6c 73 20 | 3d 20 28 41 72 72 61 6e |* calls |= (Arran|
|00000cd0| 67 65 43 61 6c 6c 62 61 | 63 6b 54 62 6c 2a 29 28 |geCallba|ckTbl*)(|
|00000ce0| 70 62 2d 3e 63 61 6c 6c | 73 29 3b 0d 09 0d 09 73 |pb->call|s);....s|
|00000cf0| 77 69 74 63 68 20 28 61 | 63 74 69 6f 6e 29 0d 09 |witch (a|ction)..|
|00000d00| 09 7b 0d 09 09 63 61 73 | 65 20 6d 72 4c 6f 61 64 |.{...cas|e mrLoad|
|00000d10| 3a 0d 09 09 09 7b 0d 09 | 09 09 2f 2f 20 41 6c 6c |:....{..|..// All|
|00000d20| 6f 63 61 74 65 20 6d 65 | 6d 6f 72 79 20 61 6e 64 |ocate me|mory and|
|00000d30| 20 63 72 65 61 74 65 20 | 61 20 6e 65 77 20 50 6c | create |a new Pl|
|00000d40| 75 67 69 6e 20 6f 62 6a | 65 63 74 2e 0d 09 09 09 |ugin obj|ect.....|
|00000d50| 76 6f 69 64 2a 20 73 74 | 6f 72 61 67 65 20 3d 20 |void* st|orage = |
|00000d60| 63 61 6c 6c 73 2d 3e 6d | 65 6d 2d 3e 41 6c 6c 6f |calls->m|em->Allo|
|00000d70| 63 4d 65 6d 28 20 73 69 | 7a 65 6f 66 28 50 6c 75 |cMem( si|zeof(Plu|
|00000d80| 67 69 6e 29 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |gin),...|........|
|00000d90| 09 09 09 09 09 20 20 61 | 6d 46 72 65 65 53 74 6f |..... a|mFreeSto|
|00000da0| 72 65 20 7c 20 61 6d 45 | 72 72 49 66 4e 6f 4d 65 |re | amE|rrIfNoMe|
|00000db0| 6d 20 29 3b 0d 09 09 09 | 70 62 2d 3e 6d 6f 64 75 |m );....|pb->modu|
|00000dc0| 6c 65 52 65 66 63 6f 6e | 20 3d 20 75 49 6e 74 65 |leRefcon| = uInte|
|00000dd0| 67 65 72 28 6e 65 77 28 | 73 74 6f 72 61 67 65 29 |ger(new(|storage)|
|00000de0| 20 50 6c 75 67 69 6e 28 | 63 61 6c 6c 73 29 29 3b | Plugin(|calls));|
|00000df0| 0d 09 09 09 72 65 74 75 | 72 6e 20 31 3b 0d 09 09 |....retu|rn 1;...|
|00000e00| 09 7d 0d 09 09 0d 09 09 | 63 61 73 65 20 6d 72 55 |.}......|case mrU|
|00000e10| 6e 6c 6f 61 64 3a 0d 09 | 09 09 7b 0d 09 09 09 2f |nload:..|..{..../|
|00000e20| 2a 20 44 69 73 70 6f 73 | 65 20 6f 66 20 74 68 65 |* Dispos|e of the|
|00000e30| 20 50 6c 75 67 69 6e 20 | 6f 62 6a 65 63 74 20 61 | Plugin |object a|
|00000e40| 6e 64 20 72 65 6c 65 61 | 73 65 20 74 68 65 20 6d |nd relea|se the m|
|00000e50| 65 6d 6f 72 79 0d 09 09 | 09 20 2a 20 69 74 20 6f |emory...|. * it o|
|00000e60| 63 63 75 70 69 65 73 2e | 0d 09 09 09 20 2a 2f 0d |ccupies.|.... */.|
|00000e70| 09 09 09 64 65 6c 65 74 | 65 20 28 50 6c 75 67 69 |...delet|e (Plugi|
|00000e80| 6e 2a 29 28 70 62 2d 3e | 6d 6f 64 75 6c 65 52 65 |n*)(pb->|moduleRe|
|00000e90| 66 63 6f 6e 29 3b 0d 09 | 09 09 63 61 6c 6c 73 2d |fcon);..|..calls-|
|00000ea0| 3e 6d 65 6d 2d 3e 44 65 | 61 6c 6c 6f 63 4d 65 6d |>mem->De|allocMem|
|00000eb0| 28 28 76 6f 69 64 2a 29 | 28 70 62 2d 3e 6d 6f 64 |((void*)|(pb->mod|
|00000ec0| 75 6c 65 52 65 66 63 6f | 6e 29 2c 20 61 6d 46 72 |uleRefco|n), amFr|
|00000ed0| 65 65 53 74 6f 72 65 29 | 3b 0d 09 09 09 72 65 74 |eeStore)|;....ret|
|00000ee0| 75 72 6e 20 30 3b 0d 09 | 09 09 7d 0d 09 09 0d 09 |urn 0;..|..}.....|
|00000ef0| 09 63 61 73 65 20 6d 72 | 46 69 6e 64 45 6e 74 72 |.case mr|FindEntr|
|00000f00| 79 3a 0d 09 09 64 65 66 | 61 75 6c 74 3a 0d 09 09 |y:...def|ault:...|
|00000f10| 09 7b 0d 09 09 09 2f 2a | 20 54 68 69 73 20 6d 6f |.{..../*| This mo|
|00000f20| 64 75 6c 65 20 63 6f 6e | 74 61 69 6e 73 20 6e 6f |dule con|tains no|
|00000f30| 20 65 78 74 65 6e 64 65 | 64 20 65 6e 74 72 79 20 | extende|d entry |
|00000f40| 70 6f 69 6e 74 73 2c 20 | 73 6f 20 77 65 20 61 6c |points, |so we al|
|00000f50| 77 61 79 73 0d 09 09 09 | 20 2a 20 72 65 74 75 72 |ways....| * retur|
|00000f60| 6e 20 30 20 66 6f 72 20 | 74 68 65 20 6d 72 46 69 |n 0 for |the mrFi|
|00000f70| 6e 64 45 6e 74 72 79 20 | 6d 65 73 73 61 67 65 2e |ndEntry |message.|
|00000f80| 20 20 4d 6f 73 74 20 70 | 6c 75 67 2d 69 6e 73 20 | Most p|lug-ins |
|00000f90| 77 69 6c 6c 20 6e 6f 74 | 0d 09 09 09 20 2a 20 75 |will not|.... * u|
|00000fa0| 73 65 20 65 78 74 65 6e | 64 65 64 20 65 6e 74 72 |se exten|ded entr|
|00000fb0| 79 20 70 6f 69 6e 74 73 | 2e 0d 09 09 09 20 2a 2f |y points|..... */|
|00000fc0| 0d 09 09 09 72 65 74 75 | 72 6e 20 30 3b 0d 09 09 |....retu|rn 0;...|
|00000fd0| 09 7d 0d 09 09 0d 09 09 | 7d 20 2f 2f 20 73 77 69 |.}......|} // swi|
|00000fe0| 74 63 68 20 28 61 63 74 | 69 6f 6e 29 0d 09 0d 09 |tch (act|ion)....|
|00000ff0| 7d 20 2f 2f 20 4f 75 72 | 4d 6f 64 75 6c 65 52 6f |} // Our|ModuleRo|
|00001000| 6f 74 0d 0d 0d 2f 2a 20 | 54 68 65 73 65 20 68 6f |ot.../* |These ho|
|00001010| 6f 6b 20 66 75 6e 63 74 | 69 6f 6e 73 20 73 69 6d |ok funct|ions sim|
|00001020| 70 6c 79 20 70 61 73 73 | 20 63 6f 6e 74 72 6f 6c |ply pass| control|
|00001030| 20 74 6f 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 | to the |appropri|
|00001040| 61 74 65 20 66 75 6e 63 | 74 69 6f 6e 0d 20 2a 20 |ate func|tion. * |
|00001050| 69 6e 20 74 68 65 20 50 | 6c 75 67 69 6e 20 6f 62 |in the P|lugin ob|
|00001060| 6a 65 63 74 2e 0d 20 2a | 2f 0d 73 74 61 74 69 63 |ject.. *|/.static|
|00001070| 20 61 72 48 6f 6f 6b 52 | 65 73 75 6c 74 20 4f 75 | arHookR|esult Ou|
|00001080| 72 43 6c 69 63 6b 48 6f | 6f 6b 28 20 4d 6f 64 75 |rClickHo|ok( Modu|
|00001090| 6c 65 50 61 72 61 6d 42 | 6c 6f 63 6b 2a 20 70 62 |leParamB|lock* pb|
|000010a0| 2c 20 61 72 43 6c 69 63 | 6b 4c 6f 63 61 74 69 6f |, arClic|kLocatio|
|000010b0| 6e 20 6c 6f 63 2c 0d 09 | 09 09 09 09 09 09 09 09 |n loc,..|........|
|000010c0| 09 09 20 50 6f 69 6e 74 | 20 77 68 65 72 65 2c 20 |.. Point| where, |
|000010d0| 70 53 68 6f 72 74 20 6d | 6f 64 69 66 69 65 72 73 |pShort m|odifiers|
|000010e0| 2c 20 70 53 68 6f 72 74 | 20 63 6c 69 63 6b 43 6f |, pShort| clickCo|
|000010f0| 75 6e 74 2c 0d 09 09 09 | 09 09 09 09 09 09 09 09 |unt,....|........|
|00001100| 20 61 72 4e 6f 74 65 49 | 44 20 6e 6f 74 65 2c 20 | arNoteI|D note, |
|00001110| 61 72 46 69 65 6c 64 49 | 44 20 66 69 65 6c 64 2c |arFieldI|D field,|
|00001120| 0d 09 09 09 09 09 09 09 | 09 09 09 09 20 61 72 50 |........|.... arP|
|00001130| 61 74 68 49 44 20 70 61 | 74 68 20 45 4e 44 50 20 |athID pa|th ENDP |
|00001140| 29 0d 09 7b 0d 09 72 65 | 74 75 72 6e 20 28 28 50 |)..{..re|turn ((P|
|00001150| 6c 75 67 69 6e 2a 29 28 | 70 62 2d 3e 6d 6f 64 75 |lugin*)(|pb->modu|
|00001160| 6c 65 52 65 66 63 6f 6e | 29 29 2d 3e 43 6c 69 63 |leRefcon|))->Clic|
|00001170| 6b 4e 6f 74 69 66 79 28 | 20 6c 6f 63 2c 20 77 68 |kNotify(| loc, wh|
|00001180| 65 72 65 2c 20 6d 6f 64 | 69 66 69 65 72 73 2c 0d |ere, mod|ifiers,.|
|00001190| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000011a0| 09 09 63 6c 69 63 6b 43 | 6f 75 6e 74 2c 20 6e 6f |..clickC|ount, no|
|000011b0| 74 65 2c 20 66 69 65 6c | 64 2c 0d 09 09 09 09 09 |te, fiel|d,......|
|000011c0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 70 61 74 |........|.....pat|
|000011d0| 68 20 29 3b 0d 09 7d 0d | 0d 0d 73 74 61 74 69 63 |h );..}.|..static|
|000011e0| 20 61 72 48 6f 6f 6b 52 | 65 73 75 6c 74 20 4f 75 | arHookR|esult Ou|
|000011f0| 72 4b 65 79 48 6f 6f 6b | 28 20 4d 6f 64 75 6c 65 |rKeyHook|( Module|
|00001200| 50 61 72 61 6d 42 6c 6f | 63 6b 2a 20 70 62 2c 20 |ParamBlo|ck* pb, |
|00001210| 70 53 68 6f 72 74 20 74 | 68 65 43 68 61 72 2c 20 |pShort t|heChar, |
|00001220| 70 53 68 6f 72 74 20 6b | 65 79 2c 0d 09 09 09 09 |pShort k|ey,.....|
|00001230| 09 09 09 09 09 09 20 20 | 70 53 68 6f 72 74 20 6d |...... |pShort m|
|00001240| 6f 64 69 66 69 65 72 73 | 20 45 4e 44 50 20 29 0d |odifiers| ENDP ).|
|00001250| 09 7b 0d 09 72 65 74 75 | 72 6e 20 28 28 50 6c 75 |.{..retu|rn ((Plu|
|00001260| 67 69 6e 2a 29 28 70 62 | 2d 3e 6d 6f 64 75 6c 65 |gin*)(pb|->module|
|00001270| 52 65 66 63 6f 6e 29 29 | 2d 3e 4b 65 79 4e 6f 74 |Refcon))|->KeyNot|
|00001280| 69 66 79 28 74 68 65 43 | 68 61 72 2c 20 6b 65 79 |ify(theC|har, key|
|00001290| 2c 20 6d 6f 64 69 66 69 | 65 72 73 29 3b 0d 09 7d |, modifi|ers);..}|
|000012a0| 0d 0d 0d 73 74 61 74 69 | 63 20 61 72 48 6f 6f 6b |...stati|c arHook|
|000012b0| 52 65 73 75 6c 74 20 4f | 75 72 4d 65 6e 75 48 6f |Result O|urMenuHo|
|000012c0| 6f 6b 28 20 4d 6f 64 75 | 6c 65 50 61 72 61 6d 42 |ok( Modu|leParamB|
|000012d0| 6c 6f 63 6b 2a 20 70 62 | 2c 20 49 6e 74 65 67 65 |lock* pb|, Intege|
|000012e0| 72 20 63 6f 6d 6d 61 6e | 64 43 6f 64 65 2c 0d 09 |r comman|dCode,..|
|000012f0| 09 09 09 09 09 09 09 09 | 09 09 49 6e 74 65 67 65 |........|..Intege|
|00001300| 72 20 63 6f 6d 6d 61 6e | 64 50 61 72 61 6d 2c 20 |r comman|dParam, |
|00001310| 70 53 68 6f 72 74 20 6d | 6f 64 69 66 69 65 72 73 |pShort m|odifiers|
|00001320| 20 45 4e 44 50 20 29 0d | 09 7b 0d 09 72 65 74 75 | ENDP ).|.{..retu|
|00001330| 72 6e 20 28 28 50 6c 75 | 67 69 6e 2a 29 28 70 62 |rn ((Plu|gin*)(pb|
|00001340| 2d 3e 6d 6f 64 75 6c 65 | 52 65 66 63 6f 6e 29 29 |->module|Refcon))|
|00001350| 2d 3e 4d 65 6e 75 4e 6f | 74 69 66 79 28 20 63 6f |->MenuNo|tify( co|
|00001360| 6d 6d 61 6e 64 43 6f 64 | 65 2c 20 63 6f 6d 6d 61 |mmandCod|e, comma|
|00001370| 6e 64 50 61 72 61 6d 2c | 0d 09 09 09 09 09 09 09 |ndParam,|........|
|00001380| 09 09 09 09 09 09 09 09 | 09 20 20 20 20 20 6d 6f |........|. mo|
|00001390| 64 69 66 69 65 72 73 20 | 29 3b 0d 09 7d 0d 0d 0d |difiers |);..}...|
|000013a0| 73 74 61 74 69 63 20 61 | 72 48 6f 6f 6b 52 65 73 |static a|rHookRes|
|000013b0| 75 6c 74 20 4f 75 72 46 | 69 65 6c 64 48 6f 6f 6b |ult OurF|ieldHook|
|000013c0| 28 20 4d 6f 64 75 6c 65 | 50 61 72 61 6d 42 6c 6f |( Module|ParamBlo|
|000013d0| 63 6b 2a 20 70 62 2c 20 | 61 72 4e 6f 74 65 49 44 |ck* pb, |arNoteID|
|000013e0| 20 6e 6f 74 65 2c 0d 09 | 09 09 09 09 09 09 09 09 | note,..|........|
|000013f0| 09 09 20 61 72 46 69 65 | 6c 64 49 44 20 66 69 65 |.. arFie|ldID fie|
|00001400| 6c 64 2c 20 61 72 46 69 | 65 6c 64 41 63 74 69 6f |ld, arFi|eldActio|
|00001410| 6e 20 61 63 74 69 6f 6e | 2c 0d 09 09 09 09 09 09 |n action|,.......|
|00001420| 09 09 09 09 09 20 63 6f | 6e 73 74 20 63 68 61 72 |..... co|nst char|
|00001430| 2a 20 63 68 6f 69 63 65 | 54 65 78 74 20 45 4e 44 |* choice|Text END|
|00001440| 50 20 29 0d 09 7b 0d 09 | 72 65 74 75 72 6e 20 28 |P )..{..|return (|
|00001450| 28 50 6c 75 67 69 6e 2a | 29 28 70 62 2d 3e 6d 6f |(Plugin*|)(pb->mo|
|00001460| 64 75 6c 65 52 65 66 63 | 6f 6e 29 29 2d 3e 46 69 |duleRefc|on))->Fi|
|00001470| 65 6c 64 4e 6f 74 69 66 | 79 28 20 6e 6f 74 65 2c |eldNotif|y( note,|
|00001480| 20 66 69 65 6c 64 2c 20 | 61 63 74 69 6f 6e 2c 0d | field, |action,.|
|00001490| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000014a0| 09 09 63 68 6f 69 63 65 | 54 65 78 74 20 29 3b 0d |..choice|Text );.|
|000014b0| 09 7d 0d 0d 0d 73 74 61 | 74 69 63 20 76 6f 69 64 |.}...sta|tic void|
|000014c0| 20 4f 75 72 54 6f 70 69 | 63 48 6f 6f 6b 28 20 4d | OurTopi|cHook( M|
|000014d0| 6f 64 75 6c 65 50 61 72 | 61 6d 42 6c 6f 63 6b 2a |odulePar|amBlock*|
|000014e0| 20 70 62 2c 20 61 72 54 | 6f 70 69 63 49 44 20 6e | pb, arT|opicID n|
|000014f0| 65 77 54 6f 70 69 63 2c | 0d 09 09 09 09 09 09 09 |ewTopic,|........|
|00001500| 09 20 20 61 72 57 69 6e | 64 6f 77 49 44 20 6e 65 |. arWin|dowID ne|
|00001510| 77 57 69 6e 64 6f 77 2c | 20 61 72 54 6f 70 69 63 |wWindow,| arTopic|
|00001520| 41 63 74 69 6f 6e 20 61 | 63 74 69 6f 6e 20 45 4e |Action a|ction EN|
|00001530| 44 50 20 29 0d 09 7b 0d | 09 28 28 50 6c 75 67 69 |DP )..{.|.((Plugi|
|00001540| 6e 2a 29 28 70 62 2d 3e | 6d 6f 64 75 6c 65 52 65 |n*)(pb->|moduleRe|
|00001550| 66 63 6f 6e 29 29 2d 3e | 54 6f 70 69 63 4e 6f 74 |fcon))->|TopicNot|
|00001560| 69 66 79 28 6e 65 77 54 | 6f 70 69 63 2c 20 6e 65 |ify(newT|opic, ne|
|00001570| 77 57 69 6e 64 6f 77 2c | 20 61 63 74 69 6f 6e 29 |wWindow,| action)|
|00001580| 3b 0d 09 7d 0d 0d 0d 73 | 74 61 74 69 63 20 76 6f |;..}...s|tatic vo|
|00001590| 69 64 20 4f 75 72 54 69 | 63 6b 48 6f 6f 6b 28 4d |id OurTi|ckHook(M|
|000015a0| 6f 64 75 6c 65 50 61 72 | 61 6d 42 6c 6f 63 6b 2a |odulePar|amBlock*|
|000015b0| 20 70 62 20 45 4e 44 50 | 29 0d 09 7b 0d 09 28 28 | pb ENDP|)..{..((|
|000015c0| 50 6c 75 67 69 6e 2a 29 | 28 70 62 2d 3e 6d 6f 64 |Plugin*)|(pb->mod|
|000015d0| 75 6c 65 52 65 66 63 6f | 6e 29 29 2d 3e 54 69 63 |uleRefco|n))->Tic|
|000015e0| 6b 4e 6f 74 69 66 79 28 | 29 3b 0d 09 7d 0d 0d 0d |kNotify(|);..}...|
|000015f0| 73 74 61 74 69 63 20 61 | 72 48 6f 6f 6b 52 65 73 |static a|rHookRes|
|00001600| 75 6c 74 20 4f 75 72 46 | 69 6c 65 48 6f 6f 6b 28 |ult OurF|ileHook(|
|00001610| 4d 6f 64 75 6c 65 50 61 | 72 61 6d 42 6c 6f 63 6b |ModulePa|ramBlock|
|00001620| 2a 20 70 62 2c 20 61 72 | 46 69 6c 65 41 63 74 69 |* pb, ar|FileActi|
|00001630| 6f 6e 20 61 63 74 69 6f | 6e 20 45 4e 44 50 29 0d |on actio|n ENDP).|
|00001640| 09 7b 0d 09 72 65 74 75 | 72 6e 20 28 28 50 6c 75 |.{..retu|rn ((Plu|
|00001650| 67 69 6e 2a 29 28 70 62 | 2d 3e 6d 6f 64 75 6c 65 |gin*)(pb|->module|
|00001660| 52 65 66 63 6f 6e 29 29 | 2d 3e 46 69 6c 65 4e 6f |Refcon))|->FileNo|
|00001670| 74 69 66 79 28 61 63 74 | 69 6f 6e 29 3b 0d 09 7d |tify(act|ion);..}|
|00001680| 0d 0d 0d 73 74 61 74 69 | 63 20 61 72 48 6f 6f 6b |...stati|c arHook|
|00001690| 52 65 73 75 6c 74 20 4f | 75 72 51 75 69 74 48 6f |Result O|urQuitHo|
|000016a0| 6f 6b 28 4d 6f 64 75 6c | 65 50 61 72 61 6d 42 6c |ok(Modul|eParamBl|
|000016b0| 6f 63 6b 2a 20 70 62 20 | 45 4e 44 50 29 0d 09 7b |ock* pb |ENDP)..{|
|000016c0| 0d 09 72 65 74 75 72 6e | 20 28 28 50 6c 75 67 69 |..return| ((Plugi|
|000016d0| 6e 2a 29 28 70 62 2d 3e | 6d 6f 64 75 6c 65 52 65 |n*)(pb->|moduleRe|
|000016e0| 66 63 6f 6e 29 29 2d 3e | 51 75 69 74 4e 6f 74 69 |fcon))->|QuitNoti|
|000016f0| 66 79 28 29 3b 0d 09 7d | 0d 0d 0d 73 74 61 74 69 |fy();..}|...stati|
|00001700| 63 20 76 6f 69 64 20 4f | 75 72 41 54 4d 48 6f 6f |c void O|urATMHoo|
|00001710| 6b 28 4d 6f 64 75 6c 65 | 50 61 72 61 6d 42 6c 6f |k(Module|ParamBlo|
|00001720| 63 6b 2a 20 70 62 20 45 | 4e 44 50 29 0d 09 7b 0d |ck* pb E|NDP)..{.|
|00001730| 09 28 28 50 6c 75 67 69 | 6e 2a 29 28 70 62 2d 3e |.((Plugi|n*)(pb->|
|00001740| 6d 6f 64 75 6c 65 52 65 | 66 63 6f 6e 29 29 2d 3e |moduleRe|fcon))->|
|00001750| 41 54 4d 4e 6f 74 69 66 | 79 28 29 3b 0d 09 7d 0d |ATMNotif|y();..}.|
|00001760| 0d 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|00001770| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001780| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001790| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 2f 2a |********|****/./*|
|000017b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017d0| 20 50 6c 75 67 69 6e 20 | 2a 2a 2a 2a 2a 2a 2a 2a | Plugin |********|
|000017e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 2f 2a 2a 2a 2a 2a |********|/./*****|
|00001800| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001810| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001840| 2a 2a 2a 2a 2f 0d 0d 2f | 2a 20 4e 75 6d 62 65 72 |****/../|* Number|
|00001850| 20 6f 66 20 74 69 63 6b | 73 20 61 66 74 65 72 20 | of tick|s after |
|00001860| 61 20 73 74 61 6e 64 61 | 72 64 20 6b 65 79 64 6f |a standa|rd keydo|
|00001870| 77 6e 20 65 76 65 6e 74 | 20 62 65 66 6f 72 65 20 |wn event| before |
|00001880| 77 65 20 74 72 79 20 74 | 6f 20 63 6f 6d 70 6c 65 |we try t|o comple|
|00001890| 74 65 0d 20 2a 20 74 68 | 65 20 74 65 78 74 2e 0d |te. * th|e text..|
|000018a0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 63 6f 6d 70 | */.#def|ine comp|
|000018b0| 6c 65 74 69 6f 6e 44 65 | 6c 61 79 20 31 35 0d 0d |letionDe|lay 15..|
|000018c0| 0d 2f 2a 20 4e 75 6d 62 | 65 72 20 6f 66 20 74 69 |./* Numb|er of ti|
|000018d0| 63 6b 73 20 61 66 74 65 | 72 20 61 20 62 61 63 6b |cks afte|r a back|
|000018e0| 73 70 61 63 65 20 65 76 | 65 6e 74 20 62 65 66 6f |space ev|ent befo|
|000018f0| 72 65 20 77 65 20 74 72 | 79 20 74 6f 20 63 6f 6d |re we tr|y to com|
|00001900| 70 6c 65 74 65 20 74 68 | 65 0d 20 2a 20 74 65 78 |plete th|e. * tex|
|00001910| 74 2e 0d 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 62 |t.. */.#|define b|
|00001920| 61 63 6b 73 70 61 63 65 | 44 65 6c 61 79 20 36 30 |ackspace|Delay 60|
|00001930| 0d 0d 0d 2f 2a 20 43 6f | 6e 73 74 72 75 63 74 20 |.../* Co|nstruct |
|00001940| 61 20 50 6c 75 67 69 6e | 20 6f 62 6a 65 63 74 2e |a Plugin| object.|
|00001950| 20 20 54 68 69 73 20 69 | 73 20 63 61 6c 6c 65 64 | This i|s called|
|00001960| 20 6f 6e 63 65 2c 20 66 | 72 6f 6d 20 74 68 65 20 | once, f|rom the |
|00001970| 4f 75 72 4d 6f 64 75 6c | 65 52 6f 6f 74 0d 20 2a |OurModul|eRoot. *|
|00001980| 20 66 75 6e 63 74 69 6f | 6e 2c 20 77 68 65 6e 20 | functio|n, when |
|00001990| 74 68 65 20 6d 6f 64 75 | 6c 65 20 69 73 20 69 6e |the modu|le is in|
|000019a0| 69 74 69 61 6c 69 7a 65 | 64 20 28 69 2e 65 2e 20 |itialize|d (i.e. |
|000019b0| 61 74 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 73 |at appli|cation s|
|000019c0| 74 61 72 74 75 70 20 74 | 69 6d 65 29 2e 0d 20 2a |tartup t|ime).. *|
|000019d0| 2f 0d 50 6c 75 67 69 6e | 3a 3a 50 6c 75 67 69 6e |/.Plugin|::Plugin|
|000019e0| 28 63 6f 6e 73 74 20 41 | 72 72 61 6e 67 65 43 61 |(const A|rrangeCa|
|000019f0| 6c 6c 62 61 63 6b 54 62 | 6c 2a 20 74 68 65 43 61 |llbackTb|l* theCa|
|00001a00| 6c 6c 73 29 0d 09 7b 0d | 09 2f 2f 20 52 65 63 6f |lls)..{.|.// Reco|
|00001a10| 72 64 20 74 68 65 20 63 | 61 6c 6c 62 61 63 6b 20 |rd the c|allback |
|00001a20| 74 61 62 6c 65 20 66 6f | 72 20 66 75 74 75 72 65 |table fo|r future|
|00001a30| 20 75 73 65 2e 0d 09 63 | 61 6c 6c 73 20 3d 20 74 | use...c|alls = t|
|00001a40| 68 65 43 61 6c 6c 73 3b | 0d 09 0d 09 2f 2a 20 54 |heCalls;|..../* T|
|00001a50| 68 65 73 65 20 63 6f 6d | 6d 61 6e 64 73 2c 20 69 |hese com|mands, i|
|00001a60| 66 20 75 6e 2d 63 6f 6d | 6d 65 6e 74 65 64 2d 6f |f un-com|mented-o|
|00001a70| 75 74 2c 20 72 65 67 69 | 73 74 65 72 20 74 68 69 |ut, regi|ster thi|
|00001a80| 73 20 70 6c 75 67 69 6e | 20 74 6f 20 62 65 20 63 |s plugin| to be c|
|00001a90| 61 6c 6c 65 64 0d 09 20 | 2a 20 62 79 20 41 72 72 |alled.. |* by Arr|
|00001aa0| 61 6e 67 65 20 77 68 65 | 6e 20 76 61 72 69 6f 75 |ange whe|n variou|
|00001ab0| 73 20 65 76 65 6e 74 73 | 20 6f 63 63 75 72 2e 20 |s events| occur. |
|00001ac0| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 66 | For exa|mple, if|
|00001ad0| 20 79 6f 75 20 75 6e 2d | 63 6f 6d 6d 65 6e 74 2d | you un-|comment-|
|00001ae0| 6f 75 74 0d 09 20 2a 20 | 74 68 65 20 63 61 6c 6c |out.. * |the call|
|00001af0| 20 74 6f 20 53 65 74 43 | 6c 69 63 6b 48 6f 6f 6b | to SetC|lickHook|
|00001b00| 2c 20 74 68 65 6e 20 50 | 6c 75 67 69 6e 3a 3a 43 |, then P|lugin::C|
|00001b10| 6c 69 63 6b 4e 6f 74 69 | 66 79 20 77 69 6c 6c 20 |lickNoti|fy will |
|00001b20| 62 65 20 63 61 6c 6c 65 | 64 0d 09 20 2a 20 77 68 |be calle|d.. * wh|
|00001b30| 65 6e 65 76 65 72 20 74 | 68 65 20 75 73 65 72 20 |enever t|he user |
|00001b40| 63 6c 69 63 6b 73 20 69 | 6e 20 61 6e 79 20 6f 66 |clicks i|n any of|
|00001b50| 20 74 68 65 20 6c 6f 63 | 61 74 69 6f 6e 73 20 64 | the loc|ations d|
|00001b60| 65 73 63 72 69 62 65 64 | 20 69 6e 20 74 68 65 0d |escribed| in the.|
|00001b70| 09 20 2a 20 61 72 43 6c | 69 63 6b 4c 6f 63 61 74 |. * arCl|ickLocat|
|00001b80| 69 6f 6e 20 65 6e 75 6d | 2e 0d 09 20 2a 2f 0d 09 |ion enum|... */..|
|00001b90| 2f 2f 20 63 61 6c 6c 73 | 2d 3e 75 69 2d 3e 53 65 |// calls|->ui->Se|
|00001ba0| 74 43 6c 69 63 6b 48 6f | 6f 6b 28 4f 75 72 43 6c |tClickHo|ok(OurCl|
|00001bb0| 69 63 6b 48 6f 6f 6b 2c | 20 30 2c 20 74 72 75 65 |ickHook,| 0, true|
|00001bc0| 29 3b 0d 09 2f 2f 20 63 | 61 6c 6c 73 2d 3e 75 69 |);..// c|alls->ui|
|00001bd0| 2d 3e 53 65 74 4b 65 79 | 48 6f 6f 6b 20 20 28 4f |->SetKey|Hook (O|
|00001be0| 75 72 4b 65 79 48 6f 6f | 6b 2c 20 20 20 30 2c 20 |urKeyHoo|k, 0, |
|00001bf0| 74 72 75 65 2c 20 63 68 | 61 72 46 69 6c 74 65 72 |true, ch|arFilter|
|00001c00| 2c 20 6b 65 79 46 69 6c | 74 65 72 2c 20 6d 6f 64 |, keyFil|ter, mod|
|00001c10| 46 69 6c 74 65 72 29 3b | 0d 09 2f 2f 20 63 61 6c |Filter);|..// cal|
|00001c20| 6c 73 2d 3e 75 69 2d 3e | 53 65 74 4d 65 6e 75 48 |ls->ui->|SetMenuH|
|00001c30| 6f 6f 6b 20 28 4f 75 72 | 4d 65 6e 75 48 6f 6f 6b |ook (Our|MenuHook|
|00001c40| 2c 20 20 30 2c 20 74 72 | 75 65 2c 20 77 68 69 63 |, 0, tr|ue, whic|
|00001c50| 68 43 6f 6d 6d 61 6e 64 | 29 3b 0d 09 2f 2f 20 63 |hCommand|);..// c|
|00001c60| 61 6c 6c 73 2d 3e 75 69 | 2d 3e 53 65 74 46 69 65 |alls->ui|->SetFie|
|00001c70| 6c 64 48 6f 6f 6b 28 4f | 75 72 46 69 65 6c 64 48 |ldHook(O|urFieldH|
|00001c80| 6f 6f 6b 2c 20 30 2c 20 | 74 72 75 65 2c 20 77 68 |ook, 0, |true, wh|
|00001c90| 69 63 68 46 69 65 6c 64 | 29 3b 0d 09 2f 2f 20 63 |ichField|);..// c|
|00001ca0| 61 6c 6c 73 2d 3e 75 69 | 2d 3e 53 65 74 54 6f 70 |alls->ui|->SetTop|
|00001cb0| 69 63 48 6f 6f 6b 28 4f | 75 72 54 6f 70 69 63 48 |icHook(O|urTopicH|
|00001cc0| 6f 6f 6b 2c 20 30 2c 20 | 74 72 75 65 29 3b 0d 09 |ook, 0, |true);..|
|00001cd0| 63 61 6c 6c 73 2d 3e 75 | 69 2d 3e 53 65 74 54 69 |calls->u|i->SetTi|
|00001ce0| 63 6b 48 6f 6f 6b 20 28 | 4f 75 72 54 69 63 6b 48 |ckHook (|OurTickH|
|00001cf0| 6f 6f 6b 2c 20 20 30 2c | 20 74 72 75 65 29 3b 0d |ook, 0,| true);.|
|00001d00| 09 2f 2f 20 63 61 6c 6c | 73 2d 3e 75 69 2d 3e 53 |.// call|s->ui->S|
|00001d10| 65 74 46 69 6c 65 48 6f | 6f 6b 20 28 4f 75 72 46 |etFileHo|ok (OurF|
|00001d20| 69 6c 65 48 6f 6f 6b 2c | 20 20 30 2c 20 74 72 75 |ileHook,| 0, tru|
|00001d30| 65 29 3b 0d 09 2f 2f 20 | 63 61 6c 6c 73 2d 3e 75 |e);..// |calls->u|
|00001d40| 69 2d 3e 53 65 74 51 75 | 69 74 48 6f 6f 6b 20 28 |i->SetQu|itHook (|
|00001d50| 4f 75 72 51 75 69 74 48 | 6f 6f 6b 2c 20 20 30 2c |OurQuitH|ook, 0,|
|00001d60| 20 74 72 75 65 29 3b 0d | 09 2f 2f 20 63 61 6c 6c | true);.|.// call|
|00001d70| 73 2d 3e 75 69 2d 3e 53 | 65 74 41 54 4d 48 6f 6f |s->ui->S|etATMHoo|
|00001d80| 6b 20 20 28 4f 75 72 41 | 54 4d 48 6f 6f 6b 2c 20 |k (OurA|TMHook, |
|00001d90| 20 20 30 2c 20 74 72 75 | 65 29 3b 0d 09 0d 09 63 | 0, tru|e);....c|
|00001da0| 61 6c 6c 73 2d 3e 75 69 | 2d 3e 53 65 74 46 69 65 |alls->ui|->SetFie|
|00001db0| 6c 64 48 6f 6f 6b 28 4f | 75 72 46 69 65 6c 64 48 |ldHook(O|urFieldH|
|00001dc0| 6f 6f 6b 2c 20 30 2c 20 | 74 72 75 65 2c 20 30 29 |ook, 0, |true, 0)|
|00001dd0| 3b 0d 09 0d 09 63 61 6c | 6c 73 2d 3e 75 69 2d 3e |;....cal|ls->ui->|
|00001de0| 41 64 64 4d 65 6e 75 49 | 74 65 6d 28 6d 50 6c 75 |AddMenuI|tem(mPlu|
|00001df0| 67 69 6e 41 62 6f 75 74 | 2c 20 22 41 62 6f 75 74 |ginAbout|, "About|
|00001e00| 20 41 75 74 6f 2d 63 6f | 6d 70 6c 65 74 69 6f 6e | Auto-co|mpletion|
|00001e10| 22 2c 20 30 2c 20 61 62 | 6f 75 74 43 6d 64 43 6f |", 0, ab|outCmdCo|
|00001e20| 64 65 2c 20 30 29 3b 0d | 09 63 61 6c 6c 73 2d 3e |de, 0);.|.calls->|
|00001e30| 75 69 2d 3e 53 65 74 4d | 65 6e 75 48 6f 6f 6b 28 |ui->SetM|enuHook(|
|00001e40| 4f 75 72 4d 65 6e 75 48 | 6f 6f 6b 2c 20 30 2c 20 |OurMenuH|ook, 0, |
|00001e50| 74 72 75 65 2c 20 61 62 | 6f 75 74 43 6d 64 43 6f |true, ab|outCmdCo|
|00001e60| 64 65 29 3b 0d 09 0d 09 | 63 61 6c 6c 73 2d 3e 75 |de);....|calls->u|
|00001e70| 69 2d 3e 52 65 67 69 73 | 74 65 72 46 69 65 6c 64 |i->Regis|terField|
|00001e80| 50 72 6f 63 28 20 22 41 | 75 74 6f 2d 63 6f 6d 70 |Proc( "A|uto-comp|
|00001e90| 6c 65 74 69 6f 6e 22 2c | 20 61 75 74 6f 43 6f 6d |letion",| autoCom|
|00001ea0| 70 6c 65 74 69 6f 6e 41 | 63 74 69 6f 6e 2c 20 66 |pletionA|ction, f|
|00001eb0| 70 41 63 74 69 6f 6e 2c | 0d 09 09 09 09 09 09 09 |pAction,|........|
|00001ec0| 09 09 09 09 31 20 3c 3c | 20 61 72 46 54 50 6f 70 |....1 <<| arFTPop|
|00001ed0| 75 70 2c 20 4f 75 72 46 | 69 65 6c 64 48 6f 6f 6b |up, OurF|ieldHook|
|00001ee0| 2c 20 61 75 74 6f 43 6f | 6d 70 6c 65 74 69 6f 6e |, autoCo|mpletion|
|00001ef0| 41 63 74 69 6f 6e 20 29 | 3b 0d 09 0d 09 73 65 6c |Action )|;....sel|
|00001f00| 4e 6f 74 65 20 3d 20 6e | 69 6c 3b 0d 09 7d 20 2f |Note = n|il;..} /|
|00001f10| 2f 20 50 6c 75 67 69 6e | 20 63 6f 6e 73 74 72 75 |/ Plugin| constru|
|00001f20| 63 74 6f 72 0d 0d 0d 2f | 2a 20 44 69 73 70 6f 73 |ctor.../|* Dispos|
|00001f30| 65 20 6f 66 20 61 20 50 | 6c 75 67 69 6e 20 6f 62 |e of a P|lugin ob|
|00001f40| 6a 65 63 74 2e 20 20 54 | 68 69 73 20 69 73 20 63 |ject. T|his is c|
|00001f50| 61 6c 6c 65 64 20 77 68 | 65 6e 20 41 72 72 61 6e |alled wh|en Arran|
|00001f60| 67 65 20 74 65 72 6d 69 | 6e 61 74 65 73 2e 20 20 |ge termi|nates. |
|00001f70| 59 6f 75 0d 20 2a 20 73 | 68 6f 75 6c 64 20 66 72 |You. * s|hould fr|
|00001f80| 65 65 20 75 70 20 61 6e | 79 20 64 61 74 61 20 73 |ee up an|y data s|
|00001f90| 74 72 75 63 74 75 72 65 | 73 20 77 68 69 63 68 20 |tructure|s which |
|00001fa0| 79 6f 75 20 61 6c 6c 6f | 63 61 74 69 6f 6e 20 69 |you allo|cation i|
|00001fb0| 6e 20 74 68 65 20 50 6c | 75 67 69 6e 0d 20 2a 20 |n the Pl|ugin. * |
|00001fc0| 63 6f 6e 73 74 72 75 63 | 74 6f 72 20 28 61 62 6f |construc|tor (abo|
|00001fd0| 76 65 29 2e 0d 20 2a 2f | 0d 50 6c 75 67 69 6e 3a |ve).. */|.Plugin:|
|00001fe0| 3a 7e 50 6c 75 67 69 6e | 28 29 0d 09 7b 0d 09 7d |:~Plugin|()..{..}|
|00001ff0| 20 2f 2f 20 7e 50 6c 75 | 67 69 6e 0d 0d 0d 2f 2a | // ~Plu|gin.../*|
|00002000| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 | This fu|nction i|
|00002010| 73 20 63 61 6c 6c 65 64 | 20 77 68 65 6e 65 76 65 |s called| wheneve|
|00002020| 72 20 74 68 65 20 75 73 | 65 72 20 63 6c 69 63 6b |r the us|er click|
|00002030| 73 20 69 6e 20 61 6e 20 | 22 69 6e 74 65 72 65 73 |s in an |"interes|
|00002040| 74 69 6e 67 20 70 6c 61 | 63 65 22 0d 20 2a 20 69 |ting pla|ce". * i|
|00002050| 6e 20 61 20 64 6f 63 75 | 6d 65 6e 74 20 77 69 6e |n a docu|ment win|
|00002060| 64 6f 77 2e 20 20 49 74 | 20 73 68 6f 75 6c 64 20 |dow. It| should |
|00002070| 72 65 74 75 72 6e 20 74 | 72 75 65 20 69 66 20 77 |return t|rue if w|
|00002080| 65 20 68 61 6e 64 6c 65 | 20 74 68 65 20 63 6c 69 |e handle| the cli|
|00002090| 63 6b 2c 20 66 61 6c 73 | 65 0d 20 2a 20 28 74 68 |ck, fals|e. * (th|
|000020a0| 65 20 6e 6f 72 6d 61 6c | 20 63 61 73 65 29 20 77 |e normal| case) w|
|000020b0| 68 65 6e 20 74 68 65 20 | 63 6c 69 63 6b 20 73 68 |hen the |click sh|
|000020c0| 6f 75 6c 64 20 62 65 20 | 70 61 73 73 65 64 20 61 |ould be |passed a|
|000020d0| 6c 6f 6e 67 20 74 6f 20 | 6f 74 68 65 72 20 70 6c |long to |other pl|
|000020e0| 75 67 2d 69 6e 73 0d 20 | 2a 20 6f 72 20 74 6f 20 |ug-ins. |* or to |
|000020f0| 41 72 72 61 6e 67 65 27 | 73 20 6e 6f 72 6d 61 6c |Arrange'|s normal|
|00002100| 20 65 76 65 6e 74 20 70 | 72 6f 63 65 73 73 69 6e | event p|rocessin|
|00002110| 67 2e 20 20 53 65 65 20 | 74 68 65 20 64 6f 63 75 |g. See |the docu|
|00002120| 6d 65 6e 74 61 74 69 6f | 6e 20 66 6f 72 0d 20 2a |mentatio|n for. *|
|00002130| 20 53 65 74 43 6c 69 63 | 6b 48 6f 6f 6b 20 66 6f | SetClic|kHook fo|
|00002140| 72 20 6d 6f 72 65 20 64 | 65 74 61 69 6c 73 2e 0d |r more d|etails..|
|00002150| 20 2a 2f 0d 61 72 48 6f | 6f 6b 52 65 73 75 6c 74 | */.arHo|okResult|
|00002160| 20 50 6c 75 67 69 6e 3a | 3a 43 6c 69 63 6b 4e 6f | Plugin:|:ClickNo|
|00002170| 74 69 66 79 28 20 61 72 | 43 6c 69 63 6b 4c 6f 63 |tify( ar|ClickLoc|
|00002180| 61 74 69 6f 6e 20 2f 2a | 6c 6f 63 2a 2f 2c 20 50 |ation /*|loc*/, P|
|00002190| 6f 69 6e 74 20 2f 2a 77 | 68 65 72 65 2a 2f 2c 0d |oint /*w|here*/,.|
|000021a0| 09 09 09 09 09 09 09 09 | 09 09 09 20 53 68 6f 72 |........|... Shor|
|000021b0| 74 20 2f 2a 6d 6f 64 69 | 66 69 65 72 73 2a 2f 2c |t /*modi|fiers*/,|
|000021c0| 20 53 68 6f 72 74 20 2f | 2a 63 6c 69 63 6b 43 6f | Short /|*clickCo|
|000021d0| 75 6e 74 2a 2f 2c 0d 09 | 09 09 09 09 09 09 09 09 |unt*/,..|........|
|000021e0| 09 09 20 61 72 4e 6f 74 | 65 49 44 20 2f 2a 6e 6f |.. arNot|eID /*no|
|000021f0| 74 65 2a 2f 2c 20 61 72 | 46 69 65 6c 64 49 44 20 |te*/, ar|FieldID |
|00002200| 2f 2a 66 69 65 6c 64 2a | 2f 2c 0d 09 09 09 09 09 |/*field*|/,......|
|00002210| 09 09 09 09 09 09 20 61 | 72 50 61 74 68 49 44 20 |...... a|rPathID |
|00002220| 2f 2a 70 61 74 68 2a 2f | 20 29 0d 09 7b 0d 09 72 |/*path*/| )..{..r|
|00002230| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 20 2f 2f 20 |eturn fa|lse; // |
|00002240| 4c 65 74 20 41 72 72 61 | 6e 67 65 20 68 61 6e 64 |Let Arra|nge hand|
|00002250| 6c 65 20 74 68 65 20 65 | 76 65 6e 74 0d 09 7d 20 |le the e|vent..} |
|00002260| 2f 2f 20 43 6c 69 63 6b | 4e 6f 74 69 66 79 0d 0d |// Click|Notify..|
|00002270| 0d 2f 2a 20 54 68 69 73 | 20 66 75 6e 63 74 69 6f |./* This| functio|
|00002280| 6e 20 69 73 20 63 61 6c | 6c 65 64 20 77 68 65 6e |n is cal|led when|
|00002290| 65 76 65 72 20 74 68 65 | 20 75 73 65 72 20 74 79 |ever the| user ty|
|000022a0| 70 65 73 20 61 20 6b 65 | 79 20 77 68 69 63 68 20 |pes a ke|y which |
|000022b0| 6d 61 74 63 68 65 73 20 | 74 68 65 0d 20 2a 20 66 |matches |the. * f|
|000022c0| 69 6c 74 65 72 73 20 77 | 65 20 70 61 73 73 20 74 |ilters w|e pass t|
|000022d0| 6f 20 53 65 74 4b 65 79 | 48 6f 6f 6b 20 69 6e 20 |o SetKey|Hook in |
|000022e0| 50 6c 75 67 69 6e 27 73 | 20 63 6f 6e 73 74 72 75 |Plugin's| constru|
|000022f0| 63 74 6f 72 2e 20 20 49 | 74 20 73 68 6f 75 6c 64 |ctor. I|t should|
|00002300| 20 72 65 74 75 72 6e 0d | 20 2a 20 74 72 75 65 20 | return.| * true |
|00002310| 69 66 20 77 65 20 68 61 | 6e 64 6c 65 20 74 68 65 |if we ha|ndle the|
|00002320| 20 65 76 65 6e 74 2c 20 | 66 61 6c 73 65 20 28 74 | event, |false (t|
|00002330| 68 65 20 6e 6f 72 6d 61 | 6c 20 63 61 73 65 29 20 |he norma|l case) |
|00002340| 77 68 65 6e 20 74 68 65 | 20 65 76 65 6e 74 0d 20 |when the| event. |
|00002350| 2a 20 73 68 6f 75 6c 64 | 20 62 65 20 70 61 73 73 |* should| be pass|
|00002360| 65 64 20 61 6c 6f 6e 67 | 20 74 6f 20 6f 74 68 65 |ed along| to othe|
|00002370| 72 20 70 6c 75 67 2d 69 | 6e 73 20 6f 72 20 74 6f |r plug-i|ns or to|
|00002380| 20 41 72 72 61 6e 67 65 | 27 73 20 6e 6f 72 6d 61 | Arrange|'s norma|
|00002390| 6c 20 65 76 65 6e 74 0d | 20 2a 20 70 72 6f 63 65 |l event.| * proce|
|000023a0| 73 73 69 6e 67 2e 20 20 | 53 65 65 20 74 68 65 20 |ssing. |See the |
|000023b0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 66 6f |document|ation fo|
|000023c0| 72 20 53 65 74 4b 65 79 | 48 6f 6f 6b 20 66 6f 72 |r SetKey|Hook for|
|000023d0| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 73 2e 0d 20 | more de|tails.. |
|000023e0| 2a 2f 0d 61 72 48 6f 6f | 6b 52 65 73 75 6c 74 20 |*/.arHoo|kResult |
|000023f0| 50 6c 75 67 69 6e 3a 3a | 4b 65 79 4e 6f 74 69 66 |Plugin::|KeyNotif|
|00002400| 79 28 20 53 68 6f 72 74 | 20 2f 2a 74 68 65 43 68 |y( Short| /*theCh|
|00002410| 61 72 2a 2f 2c 20 53 68 | 6f 72 74 20 2f 2a 6b 65 |ar*/, Sh|ort /*ke|
|00002420| 79 2a 2f 2c 0d 09 09 09 | 09 09 09 09 09 09 09 20 |y*/,....|....... |
|00002430| 20 53 68 6f 72 74 20 2f | 2a 6d 6f 64 69 66 69 65 | Short /|*modifie|
|00002440| 72 73 2a 2f 20 29 0d 09 | 7b 0d 09 72 65 74 75 72 |rs*/ )..|{..retur|
|00002450| 6e 20 66 61 6c 73 65 3b | 20 2f 2f 20 4c 65 74 20 |n false;| // Let |
|00002460| 41 72 72 61 6e 67 65 20 | 68 61 6e 64 6c 65 20 74 |Arrange |handle t|
|00002470| 68 65 20 65 76 65 6e 74 | 0d 09 7d 20 2f 2f 20 4b |he event|..} // K|
|00002480| 65 79 4e 6f 74 69 66 79 | 0d 0d 0d 2f 2a 20 54 68 |eyNotify|.../* Th|
|00002490| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 63 |is funct|ion is c|
|000024a0| 61 6c 6c 65 64 20 77 68 | 65 6e 65 76 65 72 20 74 |alled wh|enever t|
|000024b0| 68 65 20 75 73 65 72 20 | 63 68 6f 6f 73 65 73 20 |he user |chooses |
|000024c0| 61 20 6d 65 6e 75 20 69 | 74 65 6d 20 66 6f 72 20 |a menu i|tem for |
|000024d0| 77 68 69 63 68 0d 20 2a | 20 77 65 20 68 61 76 65 |which. *| we have|
|000024e0| 20 72 65 67 69 73 74 65 | 72 65 64 20 28 76 69 61 | registe|red (via|
|000024f0| 20 74 68 65 20 53 65 74 | 4d 65 6e 75 48 6f 6f 6b | the Set|MenuHook|
|00002500| 20 66 75 6e 63 74 69 6f | 6e 29 2e 20 20 49 74 20 | functio|n). It |
|00002510| 73 68 6f 75 6c 64 20 72 | 65 74 75 72 6e 20 74 72 |should r|eturn tr|
|00002520| 75 65 0d 20 2a 20 69 66 | 20 77 65 20 68 61 6e 64 |ue. * if| we hand|
|00002530| 6c 65 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 2c 20 |le the c|ommand, |
|00002540| 66 61 6c 73 65 20 28 74 | 68 65 20 6e 6f 72 6d 61 |false (t|he norma|
|00002550| 6c 20 63 61 73 65 29 20 | 77 68 65 6e 20 74 68 65 |l case) |when the|
|00002560| 20 63 6f 6d 6d 61 6e 64 | 20 73 68 6f 75 6c 64 0d | command| should.|
|00002570| 20 2a 20 62 65 20 70 61 | 73 73 65 64 20 61 6c 6f | * be pa|ssed alo|
|00002580| 6e 67 20 74 6f 20 6f 74 | 68 65 72 20 70 6c 75 67 |ng to ot|her plug|
|00002590| 2d 69 6e 73 20 6f 72 20 | 74 6f 20 41 72 72 61 6e |-ins or |to Arran|
|000025a0| 67 65 27 73 20 6e 6f 72 | 6d 61 6c 20 65 76 65 6e |ge's nor|mal even|
|000025b0| 74 20 70 72 6f 63 65 73 | 73 69 6e 67 2e 0d 20 2a |t proces|sing.. *|
|000025c0| 20 53 65 65 20 74 68 65 | 20 64 6f 63 75 6d 65 6e | See the| documen|
|000025d0| 74 61 74 69 6f 6e 20 66 | 6f 72 20 53 65 74 4d 65 |tation f|or SetMe|
|000025e0| 6e 75 48 6f 6f 6b 20 66 | 6f 72 20 6d 6f 72 65 20 |nuHook f|or more |
|000025f0| 64 65 74 61 69 6c 73 2e | 0d 20 2a 2f 0d 61 72 48 |details.|. */.arH|
|00002600| 6f 6f 6b 52 65 73 75 6c | 74 20 50 6c 75 67 69 6e |ookResul|t Plugin|
|00002610| 3a 3a 4d 65 6e 75 4e 6f | 74 69 66 79 28 20 49 6e |::MenuNo|tify( In|
|00002620| 74 65 67 65 72 20 63 6f | 6d 6d 61 6e 64 43 6f 64 |teger co|mmandCod|
|00002630| 65 2c 20 49 6e 74 65 67 | 65 72 20 2f 2a 63 6f 6d |e, Integ|er /*com|
|00002640| 6d 61 6e 64 50 61 72 61 | 6d 2a 2f 2c 0d 09 09 09 |mandPara|m*/,....|
|00002650| 09 09 09 09 09 09 09 09 | 53 68 6f 72 74 20 2f 2a |........|Short /*|
|00002660| 6d 6f 64 69 66 69 65 72 | 73 2a 2f 20 29 0d 09 7b |modifier|s*/ )..{|
|00002670| 0d 09 2f 2a 20 49 66 20 | 74 68 69 73 20 69 73 20 |../* If |this is |
|00002680| 6f 75 72 20 41 62 6f 75 | 74 20 6d 65 6e 75 20 69 |our Abou|t menu i|
|00002690| 74 65 6d 2c 20 64 69 73 | 70 6c 61 79 20 6f 75 72 |tem, dis|play our|
|000026a0| 20 61 62 6f 75 74 2d 62 | 6f 78 20 64 69 61 6c 6f | about-b|ox dialo|
|000026b0| 67 20 61 6e 64 20 72 65 | 74 75 72 6e 0d 09 20 2a |g and re|turn.. *|
|000026c0| 20 74 72 75 65 20 74 6f | 20 69 6e 64 69 63 61 74 | true to| indicat|
|000026d0| 65 20 77 65 20 68 61 6e | 64 6c 65 64 20 74 68 65 |e we han|dled the|
|000026e0| 20 63 6f 6d 6d 61 6e 64 | 2e 0d 09 20 2a 2f 0d 09 | command|... */..|
|000026f0| 69 66 20 28 63 6f 6d 6d | 61 6e 64 43 6f 64 65 20 |if (comm|andCode |
|00002700| 3d 3d 20 61 62 6f 75 74 | 43 6d 64 43 6f 64 65 29 |== about|CmdCode)|
|00002710| 0d 09 09 7b 0d 09 09 41 | 6c 65 72 74 28 4d 6f 64 |...{...A|lert(Mod|
|00002720| 75 6c 65 52 73 72 63 49 | 44 2c 20 6e 69 6c 29 3b |uleRsrcI|D, nil);|
|00002730| 0d 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00002740| 09 09 7d 0d 09 65 6c 73 | 65 0d 09 09 72 65 74 75 |..}..els|e...retu|
|00002750| 72 6e 20 66 61 6c 73 65 | 3b 20 2f 2f 20 4c 65 74 |rn false|; // Let|
|00002760| 20 41 72 72 61 6e 67 65 | 20 68 61 6e 64 6c 65 20 | Arrange| handle |
|00002770| 74 68 65 20 65 76 65 6e | 74 0d 09 0d 09 7d 20 2f |the even|t....} /|
|00002780| 2f 20 4d 65 6e 75 4e 6f | 74 69 66 79 0d 0d 0d 2f |/ MenuNo|tify.../|
|00002790| 2a 20 49 66 20 77 65 20 | 72 65 67 69 73 74 65 72 |* If we |register|
|000027a0| 20 74 6f 20 72 65 63 69 | 65 76 65 20 65 76 65 6e | to reci|eve even|
|000027b0| 74 73 20 66 6f 72 20 61 | 20 66 69 65 6c 64 20 62 |ts for a| field b|
|000027c0| 79 20 63 61 6c 6c 69 6e | 67 20 53 65 74 46 69 65 |y callin|g SetFie|
|000027d0| 6c 64 48 6f 6f 6b 2c 20 | 74 68 69 73 0d 20 2a 20 |ldHook, |this. * |
|000027e0| 66 75 6e 63 74 69 6f 6e | 20 77 69 6c 6c 20 62 65 |function| will be|
|000027f0| 20 63 61 6c 6c 65 64 20 | 66 6f 72 20 61 6e 79 20 | called |for any |
|00002800| 65 76 65 6e 74 73 20 69 | 6e 20 74 68 61 74 20 66 |events i|n that f|
|00002810| 69 65 6c 64 2e 20 20 49 | 74 20 73 68 6f 75 6c 64 |ield. I|t should|
|00002820| 20 72 65 74 75 72 6e 0d | 20 2a 20 66 61 6c 73 65 | return.| * false|
|00002830| 20 69 6e 20 61 6c 6d 6f | 73 74 20 61 6c 6c 20 63 | in almo|st all c|
|00002840| 61 73 65 73 2e 20 20 53 | 65 65 20 74 68 65 20 64 |ases. S|ee the d|
|00002850| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for|
|00002860| 20 53 65 74 46 69 65 6c | 64 48 6f 6f 6b 20 66 6f | SetFiel|dHook fo|
|00002870| 72 0d 20 2a 20 6d 6f 72 | 65 20 64 65 74 61 69 6c |r. * mor|e detail|
|00002880| 73 2e 0d 20 2a 2f 0d 61 | 72 48 6f 6f 6b 52 65 73 |s.. */.a|rHookRes|
|00002890| 75 6c 74 20 50 6c 75 67 | 69 6e 3a 3a 46 69 65 6c |ult Plug|in::Fiel|
|000028a0| 64 4e 6f 74 69 66 79 28 | 20 61 72 4e 6f 74 65 49 |dNotify(| arNoteI|
|000028b0| 44 20 6e 6f 74 65 2c 20 | 61 72 46 69 65 6c 64 49 |D note, |arFieldI|
|000028c0| 44 20 66 69 65 6c 64 2c | 0d 09 09 09 09 09 09 09 |D field,|........|
|000028d0| 09 09 09 09 20 61 72 46 | 69 65 6c 64 41 63 74 69 |.... arF|ieldActi|
|000028e0| 6f 6e 20 61 63 74 69 6f | 6e 2c 0d 09 09 09 09 09 |on actio|n,......|
|000028f0| 09 09 09 09 09 09 20 63 | 6f 6e 73 74 20 63 68 61 |...... c|onst cha|
|00002900| 72 2a 20 2f 2a 63 68 6f | 69 63 65 54 65 78 74 2a |r* /*cho|iceText*|
|00002910| 2f 20 29 0d 09 7b 0d 09 | 73 77 69 74 63 68 20 28 |/ )..{..|switch (|
|00002920| 61 63 74 69 6f 6e 29 0d | 09 09 7b 0d 09 09 63 61 |action).|..{...ca|
|00002930| 73 65 20 66 61 45 6e 74 | 72 79 3a 0d 09 09 09 45 |se faEnt|ry:....E|
|00002940| 6e 74 65 72 46 69 65 6c | 64 28 6e 6f 74 65 2c 66 |nterFiel|d(note,f|
|00002950| 69 65 6c 64 29 3b 0d 09 | 09 09 62 72 65 61 6b 3b |ield);..|..break;|
|00002960| 0d 09 09 0d 09 09 63 61 | 73 65 20 66 61 45 78 69 |......ca|se faExi|
|00002970| 74 3a 0d 09 09 09 45 78 | 69 74 46 69 65 6c 64 28 |t:....Ex|itField(|
|00002980| 29 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 0d |);....br|eak;....|
|00002990| 09 09 63 61 73 65 20 66 | 61 55 70 64 61 74 65 3a |..case f|aUpdate:|
|000029a0| 0d 09 09 09 52 75 6e 43 | 6f 6d 70 6c 65 74 69 6f |....RunC|ompletio|
|000029b0| 6e 28 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |n();....|break;..|
|000029c0| 09 0d 09 09 63 61 73 65 | 20 66 61 4b 65 79 73 74 |....case| faKeyst|
|000029d0| 72 6f 6b 65 3a 0d 09 09 | 63 61 73 65 20 66 61 45 |roke:...|case faE|
|000029e0| 64 69 74 43 6d 64 3a 0d | 09 09 09 4e 6f 74 65 55 |ditCmd:.|...NoteU|
|000029f0| 73 65 72 41 63 74 69 6f | 6e 28 66 61 6c 73 65 2c |serActio|n(false,|
|00002a00| 20 74 72 75 65 29 3b 0d | 09 09 09 62 72 65 61 6b | true);.|...break|
|00002a10| 3b 0d 09 09 0d 09 09 63 | 61 73 65 20 66 61 42 61 |;......c|ase faBa|
|00002a20| 63 6b 73 70 61 63 65 3a | 0d 09 09 09 4e 6f 74 65 |ckspace:|....Note|
|00002a30| 55 73 65 72 41 63 74 69 | 6f 6e 28 74 72 75 65 2c |UserActi|on(true,|
|00002a40| 20 74 72 75 65 29 3b 0d | 09 09 09 62 72 65 61 6b | true);.|...break|
|00002a50| 3b 0d 09 09 0d 09 09 63 | 61 73 65 20 66 61 53 65 |;......c|ase faSe|
|00002a60| 6c 43 68 61 6e 67 65 3a | 0d 09 09 09 4e 6f 74 65 |lChange:|....Note|
|00002a70| 55 73 65 72 41 63 74 69 | 6f 6e 28 66 61 6c 73 65 |UserActi|on(false|
|00002a80| 2c 20 66 61 6c 73 65 29 | 3b 0d 09 09 09 62 72 65 |, false)|;....bre|
|00002a90| 61 6b 3b 0d 09 09 0d 09 | 09 7d 20 2f 2f 20 73 77 |ak;.....|.} // sw|
|00002aa0| 69 74 63 68 20 28 61 63 | 74 69 6f 6e 29 0d 09 0d |itch (ac|tion)...|
|00002ab0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 09 |.return |false;..|
|00002ac0| 7d 20 2f 2f 20 46 69 65 | 6c 64 4e 6f 74 69 66 79 |} // Fie|ldNotify|
|00002ad0| 0d 0d 0d 2f 2a 20 54 68 | 69 73 20 66 75 6e 63 74 |.../* Th|is funct|
|00002ae0| 69 6f 6e 20 69 73 20 63 | 61 6c 6c 65 64 20 77 68 |ion is c|alled wh|
|00002af0| 65 6e 65 76 65 72 20 74 | 68 65 20 75 73 65 72 20 |enever t|he user |
|00002b00| 73 77 69 74 63 68 65 73 | 20 77 69 6e 64 6f 77 73 |switches| windows|
|00002b10| 20 6f 72 20 63 68 61 6e | 67 65 73 0d 20 2a 20 74 | or chan|ges. * t|
|00002b20| 68 65 20 63 75 72 72 65 | 6e 74 20 66 6f 6c 64 65 |he curre|nt folde|
|00002b30| 72 2f 74 6f 70 69 63 2f | 76 69 65 77 20 69 6e 20 |r/topic/|view in |
|00002b40| 74 68 65 20 66 72 6f 6e | 74 20 77 69 6e 64 6f 77 |the fron|t window|
|00002b50| 2e 20 20 53 65 65 20 74 | 68 65 20 64 6f 63 75 6d |. See t|he docum|
|00002b60| 65 6e 74 61 74 69 6f 6e | 0d 20 2a 20 66 6f 72 20 |entation|. * for |
|00002b70| 53 65 74 54 6f 70 69 63 | 48 6f 6f 6b 20 66 6f 72 |SetTopic|Hook for|
|00002b80| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 73 2e 0d 20 | more de|tails.. |
|00002b90| 2a 2f 0d 76 6f 69 64 20 | 50 6c 75 67 69 6e 3a 3a |*/.void |Plugin::|
|00002ba0| 54 6f 70 69 63 4e 6f 74 | 69 66 79 28 20 61 72 54 |TopicNot|ify( arT|
|00002bb0| 6f 70 69 63 49 44 20 2f | 2a 6e 65 77 54 6f 70 69 |opicID /|*newTopi|
|00002bc0| 63 2a 2f 2c 20 61 72 57 | 69 6e 64 6f 77 49 44 20 |c*/, arW|indowID |
|00002bd0| 2f 2a 6e 65 77 57 69 6e | 64 6f 77 2a 2f 2c 0d 09 |/*newWin|dow*/,..|
|00002be0| 09 09 09 09 09 09 09 20 | 20 61 72 54 6f 70 69 63 |....... | arTopic|
|00002bf0| 41 63 74 69 6f 6e 20 2f | 2a 61 63 74 69 6f 6e 2a |Action /|*action*|
|00002c00| 2f 20 29 0d 09 7b 0d 09 | 7d 20 2f 2f 20 54 6f 70 |/ )..{..|} // Top|
|00002c10| 69 63 4e 6f 74 69 66 79 | 0d 0d 0d 2f 2a 20 54 68 |icNotify|.../* Th|
|00002c20| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 63 |is funct|ion is c|
|00002c30| 61 6c 6c 65 64 20 70 65 | 72 69 6f 64 69 63 61 6c |alled pe|riodical|
|00002c40| 6c 79 2c 20 77 68 65 6e | 65 76 65 72 20 41 72 72 |ly, when|ever Arr|
|00002c50| 61 6e 67 65 20 72 65 63 | 69 65 76 65 73 20 61 20 |ange rec|ieves a |
|00002c60| 6e 75 6c 6c 0d 20 2a 20 | 65 76 65 6e 74 20 66 72 |null. * |event fr|
|00002c70| 6f 6d 20 74 68 65 20 45 | 76 65 6e 74 20 4d 61 6e |om the E|vent Man|
|00002c80| 61 67 65 72 2e 0d 20 2a | 2f 0d 76 6f 69 64 20 50 |ager.. *|/.void P|
|00002c90| 6c 75 67 69 6e 3a 3a 54 | 69 63 6b 4e 6f 74 69 66 |lugin::T|ickNotif|
|00002ca0| 79 28 29 0d 09 7b 0d 09 | 2f 2a 20 45 78 69 74 20 |y()..{..|/* Exit |
|00002cb0| 69 66 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 61 |if there| is no a|
|00002cc0| 63 74 69 76 65 20 73 65 | 6c 65 63 74 69 6f 6e 20 |ctive se|lection |
|00002cd0| 69 6e 20 61 20 70 6f 70 | 75 70 20 66 69 65 6c 64 |in a pop|up field|
|00002ce0| 2c 20 6f 72 20 69 66 20 | 74 68 65 0d 09 20 2a 20 |, or if |the.. * |
|00002cf0| 75 73 65 72 20 68 61 73 | 6e 27 74 20 74 79 70 65 |user has|n't type|
|00002d00| 64 20 61 6e 79 74 68 69 | 6e 67 20 66 6f 72 20 75 |d anythi|ng for u|
|00002d10| 73 20 74 6f 20 63 6f 6d | 70 6c 65 74 65 2e 0d 09 |s to com|plete...|
|00002d20| 20 2a 2f 0d 09 69 66 20 | 28 73 65 6c 4e 6f 74 65 | */..if |(selNote|
|00002d30| 20 3d 3d 20 6e 69 6c 20 | 7c 7c 20 21 74 65 78 74 | == nil ||| !text|
|00002d40| 49 73 44 69 72 74 79 29 | 0d 09 09 72 65 74 75 72 |IsDirty)|...retur|
|00002d50| 6e 3b 0d 09 0d 09 2f 2a | 20 44 65 74 65 72 6d 69 |n;..../*| Determi|
|00002d60| 6e 65 20 77 68 65 74 68 | 65 72 20 65 6e 6f 75 67 |ne wheth|er enoug|
|00002d70| 68 20 74 69 6d 65 20 68 | 61 73 20 65 6c 61 70 73 |h time h|as elaps|
|00002d80| 65 64 20 73 69 6e 63 65 | 20 74 68 65 20 6c 61 73 |ed since| the las|
|00002d90| 74 20 75 73 65 72 0d 09 | 20 2a 20 61 63 74 69 76 |t user..| * activ|
|00002da0| 69 74 79 2e 0d 09 20 2a | 2f 0d 09 49 6e 74 65 67 |ity... *|/..Integ|
|00002db0| 65 72 20 64 65 6c 61 79 | 3b 0d 09 69 66 20 28 6c |er delay|;..if (l|
|00002dc0| 61 73 74 4b 65 79 57 61 | 73 42 61 63 6b 73 70 61 |astKeyWa|sBackspa|
|00002dd0| 63 65 29 0d 09 09 64 65 | 6c 61 79 20 3d 20 62 61 |ce)...de|lay = ba|
|00002de0| 63 6b 73 70 61 63 65 44 | 65 6c 61 79 3b 0d 09 65 |ckspaceD|elay;..e|
|00002df0| 6c 73 65 0d 09 09 64 65 | 6c 61 79 20 3d 20 63 6f |lse...de|lay = co|
|00002e00| 6d 70 6c 65 74 69 6f 6e | 44 65 6c 61 79 3b 0d 09 |mpletion|Delay;..|
|00002e10| 0d 09 2f 2a 20 49 66 20 | 65 6e 6f 75 67 68 20 74 |../* If |enough t|
|00002e20| 69 6d 65 20 68 61 73 20 | 65 6c 61 70 73 65 64 2c |ime has |elapsed,|
|00002e30| 20 74 68 65 6e 20 61 74 | 74 65 6d 70 74 20 74 6f | then at|tempt to|
|00002e40| 20 63 6f 6d 70 6c 65 74 | 65 20 77 68 61 74 20 74 | complet|e what t|
|00002e50| 68 65 20 75 73 65 72 0d | 09 20 2a 20 68 61 73 20 |he user.|. * has |
|00002e60| 74 79 70 65 64 2e 0d 09 | 20 2a 2f 0d 09 69 66 20 |typed...| */..if |
|00002e70| 28 54 69 63 6b 43 6f 75 | 6e 74 28 29 20 3e 3d 20 |(TickCou|nt() >= |
|00002e80| 6c 61 73 74 4b 65 79 54 | 69 6d 65 20 2b 20 64 65 |lastKeyT|ime + de|
|00002e90| 6c 61 79 29 0d 09 09 52 | 75 6e 43 6f 6d 70 6c 65 |lay)...R|unComple|
|00002ea0| 74 69 6f 6e 28 29 3b 0d | 09 0d 09 7d 20 2f 2f 20 |tion();.|...} // |
|00002eb0| 54 69 63 6b 4e 6f 74 69 | 66 79 0d 0d 0d 2f 2a 20 |TickNoti|fy.../* |
|00002ec0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|00002ed0| 20 63 61 6c 6c 65 64 20 | 77 68 65 6e 65 76 65 72 | called |whenever|
|00002ee0| 20 76 61 72 69 6f 75 73 | 20 66 69 6c 65 2d 6c 65 | various| file-le|
|00002ef0| 76 65 6c 20 65 76 65 6e | 74 73 20 6f 63 63 75 72 |vel even|ts occur|
|00002f00| 2e 20 20 49 74 0d 20 2a | 20 73 68 6f 75 6c 64 20 |. It. *| should |
|00002f10| 72 65 74 75 72 6e 20 74 | 72 75 65 20 69 6e 20 61 |return t|rue in a|
|00002f20| 6c 6d 6f 73 74 20 61 6c | 6c 20 63 61 73 65 73 2e |lmost al|l cases.|
|00002f30| 20 20 53 65 65 20 74 68 | 65 20 64 6f 63 75 6d 65 | See th|e docume|
|00002f40| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 0d 20 2a 20 53 |ntation |for. * S|
|00002f50| 65 74 46 69 6c 65 48 6f | 6f 6b 20 66 6f 72 20 6d |etFileHo|ok for m|
|00002f60| 6f 72 65 20 64 65 74 61 | 69 6c 73 2e 0d 20 2a 2f |ore deta|ils.. */|
|00002f70| 0d 61 72 48 6f 6f 6b 52 | 65 73 75 6c 74 20 50 6c |.arHookR|esult Pl|
|00002f80| 75 67 69 6e 3a 3a 46 69 | 6c 65 4e 6f 74 69 66 79 |ugin::Fi|leNotify|
|00002f90| 28 61 72 46 69 6c 65 41 | 63 74 69 6f 6e 20 2f 2a |(arFileA|ction /*|
|00002fa0| 61 63 74 69 6f 6e 2a 2f | 29 0d 09 7b 0d 09 72 65 |action*/|)..{..re|
|00002fb0| 74 75 72 6e 20 74 72 75 | 65 3b 0d 09 7d 20 2f 2f |turn tru|e;..} //|
|00002fc0| 20 46 69 6c 65 4e 6f 74 | 69 66 79 0d 0d 0d 2f 2a | FileNot|ify.../*|
|00002fd0| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 | This fu|nction i|
|00002fe0| 73 20 63 61 6c 6c 65 64 | 20 69 66 20 74 68 65 20 |s called| if the |
|00002ff0| 75 73 65 72 20 76 6f 6c | 75 6e 74 61 72 69 6c 79 |user vol|untarily|
|00003000| 20 71 75 69 74 73 20 41 | 72 72 61 6e 67 65 2e 20 | quits A|rrange. |
|00003010| 20 49 74 20 73 68 6f 75 | 6c 64 0d 20 2a 20 72 65 | It shou|ld. * re|
|00003020| 74 75 72 6e 20 74 72 75 | 65 20 74 6f 20 61 6c 6c |turn tru|e to all|
|00003030| 6f 77 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 71 |ow the u|ser to q|
|00003040| 75 69 74 2c 20 66 61 6c | 73 65 20 74 6f 20 70 72 |uit, fal|se to pr|
|00003050| 65 76 65 6e 74 20 69 74 | 2e 20 20 53 65 65 20 74 |event it|. See t|
|00003060| 68 65 0d 20 2a 20 64 6f | 63 75 6d 65 6e 74 61 74 |he. * do|cumentat|
|00003070| 69 6f 6e 20 66 6f 72 20 | 53 65 74 51 75 69 74 48 |ion for |SetQuitH|
|00003080| 6f 6f 6b 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |ook for |more det|
|00003090| 61 69 6c 73 2e 0d 20 2a | 2f 0d 61 72 48 6f 6f 6b |ails.. *|/.arHook|
|000030a0| 52 65 73 75 6c 74 20 50 | 6c 75 67 69 6e 3a 3a 51 |Result P|lugin::Q|
|000030b0| 75 69 74 4e 6f 74 69 66 | 79 28 29 0d 09 7b 0d 09 |uitNotif|y()..{..|
|000030c0| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 09 7d 20 |return t|rue;..} |
|000030d0| 2f 2f 20 51 75 69 74 4e | 6f 74 69 66 79 0d 0d 0d |// QuitN|otify...|
|000030e0| 2f 2a 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |/* This |function|
|000030f0| 20 69 73 20 63 61 6c 6c | 65 64 20 77 68 65 6e 65 | is call|ed whene|
|00003100| 76 65 72 20 74 68 65 20 | 75 73 65 72 20 63 6c 69 |ver the |user cli|
|00003110| 63 6b 73 20 69 6e 20 74 | 68 65 20 6d 65 6e 75 20 |cks in t|he menu |
|00003120| 62 61 72 20 6f 72 20 74 | 79 70 65 73 0d 20 2a 20 |bar or t|ypes. * |
|00003130| 61 20 63 6f 6d 6d 61 6e | 64 20 6b 65 79 2c 20 6a |a comman|d key, j|
|00003140| 75 73 74 20 62 65 66 6f | 72 65 20 70 72 6f 63 65 |ust befo|re proce|
|00003150| 73 73 69 6e 67 20 74 68 | 65 20 65 76 65 6e 74 2e |ssing th|e event.|
|00003160| 20 20 49 74 20 73 68 6f | 75 6c 64 20 64 6f 20 61 | It sho|uld do a|
|00003170| 6e 79 20 66 69 78 69 6e | 67 0d 20 2a 20 75 70 20 |ny fixin|g. * up |
|00003180| 6f 66 20 6d 65 6e 75 73 | 20 77 68 69 63 68 20 6d |of menus| which m|
|00003190| 69 67 68 74 20 62 65 20 | 6e 65 63 65 73 73 61 72 |ight be |necessar|
|000031a0| 79 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 63 |y based |on the c|
|000031b0| 75 72 72 65 6e 74 20 73 | 74 61 74 65 20 6f 66 20 |urrent s|tate of |
|000031c0| 61 66 66 61 69 72 73 2e | 0d 20 2a 20 53 65 65 20 |affairs.|. * See |
|000031d0| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |the docu|mentatio|
|000031e0| 6e 20 66 6f 72 20 53 65 | 74 41 54 4d 48 6f 6f 6b |n for Se|tATMHook|
|000031f0| 20 66 6f 72 20 6d 6f 72 | 65 20 64 65 74 61 69 6c | for mor|e detail|
|00003200| 73 2e 0d 20 2a 2f 0d 76 | 6f 69 64 20 50 6c 75 67 |s.. */.v|oid Plug|
|00003210| 69 6e 3a 3a 41 54 4d 4e | 6f 74 69 66 79 28 29 0d |in::ATMN|otify().|
|00003220| 09 7b 0d 09 7d 20 2f 2f | 20 41 54 4d 4e 6f 74 69 |.{..} //| ATMNoti|
|00003230| 66 79 0d 0d 0d 2f 2f 20 | 54 68 69 73 20 66 75 6e |fy...// |This fun|
|00003240| 63 74 69 6f 6e 20 69 73 | 20 63 61 6c 6c 65 64 20 |ction is| called |
|00003250| 77 68 65 6e 20 74 68 65 | 20 75 73 65 72 20 63 6c |when the| user cl|
|00003260| 69 63 6b 73 20 69 6e 20 | 61 20 66 69 65 6c 64 20 |icks in |a field |
|00003270| 6f 66 20 73 6f 6d 65 20 | 6e 6f 74 65 2e 0d 76 6f |of some |note..vo|
|00003280| 69 64 20 50 6c 75 67 69 | 6e 3a 3a 45 6e 74 65 72 |id Plugi|n::Enter|
|00003290| 46 69 65 6c 64 28 61 72 | 4e 6f 74 65 49 44 20 6e |Field(ar|NoteID n|
|000032a0| 6f 74 65 2c 20 61 72 46 | 69 65 6c 64 49 44 20 66 |ote, arF|ieldID f|
|000032b0| 69 65 6c 64 29 0d 09 7b | 0d 09 2f 2a 20 49 66 20 |ield)..{|../* If |
|000032c0| 74 68 65 20 66 69 65 6c | 64 20 69 73 20 61 20 70 |the fiel|d is a p|
|000032d0| 6f 70 75 70 20 66 69 65 | 6c 64 2c 20 61 6e 64 20 |opup fie|ld, and |
|000032e0| 74 68 65 20 41 75 74 6f | 2d 63 6f 6d 70 6c 65 74 |the Auto|-complet|
|000032f0| 69 6f 6e 20 61 63 74 69 | 6f 6e 20 69 73 20 73 65 |ion acti|on is se|
|00003300| 6c 65 63 74 65 64 0d 09 | 20 2a 20 66 6f 72 20 74 |lected..| * for t|
|00003310| 68 61 74 20 66 69 65 6c | 64 2c 20 73 65 74 20 6f |hat fiel|d, set o|
|00003320| 75 72 20 73 65 6c 4e 6f | 74 65 20 61 6e 64 20 73 |ur selNo|te and s|
|00003330| 65 6c 46 69 65 6c 64 20 | 76 61 72 69 61 62 6c 65 |elField |variable|
|00003340| 73 20 61 63 63 6f 72 64 | 69 6e 67 6c 79 3b 0d 09 |s accord|ingly;..|
|00003350| 20 2a 20 6f 74 68 65 72 | 77 69 73 65 20 73 65 74 | * other|wise set|
|00003360| 20 73 65 6c 4e 6f 74 65 | 20 74 6f 20 6e 69 6c 2e | selNote| to nil.|
|00003370| 0d 09 20 2a 2f 0d 09 61 | 72 46 69 65 6c 64 49 6e |.. */..a|rFieldIn|
|00003380| 66 6f 20 66 69 65 6c 64 | 49 6e 66 6f 3b 0d 09 66 |fo field|Info;..f|
|00003390| 69 65 6c 64 49 6e 66 6f | 2e 76 65 72 73 4e 75 6d |ieldInfo|.versNum|
|000033a0| 20 3d 20 31 3b 0d 09 63 | 61 6c 6c 73 2d 3e 73 79 | = 1;..c|alls->sy|
|000033b0| 73 4f 62 6a 2d 3e 47 65 | 74 46 69 65 6c 64 49 6e |sObj->Ge|tFieldIn|
|000033c0| 66 6f 28 66 69 65 6c 64 | 2c 20 26 66 69 65 6c 64 |fo(field|, &field|
|000033d0| 49 6e 66 6f 29 3b 0d 09 | 0d 09 69 66 20 28 20 66 |Info);..|..if ( f|
|000033e0| 69 65 6c 64 49 6e 66 6f | 2e 74 79 70 65 20 3d 3d |ieldInfo|.type ==|
|000033f0| 20 61 72 46 54 50 6f 70 | 75 70 20 26 26 0d 09 09 | arFTPop|up &&...|
|00003400| 20 20 63 61 6c 6c 73 2d | 3e 75 69 2d 3e 54 65 73 | calls-|>ui->Tes|
|00003410| 74 46 69 65 6c 64 50 72 | 6f 63 28 66 69 65 6c 64 |tFieldPr|oc(field|
|00003420| 2c 20 66 70 41 63 74 69 | 6f 6e 2c 20 61 75 74 6f |, fpActi|on, auto|
|00003430| 43 6f 6d 70 6c 65 74 69 | 6f 6e 41 63 74 69 6f 6e |Completi|onAction|
|00003440| 29 20 29 0d 09 09 7b 0d | 09 09 73 65 6c 4e 6f 74 |) )...{.|..selNot|
|00003450| 65 20 20 20 09 09 09 20 | 20 3d 20 6e 6f 74 65 3b |e ... | = note;|
|00003460| 0d 09 09 73 65 6c 46 69 | 65 6c 64 20 20 09 09 09 |...selFi|eld ...|
|00003470| 20 20 3d 20 66 69 65 6c | 64 3b 0d 09 09 6c 61 73 | = fiel|d;...las|
|00003480| 74 4b 65 79 54 69 6d 65 | 09 09 09 20 20 3d 20 49 |tKeyTime|... = I|
|00003490| 6e 74 65 67 65 72 28 54 | 69 63 6b 43 6f 75 6e 74 |nteger(T|ickCount|
|000034a0| 28 29 29 3b 0d 09 09 6c | 61 73 74 4b 65 79 57 61 |());...l|astKeyWa|
|000034b0| 73 42 61 63 6b 73 70 61 | 63 65 20 3d 20 66 61 6c |sBackspa|ce = fal|
|000034c0| 73 65 3b 0d 09 09 74 65 | 78 74 49 73 44 69 72 74 |se;...te|xtIsDirt|
|000034d0| 79 09 09 09 20 20 3d 20 | 66 61 6c 73 65 3b 0d 09 |y... = |false;..|
|000034e0| 09 7d 0d 09 65 6c 73 65 | 0d 09 09 73 65 6c 4e 6f |.}..else|...selNo|
|000034f0| 74 65 20 3d 20 6e 69 6c | 3b 0d 09 0d 09 7d 20 2f |te = nil|;....} /|
|00003500| 2f 20 45 6e 74 65 72 46 | 69 65 6c 64 0d 0d 0d 2f |/ EnterF|ield.../|
|00003510| 2f 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |/ This f|unction |
|00003520| 69 73 20 63 61 6c 6c 65 | 64 20 77 68 65 6e 20 74 |is calle|d when t|
|00003530| 68 65 20 75 73 65 72 20 | 63 6c 69 63 6b 73 20 6f |he user |clicks o|
|00003540| 75 74 20 6f 66 20 61 20 | 66 69 65 6c 64 2e 0d 76 |ut of a |field..v|
|00003550| 6f 69 64 20 50 6c 75 67 | 69 6e 3a 3a 45 78 69 74 |oid Plug|in::Exit|
|00003560| 46 69 65 6c 64 28 29 0d | 09 7b 0d 09 73 65 6c 4e |Field().|.{..selN|
|00003570| 6f 74 65 20 3d 20 6e 69 | 6c 3b 0d 09 7d 20 2f 2f |ote = ni|l;..} //|
|00003580| 20 45 78 69 74 46 69 65 | 6c 64 0d 0d 0d 2f 2a 20 | ExitFie|ld.../* |
|00003590| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|000035a0| 20 63 61 6c 6c 65 64 20 | 77 68 65 6e 20 74 68 65 | called |when the|
|000035b0| 20 75 73 65 72 20 63 6c | 69 63 6b 73 2c 20 74 79 | user cl|icks, ty|
|000035c0| 70 65 73 2c 20 6f 72 20 | 74 61 6b 65 73 20 6f 74 |pes, or |takes ot|
|000035d0| 68 65 72 0d 20 2a 20 61 | 63 74 69 6f 6e 20 69 6e |her. * a|ction in|
|000035e0| 20 74 68 65 20 61 63 74 | 69 76 65 20 66 69 65 6c | the act|ive fiel|
|000035f0| 64 2e 20 20 69 73 42 61 | 63 6b 73 70 61 63 65 20 |d. isBa|ckspace |
|00003600| 69 73 20 74 72 75 65 20 | 69 66 20 74 68 65 20 65 |is true |if the e|
|00003610| 76 65 6e 74 20 69 73 20 | 61 20 70 72 65 73 73 0d |vent is |a press.|
|00003620| 20 2a 20 6f 66 20 74 68 | 65 20 62 61 63 6b 73 70 | * of th|e backsp|
|00003630| 61 63 65 20 6b 65 79 20 | 6f 72 20 65 71 75 69 76 |ace key |or equiv|
|00003640| 61 6c 65 6e 74 2c 20 66 | 61 6c 73 65 20 6f 74 68 |alent, f|alse oth|
|00003650| 65 72 77 69 73 65 20 28 | 77 65 20 77 61 69 74 20 |erwise (|we wait |
|00003660| 6c 6f 6e 67 65 72 20 61 | 66 74 65 72 0d 20 2a 20 |longer a|fter. * |
|00003670| 61 20 62 61 63 6b 73 70 | 61 63 65 20 74 68 61 6e |a backsp|ace than|
|00003680| 20 61 66 74 65 72 20 6f | 74 68 65 72 20 6b 65 79 | after o|ther key|
|00003690| 73 20 74 6f 20 66 69 6e | 69 73 68 20 77 68 61 74 |s to fin|ish what|
|000036a0| 20 74 68 65 20 75 73 65 | 72 20 69 73 20 74 79 70 | the use|r is typ|
|000036b0| 69 6e 67 29 2e 0d 20 2a | 20 69 73 44 69 72 74 79 |ing).. *| isDirty|
|000036c0| 20 69 73 20 74 72 75 65 | 20 69 66 20 74 68 65 20 | is true| if the |
|000036d0| 61 63 74 69 6f 6e 20 69 | 73 20 6f 6e 65 20 74 68 |action i|s one th|
|000036e0| 61 74 20 63 68 61 6e 67 | 65 73 20 74 68 65 20 63 |at chang|es the c|
|000036f0| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 0d 20 |ontents |of the. |
|00003700| 2a 20 66 69 65 6c 64 20 | 28 69 2e 65 2e 20 74 79 |* field |(i.e. ty|
|00003710| 70 69 6e 67 20 6f 72 20 | 63 75 74 2f 70 61 73 74 |ping or |cut/past|
|00003720| 65 20 62 75 74 20 6e 6f | 74 20 43 6f 70 79 2c 20 |e but no|t Copy, |
|00003730| 61 20 6d 6f 75 73 65 20 | 63 6c 69 63 6b 2c 20 6f |a mouse |click, o|
|00003740| 72 20 61 6e 20 61 72 72 | 6f 77 0d 20 2a 20 6b 65 |r an arr|ow. * ke|
|00003750| 79 29 2e 0d 20 2a 2f 0d | 76 6f 69 64 20 50 6c 75 |y).. */.|void Plu|
|00003760| 67 69 6e 3a 3a 4e 6f 74 | 65 55 73 65 72 41 63 74 |gin::Not|eUserAct|
|00003770| 69 6f 6e 28 42 6f 6f 6c | 65 61 6e 20 69 73 42 61 |ion(Bool|ean isBa|
|00003780| 63 6b 73 70 61 63 65 2c | 20 42 6f 6f 6c 65 61 6e |ckspace,| Boolean|
|00003790| 20 69 73 44 69 72 74 79 | 29 0d 09 7b 0d 09 6c 61 | isDirty|)..{..la|
|000037a0| 73 74 4b 65 79 54 69 6d | 65 20 3d 20 49 6e 74 65 |stKeyTim|e = Inte|
|000037b0| 67 65 72 28 54 69 63 6b | 43 6f 75 6e 74 28 29 29 |ger(Tick|Count())|
|000037c0| 3b 0d 09 6c 61 73 74 4b | 65 79 57 61 73 42 61 63 |;..lastK|eyWasBac|
|000037d0| 6b 73 70 61 63 65 20 3d | 20 69 73 42 61 63 6b 73 |kspace =| isBacks|
|000037e0| 70 61 63 65 3b 0d 09 74 | 65 78 74 49 73 44 69 72 |pace;..t|extIsDir|
|000037f0| 74 79 20 3d 20 74 65 78 | 74 49 73 44 69 72 74 79 |ty = tex|tIsDirty|
|00003800| 20 7c 7c 20 69 73 44 69 | 72 74 79 3b 0d 09 7d 20 | || isDi|rty;..} |
|00003810| 2f 2f 20 4e 6f 74 65 55 | 73 65 72 41 63 74 69 6f |// NoteU|serActio|
|00003820| 6e 0d 0d 0d 2f 2a 20 53 | 65 61 72 63 68 20 74 68 |n.../* S|earch th|
|00003830| 72 6f 75 67 68 20 74 68 | 65 20 6c 69 73 74 20 6f |rough th|e list o|
|00003840| 66 20 65 6e 74 72 69 65 | 73 20 69 6e 20 70 6f 70 |f entrie|s in pop|
|00003850| 75 70 54 65 78 74 20 66 | 6f 72 20 6f 6e 65 20 77 |upText f|or one w|
|00003860| 68 69 63 68 20 68 61 73 | 20 61 20 70 72 65 66 69 |hich has| a prefi|
|00003870| 78 0d 20 2a 20 65 71 75 | 61 6c 20 28 75 70 20 74 |x. * equ|al (up t|
|00003880| 6f 20 63 61 73 65 20 64 | 69 66 66 65 72 65 6e 63 |o case d|ifferenc|
|00003890| 65 73 29 20 74 6f 20 6d | 61 74 63 68 54 65 78 74 |es) to m|atchText|
|000038a0| 2e 20 20 49 66 20 77 65 | 20 66 69 6e 64 20 73 75 |. If we| find su|
|000038b0| 63 68 20 61 6e 20 65 6e | 74 72 79 2c 0d 20 2a 20 |ch an en|try,. * |
|000038c0| 70 6c 61 63 65 20 69 74 | 73 20 61 64 64 72 65 73 |place it|s addres|
|000038d0| 73 20 69 6e 20 6d 61 74 | 63 68 53 74 61 72 74 20 |s in mat|chStart |
|000038e0| 61 6e 64 20 69 74 73 20 | 6c 65 6e 67 74 68 20 69 |and its |length i|
|000038f0| 6e 20 6d 61 74 63 68 4c | 65 6e 20 61 6e 64 20 72 |n matchL|en and r|
|00003900| 65 74 75 72 6e 20 74 72 | 75 65 2e 0d 20 2a 20 4f |eturn tr|ue.. * O|
|00003910| 74 68 65 72 77 69 73 65 | 2c 20 72 65 74 75 72 6e |therwise|, return|
|00003920| 20 66 61 6c 73 65 20 28 | 69 6e 20 77 68 69 63 68 | false (|in which|
|00003930| 20 63 61 73 65 20 6d 61 | 74 63 68 53 74 61 72 74 | case ma|tchStart|
|00003940| 20 61 6e 64 20 6d 61 74 | 63 68 4c 65 6e 20 61 72 | and mat|chLen ar|
|00003950| 65 0d 20 2a 20 75 6e 64 | 65 66 69 6e 65 64 29 2e |e. * und|efined).|
|00003960| 0d 20 2a 2f 0d 42 6f 6f | 6c 65 61 6e 20 50 6c 75 |. */.Boo|lean Plu|
|00003970| 67 69 6e 3a 3a 46 69 6e | 64 50 6f 70 75 70 4d 61 |gin::Fin|dPopupMa|
|00003980| 74 63 68 28 20 63 6f 6e | 73 74 20 63 68 61 72 2a |tch( con|st char*|
|00003990| 20 6d 61 74 63 68 54 65 | 78 74 2c 20 49 6e 74 65 | matchTe|xt, Inte|
|000039a0| 67 65 72 20 6d 61 74 63 | 68 54 65 78 74 4c 65 6e |ger matc|hTextLen|
|000039b0| 2c 0d 09 09 09 09 09 09 | 09 09 09 09 20 20 63 6f |,.......|.... co|
|000039c0| 6e 73 74 20 63 68 61 72 | 2a 20 70 6f 70 75 70 54 |nst char|* popupT|
|000039d0| 65 78 74 2c 20 49 6e 74 | 65 67 65 72 20 70 6f 70 |ext, Int|eger pop|
|000039e0| 75 70 54 65 78 74 4c 65 | 6e 2c 0d 09 09 09 09 09 |upTextLe|n,......|
|000039f0| 09 09 09 09 09 20 20 4f | 55 54 20 63 6f 6e 73 74 |..... O|UT const|
|00003a00| 20 63 68 61 72 2a 20 26 | 6d 61 74 63 68 53 74 61 | char* &|matchSta|
|00003a10| 72 74 2c 0d 09 09 09 09 | 09 09 09 09 09 09 20 20 |rt,.....|...... |
|00003a20| 4f 55 54 20 49 6e 74 65 | 67 65 72 20 26 6d 61 74 |OUT Inte|ger &mat|
|00003a30| 63 68 4c 65 6e 20 29 0d | 09 7b 0d 09 2f 2f 20 4c |chLen ).|.{..// L|
|00003a40| 6f 6f 70 20 75 6e 74 69 | 6c 20 74 68 65 20 6c 69 |oop unti|l the li|
|00003a50| 73 74 20 6f 66 20 70 6f | 70 75 70 20 65 6e 74 72 |st of po|pup entr|
|00003a60| 69 65 73 20 68 61 73 20 | 62 65 65 6e 20 65 78 68 |ies has |been exh|
|00003a70| 61 75 73 74 65 64 2e 0d | 09 77 68 69 6c 65 20 28 |austed..|.while (|
|00003a80| 70 6f 70 75 70 54 65 78 | 74 4c 65 6e 20 3e 20 30 |popupTex|tLen > 0|
|00003a90| 29 0d 09 09 7b 0d 09 09 | 2f 2f 20 46 69 6e 64 20 |)...{...|// Find |
|00003aa0| 74 68 65 20 6c 65 6e 67 | 74 68 20 6f 66 20 74 68 |the leng|th of th|
|00003ab0| 65 20 63 75 72 72 65 6e | 74 20 65 6e 74 72 79 2e |e curren|t entry.|
|00003ac0| 0d 09 09 49 6e 74 65 67 | 65 72 20 63 75 72 45 6e |...Integ|er curEn|
|00003ad0| 74 72 79 4c 65 6e 20 3d | 20 30 3b 0d 09 09 77 68 |tryLen =| 0;...wh|
|00003ae0| 69 6c 65 20 28 63 75 72 | 45 6e 74 72 79 4c 65 6e |ile (cur|EntryLen|
|00003af0| 20 3c 20 70 6f 70 75 70 | 54 65 78 74 4c 65 6e 20 | < popup|TextLen |
|00003b00| 26 26 20 70 6f 70 75 70 | 54 65 78 74 5b 63 75 72 |&& popup|Text[cur|
|00003b10| 45 6e 74 72 79 4c 65 6e | 5d 20 21 3d 20 27 5c 6e |EntryLen|] != '\n|
|00003b20| 27 29 0d 09 09 09 63 75 | 72 45 6e 74 72 79 4c 65 |')....cu|rEntryLe|
|00003b30| 6e 2b 2b 3b 0d 09 09 0d | 09 09 2f 2f 20 43 68 65 |n++;....|..// Che|
|00003b40| 63 6b 20 77 68 65 74 68 | 65 72 20 74 68 69 73 20 |ck wheth|er this |
|00003b50| 65 6e 74 72 79 20 69 73 | 20 61 20 6d 61 74 63 68 |entry is| a match|
|00003b60| 2e 0d 09 09 69 66 20 28 | 63 75 72 45 6e 74 72 79 |....if (|curEntry|
|00003b70| 4c 65 6e 20 3e 3d 20 6d | 61 74 63 68 54 65 78 74 |Len >= m|atchText|
|00003b80| 4c 65 6e 29 0d 09 09 09 | 7b 0d 09 09 09 63 68 61 |Len)....|{....cha|
|00003b90| 72 20 6d 61 74 63 68 42 | 75 66 5b 31 5d 2c 20 70 |r matchB|uf[1], p|
|00003ba0| 6f 70 75 70 42 75 66 5b | 31 5d 3b 0d 09 09 09 0d |opupBuf[|1];.....|
|00003bb0| 09 09 09 42 6f 6f 6c 65 | 61 6e 20 69 73 41 4d 61 |...Boole|an isAMa|
|00003bc0| 74 63 68 20 3d 20 74 72 | 75 65 3b 0d 09 09 09 66 |tch = tr|ue;....f|
|00003bd0| 6f 72 20 28 49 6e 74 65 | 67 65 72 20 69 3d 30 3b |or (Inte|ger i=0;|
|00003be0| 20 69 3c 6d 61 74 63 68 | 54 65 78 74 4c 65 6e 3b | i<match|TextLen;|
|00003bf0| 20 69 2b 2b 29 0d 09 09 | 09 09 7b 0d 09 09 09 09 | i++)...|..{.....|
|00003c00| 6d 61 74 63 68 42 75 66 | 5b 30 5d 20 3d 20 6d 61 |matchBuf|[0] = ma|
|00003c10| 74 63 68 54 65 78 74 5b | 69 5d 3b 0d 09 09 09 09 |tchText[|i];.....|
|00003c20| 70 6f 70 75 70 42 75 66 | 5b 30 5d 20 3d 20 70 6f |popupBuf|[0] = po|
|00003c30| 70 75 70 54 65 78 74 5b | 69 5d 3b 0d 09 09 09 09 |pupText[|i];.....|
|00003c40| 63 61 6c 6c 73 2d 3e 75 | 74 69 6c 2d 3e 4c 6f 77 |calls->u|til->Low|
|00003c50| 65 72 53 74 72 69 6e 67 | 28 6d 61 74 63 68 42 75 |erString|(matchBu|
|00003c60| 66 2c 20 31 29 3b 0d 09 | 09 09 09 63 61 6c 6c 73 |f, 1);..|...calls|
|00003c70| 2d 3e 75 74 69 6c 2d 3e | 4c 6f 77 65 72 53 74 72 |->util->|LowerStr|
|00003c80| 69 6e 67 28 70 6f 70 75 | 70 42 75 66 2c 20 31 29 |ing(popu|pBuf, 1)|
|00003c90| 3b 0d 09 09 09 09 69 66 | 20 28 6d 61 74 63 68 42 |;.....if| (matchB|
|00003ca0| 75 66 5b 30 5d 20 21 3d | 20 70 6f 70 75 70 42 75 |uf[0] !=| popupBu|
|00003cb0| 66 5b 30 5d 29 0d 09 09 | 09 09 09 7b 0d 09 09 09 |f[0])...|...{....|
|00003cc0| 09 09 69 73 41 4d 61 74 | 63 68 20 3d 20 66 61 6c |..isAMat|ch = fal|
|00003cd0| 73 65 3b 0d 09 09 09 09 | 09 62 72 65 61 6b 3b 0d |se;.....|.break;.|
|00003ce0| 09 09 09 09 09 7d 0d 09 | 09 09 09 0d 09 09 09 09 |.....}..|........|
|00003cf0| 7d 0d 09 09 09 0d 09 09 | 09 69 66 20 28 69 73 41 |}.......|.if (isA|
|00003d00| 4d 61 74 63 68 29 0d 09 | 09 09 09 7b 0d 09 09 09 |Match)..|...{....|
|00003d10| 09 6d 61 74 63 68 53 74 | 61 72 74 20 3d 20 70 6f |.matchSt|art = po|
|00003d20| 70 75 70 54 65 78 74 3b | 0d 09 09 09 09 6d 61 74 |pupText;|.....mat|
|00003d30| 63 68 4c 65 6e 20 20 20 | 3d 20 63 75 72 45 6e 74 |chLen |= curEnt|
|00003d40| 72 79 4c 65 6e 3b 0d 09 | 09 09 09 72 65 74 75 72 |ryLen;..|...retur|
|00003d50| 6e 20 74 72 75 65 3b 0d | 09 09 09 09 7d 0d 09 09 |n true;.|....}...|
|00003d60| 09 0d 09 09 09 7d 20 2f | 2f 20 69 66 20 28 63 75 |.....} /|/ if (cu|
|00003d70| 72 45 6e 74 72 79 4c 65 | 6e 20 3e 3d 20 6d 61 74 |rEntryLe|n >= mat|
|00003d80| 63 68 54 65 78 74 4c 65 | 6e 29 0d 09 09 0d 09 09 |chTextLe|n)......|
|00003d90| 2f 2f 20 41 64 76 61 6e | 63 65 20 74 6f 20 74 68 |// Advan|ce to th|
|00003da0| 65 20 6e 65 78 74 20 65 | 6e 74 72 79 2e 0d 09 09 |e next e|ntry....|
|00003db0| 70 6f 70 75 70 54 65 78 | 74 20 20 20 20 2b 3d 20 |popupTex|t += |
|00003dc0| 63 75 72 45 6e 74 72 79 | 4c 65 6e 20 2b 20 31 3b |curEntry|Len + 1;|
|00003dd0| 0d 09 09 70 6f 70 75 70 | 54 65 78 74 4c 65 6e 20 |...popup|TextLen |
|00003de0| 2d 3d 20 63 75 72 45 6e | 74 72 79 4c 65 6e 20 2b |-= curEn|tryLen +|
|00003df0| 20 31 3b 0d 09 09 7d 20 | 2f 2f 20 77 68 69 6c 65 | 1;...} |// while|
|00003e00| 20 28 70 6f 70 75 70 54 | 65 78 74 4c 65 6e 20 3e | (popupT|extLen >|
|00003e10| 20 30 29 0d 09 0d 09 72 | 65 74 75 72 6e 20 66 61 | 0)....r|eturn fa|
|00003e20| 6c 73 65 3b 0d 09 7d 20 | 2f 2f 20 46 69 6e 64 50 |lse;..} |// FindP|
|00003e30| 6f 70 75 70 4d 61 74 63 | 68 0d 0d 0d 2f 2a 20 53 |opupMatc|h.../* S|
|00003e40| 63 61 6e 20 74 68 65 20 | 74 65 78 74 20 69 6e 20 |can the |text in |
|00003e50| 74 68 65 20 61 63 74 69 | 76 65 20 66 69 65 6c 64 |the acti|ve field|
|00003e60| 20 74 6f 20 73 65 65 20 | 69 66 20 77 65 20 63 61 | to see |if we ca|
|00003e70| 6e 20 66 69 6e 69 73 68 | 20 77 68 61 74 20 74 68 |n finish| what th|
|00003e80| 65 20 75 73 65 72 0d 20 | 2a 20 68 61 73 20 74 79 |e user. |* has ty|
|00003e90| 70 65 64 20 62 79 20 69 | 6e 73 65 72 74 69 6e 67 |ped by i|nserting|
|00003ea0| 20 61 6e 20 65 6e 74 72 | 79 20 66 72 6f 6d 20 74 | an entr|y from t|
|00003eb0| 68 65 20 70 6f 70 75 70 | 20 6c 69 73 74 2e 20 20 |he popup| list. |
|00003ec0| 54 68 69 73 20 69 73 20 | 63 61 6c 6c 65 64 20 77 |This is |called w|
|00003ed0| 68 65 6e 0d 20 2a 20 73 | 6f 6d 65 6f 6e 65 20 74 |hen. * s|omeone t|
|00003ee0| 72 69 65 73 20 74 6f 20 | 66 6c 75 73 68 20 74 68 |ries to |flush th|
|00003ef0| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th|
|00003f00| 65 20 66 69 65 6c 64 2c | 20 6f 72 20 66 72 6f 6d |e field,| or from|
|00003f10| 20 6f 75 72 20 54 69 63 | 6b 20 6d 65 74 68 6f 64 | our Tic|k method|
|00003f20| 2e 0d 20 2a 20 0d 20 2a | 20 46 55 54 55 52 45 20 |.. * . *| FUTURE |
|00003f30| 4e 4f 54 45 3a 20 6e 65 | 65 64 20 74 6f 20 6d 6f |NOTE: ne|ed to mo|
|00003f40| 64 69 66 79 20 74 68 69 | 73 20 72 6f 75 74 69 6e |dify thi|s routin|
|00003f50| 65 20 74 6f 20 6e 6f 74 | 20 6a 75 73 74 20 73 69 |e to not| just si|
|00003f60| 6c 65 6e 74 6c 79 20 66 | 61 69 6c 20 77 68 65 6e |lently f|ail when|
|00003f70| 0d 20 2a 20 74 65 78 74 | 20 6c 65 6e 67 74 68 73 |. * text| lengths|
|00003f80| 20 65 78 63 65 65 64 20 | 32 30 30 30 20 63 68 61 | exceed |2000 cha|
|00003f90| 72 61 63 74 65 72 73 2e | 20 20 45 69 74 68 65 72 |racters.| Either|
|00003fa0| 20 61 6c 6c 6f 63 61 74 | 65 20 61 20 64 79 6e 61 | allocat|e a dyna|
|00003fb0| 6d 69 63 20 62 75 66 66 | 65 72 2c 0d 20 2a 20 6f |mic buff|er,. * o|
|00003fc0| 72 20 62 65 65 70 2c 20 | 6f 72 20 73 6f 6d 65 74 |r beep, |or somet|
|00003fd0| 68 69 6e 67 2e 0d 20 2a | 2f 0d 76 6f 69 64 20 50 |hing.. *|/.void P|
|00003fe0| 6c 75 67 69 6e 3a 3a 52 | 75 6e 43 6f 6d 70 6c 65 |lugin::R|unComple|
|00003ff0| 74 69 6f 6e 28 29 0d 09 | 7b 0d 09 2f 2f 20 45 78 |tion()..|{..// Ex|
|00004000| 69 74 20 69 66 20 74 68 | 65 20 75 73 65 72 20 68 |it if th|e user h|
|00004010| 61 73 6e 27 74 20 74 79 | 70 65 64 20 61 6e 79 74 |asn't ty|ped anyt|
|00004020| 68 69 6e 67 20 66 6f 72 | 20 75 73 20 74 6f 20 63 |hing for| us to c|
|00004030| 6f 6d 70 6c 65 74 65 2e | 0d 09 69 66 20 28 73 65 |omplete.|..if (se|
|00004040| 6c 4e 6f 74 65 20 3d 3d | 20 6e 69 6c 20 7c 7c 20 |lNote ==| nil || |
|00004050| 21 74 65 78 74 49 73 44 | 69 72 74 79 29 0d 09 09 |!textIsD|irty)...|
|00004060| 72 65 74 75 72 6e 3b 0d | 09 0d 09 74 65 78 74 49 |return;.|...textI|
|00004070| 73 44 69 72 74 79 20 3d | 20 66 61 6c 73 65 3b 0d |sDirty =| false;.|
|00004080| 09 0d 09 2f 2a 20 47 65 | 74 20 74 68 65 20 63 75 |.../* Ge|t the cu|
|00004090| 72 72 65 6e 74 20 63 6f | 6e 74 65 6e 74 73 20 6f |rrent co|ntents o|
|000040a0| 66 20 74 68 65 20 61 63 | 74 69 76 65 20 66 69 65 |f the ac|tive fie|
|000040b0| 6c 64 2e 20 20 45 78 69 | 74 20 69 66 20 74 68 65 |ld. Exi|t if the|
|000040c0| 79 20 61 72 65 0d 09 20 | 2a 20 74 6f 6f 20 6c 61 |y are.. |* too la|
|000040d0| 72 67 65 20 74 6f 20 66 | 69 74 20 69 6e 20 6f 75 |rge to f|it in ou|
|000040e0| 72 20 62 75 66 66 65 72 | 2e 0d 09 20 2a 2f 0d 09 |r buffer|... */..|
|000040f0| 63 68 61 72 20 74 65 78 | 74 42 75 66 5b 32 30 30 |char tex|tBuf[200|
|00004100| 30 5d 3b 0d 09 49 6e 74 | 65 67 65 72 20 73 65 6c |0];..Int|eger sel|
|00004110| 53 74 61 72 74 2c 73 65 | 6c 45 6e 64 3b 0d 09 49 |Start,se|lEnd;..I|
|00004120| 6e 74 65 67 65 72 20 74 | 65 78 74 4c 65 6e 20 3d |nteger t|extLen =|
|00004130| 20 63 61 6c 6c 73 2d 3e | 73 65 6c 2d 3e 47 65 74 | calls->|sel->Get|
|00004140| 53 65 6c 54 65 78 74 28 | 20 73 69 7a 65 6f 66 28 |SelText(| sizeof(|
|00004150| 74 65 78 74 42 75 66 29 | 2c 20 74 65 78 74 42 75 |textBuf)|, textBu|
|00004160| 66 2c 0d 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |f,......|........|
|00004170| 09 09 26 73 65 6c 53 74 | 61 72 74 2c 20 26 73 65 |..&selSt|art, &se|
|00004180| 6c 45 6e 64 20 29 3b 0d | 09 69 66 20 28 74 65 78 |lEnd );.|.if (tex|
|00004190| 74 4c 65 6e 20 3e 3d 20 | 73 69 7a 65 6f 66 28 74 |tLen >= |sizeof(t|
|000041a0| 65 78 74 42 75 66 29 29 | 0d 09 09 72 65 74 75 72 |extBuf))|...retur|
|000041b0| 6e 3b 0d 09 0d 09 2f 2a | 20 46 69 6e 64 20 74 68 |n;..../*| Find th|
|000041c0| 65 20 73 74 61 72 74 20 | 6f 66 20 74 68 65 20 22 |e start |of the "|
|000041d0| 6c 61 73 74 20 65 6e 74 | 72 79 22 20 69 6e 20 74 |last ent|ry" in t|
|000041e0| 68 65 20 74 65 78 74 2e | 20 20 54 68 69 73 20 69 |he text.| This i|
|000041f0| 73 20 61 6c 6c 20 74 65 | 78 74 20 61 66 74 65 72 |s all te|xt after|
|00004200| 0d 09 20 2a 20 74 68 65 | 20 6c 61 73 74 20 63 6f |.. * the| last co|
|00004210| 6d 6d 61 20 63 68 61 72 | 61 63 74 65 72 2c 20 69 |mma char|acter, i|
|00004220| 66 20 61 6e 79 2c 20 61 | 6e 64 20 65 78 63 6c 75 |f any, a|nd exclu|
|00004230| 64 69 6e 67 20 61 6e 79 | 20 6c 65 61 64 69 6e 67 |ding any| leading|
|00004240| 20 73 70 61 63 65 73 2e | 0d 09 20 2a 2f 0d 09 63 | spaces.|.. */..c|
|00004250| 68 61 72 2a 20 73 63 61 | 6e 50 74 72 20 3d 20 74 |har* sca|nPtr = t|
|00004260| 65 78 74 42 75 66 3b 0d | 09 63 68 61 72 2a 20 73 |extBuf;.|.char* s|
|00004270| 74 6f 70 50 74 72 20 3d | 20 74 65 78 74 42 75 66 |topPtr =| textBuf|
|00004280| 20 2b 20 74 65 78 74 4c | 65 6e 3b 0d 09 63 68 61 | + textL|en;..cha|
|00004290| 72 2a 20 65 6e 74 72 79 | 53 74 61 72 74 20 3d 20 |r* entry|Start = |
|000042a0| 74 65 78 74 42 75 66 3b | 0d 09 77 68 69 6c 65 20 |textBuf;|..while |
|000042b0| 28 73 63 61 6e 50 74 72 | 20 3c 20 73 74 6f 70 50 |(scanPtr| < stopP|
|000042c0| 74 72 29 0d 09 09 7b 0d | 09 09 69 66 20 28 2a 73 |tr)...{.|..if (*s|
|000042d0| 63 61 6e 50 74 72 20 3d | 3d 20 27 2c 27 29 0d 09 |canPtr =|= ',')..|
|000042e0| 09 09 65 6e 74 72 79 53 | 74 61 72 74 20 3d 20 73 |..entryS|tart = s|
|000042f0| 63 61 6e 50 74 72 2b 31 | 3b 0d 09 09 0d 09 09 73 |canPtr+1|;......s|
|00004300| 63 61 6e 50 74 72 2b 2b | 3b 0d 09 09 7d 0d 09 0d |canPtr++|;...}...|
|00004310| 09 77 68 69 6c 65 20 28 | 2a 65 6e 74 72 79 53 74 |.while (|*entrySt|
|00004320| 61 72 74 20 3d 3d 20 27 | 20 27 20 7c 7c 20 2a 65 |art == '| ' || *e|
|00004330| 6e 74 72 79 53 74 61 72 | 74 20 3d 3d 20 27 5c 74 |ntryStar|t == '\t|
|00004340| 27 20 7c 7c 20 2a 65 6e | 74 72 79 53 74 61 72 74 |' || *en|tryStart|
|00004350| 20 3d 3d 20 27 5c 6e 27 | 29 0d 09 09 65 6e 74 72 | == '\n'|)...entr|
|00004360| 79 53 74 61 72 74 2b 2b | 3b 0d 09 0d 09 2f 2f 20 |yStart++|;....// |
|00004370| 45 78 69 74 20 69 66 20 | 6e 6f 20 74 65 78 74 20 |Exit if |no text |
|00004380| 68 61 73 20 62 65 65 6e | 20 65 6e 74 65 72 65 64 |has been| entered|
|00004390| 20 79 65 74 2e 0d 09 69 | 66 20 28 65 6e 74 72 79 | yet...i|f (entry|
|000043a0| 53 74 61 72 74 20 3e 3d | 20 74 65 78 74 42 75 66 |Start >=| textBuf|
|000043b0| 20 2b 20 74 65 78 74 4c | 65 6e 29 0d 09 09 72 65 | + textL|en)...re|
|000043c0| 74 75 72 6e 3b 0d 09 0d | 09 2f 2a 20 47 65 74 20 |turn;...|./* Get |
|000043d0| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 65 6e 74 72 |the list| of entr|
|000043e0| 69 65 73 20 69 6e 20 74 | 68 65 20 70 6f 70 75 70 |ies in t|he popup|
|000043f0| 20 6d 65 6e 75 20 66 6f | 72 20 74 68 69 73 20 66 | menu fo|r this f|
|00004400| 69 65 6c 64 2e 20 20 52 | 65 6d 65 6d 62 65 72 0d |ield. R|emember.|
|00004410| 09 20 2a 20 74 68 61 74 | 20 74 68 69 73 20 6c 69 |. * that| this li|
|00004420| 73 74 20 69 73 20 73 74 | 6f 72 65 64 20 69 6e 20 |st is st|ored in |
|00004430| 77 68 61 74 20 69 73 20 | 6e 6f 6d 69 6e 61 6c 6c |what is |nominall|
|00004440| 79 20 74 68 65 20 22 64 | 65 66 61 75 6c 74 20 76 |y the "d|efault v|
|00004450| 61 6c 75 65 22 0d 09 20 | 2a 20 66 69 65 6c 64 20 |alue".. |* field |
|00004460| 6f 66 20 74 68 65 20 66 | 69 65 6c 64 20 64 65 66 |of the f|ield def|
|00004470| 69 6e 69 74 69 6f 6e 2e | 20 20 45 78 69 74 20 69 |inition.| Exit i|
|00004480| 66 20 74 68 65 20 74 65 | 78 74 20 69 73 20 74 6f |f the te|xt is to|
|00004490| 6f 20 6c 6f 6e 67 20 74 | 6f 20 68 6f 6c 64 0d 09 |o long t|o hold..|
|000044a0| 20 2a 20 69 6e 20 6f 75 | 72 20 62 75 66 66 65 72 | * in ou|r buffer|
|000044b0| 2e 0d 09 20 2a 2f 0d 09 | 63 68 61 72 20 70 6f 70 |... */..|char pop|
|000044c0| 75 70 42 75 66 5b 32 30 | 30 30 5d 3b 0d 09 61 72 |upBuf[20|00];..ar|
|000044d0| 46 69 65 6c 64 49 44 20 | 64 65 66 61 75 6c 74 56 |FieldID |defaultV|
|000044e0| 61 6c 75 65 46 69 65 6c | 64 20 3d 20 61 72 46 69 |alueFiel|d = arFi|
|000044f0| 65 6c 64 49 44 28 20 63 | 61 6c 6c 73 2d 3e 73 79 |eldID( c|alls->sy|
|00004500| 73 4f 62 6a 2d 3e 0d 09 | 09 09 09 09 09 09 09 09 |sObj->..|........|
|00004510| 09 09 09 47 65 74 42 75 | 69 6c 74 49 6e 4f 62 6a |...GetBu|iltInObj|
|00004520| 65 63 74 28 62 6f 44 65 | 66 61 75 6c 74 56 61 6c |ect(boDe|faultVal|
|00004530| 75 65 46 69 65 6c 64 29 | 20 29 3b 0d 09 49 6e 74 |ueField)| );..Int|
|00004540| 65 67 65 72 20 70 6f 70 | 75 70 54 65 78 74 4c 65 |eger pop|upTextLe|
|00004550| 6e 20 3d 20 63 61 6c 6c | 73 2d 3e 64 61 74 61 2d |n = call|s->data-|
|00004560| 3e 47 65 74 46 69 65 6c | 64 54 65 78 74 28 20 73 |>GetFiel|dText( s|
|00004570| 65 6c 46 69 65 6c 64 2c | 20 64 65 66 61 75 6c 74 |elField,| default|
|00004580| 56 61 6c 75 65 46 69 65 | 6c 64 2c 0d 09 09 09 09 |ValueFie|ld,.....|
|00004590| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 20 20 73 |........|..... s|
|000045a0| 69 7a 65 6f 66 28 70 6f | 70 75 70 42 75 66 29 2c |izeof(po|pupBuf),|
|000045b0| 20 70 6f 70 75 70 42 75 | 66 20 29 3b 0d 09 69 66 | popupBu|f );..if|
|000045c0| 20 28 70 6f 70 75 70 54 | 65 78 74 4c 65 6e 20 3e | (popupT|extLen >|
|000045d0| 3d 20 73 69 7a 65 6f 66 | 28 70 6f 70 75 70 42 75 |= sizeof|(popupBu|
|000045e0| 66 29 29 0d 09 09 72 65 | 74 75 72 6e 3b 0d 09 0d |f))...re|turn;...|
|000045f0| 09 2f 2a 20 53 65 61 72 | 63 68 20 66 6f 72 20 61 |./* Sear|ch for a|
|00004600| 20 6d 61 74 63 68 20 62 | 65 74 77 65 65 6e 20 74 | match b|etween t|
|00004610| 68 65 20 75 73 65 72 27 | 73 20 74 65 78 74 20 61 |he user'|s text a|
|00004620| 6e 64 20 61 6e 20 65 6e | 74 72 79 20 69 6e 20 74 |nd an en|try in t|
|00004630| 68 65 20 70 6f 70 75 70 | 0d 09 20 2a 20 6d 65 6e |he popup|.. * men|
|00004640| 75 2e 0d 09 20 2a 2f 0d | 09 63 6f 6e 73 74 20 63 |u... */.|.const c|
|00004650| 68 61 72 2a 20 6d 61 74 | 63 68 53 74 61 72 74 3b |har* mat|chStart;|
|00004660| 0d 09 49 6e 74 65 67 65 | 72 20 6d 61 74 63 68 4c |..Intege|r matchL|
|00004670| 65 6e 3b 0d 09 49 6e 74 | 65 67 65 72 20 65 6e 74 |en;..Int|eger ent|
|00004680| 72 79 50 6f 73 20 3d 20 | 65 6e 74 72 79 53 74 61 |ryPos = |entrySta|
|00004690| 72 74 20 2d 20 74 65 78 | 74 42 75 66 3b 0d 09 69 |rt - tex|tBuf;..i|
|000046a0| 66 20 28 21 46 69 6e 64 | 50 6f 70 75 70 4d 61 74 |f (!Find|PopupMat|
|000046b0| 63 68 28 20 65 6e 74 72 | 79 53 74 61 72 74 2c 20 |ch( entr|yStart, |
|000046c0| 74 65 78 74 4c 65 6e 20 | 2d 20 65 6e 74 72 79 50 |textLen |- entryP|
|000046d0| 6f 73 2c 0d 09 09 09 09 | 09 09 09 09 70 6f 70 75 |os,.....|....popu|
|000046e0| 70 42 75 66 2c 20 70 6f | 70 75 70 54 65 78 74 4c |pBuf, po|pupTextL|
|000046f0| 65 6e 2c 0d 09 09 09 09 | 09 09 09 09 6d 61 74 63 |en,.....|....matc|
|00004700| 68 53 74 61 72 74 2c 20 | 6d 61 74 63 68 4c 65 6e |hStart, |matchLen|
|00004710| 20 29 29 0d 09 09 72 65 | 74 75 72 6e 3b 0d 09 0d | ))...re|turn;...|
|00004720| 09 2f 2a 20 57 65 20 66 | 6f 75 6e 64 20 61 20 6d |./* We f|ound a m|
|00004730| 61 74 63 68 3b 20 65 78 | 69 74 20 69 66 20 69 74 |atch; ex|it if it|
|00004740| 20 69 73 20 74 6f 6f 20 | 6c 61 72 67 65 20 74 6f | is too |large to|
|00004750| 20 61 70 70 65 6e 64 20 | 6f 6e 74 6f 20 6f 75 72 | append |onto our|
|00004760| 20 74 65 78 74 0d 09 20 | 2a 20 62 75 66 66 65 72 | text.. |* buffer|
|00004770| 2e 0d 09 20 2a 2f 0d 09 | 69 66 20 28 65 6e 74 72 |... */..|if (entr|
|00004780| 79 50 6f 73 20 2b 20 6d | 61 74 63 68 4c 65 6e 20 |yPos + m|atchLen |
|00004790| 3e 3d 20 73 69 7a 65 6f | 66 28 74 65 78 74 42 75 |>= sizeo|f(textBu|
|000047a0| 66 29 29 0d 09 09 72 65 | 74 75 72 6e 3b 0d 09 0d |f))...re|turn;...|
|000047b0| 09 2f 2a 20 46 69 6e 69 | 73 68 20 77 68 61 74 20 |./* Fini|sh what |
|000047c0| 74 68 65 20 75 73 65 72 | 20 68 61 73 20 74 79 70 |the user| has typ|
|000047d0| 65 64 20 77 69 74 68 20 | 74 68 65 20 65 6e 74 72 |ed with |the entr|
|000047e0| 79 20 66 72 6f 6d 20 74 | 68 65 20 70 6f 70 75 70 |y from t|he popup|
|000047f0| 20 6d 65 6e 75 2c 20 61 | 6e 64 0d 09 20 2a 20 73 | menu, a|nd.. * s|
|00004800| 65 6c 65 63 74 20 74 68 | 65 20 74 65 78 74 20 77 |elect th|e text w|
|00004810| 65 20 61 72 65 20 69 6e | 73 65 72 74 69 6e 67 2e |e are in|serting.|
|00004820| 0d 09 20 2a 2f 0d 09 49 | 6e 74 65 67 65 72 20 63 |.. */..I|nteger c|
|00004830| 6f 70 79 4c 65 6e 20 3d | 20 6d 61 74 63 68 4c 65 |opyLen =| matchLe|
|00004840| 6e 20 2d 20 28 74 65 78 | 74 4c 65 6e 20 2d 20 65 |n - (tex|tLen - e|
|00004850| 6e 74 72 79 50 6f 73 29 | 3b 0d 09 69 66 20 28 63 |ntryPos)|;..if (c|
|00004860| 6f 70 79 4c 65 6e 20 3e | 20 30 29 0d 09 09 7b 0d |opyLen >| 0)...{.|
|00004870| 09 09 73 65 6c 53 74 61 | 72 74 20 3d 20 74 65 78 |..selSta|rt = tex|
|00004880| 74 4c 65 6e 3b 0d 09 09 | 73 65 6c 45 6e 64 20 20 |tLen;...|selEnd |
|00004890| 20 3d 20 73 65 6c 53 74 | 61 72 74 20 2b 20 63 6f | = selSt|art + co|
|000048a0| 70 79 4c 65 6e 3b 0d 09 | 09 66 6f 72 20 28 49 6e |pyLen;..|.for (In|
|000048b0| 74 65 67 65 72 20 69 3d | 30 3b 20 69 3c 63 6f 70 |teger i=|0; i<cop|
|000048c0| 79 4c 65 6e 3b 20 69 2b | 2b 29 0d 09 09 09 74 65 |yLen; i+|+)....te|
|000048d0| 78 74 42 75 66 5b 74 65 | 78 74 4c 65 6e 2b 69 5d |xtBuf[te|xtLen+i]|
|000048e0| 20 3d 20 6d 61 74 63 68 | 53 74 61 72 74 5b 74 65 | = match|Start[te|
|000048f0| 78 74 4c 65 6e 2d 65 6e | 74 72 79 50 6f 73 2b 69 |xtLen-en|tryPos+i|
|00004900| 5d 3b 0d 09 09 0d 09 09 | 63 61 6c 6c 73 2d 3e 73 |];......|calls->s|
|00004910| 65 6c 2d 3e 53 65 74 53 | 65 6c 54 65 78 74 28 74 |el->SetS|elText(t|
|00004920| 65 78 74 42 75 66 2c 20 | 74 65 78 74 4c 65 6e 2b |extBuf, |textLen+|
|00004930| 63 6f 70 79 4c 65 6e 2c | 20 73 65 6c 53 74 61 72 |copyLen,| selStar|
|00004940| 74 2c 20 73 65 6c 45 6e | 64 29 3b 0d 09 09 7d 0d |t, selEn|d);...}.|
|00004950| 09 0d 09 7d 20 2f 2f 20 | 52 75 6e 43 6f 6d 70 6c |...} // |RunCompl|
|00004960| 65 74 69 6f 6e 0d 00 00 | 00 00 00 00 00 00 00 00 |etion...|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 01 00 00 00 03 30 | 00 00 02 30 00 00 00 4a |.......0|...0...J|
|00004990| 00 00 00 6c 07 33 44 44 | 65 62 75 67 01 00 00 00 |...l.3DD|ebug....|
|000049a0| 00 16 00 02 24 0a a9 2a | 88 a1 a9 30 d5 84 00 00 |....$..*|...0....|
|000049b0| 11 41 75 74 6f 43 6f 6d | 70 6c 65 74 69 6f 6e 2e |.AutoCom|pletion.|
|000049c0| 63 70 02 00 00 00 54 45 | 58 54 4d 50 53 20 00 00 |cp....TE|XTMPS ..|
|000049d0| 00 00 54 45 58 54 4d 50 | 53 20 00 00 00 00 00 00 |..TEXTMP|S ......|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 a9 35 03 22 00 00 | 48 e6 00 00 03 7a 4c 41 |...5."..|H....zLA|
|00004a00| 21 00 01 52 02 f7 00 00 | 00 02 02 f2 00 00 00 00 |!..R....|........|
|00004a10| e3 b5 00 00 f0 00 00 00 | 00 11 c3 e3 00 11 d0 00 |........|........|
|00004a20| a8 f4 7c 99 a9 04 3d 51 | 00 00 00 00 00 00 00 00 |..|...=Q|........|
|00004a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 07 32 |........|.......2|
|00004a40| 00 0f 00 00 00 00 00 00 | 00 00 07 41 00 03 07 46 |........|...A...F|
|00004a50| 00 01 07 59 00 03 00 00 | 00 00 1b 00 00 00 00 6c |...Y....|.......l|
|00004a60| 15 41 72 72 61 6e 67 65 | 20 61 6e 64 20 55 6e 64 |.Arrange| and Und|
|00004a70| 65 72 57 61 72 65 02 00 | 00 00 54 45 58 54 47 45 |erWare..|..TEXTGE|
|00004a80| 00 00 00 48 00 0c 43 6f | 75 72 69 65 72 00 01 70 |...H..Co|urier..p|
|00004a90| 20 7b 52 61 6d 45 78 69 | 73 74 73 7d 3b 09 20 09 | {RamExi|sts};. .|
|00004aa0| 49 46 20 22 7b 41 00 07 | 00 03 00 2a 00 03 02 fc |IF "{A..|...*....|
|00004ab0| 02 71 00 2a 00 03 02 fc | 02 71 aa 4c 53 3e 00 00 |.q.*....|.q.LS>..|
|00004ac0| 1e 57 00 00 1e 57 00 00 | 1a 64 01 00 00 00 01 be |.W...W..|.d......|
|00004ad0| 00 14 00 00 09 31 00 00 | 09 41 11 4d 61 69 6e 20 |.....1..|.A.Main |
|00004ae0| 65 6e 74 72 79 20 70 6f | 69 6e 74 00 00 00 0b 60 |entry po|int....`|
|00004af0| 00 00 0b 6d 11 20 20 20 | 4f 75 72 4d 6f 64 75 6c |...m. |OurModul|
|00004b00| 65 52 6f 6f 74 00 00 00 | 17 2e 00 00 17 2e 03 2d |eRoot...|.......-|
|00004b10| 31 00 00 00 17 51 00 00 | 17 57 07 50 6c 75 67 69 |1....Q..|.W.Plugi|
|00004b20| 6e 00 00 00 19 5a 00 00 | 19 60 09 20 20 20 50 6c |n....Z..|.`. Pl|
|00004b30| 75 67 69 6e 00 00 1f 61 | 00 00 1f 68 0b 20 20 20 |ugin...a|...h. |
|00004b40| 7e 50 6c 75 67 69 6e 00 | 00 00 20 e9 00 00 20 f4 |~Plugin.|.. ... .|
|00004b50| 0f 20 20 20 43 6c 69 63 | 6b 4e 6f 74 69 66 79 00 |. Clic|kNotify.|
|00004b60| 00 00 23 78 00 00 23 81 | 0d 20 20 20 4b 65 79 4e |..#x..#.|. KeyN|
|00004b70| 6f 74 69 66 79 00 00 00 | 25 92 00 00 25 9c 0d 20 |otify...|%...%.. |
|00004b80| 20 20 4d 65 6e 75 4e 6f | 74 69 66 79 00 00 28 1c | MenuNo|tify..(.|
|00004b90| 00 00 28 27 0f 20 20 20 | 46 69 65 6c 64 4e 6f 74 |..('. |FieldNot|
|00004ba0| 69 66 79 00 00 00 2b 20 | 00 00 2b 2b 0f 20 20 20 |ify...+ |..++. |
|00004bb0| 54 6f 70 69 63 4e 6f 74 | 69 66 79 00 00 00 2c 17 |TopicNot|ify...,.|
|00004bc0| 00 00 2c 21 0d 20 20 20 | 54 69 63 6b 4e 6f 74 69 |..,!. |TickNoti|
|00004bd0| 66 79 00 00 2f 06 00 00 | 2f 10 0d 20 20 20 46 69 |fy../...|/.. Fi|
|00004be0| 6c 65 4e 6f 74 69 66 79 | 00 00 30 2f 00 00 30 39 |leNotify|..0/..09|
|00004bf0| 0d 20 20 20 51 75 69 74 | 4e 6f 74 69 66 79 00 00 |. Quit|Notify..|
|00004c00| 31 94 00 00 31 9d 0d 20 | 20 20 41 54 4d 4e 6f 74 |1...1.. | ATMNot|
|00004c10| 69 66 79 00 00 00 32 0b | 00 00 32 15 0d 20 20 20 |ify...2.|..2.. |
|00004c20| 45 6e 74 65 72 46 69 65 | 6c 64 00 00 34 dc 00 00 |EnterFie|ld..4...|
|00004c30| 34 e5 0d 20 20 20 45 78 | 69 74 46 69 65 6c 64 00 |4.. Ex|itField.|
|00004c40| 00 00 36 e5 00 00 36 f3 | 11 20 20 20 4e 6f 74 65 |..6...6.|. Note|
|00004c50| 55 73 65 72 41 63 74 69 | 6f 6e 00 00 38 f5 00 00 |UserActi|on..8...|
|00004c60| 39 03 11 20 20 20 46 69 | 6e 64 50 6f 70 75 70 4d |9.. Fi|ndPopupM|
|00004c70| 61 74 63 68 00 00 3f 67 | 00 00 3f 74 11 20 20 20 |atch..?g|..?t. |
|00004c80| 52 75 6e 43 6f 6d 70 6c | 65 74 69 6f 6e 00 00 00 |RunCompl|etion...|
|00004c90| 00 1e 00 2a 00 03 02 fc | 02 71 00 2a 00 03 02 fc |...*....|.q.*....|
|00004ca0| 02 71 00 00 1a 64 00 00 | 00 00 00 00 00 00 00 00 |.q...d..|........|
|00004cb0| 00 00 01 00 00 00 03 30 | 00 00 02 30 00 00 00 4a |.......0|...0...J|
|00004cc0| 01 1b cd 58 0a a8 00 00 | 00 1c 00 4a 00 00 4d 50 |...X....|...J..MP|
|00004cd0| 53 52 00 02 00 0a 03 ed | ff ff 00 00 00 00 00 00 |SR......|........|
|00004ce0| 00 00 03 ef ff ff 00 00 | 00 4c 00 00 00 00 03 f0 |........|.L......|
|00004cf0| ff ff 00 00 02 0e 01 1e | 16 48 00 00 00 00 00 00 |........|.H......|
+--------+-------------------------+-------------------------+--------+--------+