home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1992-04-08 | 12.9 KB | [TEXT/CCL2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Apr 8 19:02:50 1992, modified Wed Apr 8 19:02:50 1992, creator Common Lisp 2, type ASCII, 12428 bytes "draw-dialog-class.lisp" , at 0x310c 441 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 | [CCL2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 64 72 61 77 2d 64 | 69 61 6c 6f 67 2d 63 6c |..draw-d|ialog-cl|
|00000010| 61 73 73 2e 6c 69 73 70 | 00 00 00 00 00 00 00 00 |ass.lisp|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 30 8c 00 | 00 01 b9 a6 09 2c 1a a6 |.....0..|.....,..|
|00000060| 09 2c 1a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.,......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7b 29 00 00 |........|....{)..|
|00000080| 23 7c 0d 20 20 20 64 72 | 61 77 2d 64 69 61 6c 6f |#|. dr|aw-dialo|
|00000090| 67 2d 63 6c 61 73 73 2e | 6c 69 73 70 0d 0d 20 20 |g-class.|lisp.. |
|000000a0| 20 44 65 66 69 6e 65 73 | 20 74 68 65 20 44 52 41 | Defines| the DRA|
|000000b0| 57 2d 44 49 41 4c 4f 47 | 20 63 6c 61 73 73 20 75 |W-DIALOG| class u|
|000000c0| 73 65 64 20 69 6e 20 74 | 68 65 20 4d 69 6e 69 2d |sed in t|he Mini-|
|000000d0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 0d 20 20 20 73 |Applicat|ion. s|
|000000e0| 61 6d 70 6c 65 20 70 72 | 6f 67 72 61 6d 2e 0d 0d |ample pr|ogram...|
|000000f0| 20 20 20 46 6f 72 20 66 | 75 72 74 68 65 72 20 69 | For f|urther i|
|00000100| 6e 66 6f 2c 20 73 65 65 | 20 66 69 6c 65 73 20 22 |nfo, see| files "|
|00000110| 41 62 6f 75 74 20 4d 69 | 6e 69 2d 41 70 70 22 20 |About Mi|ni-App" |
|00000120| 61 6e 64 20 22 49 6e 73 | 74 72 75 63 74 69 6f 6e |and "Ins|truction|
|00000130| 73 22 2e 0d 0d 0d 20 20 | 20 43 6f 70 79 72 69 67 |s".... | Copyrig|
|00000140| 68 74 20 31 39 39 30 2c | 20 31 39 39 31 20 62 79 |ht 1990,| 1991 by|
|00000150| 20 52 75 62 65 6e 20 4b | 6c 65 69 6d 61 6e 20 66 | Ruben K|leiman f|
|00000160| 6f 72 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |or Apple| Compute|
|00000170| 72 2c 20 49 6e 63 2e 0d | 0d 20 20 20 43 68 61 6e |r, Inc..|. Chan|
|00000180| 67 65 20 48 69 73 74 6f | 72 79 2e 0d 20 20 20 30 |ge Histo|ry.. 0|
|00000190| 33 2d 31 32 2d 39 32 20 | 73 6c 6d 20 20 55 70 64 |3-12-92 |slm Upd|
|000001a0| 61 74 65 64 20 66 69 6c | 65 20 68 65 61 64 65 72 |ated fil|e header|
|000001b0| 20 63 6f 6d 6d 65 6e 74 | 73 2e 0d 20 20 20 30 33 | comment|s.. 03|
|000001c0| 2d 31 30 2d 39 32 20 73 | 6c 6d 20 20 43 72 65 61 |-10-92 s|lm Crea|
|000001d0| 74 65 20 62 79 20 52 65 | 63 74 61 6e 67 6c 65 20 |te by Re|ctangle |
|000001e0| 6d 65 6e 75 20 69 74 65 | 6d 20 63 68 65 63 6b 6d |menu ite|m checkm|
|000001f0| 61 72 6b 20 69 73 20 6e | 6f 77 20 0d 20 20 20 20 |ark is n|ow . |
|00000200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6d 61 69 | | mai|
|00000210| 6e 74 61 69 6e 65 64 20 | 62 79 20 76 69 65 77 2d |ntained |by view-|
|00000220| 61 63 74 69 76 61 74 65 | 2d 65 76 65 6e 74 2d 68 |activate|-event-h|
|00000230| 61 6e 64 6c 65 72 2e 20 | 4e 6f 74 65 0d 20 20 20 |andler. |Note. |
|00000240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 74 68 | | th|
|00000250| 61 74 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 63 |at there| is no c|
|00000260| 68 61 6e 67 65 20 77 68 | 65 6e 20 61 6e 6f 74 68 |hange wh|en anoth|
|00000270| 65 72 20 74 79 70 65 20 | 6f 66 20 0d 20 20 20 20 |er type |of . |
|00000280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 77 69 6e | | win|
|00000290| 64 6f 77 20 6f 74 68 65 | 72 20 74 68 61 6e 20 61 |dow othe|r than a|
|000002a0| 20 64 72 61 77 2d 64 69 | 61 6c 6f 67 20 69 73 20 | draw-di|alog is |
|000002b0| 61 63 74 69 76 61 74 65 | 64 2e 0d 20 20 20 30 33 |activate|d.. 03|
|000002c0| 2d 30 38 2d 39 32 20 73 | 6c 6d 20 20 43 68 61 6e |-08-92 s|lm Chan|
|000002d0| 67 65 64 20 63 6c 61 73 | 73 20 6f 66 20 64 72 61 |ged clas|s of dra|
|000002e0| 77 2d 64 69 61 6c 6f 67 | 20 66 72 6f 6d 20 63 6f |w-dialog| from co|
|000002f0| 6c 6f 72 2d 64 69 61 6c | 6f 67 20 74 6f 20 0d 20 |lor-dial|og to . |
|00000300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000310| 64 69 61 6c 6f 67 20 62 | 65 63 61 75 73 65 20 63 |dialog b|ecause c|
|00000320| 6f 6c 6f 72 2d 64 69 61 | 6c 6f 67 20 69 73 20 73 |olor-dia|log is s|
|00000330| 75 70 65 72 73 65 64 65 | 64 2c 20 61 6e 64 0d 20 |upersede|d, and. |
|00000340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000350| 77 61 6e 74 20 74 75 74 | 6f 72 69 61 6c 20 74 6f |want tut|orial to|
|00000360| 20 72 75 6e 20 6f 6e 20 | 42 26 57 20 4d 61 63 73 | run on |B&W Macs|
|00000370| 2e 0d 0d 7c 23 0d 0d 3b | 3b 3b 3b 3b 3b 3b 3b 3b |...|#..;|;;;;;;;;|
|00000380| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000390| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000003a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000003b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000003c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000003d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000003e0| 3b 0d 3b 3b 3b 20 44 65 | 66 69 6e 65 20 44 52 41 |;.;;; De|fine DRA|
|000003f0| 57 2d 44 49 41 4c 4f 47 | 20 63 6c 61 73 73 0d 3b |W-DIALOG| class.;|
|00000400| 3b 3b 0d 3b 3b 3b 20 20 | 20 54 68 69 73 20 63 6c |;;.;;; | This cl|
|00000410| 61 73 73 20 69 73 20 75 | 73 65 64 20 74 6f 20 63 |ass is u|sed to c|
|00000420| 72 65 61 74 65 20 77 69 | 6e 64 6f 77 73 20 6f 6e |reate wi|ndows on|
|00000430| 20 77 68 69 63 68 20 77 | 65 20 77 69 6c 6c 20 62 | which w|e will b|
|00000440| 75 69 6c 64 20 6f 62 6a | 65 63 74 73 2e 0d 3b 3b |uild obj|ects..;;|
|00000450| 3b 20 20 20 54 68 65 20 | 77 69 6e 64 6f 77 20 6d |; The |window m|
|00000460| 61 79 20 62 65 20 75 73 | 65 64 20 75 6e 64 65 72 |ay be us|ed under|
|00000470| 20 74 77 6f 20 6d 61 69 | 6e 20 6d 6f 64 65 73 3a | two mai|n modes:|
|00000480| 0d 3b 3b 3b 0d 3b 3b 3b | 20 20 20 20 20 20 20 20 |.;;;.;;;| |
|00000490| 20 20 20 20 41 55 54 48 | 4f 52 20 4d 4f 44 45 20 | AUTH|OR MODE |
|000004a0| 2d 2d 20 49 74 20 69 73 | 20 70 6f 73 73 69 62 6c |-- It is| possibl|
|000004b0| 65 20 74 6f 20 61 64 64 | 20 6f 62 6a 65 63 74 73 |e to add| objects|
|000004c0| 20 74 6f 20 74 68 65 20 | 77 69 6e 64 6f 77 0d 3b | to the |window.;|
|000004d0| 3b 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;; | |
|000004e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 72 6f | | fro|
|000004f0| 6d 20 74 68 65 20 70 61 | 6c 65 74 74 65 2c 20 6c |m the pa|lette, l|
|00000500| 6f 6f 6b 20 61 74 20 6f | 62 6a 65 63 74 20 70 72 |ook at o|bject pr|
|00000510| 6f 70 65 72 74 69 65 73 | 2c 0d 3b 3b 3b 20 20 20 |operties|,.;;; |
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000530| 20 20 20 20 20 20 20 20 | 61 6e 64 20 65 64 69 74 | |and edit|
|00000540| 20 6f 62 6a 65 63 74 20 | 73 63 72 69 70 74 73 2e | object |scripts.|
|00000550| 0d 3b 3b 3b 0d 3b 3b 3b | 20 20 20 20 20 20 20 20 |.;;;.;;;| |
|00000560| 20 20 20 20 42 52 4f 57 | 53 45 20 4d 4f 44 45 20 | BROW|SE MODE |
|00000570| 2d 2d 20 4f 6e 6c 79 20 | 74 68 65 20 72 65 67 75 |-- Only |the regu|
|00000580| 6c 61 72 20 73 63 72 69 | 70 74 20 68 61 6e 64 6c |lar scri|pt handl|
|00000590| 65 72 73 20 61 72 65 20 | 61 63 74 69 76 61 74 65 |ers are |activate|
|000005a0| 64 2e 0d 3b 3b 3b 0d 3b | 3b 3b 20 20 20 54 68 65 |d..;;;.;|;; The|
|000005b0| 20 73 6c 6f 74 20 62 72 | 6f 77 73 65 2d 6d 6f 64 | slot br|owse-mod|
|000005c0| 65 20 64 65 74 65 72 6d | 69 6e 65 73 20 77 68 69 |e determ|ines whi|
|000005d0| 63 68 20 6d 6f 64 65 20 | 74 68 65 20 77 69 6e 64 |ch mode |the wind|
|000005e0| 6f 77 20 69 73 20 69 6e | 20 28 64 65 66 61 75 6c |ow is in| (defaul|
|000005f0| 74 3a 20 41 75 74 68 6f | 72 20 6d 6f 64 65 29 0d |t: Autho|r mode).|
|00000600| 3b 3b 3b 20 20 20 0d 28 | 64 65 66 63 6c 61 73 73 |;;; .(|defclass|
|00000610| 20 64 72 61 77 2d 64 69 | 61 6c 6f 67 20 28 77 69 | draw-di|alog (wi|
|00000620| 6e 64 6f 77 29 0d 20 20 | 28 28 6d 79 2d 69 74 65 |ndow). |((my-ite|
|00000630| 6d 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ms | |
|00000640| 3a 69 6e 69 74 66 6f 72 | 6d 20 4e 49 4c 29 20 20 |:initfor|m NIL) |
|00000650| 20 20 20 20 20 3b 20 4c | 69 73 74 20 6f 66 20 61 | ; L|ist of a|
|00000660| 6c 6c 20 69 74 65 6d 73 | 20 69 6e 20 77 69 6e 64 |ll items| in wind|
|00000670| 6f 77 0d 20 20 20 28 69 | 74 65 6d 2d 6c 61 73 74 |ow. (i|tem-last|
|00000680| 2d 75 6e 64 65 72 2d 6d | 6f 75 73 65 20 3a 69 6e |-under-m|ouse :in|
|00000690| 69 74 66 6f 72 6d 20 4e | 49 4c 29 20 20 20 20 20 |itform N|IL) |
|000006a0| 20 20 3b 20 49 74 65 6d | 20 63 75 72 72 65 6e 74 | ; Item| current|
|000006b0| 6c 79 20 75 6e 64 65 72 | 20 74 68 65 20 6d 6f 75 |ly under| the mou|
|000006c0| 73 65 0d 20 20 20 28 62 | 72 6f 77 73 65 2d 6d 6f |se. (b|rowse-mo|
|000006d0| 64 65 20 20 20 20 20 20 | 20 20 20 20 20 3a 69 6e |de | :in|
|000006e0| 69 74 66 6f 72 6d 20 6e | 69 6c 29 20 20 20 20 20 |itform n|il) |
|000006f0| 20 20 3b 20 4d 6f 64 65 | 20 69 6e 20 77 68 69 63 | ; Mode| in whic|
|00000700| 68 20 77 69 6e 64 6f 77 | 20 69 73 20 62 65 69 6e |h window| is bein|
|00000710| 67 20 75 73 65 64 20 28 | 64 65 66 61 75 6c 74 20 |g used (|default |
|00000720| 3d 20 61 75 74 68 6f 72 | 29 0d 20 20 20 28 73 65 |= author|). (se|
|00000730| 6c 65 63 74 69 6f 6e 73 | 20 20 20 20 20 20 20 20 |lections| |
|00000740| 20 20 20 20 3a 69 6e 69 | 74 66 6f 72 6d 20 6e 69 | :ini|tform ni|
|00000750| 6c 29 20 20 20 20 20 20 | 20 3b 20 43 75 72 72 65 |l) | ; Curre|
|00000760| 6e 74 6c 79 20 73 65 6c | 65 63 74 65 64 20 69 74 |ntly sel|ected it|
|00000770| 65 6d 28 73 29 0d 20 20 | 20 28 63 72 65 61 74 65 |em(s). | (create|
|00000780| 2d 62 79 2d 72 65 63 74 | 61 6e 67 6c 65 20 20 20 |-by-rect|angle |
|00000790| 3a 69 6e 69 74 66 6f 72 | 6d 20 6e 69 6c 29 29 20 |:initfor|m nil)) |
|000007a0| 20 20 20 20 20 3b 20 43 | 61 6e 20 64 72 61 77 2d | ; C|an draw-|
|000007b0| 69 74 65 6d 73 20 62 65 | 20 63 72 65 61 74 65 64 |items be| created|
|000007c0| 20 62 79 20 64 72 61 67 | 67 69 6e 67 20 6f 75 74 | by drag|ging out|
|000007d0| 20 61 20 72 65 63 74 61 | 6e 67 6c 65 3f 0d 20 20 | a recta|ngle?. |
|000007e0| 28 3a 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |(:docume|ntation |
|000007f0| 22 54 68 69 73 20 63 6c | 61 73 73 20 64 65 66 69 |"This cl|ass defi|
|00000800| 6e 65 73 20 6f 75 72 20 | 77 69 6e 64 6f 77 73 22 |nes our |windows"|
|00000810| 29 29 0d 0d 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |))..;;;;|;;;;;;;;|
|00000820| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000830| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000840| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000850| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000860| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000870| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 0d 3b |;;;;;;;;|;;;;;;.;|
|00000880| 3b 3b 20 76 69 65 77 2d | 61 63 74 69 76 61 74 65 |;; view-|activate|
|00000890| 2d 65 76 65 6e 74 2d 68 | 61 6e 64 6c 65 72 20 5b |-event-h|andler [|
|000008a0| 64 72 61 77 2d 64 69 61 | 6c 6f 67 5d 0d 3b 3b 3b |draw-dia|log].;;;|
|000008b0| 0d 3b 3b 3b 20 54 68 69 | 73 20 67 65 74 73 20 63 |.;;; Thi|s gets c|
|000008c0| 61 6c 6c 65 64 20 62 79 | 20 4d 43 4c 20 77 68 65 |alled by| MCL whe|
|000008d0| 6e 65 76 65 72 20 74 68 | 65 20 77 69 6e 64 6f 77 |never th|e window|
|000008e0| 20 69 73 20 61 62 6f 75 | 74 20 74 6f 20 62 65 20 | is abou|t to be |
|000008f0| 61 63 74 69 76 61 74 65 | 64 2e 0d 3b 3b 3b 20 57 |activate|d..;;; W|
|00000900| 65 20 77 61 6e 74 20 74 | 6f 20 6d 61 6b 65 20 73 |e want t|o make s|
|00000910| 75 72 65 20 74 68 61 74 | 20 74 68 65 20 57 69 6e |ure that| the Win|
|00000920| 64 6f 77 20 49 6e 66 6f | 2e 2e 2e 20 61 6e 64 20 |dow Info|... and |
|00000930| 57 69 6e 64 6f 77 20 53 | 63 72 69 70 74 20 6d 65 |Window S|cript me|
|00000940| 6e 75 20 69 74 65 6d 73 | 0d 3b 3b 3b 20 61 72 65 |nu items|.;;; are|
|00000950| 20 61 63 74 69 76 61 74 | 65 64 20 77 68 65 6e 20 | activat|ed when |
|00000960| 74 68 69 73 20 77 69 6e | 64 6f 77 20 69 73 20 69 |this win|dow is i|
|00000970| 6e 20 74 68 65 20 66 72 | 6f 6e 74 2e 0d 3b 3b 3b |n the fr|ont..;;;|
|00000980| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 76 69 65 77 |.(defmet|hod view|
|00000990| 2d 61 63 74 69 76 61 74 | 65 2d 65 76 65 6e 74 2d |-activat|e-event-|
|000009a0| 68 61 6e 64 6c 65 72 20 | 28 28 77 20 64 72 61 77 |handler |((w draw|
|000009b0| 2d 64 69 61 6c 6f 67 29 | 29 0d 20 20 28 6d 65 6e |-dialog)|). (men|
|000009c0| 75 2d 69 74 65 6d 2d 65 | 6e 61 62 6c 65 20 2a 77 |u-item-e|nable *w|
|000009d0| 69 6e 64 6f 77 2d 6f 62 | 6a 65 63 74 2d 69 6e 66 |indow-ob|ject-inf|
|000009e0| 6f 2d 6d 65 6e 75 2d 69 | 74 65 6d 2a 29 0d 20 20 |o-menu-i|tem*). |
|000009f0| 28 6d 65 6e 75 2d 69 74 | 65 6d 2d 65 6e 61 62 6c |(menu-it|em-enabl|
|00000a00| 65 20 2a 77 69 6e 64 6f | 77 2d 73 63 72 69 70 74 |e *windo|w-script|
|00000a10| 2d 6d 65 6e 75 2d 69 74 | 65 6d 2a 29 0d 20 20 28 |-menu-it|em*). (|
|00000a20| 73 65 74 2d 6d 65 6e 75 | 2d 69 74 65 6d 2d 63 68 |set-menu|-item-ch|
|00000a30| 65 63 6b 2d 6d 61 72 6b | 20 2a 63 72 65 61 74 65 |eck-mark| *create|
|00000a40| 2d 62 79 2d 72 65 63 74 | 61 6e 67 6c 65 2d 6d 65 |-by-rect|angle-me|
|00000a50| 6e 75 2d 69 74 65 6d 2a | 20 0d 20 20 20 20 20 20 |nu-item*| . |
|00000a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a70| 20 20 20 20 20 20 28 73 | 6c 6f 74 2d 76 61 6c 75 | (s|lot-valu|
|00000a80| 65 20 77 20 27 63 72 65 | 61 74 65 2d 62 79 2d 72 |e w 'cre|ate-by-r|
|00000a90| 65 63 74 61 6e 67 6c 65 | 29 29 0d 20 20 28 61 6e |ectangle|)). (an|
|00000aa0| 64 20 28 73 6c 6f 74 2d | 76 61 6c 75 65 20 77 20 |d (slot-|value w |
|00000ab0| 27 73 65 6c 65 63 74 69 | 6f 6e 73 29 0d 20 20 20 |'selecti|ons). |
|00000ac0| 20 20 20 20 28 73 65 74 | 2d 6d 65 6e 75 2d 74 69 | (set|-menu-ti|
|00000ad0| 74 6c 65 20 2a 73 65 6c | 65 63 74 65 64 2d 6f 62 |tle *sel|ected-ob|
|00000ae0| 6a 65 63 74 2d 6d 65 6e | 75 2d 69 6e 64 69 63 61 |ject-men|u-indica|
|00000af0| 74 6f 72 2a 0d 20 20 20 | 20 20 20 20 20 20 20 20 |tor*. | |
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 63 6f 6e | | (con|
|00000b10| 63 61 74 65 6e 61 74 65 | 20 27 73 74 72 69 6e 67 |catenate| 'string|
|00000b20| 20 22 53 65 6c 65 63 74 | 65 64 3a 20 20 22 20 0d | "Select|ed: " .|
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b50| 20 20 20 20 28 73 6c 6f | 74 2d 76 61 6c 75 65 20 | (slo|t-value |
|00000b60| 28 63 61 72 20 28 73 6c | 6f 74 2d 76 61 6c 75 65 |(car (sl|ot-value|
|00000b70| 20 77 20 27 73 65 6c 65 | 63 74 69 6f 6e 73 29 29 | w 'sele|ctions))|
|00000b80| 20 27 6e 61 6d 65 29 29 | 29 29 0d 20 20 28 63 61 | 'name))|)). (ca|
|00000b90| 6c 6c 2d 6e 65 78 74 2d | 6d 65 74 68 6f 64 29 29 |ll-next-|method))|
|00000ba0| 0d 0d 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |..;;;;;;|;;;;;;;;|
|00000bb0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000bc0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000bd0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000be0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000bf0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000c00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 0d 3b 3b 3b |;;;;;;;;|;;;;.;;;|
|00000c10| 20 76 69 65 77 2d 64 65 | 61 63 74 69 76 61 74 65 | view-de|activate|
|00000c20| 2d 65 76 65 6e 74 2d 68 | 61 6e 64 6c 65 72 20 5b |-event-h|andler [|
|00000c30| 64 72 61 77 2d 64 69 61 | 6c 6f 67 5d 0d 3b 3b 3b |draw-dia|log].;;;|
|00000c40| 0d 3b 3b 3b 20 54 68 69 | 73 20 67 65 74 73 20 63 |.;;; Thi|s gets c|
|00000c50| 61 6c 6c 65 64 20 62 79 | 20 4d 43 4c 20 77 68 65 |alled by| MCL whe|
|00000c60| 6e 65 76 65 72 20 74 68 | 65 20 77 69 6e 64 6f 77 |never th|e window|
|00000c70| 20 69 73 20 61 62 6f 75 | 74 20 74 6f 20 62 65 20 | is abou|t to be |
|00000c80| 64 65 61 63 74 69 76 61 | 74 65 64 2e 0d 3b 3b 3b |deactiva|ted..;;;|
|00000c90| 20 57 65 20 77 61 6e 74 | 20 74 6f 20 6d 61 6b 65 | We want| to make|
|00000ca0| 20 73 75 72 65 20 74 68 | 61 74 20 74 68 65 20 57 | sure th|at the W|
|00000cb0| 69 6e 64 6f 77 20 49 6e | 66 6f 2e 2e 2e 20 61 6e |indow In|fo... an|
|00000cc0| 64 20 57 69 6e 64 6f 77 | 20 53 63 72 69 70 74 20 |d Window| Script |
|00000cd0| 6d 65 6e 75 20 69 74 65 | 6d 73 0d 3b 3b 3b 20 61 |menu ite|ms.;;; a|
|00000ce0| 72 65 20 64 69 73 61 62 | 6c 65 64 20 77 68 65 6e |re disab|led when|
|00000cf0| 20 74 68 69 73 20 77 69 | 6e 64 6f 77 20 69 73 20 | this wi|ndow is |
|00000d00| 6e 6f 20 6c 6f 6e 67 65 | 72 20 69 6e 20 74 68 65 |no longe|r in the|
|00000d10| 20 66 72 6f 6e 74 2e 0d | 3b 3b 3b 0d 28 64 65 66 | front..|;;;.(def|
|00000d20| 6d 65 74 68 6f 64 20 76 | 69 65 77 2d 64 65 61 63 |method v|iew-deac|
|00000d30| 74 69 76 61 74 65 2d 65 | 76 65 6e 74 2d 68 61 6e |tivate-e|vent-han|
|00000d40| 64 6c 65 72 20 28 28 77 | 20 64 72 61 77 2d 64 69 |dler ((w| draw-di|
|00000d50| 61 6c 6f 67 29 29 0d 20 | 20 28 6d 65 6e 75 2d 69 |alog)). | (menu-i|
|00000d60| 74 65 6d 2d 64 69 73 61 | 62 6c 65 20 2a 77 69 6e |tem-disa|ble *win|
|00000d70| 64 6f 77 2d 6f 62 6a 65 | 63 74 2d 69 6e 66 6f 2d |dow-obje|ct-info-|
|00000d80| 6d 65 6e 75 2d 69 74 65 | 6d 2a 29 0d 20 20 28 6d |menu-ite|m*). (m|
|00000d90| 65 6e 75 2d 69 74 65 6d | 2d 64 69 73 61 62 6c 65 |enu-item|-disable|
|00000da0| 20 2a 77 69 6e 64 6f 77 | 2d 73 63 72 69 70 74 2d | *window|-script-|
|00000db0| 6d 65 6e 75 2d 69 74 65 | 6d 2a 29 0d 20 20 28 63 |menu-ite|m*). (c|
|00000dc0| 61 6c 6c 2d 6e 65 78 74 | 2d 6d 65 74 68 6f 64 29 |all-next|-method)|
|00000dd0| 29 0d 0d 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |)..;;;;;|;;;;;;;;|
|00000de0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000df0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000e00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000e10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000e20| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000e30| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 0d 3b 3b |;;;;;;;;|;;;;;.;;|
|00000e40| 3b 20 76 69 65 77 2d 64 | 72 61 77 2d 63 6f 6e 74 |; view-d|raw-cont|
|00000e50| 65 6e 74 73 20 5b 64 72 | 61 77 2d 64 69 61 6c 6f |ents [dr|aw-dialo|
|00000e60| 67 5d 0d 3b 3b 3b 0d 3b | 3b 3b 20 54 68 69 73 20 |g].;;;.;|;; This |
|00000e70| 77 69 6c 6c 20 64 72 61 | 77 20 74 68 65 20 63 6f |will dra|w the co|
|00000e80| 6e 74 65 6e 74 73 20 6f | 66 20 74 68 65 20 77 69 |ntents o|f the wi|
|00000e90| 6e 64 6f 77 20 69 6e 20 | 61 20 62 61 63 6b 20 74 |ndow in |a back t|
|00000ea0| 6f 20 66 72 6f 6e 74 20 | 6f 72 64 65 72 0d 3b 3b |o front |order.;;|
|00000eb0| 3b 20 75 73 69 6e 67 20 | 74 68 65 20 6c 69 73 74 |; using |the list|
|00000ec0| 20 69 6e 20 74 68 65 20 | 73 6c 6f 74 20 4d 59 2d | in the |slot MY-|
|00000ed0| 49 54 45 4d 53 2e 0d 3b | 3b 3b 0d 28 64 65 66 6d |ITEMS..;|;;.(defm|
|00000ee0| 65 74 68 6f 64 20 76 69 | 65 77 2d 64 72 61 77 2d |ethod vi|ew-draw-|
|00000ef0| 63 6f 6e 74 65 6e 74 73 | 20 28 28 77 69 6e 64 6f |contents| ((windo|
|00000f00| 77 20 64 72 61 77 2d 64 | 69 61 6c 6f 67 29 29 0d |w draw-d|ialog)).|
|00000f10| 20 20 28 64 6f 6c 69 73 | 74 20 28 69 74 65 6d 20 | (dolis|t (item |
|00000f20| 28 73 6c 6f 74 2d 76 61 | 6c 75 65 20 77 69 6e 64 |(slot-va|lue wind|
|00000f30| 6f 77 20 27 6d 79 2d 69 | 74 65 6d 73 29 29 0d 20 |ow 'my-i|tems)). |
|00000f40| 20 20 20 28 76 69 65 77 | 2d 64 72 61 77 2d 63 6f | (view|-draw-co|
|00000f50| 6e 74 65 6e 74 73 20 69 | 74 65 6d 29 29 29 0d 0d |ntents i|tem)))..|
|00000f60| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000f70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000f80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000f90| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000fa0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000fb0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000fc0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 0d 3b 3b 3b 20 77 |;;;;;;;;|;;.;;; w|
|00000fd0| 69 6e 64 6f 77 2d 63 6c | 6f 73 65 20 5b 64 72 61 |indow-cl|ose [dra|
|00000fe0| 77 2d 64 69 61 6c 6f 67 | 5d 0d 3b 3b 3b 0d 3b 3b |w-dialog|].;;;.;;|
|00000ff0| 3b 20 54 68 69 73 20 67 | 65 74 73 20 63 61 6c 6c |; This g|ets call|
|00001000| 65 64 20 77 68 65 6e 20 | 74 68 65 20 77 69 6e 64 |ed when |the wind|
|00001010| 6f 77 20 69 73 20 63 6c | 6f 73 65 64 2e 0d 3b 3b |ow is cl|osed..;;|
|00001020| 3b 20 64 72 61 77 2d 69 | 74 65 6d 20 72 65 63 74 |; draw-i|tem rect|
|00001030| 61 6e 67 6c 65 73 20 61 | 72 65 20 64 69 73 70 6f |angles a|re dispo|
|00001040| 73 65 64 2e 0d 3b 3b 3b | 0d 28 64 65 66 6d 65 74 |sed..;;;|.(defmet|
|00001050| 68 6f 64 20 77 69 6e 64 | 6f 77 2d 63 6c 6f 73 65 |hod wind|ow-close|
|00001060| 20 28 28 77 20 64 72 61 | 77 2d 64 69 61 6c 6f 67 | ((w dra|w-dialog|
|00001070| 29 29 0d 20 20 28 64 6f | 6c 69 73 74 20 28 69 74 |)). (do|list (it|
|00001080| 65 6d 20 28 73 6c 6f 74 | 2d 76 61 6c 75 65 20 77 |em (slot|-value w|
|00001090| 20 27 6d 79 2d 69 74 65 | 6d 73 29 29 0d 20 20 20 | 'my-ite|ms)). |
|000010a0| 20 28 64 69 73 70 6f 73 | 65 2d 72 65 63 6f 72 64 | (dispos|e-record|
|000010b0| 20 28 73 6c 6f 74 2d 76 | 61 6c 75 65 20 69 74 65 | (slot-v|alue ite|
|000010c0| 6d 20 27 72 65 63 74 61 | 6e 67 6c 65 29 20 3a 72 |m 'recta|ngle) :r|
|000010d0| 65 63 74 29 29 0d 20 20 | 28 63 61 6c 6c 2d 6e 65 |ect)). |(call-ne|
|000010e0| 78 74 2d 6d 65 74 68 6f | 64 29 29 20 20 20 20 20 |xt-metho|d)) |
|000010f0| 20 3b 20 54 68 69 73 20 | 77 69 6c 6c 20 61 63 74 | ; This |will act|
|00001100| 75 61 6c 6c 79 20 63 6c | 6f 73 65 20 74 68 65 20 |ually cl|ose the |
|00001110| 77 69 6e 64 6f 77 0d 0d | 3b 3b 3b 3b 3b 3b 3b 3b |window..|;;;;;;;;|
|00001120| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001130| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001140| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001150| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001160| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001170| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001180| 3b 3b 0d 3b 3b 3b 20 77 | 69 6e 64 6f 77 2d 6e 75 |;;.;;; w|indow-nu|
|00001190| 6c 6c 2d 65 76 65 6e 74 | 2d 68 61 6e 64 6c 65 72 |ll-event|-handler|
|000011a0| 20 5b 64 72 61 77 2d 64 | 69 61 6c 6f 67 5d 0d 3b | [draw-d|ialog].;|
|000011b0| 3b 3b 0d 3b 3b 3b 20 54 | 68 69 73 20 67 65 74 73 |;;.;;; T|his gets|
|000011c0| 20 63 61 6c 6c 65 64 20 | 62 79 20 4d 43 4c 20 61 | called |by MCL a|
|000011d0| 66 74 65 72 20 5f 57 61 | 69 74 4e 65 78 74 45 76 |fter _Wa|itNextEv|
|000011e0| 65 6e 74 20 72 65 74 75 | 72 6e 73 20 61 20 6e 75 |ent retu|rns a nu|
|000011f0| 6c 6c 20 65 76 65 6e 74 | 0d 3b 3b 3b 0d 28 64 65 |ll event|.;;;.(de|
|00001200| 66 6d 65 74 68 6f 64 20 | 77 69 6e 64 6f 77 2d 6e |fmethod |window-n|
|00001210| 75 6c 6c 2d 65 76 65 6e | 74 2d 68 61 6e 64 6c 65 |ull-even|t-handle|
|00001220| 72 20 28 28 77 20 64 72 | 61 77 2d 64 69 61 6c 6f |r ((w dr|aw-dialo|
|00001230| 67 29 29 0d 20 20 28 6c | 65 74 2a 20 28 28 77 68 |g)). (l|et* ((wh|
|00001240| 65 72 65 20 28 76 69 65 | 77 2d 6d 6f 75 73 65 2d |ere (vie|w-mouse-|
|00001250| 70 6f 73 69 74 69 6f 6e | 20 77 29 29 20 20 20 20 |position| w)) |
|00001260| 3b 20 57 69 6e 64 6f 77 | 20 63 6f 6f 72 64 69 6e |; Window| coordin|
|00001270| 61 74 65 20 70 6f 69 6e | 74 20 6f 66 20 6d 6f 75 |ate poin|t of mou|
|00001280| 73 65 0d 20 20 20 20 20 | 20 20 20 20 28 69 74 65 |se. | (ite|
|00001290| 6d 20 28 66 69 6e 64 2d | 76 69 65 77 2d 63 6f 6e |m (find-|view-con|
|000012a0| 74 61 69 6e 69 6e 67 2d | 70 6f 69 6e 74 20 77 20 |taining-|point w |
|000012b0| 28 70 6f 69 6e 74 2d 68 | 20 77 68 65 72 65 29 20 |(point-h| where) |
|000012c0| 28 70 6f 69 6e 74 2d 76 | 20 77 68 65 72 65 29 29 |(point-v| where))|
|000012d0| 29 0d 20 20 20 20 20 20 | 20 20 20 28 6c 61 73 74 |). | (last|
|000012e0| 2d 75 6e 64 65 72 2d 6d | 6f 75 73 65 20 28 73 6c |-under-m|ouse (sl|
|000012f0| 6f 74 2d 76 61 6c 75 65 | 20 77 20 27 69 74 65 6d |ot-value| w 'item|
|00001300| 2d 6c 61 73 74 2d 75 6e | 64 65 72 2d 6d 6f 75 73 |-last-un|der-mous|
|00001310| 65 29 29 29 0d 20 20 20 | 20 3b 3b 20 48 61 6e 64 |e))). | ;; Hand|
|00001320| 6c 65 20 6d 6f 75 73 65 | 2d 77 69 74 68 69 6e 2c |le mouse|-within,|
|00001330| 20 6d 6f 75 73 65 2d 65 | 6e 74 65 72 20 61 6e 64 | mouse-e|nter and|
|00001340| 20 6d 6f 75 73 65 2d 6c | 65 61 76 65 20 65 76 65 | mouse-l|eave eve|
|00001350| 6e 74 73 0d 20 20 20 20 | 28 77 68 65 6e 20 28 61 |nts. |(when (a|
|00001360| 6e 64 20 28 73 6c 6f 74 | 2d 76 61 6c 75 65 20 77 |nd (slot|-value w|
|00001370| 20 27 62 72 6f 77 73 65 | 2d 6d 6f 64 65 29 20 20 | 'browse|-mode) |
|00001380| 20 3b 20 69 6e 20 62 72 | 6f 77 73 65 72 20 6d 6f | ; in br|owser mo|
|00001390| 64 65 20 61 6e 64 0d 20 | 20 20 20 20 20 20 20 20 |de and. | |
|000013a0| 20 20 20 20 20 20 69 74 | 65 6d 29 20 20 20 20 20 | it|em) |
|000013b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013c0| 20 20 20 20 3b 20 77 68 | 65 6e 20 6d 6f 75 73 65 | ; wh|en mouse|
|000013d0| 20 69 73 20 6f 76 65 72 | 20 61 6e 20 69 74 65 6d | is over| an item|
|000013e0| 0d 20 20 20 20 20 20 28 | 63 6f 6e 64 20 28 28 65 |. (|cond ((e|
|000013f0| 71 20 6c 61 73 74 2d 75 | 6e 64 65 72 2d 6d 6f 75 |q last-u|nder-mou|
|00001400| 73 65 20 69 74 65 6d 29 | 0d 20 20 20 20 20 20 20 |se item)|. |
|00001410| 20 20 20 20 20 20 28 6d | 6f 75 73 65 2d 77 69 74 | (m|ouse-wit|
|00001420| 68 69 6e 20 69 74 65 6d | 20 77 68 65 72 65 29 29 |hin item| where))|
|00001430| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 28 74 20 |. | (t |
|00001440| 28 69 66 20 6c 61 73 74 | 2d 75 6e 64 65 72 2d 6d |(if last|-under-m|
|00001450| 6f 75 73 65 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ouse. | |
|00001460| 20 20 20 20 20 20 28 6d | 6f 75 73 65 2d 6c 65 61 | (m|ouse-lea|
|00001470| 76 65 20 6c 61 73 74 2d | 75 6e 64 65 72 2d 6d 6f |ve last-|under-mo|
|00001480| 75 73 65 20 77 68 65 72 | 65 29 29 0d 20 20 20 20 |use wher|e)). |
|00001490| 20 20 20 20 20 20 20 20 | 20 20 20 28 73 65 74 66 | | (setf|
|000014a0| 20 28 73 6c 6f 74 2d 76 | 61 6c 75 65 20 77 20 27 | (slot-v|alue w '|
|000014b0| 69 74 65 6d 2d 6c 61 73 | 74 2d 75 6e 64 65 72 2d |item-las|t-under-|
|000014c0| 6d 6f 75 73 65 29 0d 20 | 20 20 20 20 20 20 20 20 |mouse). | |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 74 65 6d | | item|
|000014e0| 29 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |). | |
|000014f0| 20 28 6d 6f 75 73 65 2d | 65 6e 74 65 72 20 69 74 | (mouse-|enter it|
|00001500| 65 6d 20 77 68 65 72 65 | 29 29 29 0d 20 20 20 20 |em where|))). |
|00001510| 20 20 3b 3b 20 48 61 6e | 64 6c 65 20 69 64 6c 65 | ;; Han|dle idle|
|00001520| 20 65 76 65 6e 74 20 66 | 6f 72 20 77 69 6e 64 6f | event f|or windo|
|00001530| 77 0d 20 20 20 20 20 20 | 28 69 64 6c 65 20 77 29 |w. |(idle w)|
|00001540| 29 29 0d 20 20 28 63 61 | 6c 6c 2d 6e 65 78 74 2d |)). (ca|ll-next-|
|00001550| 6d 65 74 68 6f 64 29 29 | 0d 0d 3b 3b 3b 3b 3b 3b |method))|..;;;;;;|
|00001560| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001570| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001580| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001590| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000015a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000015b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000015c0| 3b 3b 3b 3b 0d 3b 3b 3b | 20 76 69 65 77 2d 63 6c |;;;;.;;;| view-cl|
|000015d0| 69 63 6b 2d 65 76 65 6e | 74 2d 68 61 6e 64 6c 65 |ick-even|t-handle|
|000015e0| 72 20 5b 64 72 61 77 2d | 64 69 61 6c 6f 67 5d 0d |r [draw-|dialog].|
|000015f0| 3b 3b 3b 0d 3b 3b 3b 20 | 54 68 69 73 20 67 65 74 |;;;.;;; |This get|
|00001600| 73 20 63 61 6c 6c 65 64 | 20 62 79 20 4d 43 4c 20 |s called| by MCL |
|00001610| 77 68 65 6e 20 74 68 65 | 20 6d 6f 75 73 65 20 67 |when the| mouse g|
|00001620| 6f 65 73 20 64 6f 77 6e | 20 69 6e 20 74 68 65 20 |oes down| in the |
|00001630| 77 69 6e 64 6f 77 2e 0d | 3b 3b 3b 20 57 65 20 64 |window..|;;; We d|
|00001640| 69 73 70 61 74 63 68 20 | 6f 6e 20 4d 4f 55 53 45 |ispatch |on MOUSE|
|00001650| 2d 44 4f 57 4e 20 65 76 | 65 6e 74 73 20 6f 6e 6c |-DOWN ev|ents onl|
|00001660| 79 20 77 68 65 6e 20 77 | 65 20 61 72 65 20 69 6e |y when w|e are in|
|00001670| 20 62 72 6f 77 73 65 20 | 6d 6f 64 65 2e 0d 3b 3b | browse |mode..;;|
|00001680| 3b 20 4f 74 68 65 72 77 | 69 73 65 2c 20 77 65 20 |; Otherw|ise, we |
|00001690| 63 61 6c 6c 20 74 68 65 | 20 61 75 74 68 6f 72 20 |call the| author |
|000016a0| 6d 6f 64 65 20 63 6c 69 | 63 6b 20 65 76 65 6e 74 |mode cli|ck event|
|000016b0| 20 68 61 6e 64 6c 65 72 | 20 74 6f 20 68 61 6e 64 | handler| to hand|
|000016c0| 6c 65 0d 3b 3b 3b 20 61 | 75 74 68 6f 72 69 6e 67 |le.;;; a|uthoring|
|000016d0| 20 72 65 71 75 69 72 65 | 6d 65 6e 74 73 20 28 6d | require|ments (m|
|000016e0| 6f 76 69 6e 67 2c 20 72 | 65 73 69 7a 69 6e 67 20 |oving, r|esizing |
|000016f0| 6f 62 6a 65 63 74 73 2c | 20 65 74 63 2e 2e 2e 29 |objects,| etc...)|
|00001700| 0d 3b 3b 3b 0d 28 64 65 | 66 6d 65 74 68 6f 64 20 |.;;;.(de|fmethod |
|00001710| 76 69 65 77 2d 63 6c 69 | 63 6b 2d 65 76 65 6e 74 |view-cli|ck-event|
|00001720| 2d 68 61 6e 64 6c 65 72 | 20 28 28 77 20 64 72 61 |-handler| ((w dra|
|00001730| 77 2d 64 69 61 6c 6f 67 | 29 20 77 68 65 72 65 29 |w-dialog|) where)|
|00001740| 0d 20 20 28 6c 65 74 20 | 28 28 69 74 65 6d 20 28 |. (let |((item (|
|00001750| 66 69 6e 64 2d 76 69 65 | 77 2d 63 6f 6e 74 61 69 |find-vie|w-contai|
|00001760| 6e 69 6e 67 2d 70 6f 69 | 6e 74 20 77 20 28 70 6f |ning-poi|nt w (po|
|00001770| 69 6e 74 2d 68 20 77 68 | 65 72 65 29 20 28 70 6f |int-h wh|ere) (po|
|00001780| 69 6e 74 2d 76 20 77 68 | 65 72 65 29 29 29 29 0d |int-v wh|ere)))).|
|00001790| 20 20 20 20 28 69 66 20 | 28 73 6c 6f 74 2d 76 61 | (if |(slot-va|
|000017a0| 6c 75 65 20 77 20 27 62 | 72 6f 77 73 65 2d 6d 6f |lue w 'b|rowse-mo|
|000017b0| 64 65 29 0d 20 20 20 20 | 20 20 28 69 66 20 69 74 |de). | (if it|
|000017c0| 65 6d 0d 20 20 20 20 20 | 20 20 20 28 6d 6f 75 73 |em. | (mous|
|000017d0| 65 2d 64 6f 77 6e 20 69 | 74 65 6d 20 77 68 65 72 |e-down i|tem wher|
|000017e0| 65 29 29 0d 20 20 20 20 | 20 20 28 61 75 74 68 6f |e)). | (autho|
|000017f0| 72 2d 6d 6f 64 65 2d 63 | 6c 69 63 6b 2d 68 61 6e |r-mode-c|lick-han|
|00001800| 64 6c 65 72 20 69 74 65 | 6d 20 77 68 65 72 65 29 |dler ite|m where)|
|00001810| 29 29 29 0d 0d 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |)))..;;;|;;;;;;;;|
|00001820| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001830| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001840| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001850| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001860| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001870| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 0d |;;;;;;;;|;;;;;;;.|
|00001880| 3b 3b 3b 20 77 69 6e 64 | 6f 77 2d 6d 6f 75 73 65 |;;; wind|ow-mouse|
|00001890| 2d 75 70 2d 65 76 65 6e | 74 2d 68 61 6e 64 6c 65 |-up-even|t-handle|
|000018a0| 72 20 5b 64 72 61 77 2d | 64 69 61 6c 6f 67 5d 0d |r [draw-|dialog].|
|000018b0| 3b 3b 3b 0d 3b 3b 3b 20 | 54 68 69 73 20 67 65 74 |;;;.;;; |This get|
|000018c0| 73 20 63 61 6c 6c 65 64 | 20 62 79 20 4d 43 4c 20 |s called| by MCL |
|000018d0| 77 68 65 6e 20 74 68 65 | 20 6d 6f 75 73 65 20 67 |when the| mouse g|
|000018e0| 6f 65 73 20 75 70 20 69 | 6e 20 74 68 65 20 77 69 |oes up i|n the wi|
|000018f0| 6e 64 6f 77 2e 0d 3b 3b | 3b 20 57 65 20 64 69 73 |ndow..;;|; We dis|
|00001900| 70 61 74 63 68 20 6f 6e | 20 4d 4f 55 53 45 2d 55 |patch on| MOUSE-U|
|00001910| 50 20 65 76 65 6e 74 73 | 20 6f 6e 6c 79 20 77 68 |P events| only wh|
|00001920| 65 6e 20 77 65 20 61 72 | 65 20 69 6e 20 62 72 6f |en we ar|e in bro|
|00001930| 77 73 65 20 6d 6f 64 65 | 2e 0d 3b 3b 3b 0d 28 64 |wse mode|..;;;.(d|
|00001940| 65 66 6d 65 74 68 6f 64 | 20 77 69 6e 64 6f 77 2d |efmethod| window-|
|00001950| 6d 6f 75 73 65 2d 75 70 | 2d 65 76 65 6e 74 2d 68 |mouse-up|-event-h|
|00001960| 61 6e 64 6c 65 72 20 28 | 28 77 20 64 72 61 77 2d |andler (|(w draw-|
|00001970| 64 69 61 6c 6f 67 29 29 | 0d 20 20 28 6c 65 74 2a |dialog))|. (let*|
|00001980| 20 28 28 77 68 65 72 65 | 20 28 76 69 65 77 2d 6d | ((where| (view-m|
|00001990| 6f 75 73 65 2d 70 6f 73 | 69 74 69 6f 6e 20 77 29 |ouse-pos|ition w)|
|000019a0| 29 0d 20 20 20 20 20 20 | 20 20 20 28 69 74 65 6d |). | (item|
|000019b0| 20 28 66 69 6e 64 2d 76 | 69 65 77 2d 63 6f 6e 74 | (find-v|iew-cont|
|000019c0| 61 69 6e 69 6e 67 2d 70 | 6f 69 6e 74 20 77 20 28 |aining-p|oint w (|
|000019d0| 70 6f 69 6e 74 2d 68 20 | 77 68 65 72 65 29 20 28 |point-h |where) (|
|000019e0| 70 6f 69 6e 74 2d 76 20 | 77 68 65 72 65 29 29 29 |point-v |where)))|
|000019f0| 29 0d 20 20 20 20 28 69 | 66 20 28 61 6e 64 20 69 |). (i|f (and i|
|00001a00| 74 65 6d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |tem. | |
|00001a10| 20 28 73 6c 6f 74 2d 76 | 61 6c 75 65 20 77 20 27 | (slot-v|alue w '|
|00001a20| 62 72 6f 77 73 65 2d 6d | 6f 64 65 29 29 0d 20 20 |browse-m|ode)). |
|00001a30| 20 20 20 20 28 6d 6f 75 | 73 65 2d 75 70 20 69 74 | (mou|se-up it|
|00001a40| 65 6d 20 77 68 65 72 65 | 29 29 29 0d 20 20 28 63 |em where|))). (c|
|00001a50| 61 6c 6c 2d 6e 65 78 74 | 2d 6d 65 74 68 6f 64 29 |all-next|-method)|
|00001a60| 29 0d 0d 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |)..;;;;;|;;;;;;;;|
|00001a70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001a80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001a90| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001aa0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001ab0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001ac0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 0d 3b 3b |;;;;;;;;|;;;;;.;;|
|00001ad0| 3b 20 76 69 65 77 2d 6b | 65 79 2d 65 76 65 6e 74 |; view-k|ey-event|
|00001ae0| 2d 68 61 6e 64 6c 65 72 | 20 5b 64 72 61 77 2d 64 |-handler| [draw-d|
|00001af0| 69 61 6c 6f 67 5d 0d 3b | 3b 3b 0d 3b 3b 3b 20 54 |ialog].;|;;.;;; T|
|00001b00| 68 69 73 20 67 65 74 73 | 20 63 61 6c 6c 65 64 20 |his gets| called |
|00001b10| 62 79 20 4d 43 4c 20 77 | 68 65 6e 20 61 20 6b 65 |by MCL w|hen a ke|
|00001b20| 79 20 69 73 20 64 65 70 | 72 65 73 73 65 64 20 61 |y is dep|ressed a|
|00001b30| 6e 64 20 74 68 65 20 77 | 69 6e 64 6f 77 20 69 73 |nd the w|indow is|
|00001b40| 20 73 65 6c 65 63 74 65 | 64 2e 0d 3b 3b 3b 20 57 | selecte|d..;;; W|
|00001b50| 65 20 64 69 73 70 61 74 | 63 68 20 6f 6e 20 4b 45 |e dispat|ch on KE|
|00001b60| 59 20 65 76 65 6e 74 73 | 20 6f 6e 6c 79 20 77 68 |Y events| only wh|
|00001b70| 65 6e 20 77 65 20 61 72 | 65 20 69 6e 20 62 72 6f |en we ar|e in bro|
|00001b80| 77 73 65 20 6d 6f 64 65 | 0d 3b 3b 3b 0d 28 64 65 |wse mode|.;;;.(de|
|00001b90| 66 6d 65 74 68 6f 64 20 | 76 69 65 77 2d 6b 65 79 |fmethod |view-key|
|00001ba0| 2d 65 76 65 6e 74 2d 68 | 61 6e 64 6c 65 72 20 28 |-event-h|andler (|
|00001bb0| 28 77 20 64 72 61 77 2d | 64 69 61 6c 6f 67 29 20 |(w draw-|dialog) |
|00001bc0| 63 68 61 72 61 63 74 65 | 72 29 0d 20 20 28 6c 65 |characte|r). (le|
|00001bd0| 74 2a 20 28 28 77 68 65 | 72 65 20 28 76 69 65 77 |t* ((whe|re (view|
|00001be0| 2d 6d 6f 75 73 65 2d 70 | 6f 73 69 74 69 6f 6e 20 |-mouse-p|osition |
|00001bf0| 77 29 29 0d 20 20 20 20 | 20 20 20 20 20 28 69 74 |w)). | (it|
|00001c00| 65 6d 20 28 66 69 6e 64 | 2d 76 69 65 77 2d 63 6f |em (find|-view-co|
|00001c10| 6e 74 61 69 6e 69 6e 67 | 2d 70 6f 69 6e 74 20 77 |ntaining|-point w|
|00001c20| 20 28 70 6f 69 6e 74 2d | 68 20 77 68 65 72 65 29 | (point-|h where)|
|00001c30| 20 28 70 6f 69 6e 74 2d | 76 20 77 68 65 72 65 29 | (point-|v where)|
|00001c40| 29 29 29 0d 20 20 20 20 | 28 69 66 20 28 61 6e 64 |))). |(if (and|
|00001c50| 20 69 74 65 6d 0d 20 20 | 20 20 20 20 20 20 20 20 | item. | |
|00001c60| 20 20 20 28 73 6c 6f 74 | 2d 76 61 6c 75 65 20 77 | (slot|-value w|
|00001c70| 20 27 62 72 6f 77 73 65 | 2d 6d 6f 64 65 29 29 0d | 'browse|-mode)).|
|00001c80| 20 20 20 20 20 20 28 6b | 65 79 20 69 74 65 6d 20 | (k|ey item |
|00001c90| 63 68 61 72 61 63 74 65 | 72 29 29 29 0d 20 20 28 |characte|r))). (|
|00001ca0| 63 61 6c 6c 2d 6e 65 78 | 74 2d 6d 65 74 68 6f 64 |call-nex|t-method|
|00001cb0| 29 29 0d 0d 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |))..;;;;|;;;;;;;;|
|00001cc0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001cd0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001ce0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001cf0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001d00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001d10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 0d 3b |;;;;;;;;|;;;;;;.;|
|00001d20| 3b 3b 20 61 75 74 68 6f | 72 2d 6d 6f 64 65 2d 63 |;; autho|r-mode-c|
|00001d30| 6c 69 63 6b 2d 68 61 6e | 64 6c 65 72 20 5b 64 72 |lick-han|dler [dr|
|00001d40| 61 77 2d 64 69 61 6c 6f | 67 5d 0d 3b 3b 3b 0d 3b |aw-dialo|g].;;;.;|
|00001d50| 3b 3b 20 47 65 74 73 20 | 63 61 6c 6c 65 64 20 77 |;; Gets |called w|
|00001d60| 68 65 6e 65 76 65 72 20 | 74 68 65 72 65 20 69 73 |henever |there is|
|00001d70| 20 61 20 63 6c 69 63 6b | 20 69 6e 20 61 20 44 52 | a click| in a DR|
|00001d80| 41 57 2d 44 49 41 4c 4f | 47 20 77 69 6e 64 6f 77 |AW-DIALO|G window|
|00001d90| 2c 0d 3b 3b 3b 20 74 68 | 65 20 63 6c 69 63 6b 20 |,.;;; th|e click |
|00001da0| 77 61 73 20 6e 6f 74 20 | 6f 76 65 72 20 61 6e 20 |was not |over an |
|00001db0| 6f 62 6a 65 63 74 20 69 | 6e 20 74 68 65 20 77 69 |object i|n the wi|
|00001dc0| 6e 64 6f 77 2c 20 61 6e | 64 0d 3b 3b 3b 20 74 68 |ndow, an|d.;;; th|
|00001dd0| 65 20 77 69 6e 64 6f 77 | 20 69 73 20 69 6e 20 61 |e window| is in a|
|00001de0| 75 74 68 6f 72 20 6d 6f | 64 65 20 28 69 2e 65 2e |uthor mo|de (i.e.|
|00001df0| 2c 20 6e 6f 74 20 69 6e | 20 62 72 6f 77 73 65 20 |, not in| browse |
|00001e00| 6d 6f 64 65 29 0d 3b 3b | 3b 0d 28 64 65 66 6d 65 |mode).;;|;.(defme|
|00001e10| 74 68 6f 64 20 61 75 74 | 68 6f 72 2d 6d 6f 64 65 |thod aut|hor-mode|
|00001e20| 2d 63 6c 69 63 6b 2d 68 | 61 6e 64 6c 65 72 20 28 |-click-h|andler (|
|00001e30| 28 77 20 64 72 61 77 2d | 64 69 61 6c 6f 67 29 20 |(w draw-|dialog) |
|00001e40| 77 68 65 72 65 29 0d 20 | 20 28 69 66 20 28 64 6f |where). | (if (do|
|00001e50| 75 62 6c 65 2d 63 6c 69 | 63 6b 2d 70 29 0d 20 20 |uble-cli|ck-p). |
|00001e60| 20 20 28 61 75 74 68 6f | 72 2d 6d 6f 64 65 2d 64 | (autho|r-mode-d|
|00001e70| 6f 75 62 6c 65 2d 63 6c | 69 63 6b 2d 68 61 6e 64 |ouble-cl|ick-hand|
|00001e80| 6c 65 72 20 77 20 77 68 | 65 72 65 29 0d 20 20 20 |ler w wh|ere). |
|00001e90| 20 28 61 75 74 68 6f 72 | 2d 6d 6f 64 65 2d 73 69 | (author|-mode-si|
|00001ea0| 6e 67 6c 65 2d 63 6c 69 | 63 6b 2d 68 61 6e 64 6c |ngle-cli|ck-handl|
|00001eb0| 65 72 20 77 20 77 68 65 | 72 65 29 29 29 0d 0d 3b |er w whe|re)))..;|
|00001ec0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001ed0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001ee0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001ef0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001f00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001f10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001f20| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 0d 3b 3b 3b 20 61 75 |;;;;;;;;|;.;;; au|
|00001f30| 74 68 6f 72 2d 6d 6f 64 | 65 2d 64 6f 75 62 6c 65 |thor-mod|e-double|
|00001f40| 2d 63 6c 69 63 6b 2d 68 | 61 6e 64 6c 65 72 20 5b |-click-h|andler [|
|00001f50| 64 72 61 77 2d 64 69 61 | 6c 6f 67 5d 0d 3b 3b 3b |draw-dia|log].;;;|
|00001f60| 0d 3b 3b 3b 20 47 65 74 | 73 20 63 61 6c 6c 65 64 |.;;; Get|s called|
|00001f70| 20 77 68 65 6e 20 74 68 | 65 72 65 20 69 73 20 61 | when th|ere is a|
|00001f80| 20 64 6f 75 62 6c 65 20 | 63 6c 69 63 6b 20 6f 6e | double |click on|
|00001f90| 20 74 68 65 20 44 52 41 | 57 2d 44 49 41 4c 4f 47 | the DRA|W-DIALOG|
|00001fa0| 20 77 69 6e 64 6f 77 2c | 0d 3b 3b 3b 20 74 68 65 | window,|.;;; the|
|00001fb0| 20 63 6c 69 63 6b 20 77 | 61 73 20 6e 6f 74 20 6f | click w|as not o|
|00001fc0| 76 65 72 20 61 6e 20 6f | 62 6a 65 63 74 20 69 6e |ver an o|bject in|
|00001fd0| 20 74 68 65 20 77 69 6e | 64 6f 77 2c 20 61 6e 64 | the win|dow, and|
|00001fe0| 0d 3b 3b 3b 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |.;;; the| window |
|00001ff0| 69 73 20 69 6e 20 61 75 | 74 68 6f 72 20 6d 6f 64 |is in au|thor mod|
|00002000| 65 0d 3b 3b 3b 0d 28 64 | 65 66 6d 65 74 68 6f 64 |e.;;;.(d|efmethod|
|00002010| 20 61 75 74 68 6f 72 2d | 6d 6f 64 65 2d 64 6f 75 | author-|mode-dou|
|00002020| 62 6c 65 2d 63 6c 69 63 | 6b 2d 68 61 6e 64 6c 65 |ble-clic|k-handle|
|00002030| 72 20 28 28 77 20 64 72 | 61 77 2d 64 69 61 6c 6f |r ((w dr|aw-dialo|
|00002040| 67 29 20 77 68 65 72 65 | 29 0d 20 20 28 64 65 63 |g) where|). (dec|
|00002050| 6c 61 72 65 20 28 69 67 | 6e 6f 72 65 20 77 68 65 |lare (ig|nore whe|
|00002060| 72 65 29 29 0d 20 20 3b | 3b 20 53 68 6f 77 20 77 |re)). ;|; Show w|
|00002070| 69 6e 64 6f 77 20 69 6e | 66 6f 72 6d 61 74 69 6f |indow in|formatio|
|00002080| 6e 20 28 73 61 6d 65 20 | 61 73 20 73 65 6c 65 63 |n (same |as selec|
|00002090| 74 69 6e 67 20 57 69 6e | 64 6f 77 20 49 6e 66 6f |ting Win|dow Info|
|000020a0| 2e 2e 2e 20 6d 65 6e 75 | 20 69 74 65 6d 29 0d 20 |... menu| item). |
|000020b0| 20 28 73 68 6f 77 2d 6f | 62 6a 65 63 74 2d 69 6e | (show-o|bject-in|
|000020c0| 66 6f 20 77 29 29 0d 0d | 3b 3b 3b 3b 3b 3b 3b 3b |fo w))..|;;;;;;;;|
|000020d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000020e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000020f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002100| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002110| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002120| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002130| 3b 3b 0d 3b 3b 3b 20 61 | 75 74 68 6f 72 2d 6d 6f |;;.;;; a|uthor-mo|
|00002140| 64 65 2d 73 69 6e 67 6c | 65 2d 63 6c 69 63 6b 2d |de-singl|e-click-|
|00002150| 68 61 6e 64 6c 65 72 20 | 5b 64 72 61 77 2d 64 69 |handler |[draw-di|
|00002160| 61 6c 6f 67 5d 0d 3b 3b | 3b 0d 3b 3b 3b 20 47 65 |alog].;;|;.;;; Ge|
|00002170| 74 73 20 63 61 6c 6c 65 | 64 20 77 68 65 6e 20 74 |ts calle|d when t|
|00002180| 68 65 72 65 20 69 73 20 | 61 20 64 6f 75 62 6c 65 |here is |a double|
|00002190| 20 63 6c 69 63 6b 20 6f | 6e 20 74 68 65 20 44 52 | click o|n the DR|
|000021a0| 41 57 2d 44 49 41 4c 4f | 47 20 77 69 6e 64 6f 77 |AW-DIALO|G window|
|000021b0| 2c 0d 3b 3b 3b 20 74 68 | 65 20 63 6c 69 63 6b 20 |,.;;; th|e click |
|000021c0| 77 61 73 20 6e 6f 74 20 | 6f 76 65 72 20 61 6e 20 |was not |over an |
|000021d0| 6f 62 6a 65 63 74 20 69 | 6e 20 74 68 65 20 77 69 |object i|n the wi|
|000021e0| 6e 64 6f 77 2c 20 61 6e | 64 0d 3b 3b 3b 20 74 68 |ndow, an|d.;;; th|
|000021f0| 65 20 77 69 6e 64 6f 77 | 20 69 73 20 69 6e 20 61 |e window| is in a|
|00002200| 75 74 68 6f 72 20 6d 6f | 64 65 0d 3b 3b 3b 0d 28 |uthor mo|de.;;;.(|
|00002210| 64 65 66 6d 65 74 68 6f | 64 20 61 75 74 68 6f 72 |defmetho|d author|
|00002220| 2d 6d 6f 64 65 2d 73 69 | 6e 67 6c 65 2d 63 6c 69 |-mode-si|ngle-cli|
|00002230| 63 6b 2d 68 61 6e 64 6c | 65 72 20 28 28 77 20 64 |ck-handl|er ((w d|
|00002240| 72 61 77 2d 64 69 61 6c | 6f 67 29 20 77 68 65 72 |raw-dial|og) wher|
|00002250| 65 29 0d 20 20 3b 3b 20 | 44 65 73 65 6c 65 63 74 |e). ;; |Deselect|
|00002260| 20 73 65 6c 65 63 74 65 | 64 20 69 74 65 6d 73 20 | selecte|d items |
|00002270| 69 66 20 61 70 70 72 6f | 70 72 69 61 74 65 3a 0d |if appro|priate:.|
|00002280| 20 20 28 75 6e 6c 65 73 | 73 20 28 66 69 6e 64 2d | (unles|s (find-|
|00002290| 76 69 65 77 2d 63 6f 6e | 74 61 69 6e 69 6e 67 2d |view-con|taining-|
|000022a0| 70 6f 69 6e 74 20 77 20 | 28 70 6f 69 6e 74 2d 68 |point w |(point-h|
|000022b0| 20 77 68 65 72 65 29 20 | 28 70 6f 69 6e 74 2d 76 | where) |(point-v|
|000022c0| 20 77 68 65 72 65 29 29 | 0d 20 20 20 20 28 64 65 | where))|. (de|
|000022d0| 73 65 6c 65 63 74 2d 69 | 74 65 6d 73 20 77 29 29 |select-i|tems w))|
|000022e0| 0d 20 20 0d 20 20 3b 3b | 20 43 68 65 63 6b 20 77 |. . ;;| Check w|
|000022f0| 68 65 74 68 65 72 20 74 | 68 65 20 75 73 65 72 20 |hether t|he user |
|00002300| 69 6e 74 65 6e 64 73 20 | 74 6f 20 64 72 61 67 20 |intends |to drag |
|00002310| 6f 75 74 20 61 20 72 65 | 63 74 61 6e 67 6c 65 2e |out a re|ctangle.|
|00002320| 0d 20 20 3b 3b 20 49 66 | 20 73 6f 2c 20 74 68 65 |. ;; If| so, the|
|00002330| 6e 20 64 72 61 67 20 6f | 75 74 20 61 20 67 72 65 |n drag o|ut a gre|
|00002340| 79 20 72 65 63 74 61 6e | 67 6c 65 20 61 6e 64 20 |y rectan|gle and |
|00002350| 63 72 65 61 74 65 20 61 | 20 64 72 61 77 2d 69 74 |create a| draw-it|
|00002360| 65 6d 0d 20 20 3b 3b 20 | 69 66 20 61 70 70 72 6f |em. ;; |if appro|
|00002370| 70 69 61 74 65 20 62 79 | 20 63 68 65 63 6b 69 6e |piate by| checkin|
|00002380| 67 20 2a 63 6c 6f 6e 61 | 62 6c 65 2d 69 74 65 6d |g *clona|ble-item|
|00002390| 2a 2e 0d 20 20 28 69 66 | 20 28 61 6e 64 20 2a 63 |*.. (if| (and *c|
|000023a0| 6c 6f 6e 61 62 6c 65 2d | 69 74 65 6d 2a 20 20 20 |lonable-|item* |
|000023b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023c0| 20 20 20 20 3b 20 49 73 | 20 74 68 65 72 65 20 61 | ; Is| there a|
|000023d0| 20 63 6c 61 73 73 20 66 | 72 6f 6d 20 77 68 69 63 | class f|rom whic|
|000023e0| 68 20 77 65 20 6d 61 79 | 20 63 72 65 61 74 65 20 |h we may| create |
|000023f0| 61 20 64 72 61 77 2d 69 | 74 65 6d 3f 0d 20 20 20 |a draw-i|tem?. |
|00002400| 20 20 20 20 20 20 20 20 | 28 73 6c 6f 74 2d 76 61 | |(slot-va|
|00002410| 6c 75 65 20 77 20 27 63 | 72 65 61 74 65 2d 62 79 |lue w 'c|reate-by|
|00002420| 2d 72 65 63 74 61 6e 67 | 6c 65 29 29 20 20 3b 20 |-rectang|le)) ; |
|00002430| 61 6e 64 20 63 61 6e 20 | 75 73 65 72 20 63 72 65 |and can |user cre|
|00002440| 61 74 65 20 64 72 61 77 | 2d 69 74 65 6d 20 62 79 |ate draw|-item by|
|00002450| 20 64 72 61 67 67 69 6e | 67 20 6f 75 74 20 61 20 | draggin|g out a |
|00002460| 72 65 63 74 61 6e 67 6c | 65 3f 0d 20 20 20 20 28 |rectangl|e?. (|
|00002470| 6d 75 6c 74 69 70 6c 65 | 2d 76 61 6c 75 65 2d 62 |multiple|-value-b|
|00002480| 69 6e 64 20 28 74 6f 70 | 6c 65 66 74 20 62 6f 74 |ind (top|left bot|
|00002490| 74 6f 6d 72 69 67 68 74 | 29 0d 20 20 20 20 20 20 |tomright|). |
|000024a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024b0| 20 20 20 28 73 65 6c 65 | 63 74 2d 72 65 63 74 61 | (sele|ct-recta|
|000024c0| 6e 67 6c 65 20 77 29 0d | 20 20 20 20 20 20 28 6c |ngle w).| (l|
|000024d0| 65 74 20 28 28 63 6c 6f | 6e 65 20 28 63 6c 6f 6e |et ((clo|ne (clon|
|000024e0| 65 2d 64 72 61 77 2d 69 | 74 65 6d 20 2a 63 6c 6f |e-draw-i|tem *clo|
|000024f0| 6e 61 62 6c 65 2d 69 74 | 65 6d 2a 29 29 29 0d 20 |nable-it|em*))). |
|00002500| 20 20 20 20 20 20 20 28 | 73 65 74 2d 76 69 65 77 | (|set-view|
|00002510| 2d 70 6f 73 69 74 69 6f | 6e 20 63 6c 6f 6e 65 20 |-positio|n clone |
|00002520| 74 6f 70 6c 65 66 74 29 | 0d 20 20 20 20 20 20 20 |topleft)|. |
|00002530| 20 28 73 65 74 2d 76 69 | 65 77 2d 73 69 7a 65 20 | (set-vi|ew-size |
|00002540| 63 6c 6f 6e 65 20 28 73 | 75 62 74 72 61 63 74 2d |clone (s|ubtract-|
|00002550| 70 6f 69 6e 74 73 20 62 | 6f 74 74 6f 6d 72 69 67 |points b|ottomrig|
|00002560| 68 74 20 74 6f 70 6c 65 | 66 74 29 29 0d 20 20 20 |ht tople|ft)). |
|00002570| 20 20 20 20 20 28 61 64 | 64 2d 69 74 65 6d 73 20 | (ad|d-items |
|00002580| 77 20 63 6c 6f 6e 65 29 | 29 29 29 29 0d 0d 3b 3b |w clone)|))))..;;|
|00002590| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000025a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000025b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000025c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000025d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000025e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000025f0| 3b 3b 3b 3b 3b 3b 3b 3b | 0d 3b 3b 3b 20 64 65 73 |;;;;;;;;|.;;; des|
|00002600| 65 6c 65 63 74 2d 69 74 | 65 6d 73 20 5b 64 72 61 |elect-it|ems [dra|
|00002610| 77 2d 64 69 61 6c 6f 67 | 5d 0d 3b 3b 3b 0d 3b 3b |w-dialog|].;;;.;;|
|00002620| 3b 20 43 61 6c 6c 65 64 | 20 74 6f 20 64 65 73 65 |; Called| to dese|
|00002630| 6c 65 63 74 20 65 76 65 | 72 79 74 68 69 6e 67 20 |lect eve|rything |
|00002640| 69 6e 20 77 69 6e 64 6f | 77 0d 3b 3b 3b 0d 28 64 |in windo|w.;;;.(d|
|00002650| 65 66 6d 65 74 68 6f 64 | 20 64 65 73 65 6c 65 63 |efmethod| deselec|
|00002660| 74 2d 69 74 65 6d 73 20 | 28 28 77 69 6e 64 6f 77 |t-items |((window|
|00002670| 20 64 72 61 77 2d 64 69 | 61 6c 6f 67 29 29 0d 20 | draw-di|alog)). |
|00002680| 20 28 64 6f 6c 69 73 74 | 20 28 69 74 65 6d 20 28 | (dolist| (item (|
|00002690| 73 6c 6f 74 2d 76 61 6c | 75 65 20 77 69 6e 64 6f |slot-val|ue windo|
|000026a0| 77 20 27 73 65 6c 65 63 | 74 69 6f 6e 73 29 29 0d |w 'selec|tions)).|
|000026b0| 20 20 20 20 28 73 65 74 | 66 20 28 73 6c 6f 74 2d | (set|f (slot-|
|000026c0| 76 61 6c 75 65 20 69 74 | 65 6d 20 27 73 65 6c 65 |value it|em 'sele|
|000026d0| 63 74 65 64 29 20 6e 69 | 6c 29 20 20 20 20 20 3b |cted) ni|l) ;|
|000026e0| 20 54 75 72 6e 20 6f 66 | 66 20 73 65 6c 65 63 74 | Turn of|f select|
|000026f0| 69 6f 6e 20 66 6c 61 67 | 0d 20 20 20 20 28 76 69 |ion flag|. (vi|
|00002700| 65 77 2d 64 72 61 77 2d | 63 6f 6e 74 65 6e 74 73 |ew-draw-|contents|
|00002710| 20 69 74 65 6d 29 29 20 | 20 20 20 20 20 20 20 20 | item)) | |
|00002720| 20 20 20 20 20 20 20 20 | 3b 20 52 65 64 72 61 77 | |; Redraw|
|00002730| 20 69 74 65 6d 0d 20 20 | 28 73 65 74 66 20 28 73 | item. |(setf (s|
|00002740| 6c 6f 74 2d 76 61 6c 75 | 65 20 77 69 6e 64 6f 77 |lot-valu|e window|
|00002750| 20 27 73 65 6c 65 63 74 | 69 6f 6e 73 29 20 6e 69 | 'select|ions) ni|
|00002760| 6c 29 29 0d 0d 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |l))..;;;|;;;;;;;;|
|00002770| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002780| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002790| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000027a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000027b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000027c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 0d |;;;;;;;;|;;;;;;;.|
|000027d0| 3b 3b 3b 20 73 68 6f 77 | 2d 69 6e 66 6f 20 5b 64 |;;; show|-info [d|
|000027e0| 72 61 77 2d 64 69 61 6c | 6f 67 5d 0d 3b 3b 3b 0d |raw-dial|og].;;;.|
|000027f0| 3b 3b 3b 20 54 68 69 73 | 20 67 65 74 73 20 63 61 |;;; This| gets ca|
|00002800| 6c 6c 65 64 20 77 68 65 | 6e 65 76 65 72 20 74 68 |lled whe|never th|
|00002810| 65 20 77 69 6e 64 6f 77 | 27 73 20 69 6e 66 6f 72 |e window|'s infor|
|00002820| 6d 61 74 69 6f 6e 20 62 | 6f 78 20 6d 75 73 74 20 |mation b|ox must |
|00002830| 62 65 20 73 68 6f 77 6e | 0d 3b 3b 3b 0d 28 64 65 |be shown|.;;;.(de|
|00002840| 66 6d 65 74 68 6f 64 20 | 73 68 6f 77 2d 69 6e 66 |fmethod |show-inf|
|00002850| 6f 20 28 28 77 20 64 72 | 61 77 2d 64 69 61 6c 6f |o ((w dr|aw-dialo|
|00002860| 67 29 29 0d 20 20 3b 3b | 20 53 68 6f 77 73 20 69 |g)). ;;| Shows i|
|00002870| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 62 6f 78 20 66 |nformati|on box f|
|00002880| 6f 72 20 77 69 6e 64 6f | 77 0d 20 20 29 0d 0d 3b |or windo|w. )..;|
|00002890| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000028a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000028b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000028c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000028d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000028e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000028f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 0d 3b 3b 3b 20 62 72 |;;;;;;;;|;.;;; br|
|00002900| 69 6e 67 2d 69 74 65 6d | 2d 74 6f 2d 66 72 6f 6e |ing-item|-to-fron|
|00002910| 74 20 5b 64 72 61 77 2d | 64 69 61 6c 6f 67 5d 0d |t [draw-|dialog].|
|00002920| 3b 3b 3b 0d 3b 3b 3b 20 | 54 68 69 73 20 67 65 74 |;;;.;;; |This get|
|00002930| 73 20 63 61 6c 6c 65 64 | 20 77 68 65 6e 65 76 65 |s called| wheneve|
|00002940| 72 20 74 68 65 20 69 74 | 65 6d 20 28 61 20 64 72 |r the it|em (a dr|
|00002950| 61 77 2d 69 74 65 6d 29 | 20 69 73 20 72 65 71 75 |aw-item)| is requ|
|00002960| 65 73 74 65 64 0d 3b 3b | 3b 20 74 6f 20 62 65 20 |ested.;;|; to be |
|00002970| 6d 6f 76 65 64 20 74 6f | 20 74 68 65 20 66 72 6f |moved to| the fro|
|00002980| 6e 74 20 6f 66 20 74 68 | 69 73 20 77 69 6e 64 6f |nt of th|is windo|
|00002990| 77 2e 20 20 54 68 65 20 | 49 54 45 4d 20 61 72 67 |w. The |ITEM arg|
|000029a0| 75 6d 65 6e 74 0d 3b 3b | 3b 20 69 73 20 6f 70 74 |ument.;;|; is opt|
|000029b0| 69 6f 6e 61 6c 3a 20 69 | 66 20 69 74 20 69 73 20 |ional: i|f it is |
|000029c0| 6e 6f 74 20 73 75 70 70 | 6c 69 65 64 2c 20 74 68 |not supp|lied, th|
|000029d0| 65 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 6c 79 |en the c|urrently|
|000029e0| 20 73 65 6c 65 63 74 65 | 64 0d 3b 3b 3b 20 69 74 | selecte|d.;;; it|
|000029f0| 65 6d 2c 20 69 66 20 61 | 6e 79 2c 20 77 69 6c 6c |em, if a|ny, will|
|00002a00| 20 62 65 20 62 72 6f 75 | 67 68 74 20 74 6f 20 74 | be brou|ght to t|
|00002a10| 68 65 20 66 72 6f 6e 74 | 2e 0d 3b 3b 3b 20 42 65 |he front|..;;; Be|
|00002a20| 69 6e 67 20 69 6e 20 74 | 68 65 20 66 72 6f 6e 74 |ing in t|he front|
|00002a30| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 69 74 20 77 | means t|hat it w|
|00002a40| 69 6c 6c 20 62 65 20 64 | 72 61 77 6e 20 6c 61 73 |ill be d|rawn las|
|00002a50| 74 2e 0d 3b 3b 3b 20 53 | 69 6e 63 65 20 69 74 65 |t..;;; S|ince ite|
|00002a60| 6d 73 20 61 72 65 20 64 | 72 61 77 6e 20 69 6e 20 |ms are d|rawn in |
|00002a70| 6f 72 64 65 72 20 66 72 | 6f 6d 20 74 68 65 20 62 |order fr|om the b|
|00002a80| 65 67 69 6e 6e 69 6e 67 | 20 74 6f 20 74 68 65 20 |eginning| to the |
|00002a90| 65 6e 64 20 6f 66 0d 3b | 3b 3b 20 6f 66 20 74 68 |end of.;|;; of th|
|00002aa0| 65 20 73 6c 6f 74 20 4d | 59 2d 49 54 45 4d 53 20 |e slot M|Y-ITEMS |
|00002ab0| 6f 66 20 74 68 65 20 64 | 72 61 77 2d 64 69 61 6c |of the d|raw-dial|
|00002ac0| 6f 67 20 77 69 6e 64 6f | 77 2c 20 61 6c 6c 20 74 |og windo|w, all t|
|00002ad0| 68 61 74 20 6e 65 65 64 | 73 0d 3b 3b 3b 20 74 6f |hat need|s.;;; to|
|00002ae0| 20 62 65 20 64 6f 6e 65 | 20 69 73 20 74 6f 20 6d | be done| is to m|
|00002af0| 6f 76 65 20 74 68 65 20 | 69 74 65 6d 20 74 6f 20 |ove the |item to |
|00002b00| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 6c |the end |of the l|
|00002b10| 69 73 74 2e 0d 3b 3b 3b | 0d 28 64 65 66 6d 65 74 |ist..;;;|.(defmet|
|00002b20| 68 6f 64 20 62 72 69 6e | 67 2d 69 74 65 6d 2d 74 |hod brin|g-item-t|
|00002b30| 6f 2d 66 72 6f 6e 74 20 | 28 28 77 69 6e 64 6f 77 |o-front |((window|
|00002b40| 20 64 72 61 77 2d 64 69 | 61 6c 6f 67 29 20 26 6f | draw-di|alog) &o|
|00002b50| 70 74 69 6f 6e 61 6c 20 | 69 74 65 6d 29 0d 20 20 |ptional |item). |
|00002b60| 3b 3b 20 46 69 67 75 72 | 65 20 6f 75 74 20 77 68 |;; Figur|e out wh|
|00002b70| 69 63 68 20 69 74 65 6d | 20 74 6f 20 62 72 69 6e |ich item| to brin|
|00002b80| 67 20 74 6f 20 66 72 6f | 6e 74 2c 20 69 66 20 61 |g to fro|nt, if a|
|00002b90| 6e 79 3a 0d 20 20 28 6f | 72 20 69 74 65 6d 20 28 |ny:. (o|r item (|
|00002ba0| 73 65 74 71 20 69 74 65 | 6d 20 28 66 69 72 73 74 |setq ite|m (first|
|00002bb0| 20 28 73 6c 6f 74 2d 76 | 61 6c 75 65 20 77 69 6e | (slot-v|alue win|
|00002bc0| 64 6f 77 20 27 73 65 6c | 65 63 74 69 6f 6e 73 29 |dow 'sel|ections)|
|00002bd0| 29 29 29 0d 20 20 3b 3b | 20 49 66 20 74 68 65 72 |))). ;;| If ther|
|00002be0| 65 27 73 20 61 6e 20 69 | 74 65 6d 2c 20 74 68 65 |e's an i|tem, the|
|00002bf0| 6e 20 62 72 69 6e 67 20 | 69 74 20 74 6f 20 74 68 |n bring |it to th|
|00002c00| 65 20 66 72 6f 6e 74 3a | 0d 20 20 28 77 68 65 6e |e front:|. (when|
|00002c10| 20 69 74 65 6d 0d 20 20 | 20 20 28 73 65 74 66 20 | item. | (setf |
|00002c20| 28 73 6c 6f 74 2d 76 61 | 6c 75 65 20 77 69 6e 64 |(slot-va|lue wind|
|00002c30| 6f 77 20 27 6d 79 2d 69 | 74 65 6d 73 29 0d 20 20 |ow 'my-i|tems). |
|00002c40| 20 20 20 20 20 20 20 20 | 28 64 65 6c 65 74 65 20 | |(delete |
|00002c50| 69 74 65 6d 20 28 73 6c | 6f 74 2d 76 61 6c 75 65 |item (sl|ot-value|
|00002c60| 20 77 69 6e 64 6f 77 20 | 27 6d 79 2d 69 74 65 6d | window |'my-item|
|00002c70| 73 29 29 29 0d 20 20 20 | 20 28 73 65 74 66 20 28 |s))). | (setf (|
|00002c80| 73 6c 6f 74 2d 76 61 6c | 75 65 20 77 69 6e 64 6f |slot-val|ue windo|
|00002c90| 77 20 27 6d 79 2d 69 74 | 65 6d 73 29 0d 20 20 20 |w 'my-it|ems). |
|00002ca0| 20 20 20 20 20 20 20 28 | 6e 63 6f 6e 63 20 28 73 | (|nconc (s|
|00002cb0| 6c 6f 74 2d 76 61 6c 75 | 65 20 77 69 6e 64 6f 77 |lot-valu|e window|
|00002cc0| 20 27 6d 79 2d 69 74 65 | 6d 73 29 20 28 6c 69 73 | 'my-ite|ms) (lis|
|00002cd0| 74 20 69 74 65 6d 29 29 | 29 29 0d 20 20 3b 3b 20 |t item))|)). ;; |
|00002ce0| 52 65 64 72 61 77 20 74 | 68 65 20 77 69 6e 64 6f |Redraw t|he windo|
|00002cf0| 77 20 73 6f 20 74 68 61 | 74 20 74 68 65 20 63 68 |w so tha|t the ch|
|00002d00| 61 6e 67 65 20 69 73 20 | 69 6d 6d 65 64 69 61 74 |ange is |immediat|
|00002d10| 65 6c 79 20 61 70 70 61 | 72 65 6e 74 3a 0d 20 20 |ely appa|rent:. |
|00002d20| 28 76 69 65 77 2d 64 72 | 61 77 2d 63 6f 6e 74 65 |(view-dr|aw-conte|
|00002d30| 6e 74 73 20 77 69 6e 64 | 6f 77 29 29 0d 0d 3b 3b |nts wind|ow))..;;|
|00002d40| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002d50| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002d60| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002d70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002d80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002d90| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002da0| 3b 3b 3b 3b 3b 3b 3b 3b | 0d 3b 3b 3b 20 61 64 64 |;;;;;;;;|.;;; add|
|00002db0| 2d 73 75 62 76 69 65 77 | 73 20 5b 64 72 61 77 2d |-subview|s [draw-|
|00002dc0| 64 69 61 6c 6f 67 5d 0d | 3b 3b 3b 0d 3b 3b 3b 20 |dialog].|;;;.;;; |
|00002dd0| 41 64 64 20 6e 65 77 20 | 64 69 61 6c 6f 67 20 69 |Add new |dialog i|
|00002de0| 74 65 6d 73 20 69 6e 74 | 6f 20 6f 75 72 20 6f 72 |tems int|o our or|
|00002df0| 64 65 72 65 64 20 69 74 | 65 6d 20 6c 69 73 74 20 |dered it|em list |
|00002e00| 61 66 74 65 72 0d 3b 3b | 3b 20 74 68 65 79 20 68 |after.;;|; they h|
|00002e10| 61 76 65 20 62 65 65 6e | 20 61 64 64 65 64 20 74 |ave been| added t|
|00002e20| 6f 20 74 68 65 20 64 69 | 61 6c 6f 67 2e 0d 3b 3b |o the di|alog..;;|
|00002e30| 3b 0d 28 64 65 66 6d 65 | 74 68 6f 64 20 61 64 64 |;.(defme|thod add|
|00002e40| 2d 73 75 62 76 69 65 77 | 73 20 3a 61 66 74 65 72 |-subview|s :after|
|00002e50| 20 28 28 64 20 64 72 61 | 77 2d 64 69 61 6c 6f 67 | ((d dra|w-dialog|
|00002e60| 29 20 26 72 65 73 74 20 | 6e 65 77 2d 69 74 65 6d |) &rest |new-item|
|00002e70| 73 29 0d 20 20 28 64 6f | 6c 69 73 74 20 28 69 74 |s). (do|list (it|
|00002e80| 65 6d 20 6e 65 77 2d 69 | 74 65 6d 73 29 0d 20 20 |em new-i|tems). |
|00002e90| 20 20 28 70 75 73 68 6e | 65 77 20 69 74 65 6d 20 | (pushn|ew item |
|00002ea0| 28 73 6c 6f 74 2d 76 61 | 6c 75 65 20 64 20 27 6d |(slot-va|lue d 'm|
|00002eb0| 79 2d 69 74 65 6d 73 29 | 29 29 29 0d 0d 3b 3b 3b |y-items)|)))..;;;|
|00002ec0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002ed0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002ee0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002ef0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002f00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002f10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002f20| 3b 3b 3b 3b 3b 3b 3b 0d | 3b 3b 3b 20 72 65 6d 6f |;;;;;;;.|;;; remo|
|00002f30| 76 65 2d 73 75 62 76 69 | 65 77 73 20 5b 64 72 61 |ve-subvi|ews [dra|
|00002f40| 77 2d 64 69 61 6c 6f 67 | 5d 0d 3b 3b 3b 0d 3b 3b |w-dialog|].;;;.;;|
|00002f50| 3b 20 52 65 6d 6f 76 65 | 20 64 69 61 6c 6f 67 20 |; Remove| dialog |
|00002f60| 69 74 65 6d 73 20 66 72 | 6f 6d 20 6f 75 72 20 6f |items fr|om our o|
|00002f70| 72 64 65 72 65 64 20 69 | 74 65 6d 20 6c 69 73 74 |rdered i|tem list|
|00002f80| 20 61 66 74 65 72 0d 3b | 3b 3b 20 74 68 65 79 20 | after.;|;; they |
|00002f90| 68 61 76 65 20 62 65 65 | 6e 20 72 65 6d 6f 76 65 |have bee|n remove|
|00002fa0| 64 20 66 72 6f 6d 20 74 | 68 65 20 64 69 61 6c 6f |d from t|he dialo|
|00002fb0| 67 2e 0d 3b 3b 3b 0d 28 | 64 65 66 6d 65 74 68 6f |g..;;;.(|defmetho|
|00002fc0| 64 20 72 65 6d 6f 76 65 | 2d 73 75 62 76 69 65 77 |d remove|-subview|
|00002fd0| 73 20 3a 61 66 74 65 72 | 20 28 28 64 20 64 72 61 |s :after| ((d dra|
|00002fe0| 77 2d 64 69 61 6c 6f 67 | 29 20 26 72 65 73 74 20 |w-dialog|) &rest |
|00002ff0| 6f 6c 64 2d 69 74 65 6d | 73 29 0d 20 20 28 64 6f |old-item|s). (do|
|00003000| 6c 69 73 74 20 28 69 74 | 65 6d 20 6f 6c 64 2d 69 |list (it|em old-i|
|00003010| 74 65 6d 73 29 0d 20 20 | 20 20 28 73 65 74 66 20 |tems). | (setf |
|00003020| 28 73 6c 6f 74 2d 76 61 | 6c 75 65 20 64 20 27 6d |(slot-va|lue d 'm|
|00003030| 79 2d 69 74 65 6d 73 29 | 20 20 20 28 64 65 6c 65 |y-items)| (dele|
|00003040| 74 65 20 69 74 65 6d 20 | 28 73 6c 6f 74 2d 76 61 |te item |(slot-va|
|00003050| 6c 75 65 20 64 20 27 6d | 79 2d 69 74 65 6d 73 29 |lue d 'm|y-items)|
|00003060| 29 29 0d 20 20 20 20 28 | 73 65 74 66 20 28 73 6c |)). (|setf (sl|
|00003070| 6f 74 2d 76 61 6c 75 65 | 20 64 20 27 73 65 6c 65 |ot-value| d 'sele|
|00003080| 63 74 69 6f 6e 73 29 20 | 28 64 65 6c 65 74 65 20 |ctions) |(delete |
|00003090| 69 74 65 6d 20 28 73 6c | 6f 74 2d 76 61 6c 75 65 |item (sl|ot-value|
|000030a0| 20 64 20 27 73 65 6c 65 | 63 74 69 6f 6e 73 29 29 | d 'sele|ctions))|
|000030b0| 29 29 29 0d 0d 0d 3b 65 | 6e 64 20 6f 66 20 66 69 |)))...;e|nd of fi|
|000030c0| 6c 65 20 64 72 61 77 2d | 64 69 61 6c 6f 67 2d 63 |le draw-|dialog-c|
|000030d0| 6c 61 73 73 2e 6c 69 73 | 70 0d 3b 2d 2d 2d 2d 2d |lass.lis|p.;-----|
|000030e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000030f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 00 00 00 00 |--------|---.....|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 01 00 00 00 01 67 | 00 00 00 67 00 00 00 52 |.......g|...g...R|
|00003190| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 72 65 6d 6f |.(defmet|hod remo|
|000031a0| 76 65 2d 73 75 62 76 69 | 65 77 73 20 3a 61 66 74 |ve-subvi|ews :aft|
|000031b0| 16 64 72 61 77 2d 64 69 | 61 6c 6f 67 2d 63 6c 61 |.draw-di|alog-cla|
|000031c0| 73 73 2e 6c 69 73 70 6c | 02 00 00 00 54 45 58 54 |ss.lispl|....TEXT|
|000031d0| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 34 00 00 |..TEXTCC|L2...4..|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 a2 c6 36 09 00 00 | 30 8c 00 00 01 b9 74 2d |....6...|0.....t-|
|00003200| 76 61 6c 75 65 20 64 20 | 27 6d 79 2d 69 74 65 6d |value d |'my-item|
|00003210| 73 29 0d 20 20 20 20 20 | 20 20 20 20 20 28 64 65 |s). | (de|
|00003220| 6c 65 74 65 20 69 74 65 | 6d 20 20 28 73 6c 6f 74 |lete ite|m (slot|
|00003230| 2d 76 61 6c 75 65 20 64 | 20 27 6d 79 2d 69 74 65 |-value d| 'my-ite|
|00003240| 6d 73 29 29 29 29 29 0d | 0d 0d 6d 20 66 6f 72 20 |ms))))).|..m for |
|00003250| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 41 6c |the Maci|ntosh Al|
|00003260| 6c 65 67 72 6f 20 43 6f | 6d 6d 6f 6e 20 4c 69 73 |legro Co|mmon Lis|
|00003270| 70 20 61 72 74 69 63 6c | 65 2e 0d 3b 3b 3b 0d 3b |p articl|e..;;;.;|
|00003280| 00 00 00 0a 00 01 00 04 | 09 00 01 00 00 00 00 00 |........|........|
|00003290| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 00 00 00 00 00 |.H..Mona|co......|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 06 00 08 | 00 29 00 03 01 8d 02 32 |........|.).....2|
|000032c0| 00 29 00 03 01 8d 02 32 | a3 aa 0d 4b 00 00 00 00 |.).....2|...K....|
|000032d0| 00 00 00 00 00 00 00 00 | 01 00 00 00 00 09 01 fc |........|........|
|000032e0| 06 4d 6f 6e 61 63 6f 00 | 00 01 00 00 00 01 67 00 |.Monaco.|......g.|
|000032f0| 00 00 67 00 00 00 52 00 | 1b 2a bc 08 16 00 00 00 |..g...R.|.*......|
|00003300| 1c 00 52 00 01 46 52 45 | 44 00 01 00 12 4d 50 53 |..R..FRE|D....MPS|
|00003310| 52 00 00 00 2a 00 02 ff | ff 00 00 00 00 00 00 00 |R...*...|........|
|00003320| 00 00 03 ff ff 00 00 00 | 5a 00 00 00 00 03 ed ff |........|Z.......|
|00003330| ff 00 00 00 0e 00 1c 1e | c4 00 00 00 00 00 00 00 |........|........|
|00003340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+