home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LHArc Archive
(archive/lha).
You can browse this item here: GSource.lha
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LHArc Archive (archive/lha)
| magic
| Supported |
100%
| file
| LHarc 1.x/ARX archive data [lh0], with "GSource\BGUI\interface.c"
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| LHARC/LZARK compressed archive (generic)
| default
| |
50%
| lsar
| LZH
| default
| |
100%
| gt2
| LZH Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| detectItEasy
| Archive: LHA archive (.LHA)(-lh0-)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 2e d3 2d 6c 68 30 2d c9 | 20 00 00 c9 20 00 00 10 |..-lh0-.| ... ...|
|00000010| 8b 91 1d 00 00 18 47 53 | 6f 75 72 63 65 5c 42 47 |......GS|ource\BG|
|00000020| 55 49 5c 69 6e 74 65 72 | 66 61 63 65 2e 63 26 43 |UI\inter|face.c&C|
|00000030| 23 69 6e 63 6c 75 64 65 | 20 3c 65 78 65 63 2f 6d |#include| <exec/m|
|00000040| 65 6d 6f 72 79 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |emory.h>|.#includ|
|00000050| 65 20 3c 64 6f 73 2f 64 | 6f 73 74 61 67 73 2e 68 |e <dos/d|ostags.h|
|00000060| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 6c 69 62 72 |>.#inclu|de <libr|
|00000070| 61 72 69 65 73 2f 62 67 | 75 69 2e 68 3e 0a 23 69 |aries/bg|ui.h>.#i|
|00000080| 6e 63 6c 75 64 65 20 3c | 6c 69 62 72 61 72 69 65 |nclude <|librarie|
|00000090| 73 2f 62 67 75 69 5f 6d | 61 63 72 6f 73 2e 68 3e |s/bgui_m|acros.h>|
|000000a0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 72 69 6e |.#includ|e <strin|
|000000b0| 67 2e 68 3e 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |g.h>..#i|nclude <|
|000000c0| 63 6c 69 62 2f 62 67 75 | 69 5f 70 72 6f 74 6f 73 |clib/bgu|i_protos|
|000000d0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 70 72 |.h>.#inc|lude <pr|
|000000e0| 61 67 6d 61 73 2f 62 67 | 75 69 5f 70 72 61 67 6d |agmas/bg|ui_pragm|
|000000f0| 61 73 2e 68 3e 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |as.h>..#|include |
|00000100| 3c 63 6c 69 62 2f 77 62 | 5f 70 72 6f 74 6f 73 2e |<clib/wb|_protos.|
|00000110| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 70 72 61 |h>.#incl|ude <pra|
|00000120| 67 6d 61 73 2f 77 62 5f | 70 72 61 67 6d 61 73 2e |gmas/wb_|pragmas.|
|00000130| 68 3e 0a 0a 23 69 6e 63 | 6c 75 64 65 20 22 69 6e |h>..#inc|lude "in|
|00000140| 74 65 72 66 61 63 65 2e | 68 22 0a 23 69 6e 63 6c |terface.|h".#incl|
|00000150| 75 64 65 20 22 2f 69 6e | 63 6c 75 64 65 73 2e 68 |ude "/in|cludes.h|
|00000160| 22 0a 23 69 6e 63 6c 75 | 64 65 20 22 2f 6c 69 62 |".#inclu|de "/lib|
|00000170| 72 61 72 69 65 73 2e 68 | 22 0a 23 69 6e 63 6c 75 |raries.h|".#inclu|
|00000180| 64 65 20 22 2f 70 72 6f | 74 6f 73 2f 70 72 6f 74 |de "/pro|tos/prot|
|00000190| 6f 73 2e 68 22 0a 0a 4f | 62 6a 65 63 74 20 2a 42 |os.h"..O|bject *B|
|000001a0| 6c 61 6e 6b 65 72 73 4c | 76 77 2c 20 2a 50 72 65 |lankersL|vw, *Pre|
|000001b0| 66 73 42 74 6e 2c 20 2a | 49 6e 66 6f 42 74 6e 2c |fsBtn, *|InfoBtn,|
|000001c0| 20 2a 54 6f 67 67 6c 65 | 42 74 6e 2c 20 2a 48 69 | *Toggle|Btn, *Hi|
|000001d0| 64 65 42 74 6e 3b 0a 4f | 62 6a 65 63 74 20 2a 53 |deBtn;.O|bject *S|
|000001e0| 65 74 74 69 6e 67 73 42 | 74 6e 2c 20 2a 51 75 69 |ettingsB|tn, *Qui|
|000001f0| 74 42 74 6e 2c 20 2a 42 | 6c 61 6e 6b 57 6e 64 3b |tBtn, *B|lankWnd;|
|00000200| 0a 73 74 72 75 63 74 20 | 57 69 6e 64 6f 77 20 2a |.struct |Window *|
|00000210| 42 6c 61 6e 6b 65 72 57 | 6e 64 3b 0a 73 74 72 75 |BlankerW|nd;.stru|
|00000220| 63 74 20 4c 69 62 72 61 | 72 79 20 2a 42 47 55 49 |ct Libra|ry *BGUI|
|00000230| 42 61 73 65 20 3d 20 30 | 4c 3b 0a 55 4c 4f 4e 47 |Base = 0|L;.ULONG|
|00000240| 20 42 47 55 49 5f 53 69 | 67 73 20 3d 20 30 4c 3b | BGUI_Si|gs = 0L;|
|00000250| 0a 42 59 54 45 20 54 69 | 74 6c 65 5b 31 32 38 5d |.BYTE Ti|tle[128]|
|00000260| 3b 0a 0a 73 74 72 75 63 | 74 20 62 67 75 69 52 65 |;..struc|t bguiRe|
|00000270| 71 75 65 73 74 20 49 6e | 66 6f 52 65 71 20 3d 20 |quest In|foReq = |
|00000280| 7b 0a 09 42 52 45 51 46 | 5f 43 45 4e 54 45 52 57 |{..BREQF|_CENTERW|
|00000290| 49 4e 44 4f 57 7c 42 52 | 45 51 46 5f 4c 4f 43 4b |INDOW|BR|EQF_LOCK|
|000002a0| 57 49 4e 44 4f 57 7c 42 | 52 45 51 46 5f 41 55 54 |WINDOW|B|REQF_AUT|
|000002b0| 4f 5f 41 53 50 45 43 54 | 2c 0a 09 22 47 61 72 73 |O_ASPECT|,.."Gars|
|000002c0| 68 6e 65 62 6c 61 6e 6b | 65 72 22 2c 20 22 5f 4f |hneblank|er", "_O|
|000002d0| 4b 22 2c 0a 09 22 43 75 | 72 72 65 6e 74 20 54 6f |K",.."Cu|rrent To|
|000002e0| 6f 6c 74 79 70 65 20 53 | 65 74 74 69 6e 67 73 5c |oltype S|ettings\|
|000002f0| 6e 5c 6e 20 20 20 42 4c | 41 4e 4b 4b 45 59 3d 25 |n\n BL|ANKKEY=%|
|00000300| 73 5c 6e 20 20 20 50 4f | 50 4b 45 59 3d 25 73 5c |s\n PO|PKEY=%s\|
|00000310| 6e 20 20 20 54 49 4d 45 | 4f 55 54 3d 25 6c 64 5c |n TIME|OUT=%ld\|
|00000320| 6e 20 20 20 52 45 50 4c | 41 43 45 3d 25 73 5c 6e |n REPL|ACE=%s\n|
|00000330| 20 20 20 52 41 4e 44 54 | 49 4d 45 4f 55 54 3d 25 | RANDT|IMEOUT=%|
|00000340| 6c 64 5c 6e 20 20 20 42 | 4c 41 4e 4b 43 4f 52 4e |ld\n B|LANKCORN|
|00000350| 45 52 3d 25 73 5c 6e 20 | 20 20 44 4f 4e 54 43 4f |ER=%s\n | DONTCO|
|00000360| 52 4e 45 52 3d 25 73 22 | 2c 0a 09 30 2c 20 30 4c |RNER=%s"|,..0, 0L|
|00000370| 2c 20 27 5f 27 2c 20 30 | 2c 20 30 4c 2c 20 30 4c |, '_', 0|, 0L, 0L|
|00000380| 0a 09 7d 3b 0a 0a 5f 5f | 73 61 76 65 64 73 20 5f |..};..__|saveds _|
|00000390| 5f 61 73 6d 20 41 50 54 | 52 20 52 65 73 6f 75 72 |_asm APT|R Resour|
|000003a0| 63 65 48 6f 6f 6b 46 75 | 6e 63 28 20 72 65 67 69 |ceHookFu|nc( regi|
|000003b0| 73 74 65 72 20 5f 5f 61 | 30 20 73 74 72 75 63 74 |ster __a|0 struct|
|000003c0| 20 48 6f 6f 6b 20 2a 68 | 6f 6f 6b 2c 0a 20 20 20 | Hook *h|ook,. |
|000003d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003f0| 20 20 72 65 67 69 73 74 | 65 72 20 5f 5f 61 32 20 | regist|er __a2 |
|00000400| 4f 62 6a 65 63 74 20 2a | 6c 76 5f 6f 62 6a 2c 0a |Object *|lv_obj,.|
|00000410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000430| 20 20 20 20 20 72 65 67 | 69 73 74 65 72 20 5f 5f | reg|ister __|
|00000440| 61 31 20 73 74 72 75 63 | 74 20 6c 76 52 65 73 6f |a1 struc|t lvReso|
|00000450| 75 72 63 65 20 2a 6c 76 | 72 20 29 0a 7b 0a 20 20 |urce *lv|r ).{. |
|00000460| 20 20 73 77 69 74 63 68 | 28 20 6c 76 72 2d 3e 6c | switch|( lvr->l|
|00000470| 76 72 5f 43 6f 6d 6d 61 | 6e 64 20 29 0a 20 20 20 |vr_Comma|nd ). |
|00000480| 20 7b 0a 20 20 20 20 63 | 61 73 65 20 4c 56 52 43 | {. c|ase LVRC|
|00000490| 5f 4d 41 4b 45 3a 0a 20 | 20 20 20 20 20 20 20 72 |_MAKE:. | r|
|000004a0| 65 74 75 72 6e 20 6c 76 | 72 2d 3e 6c 76 72 5f 45 |eturn lv|r->lvr_E|
|000004b0| 6e 74 72 79 3b 0a 20 20 | 20 20 63 61 73 65 20 4c |ntry;. | case L|
|000004c0| 56 52 43 5f 4b 49 4c 4c | 3a 0a 20 20 20 20 20 20 |VRC_KILL|:. |
|000004d0| 20 20 72 65 74 75 72 6e | 20 30 4c 3b 0a 20 20 20 | return| 0L;. |
|000004e0| 20 7d 0a 7d 0a 73 74 72 | 75 63 74 20 48 6f 6f 6b | }.}.str|uct Hook|
|000004f0| 20 52 65 73 6f 75 72 63 | 65 48 6f 6f 6b 20 3d 20 | Resourc|eHook = |
|00000500| 7b 7b 20 30 4c 2c 20 30 | 4c 20 7d 2c 20 28 20 41 |{{ 0L, 0|L }, ( A|
|00000510| 50 54 52 20 29 52 65 73 | 6f 75 72 63 65 48 6f 6f |PTR )Res|ourceHoo|
|00000520| 6b 46 75 6e 63 2c 20 30 | 4c 2c 20 30 4c 20 7d 3b |kFunc, 0|L, 0L };|
|00000530| 0a 0a 5f 5f 73 61 76 65 | 64 73 20 5f 5f 61 73 6d |..__save|ds __asm|
|00000540| 20 53 54 52 50 54 52 20 | 44 69 73 70 6c 61 79 48 | STRPTR |DisplayH|
|00000550| 6f 6f 6b 46 75 6e 63 28 | 20 72 65 67 69 73 74 65 |ookFunc(| registe|
|00000560| 72 20 5f 5f 61 30 20 73 | 74 72 75 63 74 20 48 6f |r __a0 s|truct Ho|
|00000570| 6f 6b 20 2a 68 6f 6f 6b | 2c 0a 20 20 20 20 20 20 |ok *hook|,. |
|00000580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000590| 20 20 72 65 67 69 73 74 | 65 72 20 5f 5f 61 32 20 | regist|er __a2 |
|000005a0| 4f 62 6a 65 63 74 20 2a | 6c 76 5f 6f 62 6a 2c 0a |Object *|lv_obj,.|
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005c0| 20 20 20 20 20 20 20 20 | 72 65 67 69 73 74 65 72 | |register|
|000005d0| 20 5f 5f 61 31 20 73 74 | 72 75 63 74 20 6c 76 52 | __a1 st|ruct lvR|
|000005e0| 65 6e 64 65 72 20 2a 6c | 76 72 20 29 0a 7b 0a 20 |ender *l|vr ).{. |
|000005f0| 20 20 20 42 6c 61 6e 6b | 65 72 45 6e 74 72 79 20 | Blank|erEntry |
|00000600| 2a 45 6e 74 72 79 20 3d | 20 28 20 42 6c 61 6e 6b |*Entry =| ( Blank|
|00000610| 65 72 45 6e 74 72 79 20 | 2a 20 29 6c 76 72 2d 3e |erEntry |* )lvr->|
|00000620| 6c 76 72 5f 45 6e 74 72 | 79 3b 0a 20 20 20 20 73 |lvr_Entr|y;. s|
|00000630| 74 61 74 69 63 20 42 59 | 54 45 20 42 75 66 66 65 |tatic BY|TE Buffe|
|00000640| 72 5b 38 30 5d 3b 0a 20 | 20 20 20 0a 20 20 20 20 |r[80];. | . |
|00000650| 69 66 28 20 21 45 6e 74 | 72 79 2d 3e 62 65 5f 44 |if( !Ent|ry->be_D|
|00000660| 69 73 61 62 6c 65 64 20 | 29 0a 20 20 20 20 20 20 |isabled |). |
|00000670| 20 20 72 65 74 75 72 6e | 20 45 6e 74 72 79 2d 3e | return| Entry->|
|00000680| 62 65 5f 4e 61 6d 65 3b | 0a 0a 20 20 20 20 73 74 |be_Name;|.. st|
|00000690| 72 63 70 79 28 20 42 75 | 66 66 65 72 2c 20 22 28 |rcpy( Bu|ffer, "(|
|000006a0| 22 20 29 3b 0a 20 20 20 | 20 73 74 72 63 61 74 28 |" );. | strcat(|
|000006b0| 20 42 75 66 66 65 72 2c | 20 45 6e 74 72 79 2d 3e | Buffer,| Entry->|
|000006c0| 62 65 5f 4e 61 6d 65 20 | 29 3b 0a 20 20 20 20 73 |be_Name |);. s|
|000006d0| 74 72 63 61 74 28 20 42 | 75 66 66 65 72 2c 20 22 |trcat( B|uffer, "|
|000006e0| 29 22 20 29 3b 0a 0a 20 | 20 20 20 72 65 74 75 72 |)" );.. | retur|
|000006f0| 6e 20 42 75 66 66 65 72 | 3b 0a 7d 0a 73 74 72 75 |n Buffer|;.}.stru|
|00000700| 63 74 20 48 6f 6f 6b 20 | 44 69 73 70 6c 61 79 48 |ct Hook |DisplayH|
|00000710| 6f 6f 6b 20 3d 20 7b 7b | 20 30 4c 2c 20 30 4c 20 |ook = {{| 0L, 0L |
|00000720| 7d 2c 20 28 20 41 50 54 | 52 20 29 44 69 73 70 6c |}, ( APT|R )Displ|
|00000730| 61 79 48 6f 6f 6b 46 75 | 6e 63 2c 20 30 4c 2c 20 |ayHookFu|nc, 0L, |
|00000740| 30 4c 20 7d 3b 0a 0a 55 | 4c 4f 4e 47 20 49 53 69 |0L };..U|LONG ISi|
|00000750| 67 73 28 20 56 4f 49 44 | 20 29 0a 7b 0a 20 20 20 |gs( VOID| ).{. |
|00000760| 20 72 65 74 75 72 6e 20 | 42 47 55 49 5f 53 69 67 | return |BGUI_Sig|
|00000770| 73 3b 0a 7d 0a 0a 4c 4f | 4e 47 20 4f 70 65 6e 49 |s;.}..LO|NG OpenI|
|00000780| 6e 74 65 72 66 61 63 65 | 28 20 56 4f 49 44 20 29 |nterface|( VOID )|
|00000790| 0a 7b 0a 20 20 20 20 4c | 4f 4e 47 20 52 61 6e 64 |.{. L|ONG Rand|
|000007a0| 3b 0a 20 20 20 20 0a 20 | 20 20 20 69 66 28 20 42 |;. . | if( B|
|000007b0| 47 55 49 42 61 73 65 20 | 29 0a 20 20 20 20 20 20 |GUIBase |). |
|000007c0| 20 20 72 65 74 75 72 6e | 20 4f 4b 3b 0a 0a 20 20 | return| OK;.. |
|000007d0| 20 20 69 66 28 21 28 20 | 42 47 55 49 42 61 73 65 | if(!( |BGUIBase|
|000007e0| 20 3d 20 4f 70 65 6e 4c | 69 62 72 61 72 79 28 20 | = OpenL|ibrary( |
|000007f0| 42 47 55 49 4e 41 4d 45 | 2c 20 42 47 55 49 56 45 |BGUINAME|, BGUIVE|
|00000800| 52 53 49 4f 4e 20 29 29 | 29 0a 20 20 20 20 20 20 |RSION ))|). |
|00000810| 20 20 72 65 74 75 72 6e | 20 51 55 49 54 3b 0a 0a | return| QUIT;..|
|00000820| 20 20 20 20 52 61 6e 64 | 20 3d 20 21 53 74 72 69 | Rand| = !Stri|
|00000830| 63 6d 70 28 20 50 72 65 | 66 73 2d 3e 62 70 5f 42 |cmp( Pre|fs->bp_B|
|00000840| 6c 61 6e 6b 65 72 2c 20 | 22 52 61 6e 64 6f 6d 22 |lanker, |"Random"|
|00000850| 20 29 3b 0a 0a 20 20 20 | 20 73 74 72 63 70 79 28 | );.. | strcpy(|
|00000860| 20 54 69 74 6c 65 2c 20 | 22 47 61 72 73 68 6e 65 | Title, |"Garshne|
|00000870| 62 6c 61 6e 6b 65 72 20 | 28 20 50 6f 70 4b 65 79 |blanker |( PopKey|
|00000880| 3d 22 20 29 3b 0a 20 20 | 20 20 73 74 72 63 61 74 |=" );. | strcat|
|00000890| 28 20 54 69 74 6c 65 2c | 20 50 72 65 66 73 2d 3e |( Title,| Prefs->|
|000008a0| 62 70 5f 50 6f 70 4b 65 | 79 20 29 3b 0a 20 20 20 |bp_PopKe|y );. |
|000008b0| 20 73 74 72 63 61 74 28 | 20 54 69 74 6c 65 2c 20 | strcat(| Title, |
|000008c0| 22 2c 20 42 6c 61 6e 6b | 4b 65 79 3d 22 20 29 3b |", Blank|Key=" );|
|000008d0| 0a 20 20 20 20 73 74 72 | 63 61 74 28 20 54 69 74 |. str|cat( Tit|
|000008e0| 6c 65 2c 20 50 72 65 66 | 73 2d 3e 62 70 5f 42 6c |le, Pref|s->bp_Bl|
|000008f0| 61 6e 6b 4b 65 79 20 29 | 3b 0a 20 20 20 20 73 74 |ankKey )|;. st|
|00000900| 72 63 61 74 28 20 54 69 | 74 6c 65 2c 20 22 20 29 |rcat( Ti|tle, " )|
|00000910| 22 20 29 3b 0a 0a 09 42 | 6c 61 6e 6b 57 6e 64 20 |" );...B|lankWnd |
|00000920| 3d 20 57 69 6e 64 6f 77 | 4f 62 6a 65 63 74 2c 0a |= Window|Object,.|
|00000930| 20 20 20 20 57 49 4e 44 | 4f 57 5f 42 6f 75 6e 64 | WIND|OW_Bound|
|00000940| 73 2c 20 26 57 69 6e 42 | 6f 78 2c 0a 20 20 20 20 |s, &WinB|ox,. |
|00000950| 57 49 4e 44 4f 57 5f 54 | 69 74 6c 65 2c 20 46 69 |WINDOW_T|itle, Fi|
|00000960| 6c 65 50 61 72 74 28 20 | 50 72 6f 67 4e 61 6d 65 |lePart( |ProgName|
|00000970| 20 29 2c 0a 20 20 20 20 | 57 49 4e 44 4f 57 5f 53 | ),. |WINDOW_S|
|00000980| 63 72 65 65 6e 54 69 74 | 6c 65 2c 20 54 69 74 6c |creenTit|le, Titl|
|00000990| 65 2c 0a 20 20 20 20 57 | 49 4e 44 4f 57 5f 53 6d |e,. W|INDOW_Sm|
|000009a0| 61 72 74 52 65 66 72 65 | 73 68 2c 20 54 52 55 45 |artRefre|sh, TRUE|
|000009b0| 2c 0a 20 20 20 20 57 49 | 4e 44 4f 57 5f 4d 61 73 |,. WI|NDOW_Mas|
|000009c0| 74 65 72 47 72 6f 75 70 | 2c 0a 20 20 20 20 0a 20 |terGroup|,. . |
|000009d0| 20 20 20 56 47 72 6f 75 | 70 4f 62 6a 65 63 74 2c | VGrou|pObject,|
|000009e0| 0a 20 20 20 20 48 4f 66 | 66 73 65 74 28 20 57 48 |. HOf|fset( WH|
|000009f0| 49 54 45 53 50 41 43 45 | 20 29 2c 20 56 4f 66 66 |ITESPACE| ), VOff|
|00000a00| 73 65 74 28 20 57 48 49 | 54 45 53 50 41 43 45 20 |set( WHI|TESPACE |
|00000a10| 29 2c 20 53 70 61 63 69 | 6e 67 28 20 32 20 29 2c |), Spaci|ng( 2 ),|
|00000a20| 0a 20 20 20 20 0a 20 20 | 20 20 53 74 61 72 74 4d |. . | StartM|
|00000a30| 65 6d 62 65 72 2c 0a 20 | 20 20 20 20 20 20 20 42 |ember,. | B|
|00000a40| 6c 61 6e 6b 65 72 73 4c | 76 77 20 3d 20 4c 69 73 |lankersL|vw = Lis|
|00000a50| 74 76 69 65 77 4f 62 6a | 65 63 74 2c 0a 20 20 20 |tviewObj|ect,. |
|00000a60| 20 20 20 20 20 20 20 20 | 20 47 41 5f 49 44 2c 20 | | GA_ID, |
|00000a70| 49 44 5f 42 4c 41 4e 4b | 45 52 53 2c 0a 20 20 20 |ID_BLANK|ERS,. |
|00000a80| 20 20 20 20 20 20 20 20 | 20 4c 49 53 54 56 5f 44 | | LISTV_D|
|00000a90| 69 73 70 6c 61 79 48 6f | 6f 6b 2c 20 26 44 69 73 |isplayHo|ok, &Dis|
|00000aa0| 70 6c 61 79 48 6f 6f 6b | 2c 0a 20 20 20 20 20 20 |playHook|,. |
|00000ab0| 20 20 20 20 20 20 4c 49 | 53 54 56 5f 52 65 73 6f | LI|STV_Reso|
|00000ac0| 75 72 63 65 48 6f 6f 6b | 2c 20 26 52 65 73 6f 75 |urceHook|, &Resou|
|00000ad0| 72 63 65 48 6f 6f 6b 2c | 0a 20 20 20 20 20 20 20 |rceHook,|. |
|00000ae0| 20 45 6e 64 4f 62 6a 65 | 63 74 2c 0a 20 20 20 20 | EndObje|ct,. |
|00000af0| 20 20 20 20 57 65 69 67 | 68 74 28 20 38 30 20 29 | Weig|ht( 80 )|
|00000b00| 2c 0a 20 20 20 20 45 6e | 64 4d 65 6d 62 65 72 2c |,. En|dMember,|
|00000b10| 0a 20 20 20 20 0a 20 20 | 20 20 53 74 61 72 74 4d |. . | StartM|
|00000b20| 65 6d 62 65 72 2c 0a 20 | 20 20 20 20 20 20 20 48 |ember,. | H|
|00000b30| 47 72 6f 75 70 4f 62 6a | 65 63 74 2c 0a 20 20 20 |GroupObj|ect,. |
|00000b40| 20 20 20 20 20 20 20 20 | 20 53 70 61 63 69 6e 67 | | Spacing|
|00000b50| 28 20 57 48 49 54 45 53 | 50 41 43 45 20 29 2c 0a |( WHITES|PACE ),.|
|00000b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 74 61 72 | | Star|
|00000b70| 74 4d 65 6d 62 65 72 2c | 20 50 72 65 66 73 42 74 |tMember,| PrefsBt|
|00000b80| 6e 20 3d 20 4b 65 79 42 | 75 74 74 6f 6e 28 20 22 |n = KeyB|utton( "|
|00000b90| 5f 50 72 65 66 73 22 2c | 20 49 44 5f 50 52 45 46 |_Prefs",| ID_PREF|
|00000ba0| 53 20 29 2c 20 45 6e 64 | 4d 65 6d 62 65 72 2c 0a |S ), End|Member,.|
|00000bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 74 61 72 | | Star|
|00000bc0| 74 4d 65 6d 62 65 72 2c | 20 49 6e 66 6f 42 74 6e |tMember,| InfoBtn|
|00000bd0| 20 3d 20 4b 65 79 42 75 | 74 74 6f 6e 28 20 22 5f | = KeyBu|tton( "_|
|00000be0| 49 6e 66 6f 22 2c 20 49 | 44 5f 49 4e 46 4f 20 29 |Info", I|D_INFO )|
|00000bf0| 2c 20 45 6e 64 4d 65 6d | 62 65 72 2c 0a 20 20 20 |, EndMem|ber,. |
|00000c00| 20 20 20 20 20 20 20 20 | 20 53 74 61 72 74 4d 65 | | StartMe|
|00000c10| 6d 62 65 72 2c 20 54 6f | 67 67 6c 65 42 74 6e 20 |mber, To|ggleBtn |
|00000c20| 3d 20 4b 65 79 42 75 74 | 74 6f 6e 28 20 22 5f 54 |= KeyBut|ton( "_T|
|00000c30| 6f 67 67 6c 65 22 2c 20 | 49 44 5f 54 4f 47 47 4c |oggle", |ID_TOGGL|
|00000c40| 45 20 29 2c 20 45 6e 64 | 4d 65 6d 62 65 72 2c 0a |E ), End|Member,.|
|00000c50| 20 20 20 20 20 20 20 20 | 45 6e 64 4f 62 6a 65 63 | |EndObjec|
|00000c60| 74 2c 0a 20 20 20 20 20 | 20 20 20 57 65 69 67 68 |t,. | Weigh|
|00000c70| 74 28 20 31 30 20 29 2c | 0a 20 20 20 20 45 6e 64 |t( 10 ),|. End|
|00000c80| 4d 65 6d 62 65 72 2c 0a | 20 20 20 20 0a 20 20 20 |Member,.| . |
|00000c90| 20 53 74 61 72 74 4d 65 | 6d 62 65 72 2c 0a 20 20 | StartMe|mber,. |
|00000ca0| 20 20 20 20 20 20 48 47 | 72 6f 75 70 4f 62 6a 65 | HG|roupObje|
|00000cb0| 63 74 2c 0a 20 20 20 20 | 20 20 20 20 53 70 61 63 |ct,. | Spac|
|00000cc0| 69 6e 67 28 20 57 48 49 | 54 45 53 50 41 43 45 20 |ing( WHI|TESPACE |
|00000cd0| 29 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 53 |),. | S|
|00000ce0| 74 61 72 74 4d 65 6d 62 | 65 72 2c 20 48 69 64 65 |tartMemb|er, Hide|
|00000cf0| 42 74 6e 20 3d 20 4b 65 | 79 42 75 74 74 6f 6e 28 |Btn = Ke|yButton(|
|00000d00| 20 22 5f 48 69 64 65 22 | 2c 20 49 44 5f 48 49 44 | "_Hide"|, ID_HID|
|00000d10| 45 20 29 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |E ),. | |
|00000d20| 20 57 65 69 67 68 74 28 | 20 33 30 20 29 2c 20 45 | Weight(| 30 ), E|
|00000d30| 6e 64 4d 65 6d 62 65 72 | 2c 0a 20 20 20 20 20 20 |ndMember|,. |
|00000d40| 20 20 20 20 20 20 53 74 | 61 72 74 4d 65 6d 62 65 | St|artMembe|
|00000d50| 72 2c 20 53 65 74 74 69 | 6e 67 73 42 74 6e 20 3d |r, Setti|ngsBtn =|
|00000d60| 20 4b 65 79 42 75 74 74 | 6f 6e 28 20 22 5f 53 65 | KeyButt|on( "_Se|
|00000d70| 74 74 69 6e 67 73 22 2c | 20 49 44 5f 53 45 54 20 |ttings",| ID_SET |
|00000d80| 29 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 57 |),. | W|
|00000d90| 65 69 67 68 74 28 20 34 | 30 20 29 2c 20 45 6e 64 |eight( 4|0 ), End|
|00000da0| 4d 65 6d 62 65 72 2c 0a | 20 20 20 20 20 20 20 20 |Member,.| |
|00000db0| 20 20 20 20 53 74 61 72 | 74 4d 65 6d 62 65 72 2c | Star|tMember,|
|00000dc0| 20 51 75 69 74 42 74 6e | 20 3d 20 4b 65 79 42 75 | QuitBtn| = KeyBu|
|00000dd0| 74 74 6f 6e 28 20 22 5f | 51 75 69 74 22 2c 20 49 |tton( "_|Quit", I|
|00000de0| 44 5f 51 55 49 54 20 29 | 2c 0a 20 20 20 20 20 20 |D_QUIT )|,. |
|00000df0| 20 20 20 20 20 20 57 65 | 69 67 68 74 28 20 33 30 | We|ight( 30|
|00000e00| 20 29 2c 20 45 6e 64 4d | 65 6d 62 65 72 2c 0a 20 | ), EndM|ember,. |
|00000e10| 20 20 20 20 20 20 20 45 | 6e 64 4f 62 6a 65 63 74 | E|ndObject|
|00000e20| 2c 0a 20 20 20 20 20 20 | 20 20 57 65 69 67 68 74 |,. | Weight|
|00000e30| 28 20 31 30 20 29 2c 0a | 20 20 20 20 45 6e 64 4d |( 10 ),.| EndM|
|00000e40| 65 6d 62 65 72 2c 0a 20 | 20 20 20 0a 20 20 20 20 |ember,. | . |
|00000e50| 45 6e 64 4f 62 6a 65 63 | 74 2c 0a 20 20 20 20 0a |EndObjec|t,. .|
|00000e60| 20 20 20 20 45 6e 64 4f | 62 6a 65 63 74 3b 0a 0a | EndO|bject;..|
|00000e70| 20 20 20 20 69 66 28 20 | 42 6c 61 6e 6b 57 6e 64 | if( |BlankWnd|
|00000e80| 20 29 0a 20 20 20 20 7b | 0a 20 20 20 20 20 20 20 | ). {|. |
|00000e90| 20 42 6c 61 6e 6b 65 72 | 45 6e 74 72 79 20 2a 54 | Blanker|Entry *T|
|00000ea0| 6d 70 3b 0a 20 20 20 20 | 20 20 20 20 4c 4f 4e 47 |mp;. | LONG|
|00000eb0| 20 69 2c 20 53 65 6c 65 | 63 74 65 64 3b 0a 20 20 | i, Sele|cted;. |
|00000ec0| 20 20 20 20 20 20 0a 20 | 20 20 20 20 20 20 20 53 | . | S|
|00000ed0| 65 74 41 74 74 72 73 28 | 20 50 72 65 66 73 42 74 |etAttrs(| PrefsBt|
|00000ee0| 6e 2c 20 47 41 5f 44 69 | 73 61 62 6c 65 64 2c 20 |n, GA_Di|sabled, |
|00000ef0| 52 61 6e 64 2c 20 54 41 | 47 5f 45 4e 44 20 29 3b |Rand, TA|G_END );|
|00000f00| 0a 20 20 20 20 20 20 20 | 20 53 65 74 41 74 74 72 |. | SetAttr|
|00000f10| 73 28 20 54 6f 67 67 6c | 65 42 74 6e 2c 20 47 41 |s( Toggl|eBtn, GA|
|00000f20| 5f 44 69 73 61 62 6c 65 | 64 2c 20 52 61 6e 64 2c |_Disable|d, Rand,|
|00000f30| 20 54 41 47 5f 45 4e 44 | 20 29 3b 0a 20 20 20 20 | TAG_END| );. |
|00000f40| 20 20 20 20 47 61 64 67 | 65 74 4b 65 79 28 20 42 | Gadg|etKey( B|
|00000f50| 6c 61 6e 6b 57 6e 64 2c | 20 50 72 65 66 73 42 74 |lankWnd,| PrefsBt|
|00000f60| 6e 2c 20 22 70 22 20 29 | 3b 0a 20 20 20 20 20 20 |n, "p" )|;. |
|00000f70| 20 20 47 61 64 67 65 74 | 4b 65 79 28 20 42 6c 61 | Gadget|Key( Bla|
|00000f80| 6e 6b 57 6e 64 2c 20 49 | 6e 66 6f 42 74 6e 2c 20 |nkWnd, I|nfoBtn, |
|00000f90| 22 69 22 20 29 3b 0a 20 | 20 20 20 20 20 20 20 47 |"i" );. | G|
|00000fa0| 61 64 67 65 74 4b 65 79 | 28 20 42 6c 61 6e 6b 57 |adgetKey|( BlankW|
|00000fb0| 6e 64 2c 20 54 6f 67 67 | 6c 65 42 74 6e 2c 20 22 |nd, Togg|leBtn, "|
|00000fc0| 74 22 20 29 3b 0a 20 20 | 20 20 20 20 20 20 47 61 |t" );. | Ga|
|00000fd0| 64 67 65 74 4b 65 79 28 | 20 42 6c 61 6e 6b 57 6e |dgetKey(| BlankWn|
|00000fe0| 64 2c 20 48 69 64 65 42 | 74 6e 2c 20 22 68 22 20 |d, HideB|tn, "h" |
|00000ff0| 29 3b 0a 20 20 20 20 20 | 20 20 20 47 61 64 67 65 |);. | Gadge|
|00001000| 74 4b 65 79 28 20 42 6c | 61 6e 6b 57 6e 64 2c 20 |tKey( Bl|ankWnd, |
|00001010| 53 65 74 74 69 6e 67 73 | 42 74 6e 2c 20 22 73 22 |Settings|Btn, "s"|
|00001020| 20 29 3b 0a 20 20 20 20 | 20 20 20 20 47 61 64 67 | );. | Gadg|
|00001030| 65 74 4b 65 79 28 20 42 | 6c 61 6e 6b 57 6e 64 2c |etKey( B|lankWnd,|
|00001040| 20 51 75 69 74 42 74 6e | 2c 20 22 71 22 20 29 3b | QuitBtn|, "q" );|
|00001050| 0a 0a 20 20 20 20 20 20 | 20 20 66 6f 72 28 20 69 |.. | for( i|
|00001060| 20 3d 20 30 2c 20 54 6d | 70 20 3d 20 28 20 42 6c | = 0, Tm|p = ( Bl|
|00001070| 61 6e 6b 65 72 45 6e 74 | 72 79 20 2a 20 29 42 6c |ankerEnt|ry * )Bl|
|00001080| 61 6e 6b 65 72 45 6e 74 | 72 69 65 73 2d 3e 6c 68 |ankerEnt|ries->lh|
|00001090| 5f 48 65 61 64 3b 0a 20 | 20 20 20 20 20 20 20 20 |_Head;. | |
|000010a0| 20 20 20 54 6d 70 2d 3e | 62 65 5f 4e 6f 64 65 2e | Tmp->|be_Node.|
|000010b0| 6c 6e 5f 53 75 63 63 3b | 0a 20 20 20 20 20 20 20 |ln_Succ;|. |
|000010c0| 20 20 20 20 20 69 2b 2b | 2c 20 54 6d 70 20 3d 20 | i++|, Tmp = |
|000010d0| 28 20 42 6c 61 6e 6b 65 | 72 45 6e 74 72 79 20 2a |( Blanke|rEntry *|
|000010e0| 20 29 54 6d 70 2d 3e 62 | 65 5f 4e 6f 64 65 2e 6c | )Tmp->b|e_Node.l|
|000010f0| 6e 5f 53 75 63 63 20 29 | 0a 20 20 20 20 20 20 20 |n_Succ )|. |
|00001100| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | {. | i|
|00001110| 66 28 20 21 53 74 72 69 | 63 6d 70 28 20 54 6d 70 |f( !Stri|cmp( Tmp|
|00001120| 2d 3e 62 65 5f 4e 61 6d | 65 2c 20 50 72 65 66 73 |->be_Nam|e, Prefs|
|00001130| 2d 3e 62 70 5f 42 6c 61 | 6e 6b 65 72 20 29 29 0a |->bp_Bla|nker )).|
|00001140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001150| 53 65 6c 65 63 74 65 64 | 20 3d 20 69 3b 0a 20 20 |Selected| = i;. |
|00001160| 20 20 20 20 20 20 20 20 | 20 20 42 47 55 49 5f 44 | | BGUI_D|
|00001170| 6f 47 61 64 67 65 74 4d | 65 74 68 6f 64 28 20 42 |oGadgetM|ethod( B|
|00001180| 6c 61 6e 6b 65 72 73 4c | 76 77 2c 20 42 6c 61 6e |lankersL|vw, Blan|
|00001190| 6b 65 72 57 6e 64 2c 20 | 30 4c 2c 0a 20 20 20 20 |kerWnd, |0L,. |
|000011a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 4c 56 4d 5f | | LVM_|
|000011c0| 41 44 44 53 49 4e 47 4c | 45 2c 20 30 4c 2c 20 54 |ADDSINGL|E, 0L, T|
|000011d0| 6d 70 2c 20 30 4c 2c 20 | 30 4c 20 29 3b 0a 20 20 |mp, 0L, |0L );. |
|000011e0| 20 20 20 20 20 20 7d 0a | 0a 20 20 20 20 20 20 20 | }.|. |
|000011f0| 20 44 6f 4d 65 74 68 6f | 64 28 20 42 6c 61 6e 6b | DoMetho|d( Blank|
|00001200| 65 72 73 4c 76 77 2c 20 | 42 41 53 45 5f 41 44 44 |ersLvw, |BASE_ADD|
|00001210| 43 4f 4e 44 49 54 49 4f | 4e 41 4c 2c 20 50 72 65 |CONDITIO|NAL, Pre|
|00001220| 66 73 42 74 6e 2c 0a 20 | 20 20 20 20 20 20 20 20 |fsBtn,. | |
|00001230| 20 20 20 20 20 20 20 20 | 4c 49 53 54 56 5f 45 6e | |LISTV_En|
|00001240| 74 72 79 4e 75 6d 62 65 | 72 2c 20 4e 75 6d 42 6c |tryNumbe|r, NumBl|
|00001250| 61 6e 6b 45 6e 74 72 69 | 65 73 2c 20 47 41 5f 44 |ankEntri|es, GA_D|
|00001260| 69 73 61 62 6c 65 64 2c | 20 54 52 55 45 2c 0a 20 |isabled,| TRUE,. |
|00001270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001280| 47 41 5f 44 69 73 61 62 | 6c 65 64 2c 20 46 41 4c |GA_Disab|led, FAL|
|00001290| 53 45 20 29 3b 0a 20 20 | 20 20 20 20 20 20 44 6f |SE );. | Do|
|000012a0| 4d 65 74 68 6f 64 28 20 | 42 6c 61 6e 6b 65 72 73 |Method( |Blankers|
|000012b0| 4c 76 77 2c 20 42 41 53 | 45 5f 41 44 44 43 4f 4e |Lvw, BAS|E_ADDCON|
|000012c0| 44 49 54 49 4f 4e 41 4c | 2c 20 54 6f 67 67 6c 65 |DITIONAL|, Toggle|
|000012d0| 42 74 6e 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |Btn,. | |
|000012e0| 20 20 20 20 20 20 4c 49 | 53 54 56 5f 45 6e 74 72 | LI|STV_Entr|
|000012f0| 79 4e 75 6d 62 65 72 2c | 20 4e 75 6d 42 6c 61 6e |yNumber,| NumBlan|
|00001300| 6b 45 6e 74 72 69 65 73 | 2c 20 47 41 5f 44 69 73 |kEntries|, GA_Dis|
|00001310| 61 62 6c 65 64 2c 20 54 | 52 55 45 2c 0a 20 20 20 |abled, T|RUE,. |
|00001320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 47 41 | | GA|
|00001330| 5f 44 69 73 61 62 6c 65 | 64 2c 20 46 41 4c 53 45 |_Disable|d, FALSE|
|00001340| 20 29 3b 0a 0a 20 20 20 | 20 20 20 20 20 53 65 74 | );.. | Set|
|00001350| 41 74 74 72 73 28 20 42 | 6c 61 6e 6b 65 72 73 4c |Attrs( B|lankersL|
|00001360| 76 77 2c 20 4c 49 53 54 | 56 5f 53 65 6c 65 63 74 |vw, LIST|V_Select|
|00001370| 2c 20 53 65 6c 65 63 74 | 65 64 2c 20 54 41 47 5f |, Select|ed, TAG_|
|00001380| 44 4f 4e 45 20 29 3b 0a | 0a 20 20 20 20 20 20 20 |DONE );.|. |
|00001390| 20 69 66 28 20 42 6c 61 | 6e 6b 65 72 57 6e 64 20 | if( Bla|nkerWnd |
|000013a0| 3d 20 57 69 6e 64 6f 77 | 4f 70 65 6e 28 20 42 6c |= Window|Open( Bl|
|000013b0| 61 6e 6b 57 6e 64 20 29 | 29 0a 20 20 20 20 20 20 |ankWnd )|). |
|000013c0| 20 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|000013d0| 47 65 74 41 74 74 72 28 | 20 57 49 4e 44 4f 57 5f |GetAttr(| WINDOW_|
|000013e0| 53 69 67 4d 61 73 6b 2c | 20 42 6c 61 6e 6b 57 6e |SigMask,| BlankWn|
|000013f0| 64 2c 20 26 42 47 55 49 | 5f 53 69 67 73 20 29 3b |d, &BGUI|_Sigs );|
|00001400| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 41 63 74 |. | Act|
|00001410| 69 76 61 74 65 57 69 6e | 64 6f 77 28 20 42 6c 61 |ivateWin|dow( Bla|
|00001420| 6e 6b 65 72 57 6e 64 20 | 29 3b 0a 20 20 20 20 20 |nkerWnd |);. |
|00001430| 20 20 20 20 20 20 20 53 | 65 74 41 74 74 72 73 28 | S|etAttrs(|
|00001440| 20 42 6c 61 6e 6b 65 72 | 73 4c 76 77 2c 20 4c 49 | Blanker|sLvw, LI|
|00001450| 53 54 56 5f 53 65 6c 65 | 63 74 2c 20 53 65 6c 65 |STV_Sele|ct, Sele|
|00001460| 63 74 65 64 2c 20 54 41 | 47 5f 44 4f 4e 45 20 29 |cted, TA|G_DONE )|
|00001470| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 44 6f |;. | Do|
|00001480| 4d 65 74 68 6f 64 28 20 | 42 6c 61 6e 6b 65 72 73 |Method( |Blankers|
|00001490| 4c 76 77 2c 20 4c 56 4d | 5f 52 45 46 52 45 53 48 |Lvw, LVM|_REFRESH|
|000014a0| 2c 20 30 4c 20 29 3b 0a | 20 20 20 20 20 20 20 20 |, 0L );.| |
|000014b0| 20 20 20 20 57 69 6e 64 | 6f 77 54 6f 46 72 6f 6e | Wind|owToFron|
|000014c0| 74 28 20 42 6c 61 6e 6b | 65 72 57 6e 64 20 29 3b |t( Blank|erWnd );|
|000014d0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 53 63 72 |. | Scr|
|000014e0| 65 65 6e 54 6f 46 72 6f | 6e 74 28 20 42 6c 61 6e |eenToFro|nt( Blan|
|000014f0| 6b 65 72 57 6e 64 2d 3e | 57 53 63 72 65 65 6e 20 |kerWnd->|WScreen |
|00001500| 29 3b 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00001510| 72 65 74 75 72 6e 20 4f | 4b 3b 0a 20 20 20 20 20 |return O|K;. |
|00001520| 20 20 20 7d 0a 20 20 20 | 20 7d 0a 0a 20 20 20 20 | }. | }.. |
|00001530| 72 65 74 75 72 6e 20 51 | 55 49 54 3b 0a 7d 0a 0a |return Q|UIT;.}..|
|00001540| 56 4f 49 44 20 43 6c 6f | 73 65 49 6e 74 65 72 66 |VOID Clo|seInterf|
|00001550| 61 63 65 28 20 56 4f 49 | 44 20 29 0a 7b 0a 20 20 |ace( VOI|D ).{. |
|00001560| 20 20 47 65 74 41 74 74 | 72 28 20 57 49 4e 44 4f | GetAtt|r( WINDO|
|00001570| 57 5f 42 6f 75 6e 64 73 | 2c 20 42 6c 61 6e 6b 57 |W_Bounds|, BlankW|
|00001580| 6e 64 2c 20 28 20 55 4c | 4f 4e 47 20 2a 20 29 26 |nd, ( UL|ONG * )&|
|00001590| 57 69 6e 42 6f 78 20 29 | 3b 0a 20 20 20 20 57 69 |WinBox )|;. Wi|
|000015a0| 6e 42 6f 78 54 6f 45 6e | 76 28 20 26 57 69 6e 42 |nBoxToEn|v( &WinB|
|000015b0| 6f 78 20 29 3b 0a 20 20 | 20 20 57 69 6e 64 6f 77 |ox );. | Window|
|000015c0| 43 6c 6f 73 65 28 20 42 | 6c 61 6e 6b 57 6e 64 20 |Close( B|lankWnd |
|000015d0| 29 3b 0a 20 20 20 20 42 | 6c 61 6e 6b 65 72 57 6e |);. B|lankerWn|
|000015e0| 64 20 3d 20 30 4c 3b 0a | 20 20 20 20 42 47 55 49 |d = 0L;.| BGUI|
|000015f0| 5f 53 69 67 73 20 3d 20 | 30 4c 3b 0a 20 20 20 20 |_Sigs = |0L;. |
|00001600| 44 69 73 70 6f 73 65 4f | 62 6a 65 63 74 28 20 42 |DisposeO|bject( B|
|00001610| 6c 61 6e 6b 57 6e 64 20 | 29 3b 0a 20 20 20 20 42 |lankWnd |);. B|
|00001620| 6c 61 6e 6b 57 6e 64 20 | 3d 20 30 4c 3b 0a 20 20 |lankWnd |= 0L;. |
|00001630| 20 20 43 6c 6f 73 65 4c | 69 62 72 61 72 79 28 20 | CloseL|ibrary( |
|00001640| 42 47 55 49 42 61 73 65 | 20 29 3b 0a 20 20 20 20 |BGUIBase| );. |
|00001650| 42 47 55 49 42 61 73 65 | 20 3d 20 30 4c 3b 0a 7d |BGUIBase| = 0L;.}|
|00001660| 0a 0a 4c 4f 4e 47 20 48 | 61 6e 64 6c 65 49 6e 74 |..LONG H|andleInt|
|00001670| 65 72 66 61 63 65 28 20 | 56 4f 49 44 20 29 0a 7b |erface( |VOID ).{|
|00001680| 0a 20 20 20 20 4c 4f 4e | 47 20 52 65 74 56 61 6c |. LON|G RetVal|
|00001690| 20 3d 20 4f 4b 2c 20 72 | 63 3b 0a 0a 20 20 20 20 | = OK, r|c;.. |
|000016a0| 69 66 28 20 21 42 47 55 | 49 42 61 73 65 20 29 0a |if( !BGU|IBase ).|
|000016b0| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 4f | |return O|
|000016c0| 4b 3b 0a 0a 20 20 20 20 | 77 68 69 6c 65 20 28 28 |K;.. |while ((|
|000016d0| 20 72 63 20 3d 20 48 61 | 6e 64 6c 65 45 76 65 6e | rc = Ha|ndleEven|
|000016e0| 74 28 20 42 6c 61 6e 6b | 57 6e 64 20 29 29 20 21 |t( Blank|Wnd )) !|
|000016f0| 3d 20 57 4d 48 49 5f 4e | 4f 4d 4f 52 45 20 29 0a |= WMHI_N|OMORE ).|
|00001700| 20 20 20 20 7b 0a 20 20 | 20 20 20 20 20 20 73 77 | {. | sw|
|00001710| 69 74 63 68 20 28 20 72 | 63 20 29 0a 20 20 20 20 |itch ( r|c ). |
|00001720| 20 20 20 20 7b 0a 20 20 | 20 20 20 20 20 20 63 61 | {. | ca|
|00001730| 73 65 20 49 44 5f 51 55 | 49 54 3a 0a 20 20 20 20 |se ID_QU|IT:. |
|00001740| 20 20 20 20 20 20 20 20 | 52 65 74 56 61 6c 20 3d | |RetVal =|
|00001750| 20 51 55 49 54 3b 0a 20 | 20 20 20 20 20 20 20 20 | QUIT;. | |
|00001760| 20 20 20 62 72 65 61 6b | 3b 0a 20 20 20 20 20 20 | break|;. |
|00001770| 20 20 63 61 73 65 20 57 | 4d 48 49 5f 43 4c 4f 53 | case W|MHI_CLOS|
|00001780| 45 57 49 4e 44 4f 57 3a | 0a 20 20 20 20 20 20 20 |EWINDOW:|. |
|00001790| 20 63 61 73 65 20 49 44 | 5f 48 49 44 45 3a 0a 20 | case ID|_HIDE:. |
|000017a0| 20 20 20 20 20 20 20 20 | 20 20 20 52 65 74 56 61 | | RetVa|
|000017b0| 6c 20 3d 20 43 4c 4f 53 | 45 57 49 4e 3b 0a 20 20 |l = CLOS|EWIN;. |
|000017c0| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 3b | | break;|
|000017d0| 0a 20 20 20 20 20 20 20 | 20 63 61 73 65 20 49 44 |. | case ID|
|000017e0| 5f 53 45 54 3a 0a 20 20 | 20 20 20 20 20 20 20 20 |_SET:. | |
|000017f0| 20 20 69 66 28 20 57 42 | 65 6e 63 68 4d 73 67 20 | if( WB|enchMsg |
|00001800| 26 26 28 20 53 79 73 42 | 61 73 65 2d 3e 6c 69 62 |&&( SysB|ase->lib|
|00001810| 5f 56 65 72 73 69 6f 6e | 20 3e 20 33 38 20 29 29 |_Version| > 38 ))|
|00001820| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 0a 20 |. | {. |
|00001830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 | | s|
|00001840| 74 72 75 63 74 20 4c 69 | 62 72 61 72 79 20 2a 57 |truct Li|brary *W|
|00001850| 6f 72 6b 62 65 6e 63 68 | 42 61 73 65 3b 0a 20 20 |orkbench|Base;. |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 20 | | . |
|00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00001880| 66 28 20 57 6f 72 6b 62 | 65 6e 63 68 42 61 73 65 |f( Workb|enchBase|
|00001890| 20 3d 20 4f 70 65 6e 4c | 69 62 72 61 72 79 28 20 | = OpenL|ibrary( |
|000018a0| 22 77 6f 72 6b 62 65 6e | 63 68 2e 6c 69 62 72 61 |"workben|ch.libra|
|000018b0| 72 79 22 2c 20 33 39 4c | 20 29 29 0a 20 20 20 20 |ry", 39L| )). |
|000018c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 0a 20 20 | | {. |
|000018d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018e0| 20 20 73 74 72 75 63 74 | 20 53 63 72 65 65 6e 20 | struct| Screen |
|000018f0| 2a 50 75 62 53 63 72 3b | 0a 20 20 20 20 20 20 20 |*PubScr;|. |
|00001900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 20 20 | | . |
|00001910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001920| 20 20 69 66 28 20 50 75 | 62 53 63 72 20 3d 20 4c | if( Pu|bScr = L|
|00001930| 6f 63 6b 50 75 62 53 63 | 72 65 65 6e 28 20 30 4c |ockPubSc|reen( 0L|
|00001940| 20 29 29 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | )). | |
|00001950| 20 20 20 20 20 20 20 20 | 7b 0a 20 20 20 20 20 20 | |{. |
|00001960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001970| 20 20 57 42 49 6e 66 6f | 28 20 57 42 65 6e 63 68 | WBInfo|( WBench|
|00001980| 4d 73 67 2d 3e 73 6d 5f | 41 72 67 4c 69 73 74 2d |Msg->sm_|ArgList-|
|00001990| 3e 77 61 5f 4c 6f 63 6b | 2c 0a 20 20 20 20 20 20 |>wa_Lock|,. |
|000019a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019b0| 20 20 20 20 20 20 20 20 | 20 57 42 65 6e 63 68 4d | | WBenchM|
|000019c0| 73 67 2d 3e 73 6d 5f 41 | 72 67 4c 69 73 74 2d 3e |sg->sm_A|rgList->|
|000019d0| 77 61 5f 4e 61 6d 65 2c | 20 50 75 62 53 63 72 20 |wa_Name,| PubScr |
|000019e0| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|000019f0| 20 20 20 20 20 20 20 20 | 20 20 20 55 6e 6c 6f 63 | | Unloc|
|00001a00| 6b 50 75 62 53 63 72 65 | 65 6e 28 20 30 4c 2c 20 |kPubScre|en( 0L, |
|00001a10| 50 75 62 53 63 72 20 29 | 3b 0a 20 20 20 20 20 20 |PubScr )|;. |
|00001a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a30| 20 20 52 65 74 56 61 6c | 20 3d 20 52 45 53 54 41 | RetVal| = RESTA|
|00001a40| 52 54 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |RT;. | |
|00001a50| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. |
|00001a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 6c | | Cl|
|00001a70| 6f 73 65 4c 69 62 72 61 | 72 79 28 20 57 6f 72 6b |oseLibra|ry( Work|
|00001a80| 62 65 6e 63 68 42 61 73 | 65 20 29 3b 0a 20 20 20 |benchBas|e );. |
|00001a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0a 20 | | }. |
|00001aa0| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 09 09 09 | | }....|
|00001ab0| 65 6c 73 65 0a 09 09 09 | 7b 0a 09 09 09 09 42 47 |else....|{.....BG|
|00001ac0| 55 49 5f 52 65 71 75 65 | 73 74 28 20 42 6c 61 6e |UI_Reque|st( Blan|
|00001ad0| 6b 65 72 57 6e 64 2c 20 | 26 49 6e 66 6f 52 65 71 |kerWnd, |&InfoReq|
|00001ae0| 2c 20 50 72 65 66 73 2d | 3e 62 70 5f 42 6c 61 6e |, Prefs-|>bp_Blan|
|00001af0| 6b 4b 65 79 2c 0a 09 09 | 09 09 09 09 09 20 50 72 |kKey,...|..... Pr|
|00001b00| 65 66 73 2d 3e 62 70 5f | 50 6f 70 4b 65 79 2c 20 |efs->bp_|PopKey, |
|00001b10| 50 72 65 66 73 2d 3e 62 | 70 5f 54 69 6d 65 6f 75 |Prefs->b|p_Timeou|
|00001b20| 74 20 2f 20 31 30 2c 0a | 09 09 09 09 09 09 09 20 |t / 10,.|....... |
|00001b30| 50 72 65 66 73 2d 3e 62 | 70 5f 46 6c 61 67 73 20 |Prefs->b|p_Flags |
|00001b40| 26 20 42 46 5f 52 45 50 | 4c 41 43 45 20 3f 20 22 |& BF_REP|LACE ? "|
|00001b50| 59 45 53 22 20 3a 20 22 | 4e 4f 22 2c 0a 09 09 09 |YES" : "|NO",....|
|00001b60| 09 09 09 09 20 50 72 65 | 66 73 2d 3e 62 70 5f 52 |.... Pre|fs->bp_R|
|00001b70| 61 6e 64 54 69 6d 65 6f | 75 74 20 2f 20 31 30 2c |andTimeo|ut / 10,|
|00001b80| 0a 09 09 09 09 09 09 09 | 20 43 6f 72 6e 65 72 53 |........| CornerS|
|00001b90| 74 72 73 5b 50 72 65 66 | 73 2d 3e 62 70 5f 42 6c |trs[Pref|s->bp_Bl|
|00001ba0| 61 6e 6b 43 6f 72 6e 65 | 72 5d 2c 0a 09 09 09 09 |ankCorne|r],.....|
|00001bb0| 09 09 09 20 43 6f 72 6e | 65 72 53 74 72 73 5b 50 |... Corn|erStrs[P|
|00001bc0| 72 65 66 73 2d 3e 62 70 | 5f 44 6f 6e 74 43 6f 72 |refs->bp|_DontCor|
|00001bd0| 6e 65 72 5d 20 29 3b 0a | 09 09 09 7d 0a 20 20 20 |ner] );.|...}. |
|00001be0| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.|
|00001bf0| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 49 44 5f | |case ID_|
|00001c00| 54 4f 47 47 4c 45 3a 0a | 20 20 20 20 20 20 20 20 |TOGGLE:.| |
|00001c10| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 42 6c |{. | Bl|
|00001c20| 61 6e 6b 65 72 45 6e 74 | 72 79 20 2a 45 6e 74 72 |ankerEnt|ry *Entr|
|00001c30| 79 3b 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |y;.. | |
|00001c40| 45 6e 74 72 79 20 3d 20 | 28 20 42 6c 61 6e 6b 65 |Entry = |( Blanke|
|00001c50| 72 45 6e 74 72 79 20 2a | 20 29 44 6f 4d 65 74 68 |rEntry *| )DoMeth|
|00001c60| 6f 64 28 20 42 6c 61 6e | 6b 65 72 73 4c 76 77 2c |od( Blan|kersLvw,|
|00001c70| 20 4c 56 4d 5f 46 49 52 | 53 54 45 4e 54 52 59 2c | LVM_FIR|STENTRY,|
|00001c80| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cb0| 30 4c 2c 20 4c 56 47 45 | 46 5f 53 45 4c 45 43 54 |0L, LVGE|F_SELECT|
|00001cc0| 45 44 20 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |ED );. | |
|00001cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 54 6f | | To|
|00001ce0| 67 67 6c 65 4d 6f 64 75 | 6c 65 44 69 73 61 62 6c |ggleModu|leDisabl|
|00001cf0| 65 64 28 20 50 72 65 66 | 73 20 29 3b 0a 20 20 20 |ed( Pref|s );. |
|00001d00| 20 20 20 20 20 20 20 20 | 20 45 6e 74 72 79 2d 3e | | Entry->|
|00001d10| 62 65 5f 44 69 73 61 62 | 6c 65 64 20 3d 20 21 45 |be_Disab|led = !E|
|00001d20| 6e 74 72 79 2d 3e 62 65 | 5f 44 69 73 61 62 6c 65 |ntry->be|_Disable|
|00001d30| 64 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 44 |d;. | D|
|00001d40| 6f 4d 65 74 68 6f 64 28 | 20 42 6c 61 6e 6b 65 72 |oMethod(| Blanker|
|00001d50| 73 4c 76 77 2c 20 4c 56 | 4d 5f 52 45 46 52 45 53 |sLvw, LV|M_REFRES|
|00001d60| 48 2c 20 30 4c 20 29 3b | 0a 20 20 20 20 20 20 20 |H, 0L );|. |
|00001d70| 20 20 20 20 20 62 72 65 | 61 6b 3b 0a 20 20 20 20 | bre|ak;. |
|00001d80| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 63 61 | }. | ca|
|00001d90| 73 65 20 49 44 5f 50 52 | 45 46 53 3a 0a 20 20 20 |se ID_PR|EFS:. |
|00001da0| 20 20 20 20 20 20 20 20 | 20 69 66 28 20 53 74 72 | | if( Str|
|00001db0| 69 63 6d 70 28 20 50 72 | 65 66 73 2d 3e 62 70 5f |icmp( Pr|efs->bp_|
|00001dc0| 42 6c 61 6e 6b 65 72 2c | 20 22 52 61 6e 64 6f 6d |Blanker,| "Random|
|00001dd0| 22 20 29 29 0a 20 20 20 | 20 20 20 20 20 20 20 20 |" )). | |
|00001de0| 20 20 20 20 20 45 78 65 | 63 53 75 62 50 72 6f 63 | Exe|cSubProc|
|00001df0| 28 20 22 50 72 65 66 49 | 6e 74 65 72 70 22 2c 20 |( "PrefI|nterp", |
|00001e00| 22 22 20 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |"" );. | |
|00001e10| 20 20 62 72 65 61 6b 3b | 0a 20 20 20 20 20 20 20 | break;|. |
|00001e20| 20 63 61 73 65 20 49 44 | 5f 49 4e 46 4f 3a 0a 20 | case ID|_INFO:. |
|00001e30| 20 20 20 20 20 20 20 20 | 20 20 20 45 78 65 63 53 | | ExecS|
|00001e40| 75 62 50 72 6f 63 28 20 | 22 53 68 6f 77 49 6e 66 |ubProc( |"ShowInf|
|00001e50| 6f 22 2c 20 22 2e 74 78 | 74 22 20 29 3b 0a 20 20 |o", ".tx|t" );. |
|00001e60| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 3b | | break;|
|00001e70| 0a 20 20 20 20 20 20 20 | 20 63 61 73 65 20 49 44 |. | case ID|
|00001e80| 5f 42 4c 41 4e 4b 45 52 | 53 3a 0a 20 20 20 20 20 |_BLANKER|S:. |
|00001e90| 20 20 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00001ea0| 20 42 6c 61 6e 6b 65 72 | 45 6e 74 72 79 20 2a 45 | Blanker|Entry *E|
|00001eb0| 6e 74 72 79 3b 0a 20 20 | 20 20 0a 20 20 20 20 20 |ntry;. | . |
|00001ec0| 20 20 20 20 20 20 20 4d | 65 73 73 61 67 65 4d 6f | M|essageMo|
|00001ed0| 64 75 6c 65 28 20 22 47 | 61 72 73 68 6e 65 43 6c |dule( "G|arshneCl|
|00001ee0| 69 65 6e 74 22 2c 20 42 | 4d 5f 44 4f 51 55 49 54 |ient", B|M_DOQUIT|
|00001ef0| 20 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | );. | |
|00001f00| 4d 65 73 73 61 67 65 4d | 6f 64 75 6c 65 28 20 22 |MessageM|odule( "|
|00001f10| 47 61 72 73 68 6e 65 50 | 72 65 66 73 22 2c 20 42 |GarshneP|refs", B|
|00001f20| 4d 5f 44 4f 51 55 49 54 | 20 29 3b 0a 20 20 20 20 |M_DOQUIT| );. |
|00001f30| 20 20 20 20 20 20 20 20 | 45 6e 74 72 79 20 3d 20 | |Entry = |
|00001f40| 28 20 42 6c 61 6e 6b 65 | 72 45 6e 74 72 79 20 2a |( Blanke|rEntry *|
|00001f50| 20 29 44 6f 4d 65 74 68 | 6f 64 28 20 42 6c 61 6e | )DoMeth|od( Blan|
|00001f60| 6b 65 72 73 4c 76 77 2c | 20 4c 56 4d 5f 46 49 52 |kersLvw,| LVM_FIR|
|00001f70| 53 54 45 4e 54 52 59 2c | 0a 20 20 20 20 20 20 20 |STENTRY,|. |
|00001f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001fa0| 20 20 20 20 20 20 20 20 | 30 4c 2c 20 4c 56 47 45 | |0L, LVGE|
|00001fb0| 46 5f 53 45 4c 45 43 54 | 45 44 20 29 3b 0a 20 20 |F_SELECT|ED );. |
|00001fc0| 20 20 20 20 20 20 20 20 | 20 20 73 74 72 63 70 79 | | strcpy|
|00001fd0| 28 20 50 72 65 66 73 2d | 3e 62 70 5f 42 6c 61 6e |( Prefs-|>bp_Blan|
|00001fe0| 6b 65 72 2c 20 45 6e 74 | 72 79 2d 3e 62 65 5f 4e |ker, Ent|ry->be_N|
|00001ff0| 61 6d 65 20 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |ame );. | |
|00002000| 20 20 20 69 66 28 20 53 | 74 72 69 63 6d 70 28 20 | if( S|tricmp( |
|00002010| 50 72 65 66 73 2d 3e 62 | 70 5f 42 6c 61 6e 6b 65 |Prefs->b|p_Blanke|
|00002020| 72 2c 20 22 52 61 6e 64 | 6f 6d 22 20 29 29 0a 20 |r, "Rand|om" )). |
|00002030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4c | | L|
|00002040| 6f 61 64 4d 6f 64 75 6c | 65 28 20 50 72 65 66 73 |oadModul|e( Prefs|
|00002050| 2d 3e 62 70 5f 44 69 72 | 2c 20 50 72 65 66 73 2d |->bp_Dir|, Prefs-|
|00002060| 3e 62 70 5f 42 6c 61 6e | 6b 65 72 20 29 3b 0a 20 |>bp_Blan|ker );. |
|00002070| 20 20 20 20 20 20 20 20 | 20 20 20 42 6c 61 6e 6b | | Blank|
|00002080| 65 72 54 6f 45 6e 76 28 | 20 50 72 65 66 73 20 29 |erToEnv(| Prefs )|
|00002090| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 |;. | br|
|000020a0| 65 61 6b 3b 0a 20 20 20 | 20 20 20 20 20 7d 0a 20 |eak;. | }. |
|000020b0| 20 20 20 20 20 20 20 64 | 65 66 61 75 6c 74 3a 0a | d|efault:.|
|000020c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 72 65 61 | | brea|
|000020d0| 6b 3b 0a 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 |k;. | }. |
|000020e0| 20 7d 0a 0a 20 20 20 20 | 72 65 74 75 72 6e 20 52 | }.. |return R|
|000020f0| 65 74 56 61 6c 3b 0a 7d | 0a 2e 51 2d 6c 68 30 2d |etVal;.}|..Q-lh0-|
|00002100| 42 02 00 00 42 02 00 00 | 95 06 59 1d 00 00 18 47 |B...B...|..Y....G|
|00002110| 53 6f 75 72 63 65 5c 42 | 47 55 49 5c 69 6e 74 65 |Source\B|GUI\inte|
|00002120| 72 66 61 63 65 2e 68 15 | 4f 23 69 66 6e 64 65 66 |rface.h.|O#ifndef|
|00002130| 20 47 41 52 53 48 4e 45 | 5f 42 47 55 49 5f 48 0a | GARSHNE|_BGUI_H.|
|00002140| 23 64 65 66 69 6e 65 20 | 47 41 52 53 48 4e 45 5f |#define |GARSHNE_|
|00002150| 42 47 55 49 5f 48 0a 0a | 23 64 65 66 69 6e 65 20 |BGUI_H..|#define |
|00002160| 57 48 49 54 45 53 50 41 | 43 45 20 33 0a 0a 23 64 |WHITESPA|CE 3..#d|
|00002170| 65 66 69 6e 65 20 49 44 | 5f 51 55 49 54 20 20 20 |efine ID|_QUIT |
|00002180| 20 20 31 0a 23 64 65 66 | 69 6e 65 20 49 44 5f 48 | 1.#def|ine ID_H|
|00002190| 49 44 45 20 20 20 20 20 | 32 0a 23 64 65 66 69 6e |IDE |2.#defin|
|000021a0| 65 20 49 44 5f 54 4f 47 | 47 4c 45 20 20 20 33 0a |e ID_TOG|GLE 3.|
|000021b0| 23 64 65 66 69 6e 65 20 | 49 44 5f 49 4e 46 4f 20 |#define |ID_INFO |
|000021c0| 20 20 20 20 34 0a 23 64 | 65 66 69 6e 65 20 49 44 | 4.#d|efine ID|
|000021d0| 5f 50 52 45 46 53 20 20 | 20 20 35 0a 23 64 65 66 |_PREFS | 5.#def|
|000021e0| 69 6e 65 20 49 44 5f 42 | 4c 41 4e 4b 45 52 53 20 |ine ID_B|LANKERS |
|000021f0| 36 0a 23 64 65 66 69 6e | 65 20 49 44 5f 53 45 54 |6.#defin|e ID_SET|
|00002200| 20 20 20 20 20 20 37 0a | 0a 65 78 74 65 72 6e 20 | 7.|.extern |
|00002210| 4f 62 6a 65 63 74 20 2a | 42 6c 61 6e 6b 65 72 73 |Object *|Blankers|
|00002220| 4c 76 77 3b 0a 65 78 74 | 65 72 6e 20 4f 62 6a 65 |Lvw;.ext|ern Obje|
|00002230| 63 74 20 2a 50 72 65 66 | 73 42 74 6e 2c 20 2a 49 |ct *Pref|sBtn, *I|
|00002240| 6e 66 6f 42 74 6e 2c 20 | 2a 54 6f 67 67 6c 65 42 |nfoBtn, |*ToggleB|
|00002250| 74 6e 3b 0a 65 78 74 65 | 72 6e 20 4f 62 6a 65 63 |tn;.exte|rn Objec|
|00002260| 74 20 2a 48 69 64 65 42 | 74 6e 2c 20 2a 53 65 74 |t *HideB|tn, *Set|
|00002270| 74 69 6e 67 73 42 74 6e | 2c 20 2a 51 75 69 74 42 |tingsBtn|, *QuitB|
|00002280| 74 6e 3b 0a 65 78 74 65 | 72 6e 20 4f 62 6a 65 63 |tn;.exte|rn Objec|
|00002290| 74 20 2a 42 6c 61 6e 6b | 57 6e 64 3b 0a 65 78 74 |t *Blank|Wnd;.ext|
|000022a0| 65 72 6e 20 73 74 72 75 | 63 74 20 57 69 6e 64 6f |ern stru|ct Windo|
|000022b0| 77 20 2a 42 6c 61 6e 6b | 65 72 57 6e 64 3b 0a 65 |w *Blank|erWnd;.e|
|000022c0| 78 74 65 72 6e 20 55 4c | 4f 4e 47 20 42 47 55 49 |xtern UL|ONG BGUI|
|000022d0| 5f 53 69 67 73 3b 0a 0a | 56 4f 49 44 20 49 6e 69 |_Sigs;..|VOID Ini|
|000022e0| 74 42 47 55 49 28 20 56 | 4f 49 44 20 29 3b 0a 4c |tBGUI( V|OID );.L|
|000022f0| 4f 4e 47 20 6f 70 65 6e | 4d 61 69 6e 57 69 6e 64 |ONG open|MainWind|
|00002300| 6f 77 28 20 56 4f 49 44 | 20 29 3b 0a 4c 4f 4e 47 |ow( VOID| );.LONG|
|00002310| 20 48 61 6e 64 6c 65 42 | 6c 61 6e 6b 65 72 49 44 | HandleB|lankerID|
|00002320| 43 4d 50 28 20 56 4f 49 | 44 20 29 3b 0a 56 4f 49 |CMP( VOI|D );.VOI|
|00002330| 44 20 43 6c 6f 73 65 42 | 6c 61 6e 6b 65 72 57 69 |D CloseB|lankerWi|
|00002340| 6e 64 6f 77 28 20 56 4f | 49 44 20 29 3b 0a 0a 23 |ndow( VO|ID );..#|
|00002350| 65 6e 64 69 66 20 2f 2a | 20 47 41 52 53 48 4e 45 |endif /*| GARSHNE|
|00002360| 5f 42 47 55 49 5f 48 20 | 2a 2f 0a 2f b8 2d 6c 68 |_BGUI_H |*/./.-lh|
|00002370| 30 2d f7 4c 00 00 f7 4c | 00 00 da 68 9f 1d 00 00 |0-.L...L|...h....|
|00002380| 19 47 53 6f 75 72 63 65 | 5c 42 47 55 49 5c 50 72 |.GSource|\BGUI\Pr|
|00002390| 65 66 49 6e 74 65 72 70 | 2e 63 34 62 23 69 6e 63 |efInterp|.c4b#inc|
|000023a0| 6c 75 64 65 20 3c 65 78 | 65 63 2f 6d 65 6d 6f 72 |lude <ex|ec/memor|
|000023b0| 79 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 6c |y.h>.#in|clude <l|
|000023c0| 69 62 72 61 72 69 65 73 | 2f 62 67 75 69 5f 6d 61 |ibraries|/bgui_ma|
|000023d0| 63 72 6f 73 2e 68 3e 0a | 0a 23 69 6e 63 6c 75 64 |cros.h>.|.#includ|
|000023e0| 65 20 3c 63 6c 69 62 2f | 65 78 65 63 5f 70 72 6f |e <clib/|exec_pro|
|000023f0| 74 6f 73 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |tos.h>.#|include |
|00002400| 3c 63 6c 69 62 2f 64 6f | 73 5f 70 72 6f 74 6f 73 |<clib/do|s_protos|
|00002410| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 63 6c |.h>.#inc|lude <cl|
|00002420| 69 62 2f 69 6e 74 75 69 | 74 69 6f 6e 5f 70 72 6f |ib/intui|tion_pro|
|00002430| 74 6f 73 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |tos.h>.#|include |
|00002440| 3c 63 6c 69 62 2f 62 67 | 75 69 5f 70 72 6f 74 6f |<clib/bg|ui_proto|
|00002450| 73 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 63 |s.h>.#in|clude <c|
|00002460| 6c 69 62 2f 61 73 6c 5f | 70 72 6f 74 6f 73 2e 68 |lib/asl_|protos.h|
|00002470| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 22 2f 4c 69 62 |>.#inclu|de "/Lib|
|00002480| 72 61 72 69 65 73 2f 47 | 61 72 73 68 6e 65 6c 69 |raries/G|arshneli|
|00002490| 62 2f 47 61 72 73 68 6e | 65 6c 69 62 5f 70 72 6f |b/Garshn|elib_pro|
|000024a0| 74 6f 73 2e 68 22 0a 23 | 69 6e 63 6c 75 64 65 20 |tos.h".#|include |
|000024b0| 3c 63 6c 69 62 2f 61 6c | 69 62 5f 70 72 6f 74 6f |<clib/al|ib_proto|
|000024c0| 73 2e 68 3e 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |s.h>..#i|nclude <|
|000024d0| 70 72 61 67 6d 61 73 2f | 65 78 65 63 5f 70 72 61 |pragmas/|exec_pra|
|000024e0| 67 6d 61 73 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |gmas.h>.|#include|
|000024f0| 20 3c 70 72 61 67 6d 61 | 73 2f 64 6f 73 5f 70 72 | <pragma|s/dos_pr|
|00002500| 61 67 6d 61 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |agmas.h>|.#includ|
|00002510| 65 20 3c 70 72 61 67 6d | 61 73 2f 69 6e 74 75 69 |e <pragm|as/intui|
|00002520| 74 69 6f 6e 5f 70 72 61 | 67 6d 61 73 2e 68 3e 0a |tion_pra|gmas.h>.|
|00002530| 23 69 6e 63 6c 75 64 65 | 20 3c 70 72 61 67 6d 61 |#include| <pragma|
|00002540| 73 2f 62 67 75 69 5f 70 | 72 61 67 6d 61 73 2e 68 |s/bgui_p|ragmas.h|
|00002550| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 70 72 61 67 |>.#inclu|de <prag|
|00002560| 6d 61 73 2f 61 73 6c 5f | 70 72 61 67 6d 61 73 2e |mas/asl_|pragmas.|
|00002570| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 22 2f 4c 69 |h>.#incl|ude "/Li|
|00002580| 62 72 61 72 69 65 73 2f | 47 61 72 73 68 6e 65 6c |braries/|Garshnel|
|00002590| 69 62 2f 47 61 72 73 68 | 6e 65 6c 69 62 5f 70 72 |ib/Garsh|nelib_pr|
|000025a0| 61 67 6d 61 73 2e 68 22 | 0a 0a 23 69 6e 63 6c 75 |agmas.h"|..#inclu|
|000025b0| 64 65 20 3c 63 74 79 70 | 65 2e 68 3e 0a 23 69 6e |de <ctyp|e.h>.#in|
|000025c0| 63 6c 75 64 65 20 3c 73 | 74 72 69 6e 67 2e 68 3e |clude <s|tring.h>|
|000025d0| 0a 0a 23 69 6e 63 6c 75 | 64 65 20 22 50 72 65 66 |..#inclu|de "Pref|
|000025e0| 49 6e 74 65 72 70 2e 68 | 22 0a 23 69 6e 63 6c 75 |Interp.h|".#inclu|
|000025f0| 64 65 20 22 2f 70 72 6f | 74 6f 73 2f 70 61 72 73 |de "/pro|tos/pars|
|00002600| 65 2e 68 22 0a 23 69 6e | 63 6c 75 64 65 20 22 2f |e.h".#in|clude "/|
|00002610| 70 72 6f 74 6f 73 2f 76 | 61 72 2e 68 22 0a 23 69 |protos/v|ar.h".#i|
|00002620| 6e 63 6c 75 64 65 20 22 | 2f 64 65 66 73 2e 68 22 |nclude "|/defs.h"|
|00002630| 0a 0a 65 78 74 65 72 6e | 20 73 74 72 75 63 74 20 |..extern| struct |
|00002640| 4c 69 62 72 61 72 79 20 | 2a 44 4f 53 42 61 73 65 |Library |*DOSBase|
|00002650| 3b 0a 0a 55 4c 4f 4e 47 | 20 4d 61 70 5b 5d 20 3d |;..ULONG| Map[] =|
|00002660| 20 7b 20 53 4c 49 44 45 | 52 5f 4c 65 76 65 6c 2c | { SLIDE|R_Level,|
|00002670| 20 49 4e 44 49 43 5f 4c | 65 76 65 6c 2c 20 54 41 | INDIC_L|evel, TA|
|00002680| 47 5f 45 4e 44 20 7d 3b | 0a 73 74 72 75 63 74 20 |G_END };|.struct |
|00002690| 49 42 6f 78 20 57 69 6e | 42 6f 78 2c 20 4f 6c 64 |IBox Win|Box, Old|
|000026a0| 42 6f 78 3b 0a 73 74 72 | 75 63 74 20 4c 69 62 72 |Box;.str|uct Libr|
|000026b0| 61 72 79 20 2a 49 6e 74 | 75 69 74 69 6f 6e 42 61 |ary *Int|uitionBa|
|000026c0| 73 65 2c 20 2a 42 47 55 | 49 42 61 73 65 2c 20 2a |se, *BGU|IBase, *|
|000026d0| 47 61 72 73 68 6e 65 6c | 69 62 42 61 73 65 3b 0a |Garshnel|ibBase;.|
|000026e0| 4f 62 6a 65 63 74 20 2a | 4d 6f 64 75 6c 65 4f 62 |Object *|ModuleOb|
|000026f0| 6a 2c 20 2a 2a 4f 62 6a | 65 63 74 73 3b 0a 73 74 |j, **Obj|ects;.st|
|00002700| 72 75 63 74 20 57 69 6e | 64 6f 77 20 2a 4d 6f 64 |ruct Win|dow *Mod|
|00002710| 75 6c 65 57 6e 64 3b 0a | 73 74 72 75 63 74 20 4d |uleWnd;.|struct M|
|00002720| 73 67 50 6f 72 74 20 2a | 52 65 70 6c 79 50 6f 72 |sgPort *|ReplyPor|
|00002730| 74 20 3d 20 30 4c 3b 0a | 55 4c 4f 4e 47 20 4d 6f |t = 0L;.|ULONG Mo|
|00002740| 64 75 6c 65 53 69 67 73 | 20 3d 20 30 4c 3b 0a 4c |duleSigs| = 0L;.L|
|00002750| 4f 4e 47 20 4e 75 6d 47 | 61 64 67 65 74 73 3b 0a |ONG NumG|adgets;.|
|00002760| 56 4f 49 44 20 2a 4d 65 | 6d 6f 72 79 20 3d 20 30 |VOID *Me|mory = 0|
|00002770| 4c 3b 0a 50 72 65 66 4f | 62 6a 65 63 74 20 2a 50 |L;.PrefO|bject *P|
|00002780| 72 65 66 73 3b 0a 0a 53 | 54 52 50 54 52 20 4d 61 |refs;..S|TRPTR Ma|
|00002790| 6b 65 42 6f 78 56 61 72 | 4e 61 6d 65 28 20 53 54 |keBoxVar|Name( ST|
|000027a0| 52 50 54 52 20 50 72 6f | 67 4e 61 6d 65 2c 20 53 |RPTR Pro|gName, S|
|000027b0| 54 52 50 54 52 20 49 66 | 63 4e 61 6d 65 20 29 0a |TRPTR If|cName ).|
|000027c0| 7b 0a 09 73 74 61 74 69 | 63 20 42 59 54 45 20 46 |{..stati|c BYTE F|
|000027d0| 69 6c 65 4e 61 6d 65 5b | 31 30 38 5d 2c 20 2a 50 |ileName[|108], *P|
|000027e0| 74 72 3b 0a 0a 09 73 74 | 72 63 70 79 28 20 46 69 |tr;...st|rcpy( Fi|
|000027f0| 6c 65 4e 61 6d 65 2c 20 | 50 72 6f 67 4e 61 6d 65 |leName, |ProgName|
|00002800| 20 29 3b 0a 09 73 74 72 | 63 61 74 28 20 46 69 6c | );..str|cat( Fil|
|00002810| 65 4e 61 6d 65 2c 20 22 | 2f 22 20 29 3b 0a 09 73 |eName, "|/" );..s|
|00002820| 74 72 63 61 74 28 20 46 | 69 6c 65 4e 61 6d 65 2c |trcat( F|ileName,|
|00002830| 20 49 66 63 4e 61 6d 65 | 20 29 3b 0a 09 69 66 28 | IfcName| );..if(|
|00002840| 20 50 74 72 20 3d 20 73 | 74 72 73 74 72 28 20 46 | Ptr = s|trstr( F|
|00002850| 69 6c 65 4e 61 6d 65 2c | 20 22 2e 69 66 63 22 20 |ileName,| ".ifc" |
|00002860| 29 29 0a 09 09 2a 50 74 | 72 20 3d 20 27 5c 30 27 |))...*Pt|r = '\0'|
|00002870| 3b 0a 09 73 74 72 63 61 | 74 28 20 46 69 6c 65 4e |;..strca|t( FileN|
|00002880| 61 6d 65 2c 20 22 2e 77 | 69 6e 22 20 29 3b 0a 09 |ame, ".w|in" );..|
|00002890| 0a 09 72 65 74 75 72 6e | 20 46 69 6c 65 4e 61 6d |..return| FileNam|
|000028a0| 65 3b 0a 7d 0a 0a 56 4f | 49 44 20 46 6f 6e 74 52 |e;.}..VO|ID FontR|
|000028b0| 65 71 75 65 73 74 28 20 | 73 74 72 75 63 74 20 54 |equest( |struct T|
|000028c0| 65 78 74 41 74 74 72 20 | 2a 41 74 74 72 20 29 0a |extAttr |*Attr ).|
|000028d0| 7b 0a 20 20 20 20 73 74 | 72 75 63 74 20 4c 69 62 |{. st|ruct Lib|
|000028e0| 72 61 72 79 20 2a 41 73 | 6c 42 61 73 65 20 3d 20 |rary *As|lBase = |
|000028f0| 4f 70 65 6e 4c 69 62 72 | 61 72 79 28 20 22 61 73 |OpenLibr|ary( "as|
|00002900| 6c 2e 6c 69 62 72 61 72 | 79 22 2c 20 33 37 4c 20 |l.librar|y", 37L |
|00002910| 29 3b 0a 20 20 20 20 73 | 74 72 75 63 74 20 46 6f |);. s|truct Fo|
|00002920| 6e 74 52 65 71 75 65 73 | 74 65 72 20 2a 66 52 65 |ntReques|ter *fRe|
|00002930| 71 3b 0a 0a 20 20 20 20 | 69 66 28 20 21 41 73 6c |q;.. |if( !Asl|
|00002940| 42 61 73 65 20 29 0a 20 | 20 20 20 20 20 20 20 72 |Base ). | r|
|00002950| 65 74 75 72 6e 3b 0a 20 | 20 20 20 0a 20 20 20 20 |eturn;. | . |
|00002960| 66 52 65 71 20 3d 20 41 | 6c 6c 6f 63 41 73 6c 52 |fReq = A|llocAslR|
|00002970| 65 71 75 65 73 74 54 61 | 67 73 28 20 41 53 4c 5f |equestTa|gs( ASL_|
|00002980| 46 6f 6e 74 52 65 71 75 | 65 73 74 2c 0a 20 20 20 |FontRequ|est,. |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 41 53 4c 5f | | ASL_|
|000029b0| 46 6f 6e 74 4e 61 6d 65 | 2c 20 41 74 74 72 2d 3e |FontName|, Attr->|
|000029c0| 74 61 5f 4e 61 6d 65 2c | 0a 20 20 20 20 20 20 20 |ta_Name,|. |
|000029d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029e0| 20 20 20 20 20 20 20 20 | 41 53 4c 5f 46 6f 6e 74 | |ASL_Font|
|000029f0| 48 65 69 67 68 74 2c 20 | 41 74 74 72 2d 3e 74 61 |Height, |Attr->ta|
|00002a00| 5f 59 53 69 7a 65 2c 0a | 20 20 20 20 20 20 20 20 |_YSize,.| |
|00002a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a20| 20 20 20 20 20 20 20 41 | 53 4c 5f 4d 61 78 48 65 | A|SL_MaxHe|
|00002a30| 69 67 68 74 2c 20 31 30 | 30 2c 20 54 41 47 5f 44 |ight, 10|0, TAG_D|
|00002a40| 4f 4e 45 20 29 3b 0a 20 | 20 20 20 69 66 28 20 66 |ONE );. | if( f|
|00002a50| 52 65 71 20 29 0a 20 20 | 20 20 7b 0a 20 20 20 20 |Req ). | {. |
|00002a60| 20 20 20 20 69 66 28 20 | 41 73 6c 52 65 71 75 65 | if( |AslReque|
|00002a70| 73 74 54 61 67 73 28 20 | 66 52 65 71 2c 0a 20 20 |stTags( |fReq,. |
|00002a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a90| 20 20 20 20 20 20 20 20 | 20 41 53 4c 46 4f 5f 57 | | ASLFO_W|
|00002aa0| 69 6e 64 6f 77 2c 20 4d | 6f 64 75 6c 65 57 6e 64 |indow, M|oduleWnd|
|00002ab0| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00002ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 53 4c | | ASL|
|00002ad0| 46 4f 5f 53 6c 65 65 70 | 57 69 6e 64 6f 77 2c 20 |FO_Sleep|Window, |
|00002ae0| 54 52 55 45 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |TRUE,. | |
|00002af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b00| 20 41 53 4c 46 4f 5f 54 | 69 74 6c 65 54 65 78 74 | ASLFO_T|itleText|
|00002b10| 2c 20 28 20 4c 4f 4e 47 | 20 29 22 50 6c 65 61 73 |, ( LONG| )"Pleas|
|00002b20| 65 20 63 68 6f 6f 73 65 | 20 61 20 66 6f 6e 74 2e |e choose| a font.|
|00002b30| 2e 2e 22 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..",. | |
|00002b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b50| 54 41 47 5f 44 4f 4e 45 | 20 29 29 0a 20 20 20 20 |TAG_DONE| )). |
|00002b60| 20 20 20 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00002b70| 20 20 43 6f 70 79 4d 65 | 6d 28 20 66 52 65 71 2d | CopyMe|m( fReq-|
|00002b80| 3e 66 6f 5f 41 74 74 72 | 2e 74 61 5f 4e 61 6d 65 |>fo_Attr|.ta_Name|
|00002b90| 2c 20 41 74 74 72 2d 3e | 74 61 5f 4e 61 6d 65 2c |, Attr->|ta_Name,|
|00002ba0| 20 33 31 20 29 3b 0a 20 | 20 20 20 20 20 20 20 20 | 31 );. | |
|00002bb0| 20 20 20 41 74 74 72 2d | 3e 74 61 5f 59 53 69 7a | Attr-|>ta_YSiz|
|00002bc0| 65 20 3d 20 66 52 65 71 | 2d 3e 66 6f 5f 41 74 74 |e = fReq|->fo_Att|
|00002bd0| 72 2e 74 61 5f 59 53 69 | 7a 65 3b 0a 20 20 20 20 |r.ta_YSi|ze;. |
|00002be0| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 46 72 | }. | Fr|
|00002bf0| 65 65 41 73 6c 52 65 71 | 75 65 73 74 28 20 66 52 |eeAslReq|uest( fR|
|00002c00| 65 71 20 29 3b 0a 20 20 | 20 20 7d 0a 0a 20 20 20 |eq );. | }.. |
|00002c10| 20 43 6c 6f 73 65 4c 69 | 62 72 61 72 79 28 20 41 | CloseLi|brary( A|
|00002c20| 73 6c 42 61 73 65 20 29 | 3b 0a 7d 20 20 20 0a 0a |slBase )|;.} ..|
|00002c30| 56 4f 49 44 20 53 65 6e | 64 4d 65 73 73 61 67 65 |VOID Sen|dMessage|
|00002c40| 54 6f 50 6f 72 74 28 20 | 4c 4f 4e 47 20 54 79 70 |ToPort( |LONG Typ|
|00002c50| 65 2c 20 53 54 52 50 54 | 52 20 50 6f 72 74 4e 61 |e, STRPT|R PortNa|
|00002c60| 6d 65 20 29 0a 7b 0a 20 | 20 20 20 73 74 72 75 63 |me ).{. | struc|
|00002c70| 74 20 4d 73 67 50 6f 72 | 74 20 2a 46 6f 72 65 69 |t MsgPor|t *Forei|
|00002c80| 67 6e 50 6f 72 74 3b 0a | 20 20 20 20 42 6c 61 6e |gnPort;.| Blan|
|00002c90| 6b 4d 73 67 20 2a 43 6c | 69 65 6e 74 4d 73 67 3b |kMsg *Cl|ientMsg;|
|00002ca0| 0a 20 20 20 20 0a 20 20 | 20 20 69 66 28 20 46 6f |. . | if( Fo|
|00002cb0| 72 65 69 67 6e 50 6f 72 | 74 20 3d 20 46 69 6e 64 |reignPor|t = Find|
|00002cc0| 50 6f 72 74 28 20 50 6f | 72 74 4e 61 6d 65 20 29 |Port( Po|rtName )|
|00002cd0| 29 0a 20 20 20 20 7b 0a | 20 20 20 20 20 20 20 20 |). {.| |
|00002ce0| 69 66 28 20 43 6c 69 65 | 6e 74 4d 73 67 20 3d 20 |if( Clie|ntMsg = |
|00002cf0| 41 6c 6c 6f 63 50 6f 6f | 6c 65 64 28 20 4d 65 6d |AllocPoo|led( Mem|
|00002d00| 6f 72 79 2c 20 73 69 7a | 65 6f 66 28 20 42 6c 61 |ory, siz|eof( Bla|
|00002d10| 6e 6b 4d 73 67 20 29 29 | 29 0a 20 20 20 20 20 20 |nkMsg ))|). |
|00002d20| 20 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00002d30| 43 6c 69 65 6e 74 4d 73 | 67 2d 3e 62 6d 5f 4d 65 |ClientMs|g->bm_Me|
|00002d40| 73 73 2e 6d 6e 5f 52 65 | 70 6c 79 50 6f 72 74 20 |ss.mn_Re|plyPort |
|00002d50| 3d 20 52 65 70 6c 79 50 | 6f 72 74 3b 0a 20 20 20 |= ReplyP|ort;. |
|00002d60| 20 20 20 20 20 20 20 20 | 20 43 6c 69 65 6e 74 4d | | ClientM|
|00002d70| 73 67 2d 3e 62 6d 5f 4d | 65 73 73 2e 6d 6e 5f 4c |sg->bm_M|ess.mn_L|
|00002d80| 65 6e 67 74 68 20 3d 20 | 73 69 7a 65 6f 66 28 20 |ength = |sizeof( |
|00002d90| 42 6c 61 6e 6b 4d 73 67 | 20 29 3b 0a 20 20 20 20 |BlankMsg| );. |
|00002da0| 20 20 20 20 20 20 20 20 | 43 6c 69 65 6e 74 4d 73 | |ClientMs|
|00002db0| 67 2d 3e 62 6d 5f 54 79 | 70 65 20 3d 20 54 79 70 |g->bm_Ty|pe = Typ|
|00002dc0| 65 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 50 |e;. | P|
|00002dd0| 75 74 4d 73 67 28 20 46 | 6f 72 65 69 67 6e 50 6f |utMsg( F|oreignPo|
|00002de0| 72 74 2c 20 28 20 73 74 | 72 75 63 74 20 4d 65 73 |rt, ( st|ruct Mes|
|00002df0| 73 61 67 65 20 2a 20 29 | 43 6c 69 65 6e 74 4d 73 |sage * )|ClientMs|
|00002e00| 67 20 29 3b 0a 20 20 20 | 20 20 20 20 20 7d 0a 20 |g );. | }. |
|00002e10| 20 20 20 7d 0a 7d 0a 0a | 4c 4f 4e 47 20 6d 61 69 | }.}..|LONG mai|
|00002e20| 6e 28 20 4c 4f 4e 47 20 | 61 72 67 63 2c 20 53 54 |n( LONG |argc, ST|
|00002e30| 52 50 54 52 20 61 72 67 | 76 5b 5d 20 29 0a 7b 0a |RPTR arg|v[] ).{.|
|00002e40| 20 20 20 20 4f 62 6a 65 | 63 74 20 2a 56 65 72 74 | Obje|ct *Vert|
|00002e50| 47 72 6f 75 70 2c 20 2a | 53 61 76 65 42 74 6e 2c |Group, *|SaveBtn,|
|00002e60| 20 2a 54 65 73 74 42 74 | 6e 2c 20 2a 43 61 6e 63 | *TestBt|n, *Canc|
|00002e70| 65 6c 42 74 6e 2c 20 2a | 44 69 73 70 6c 61 79 42 |elBtn, *|DisplayB|
|00002e80| 74 6e 2c 20 2a 43 74 72 | 6c 47 72 70 3b 0a 20 20 |tn, *Ctr|lGrp;. |
|00002e90| 20 20 4f 62 6a 65 63 74 | 20 2a 4e 61 6d 65 49 6e | Object| *NameIn|
|00002ea0| 66 2c 20 2a 53 69 7a 65 | 49 6e 66 3b 0a 20 20 20 |f, *Size|Inf;. |
|00002eb0| 20 4c 4f 4e 47 20 69 2c | 20 6a 2c 20 4c 61 73 74 | LONG i,| j, Last|
|00002ec0| 4e 6f 6e 47 72 70 20 3d | 20 30 2c 20 44 69 73 70 |NonGrp =| 0, Disp|
|00002ed0| 49 44 20 3d 20 2d 31 2c | 20 4d 69 6e 2c 20 4d 61 |ID = -1,| Min, Ma|
|00002ee0| 78 2c 20 2a 54 79 70 65 | 73 2c 20 72 63 2c 20 49 |x, *Type|s, rc, I|
|00002ef0| 44 2c 20 53 69 67 73 3b | 0a 20 20 20 20 42 59 54 |D, Sigs;|. BYT|
|00002f00| 45 20 44 65 73 63 72 69 | 70 4e 61 6d 65 5b 31 30 |E Descri|pName[10|
|00002f10| 38 5d 2c 20 50 72 65 66 | 73 4e 61 6d 65 5b 31 30 |8], Pref|sName[10|
|00002f20| 38 5d 2c 20 42 6f 67 75 | 73 42 75 66 5b 31 32 38 |8], Bogu|sBuf[128|
|00002f30| 5d 2c 20 56 61 6c 69 64 | 50 72 65 66 73 20 3d 20 |], Valid|Prefs = |
|00002f40| 46 41 4c 53 45 3b 0a 20 | 20 20 20 53 54 52 50 54 |FALSE;. | STRPT|
|00002f50| 52 20 2a 4c 61 62 65 6c | 73 2c 20 2a 4b 65 79 53 |R *Label|s, *KeyS|
|00002f60| 74 72 73 2c 20 42 6f 78 | 56 61 72 4e 61 6d 65 3b |trs, Box|VarName;|
|00002f70| 0a 20 20 20 20 55 4c 4f | 4e 47 20 41 72 67 73 5b |. ULO|NG Args[|
|00002f80| 5d 20 3d 20 7b 20 30 4c | 2c 20 30 4c 20 7d 3b 0a |] = { 0L|, 0L };.|
|00002f90| 20 20 20 20 4f 62 6a 65 | 63 74 20 2a 2a 49 6e 64 | Obje|ct **Ind|
|00002fa0| 69 63 73 3b 0a 20 20 20 | 20 42 50 54 52 20 44 65 |ics;. | BPTR De|
|00002fb0| 73 63 72 69 70 2c 20 54 | 6d 70 3b 0a 0a 20 20 20 |scrip, T|mp;.. |
|00002fc0| 20 69 66 28 20 61 72 67 | 63 20 21 3d 20 32 20 29 | if( arg|c != 2 )|
|00002fd0| 0a 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |. | return |
|00002fe0| 52 45 54 55 52 4e 5f 57 | 41 52 4e 3b 0a 20 20 20 |RETURN_W|ARN;. |
|00002ff0| 20 0a 20 20 20 20 69 66 | 28 20 46 69 6e 64 50 6f | . if|( FindPo|
|00003000| 72 74 28 20 22 47 61 72 | 73 68 6e 65 50 72 65 66 |rt( "Gar|shnePref|
|00003010| 73 22 20 29 29 0a 20 20 | 20 20 20 20 20 20 72 65 |s" )). | re|
|00003020| 74 75 72 6e 20 52 45 54 | 55 52 4e 5f 57 41 52 4e |turn RET|URN_WARN|
|00003030| 3b 0a 0a 20 20 20 20 49 | 6e 74 75 69 74 69 6f 6e |;.. I|ntuition|
|00003040| 42 61 73 65 20 3d 20 4f | 70 65 6e 4c 69 62 72 61 |Base = O|penLibra|
|00003050| 72 79 28 20 22 69 6e 74 | 75 69 74 69 6f 6e 2e 6c |ry( "int|uition.l|
|00003060| 69 62 72 61 72 79 22 2c | 20 33 37 20 29 3b 0a 20 |ibrary",| 37 );. |
|00003070| 20 20 20 42 47 55 49 42 | 61 73 65 20 3d 20 4f 70 | BGUIB|ase = Op|
|00003080| 65 6e 4c 69 62 72 61 72 | 79 28 20 42 47 55 49 4e |enLibrar|y( BGUIN|
|00003090| 41 4d 45 2c 20 42 47 55 | 49 56 45 52 53 49 4f 4e |AME, BGU|IVERSION|
|000030a0| 20 29 3b 0a 20 20 20 20 | 47 61 72 73 68 6e 65 6c | );. |Garshnel|
|000030b0| 69 62 42 61 73 65 20 3d | 20 4f 70 65 6e 4c 69 62 |ibBase =| OpenLib|
|000030c0| 72 61 72 79 28 20 22 47 | 61 72 73 68 6e 65 6c 69 |rary( "G|arshneli|
|000030d0| 62 2e 6c 69 62 72 61 72 | 79 22 2c 20 33 37 20 29 |b.librar|y", 37 )|
|000030e0| 3b 0a 0a 20 20 20 20 69 | 66 28 20 21 49 6e 74 75 |;.. i|f( !Intu|
|000030f0| 69 74 69 6f 6e 42 61 73 | 65 20 7c 7c 20 21 42 47 |itionBas|e || !BG|
|00003100| 55 49 42 61 73 65 20 7c | 7c 20 21 47 61 72 73 68 |UIBase ||| !Garsh|
|00003110| 6e 65 6c 69 62 42 61 73 | 65 20 29 0a 20 20 20 20 |nelibBas|e ). |
|00003120| 20 20 20 20 67 6f 74 6f | 20 4a 41 49 4c 3b 0a 20 | goto| JAIL;. |
|00003130| 20 20 20 0a 20 20 20 20 | 69 66 28 21 28 20 4d 65 | . |if(!( Me|
|00003140| 6d 6f 72 79 20 3d 20 43 | 72 65 61 74 65 50 6f 6f |mory = C|reatePoo|
|00003150| 6c 28 20 4d 45 4d 46 5f | 43 4c 45 41 52 2c 20 31 |l( MEMF_|CLEAR, 1|
|00003160| 30 32 34 2c 20 35 31 32 | 20 29 29 29 0a 20 20 20 |024, 512| ))). |
|00003170| 20 20 20 20 20 67 6f 74 | 6f 20 4a 41 49 4c 3b 0a | got|o JAIL;.|
|00003180| 0a 20 20 20 20 69 66 28 | 21 28 20 52 65 70 6c 79 |. if(|!( Reply|
|00003190| 50 6f 72 74 20 3d 20 43 | 72 65 61 74 65 50 6f 72 |Port = C|reatePor|
|000031a0| 74 28 20 22 47 61 72 73 | 68 6e 65 50 72 65 66 73 |t( "Gars|hnePrefs|
|000031b0| 22 2c 20 30 4c 20 29 29 | 29 0a 20 20 20 20 20 20 |", 0L ))|). |
|000031c0| 20 20 67 6f 74 6f 20 4a | 41 49 4c 3b 0a 0a 20 20 | goto J|AIL;.. |
|000031d0| 20 20 73 74 72 63 70 79 | 28 20 44 65 73 63 72 69 | strcpy|( Descri|
|000031e0| 70 4e 61 6d 65 2c 20 61 | 72 67 76 5b 31 5d 20 29 |pName, a|rgv[1] )|
|000031f0| 3b 0a 20 20 20 20 73 74 | 72 63 61 74 28 20 44 65 |;. st|rcat( De|
|00003200| 73 63 72 69 70 4e 61 6d | 65 2c 20 22 2e 69 66 63 |scripNam|e, ".ifc|
|00003210| 22 20 29 3b 0a 0a 20 20 | 20 20 73 74 72 63 70 79 |" );.. | strcpy|
|00003220| 28 20 50 72 65 66 73 4e | 61 6d 65 2c 20 61 72 67 |( PrefsN|ame, arg|
|00003230| 76 5b 31 5d 20 29 3b 0a | 20 20 20 20 73 74 72 63 |v[1] );.| strc|
|00003240| 61 74 28 20 50 72 65 66 | 73 4e 61 6d 65 2c 20 22 |at( Pref|sName, "|
|00003250| 2e 70 72 65 66 73 22 20 | 29 3b 0a 20 20 20 20 0a |.prefs" |);. .|
|00003260| 20 20 20 20 69 66 28 21 | 28 20 44 65 73 63 72 69 | if(!|( Descri|
|00003270| 70 20 3d 20 4f 70 65 6e | 28 20 44 65 73 63 72 69 |p = Open|( Descri|
|00003280| 70 4e 61 6d 65 2c 20 4d | 4f 44 45 5f 4f 4c 44 46 |pName, M|ODE_OLDF|
|00003290| 49 4c 45 20 29 29 29 0a | 20 20 20 20 20 20 20 20 |ILE ))).| |
|000032a0| 67 6f 74 6f 20 4a 41 49 | 4c 3b 0a 0a 20 20 20 20 |goto JAI|L;.. |
|000032b0| 4e 75 6d 47 61 64 67 65 | 74 73 20 3d 20 53 63 61 |NumGadge|ts = Sca|
|000032c0| 6e 44 69 67 69 74 28 20 | 44 65 73 63 72 69 70 20 |nDigit( |Descrip |
|000032d0| 29 3b 0a 0a 20 20 20 20 | 4f 62 6a 65 63 74 73 20 |);.. |Objects |
|000032e0| 3d 20 41 6c 6c 6f 63 50 | 6f 6f 6c 65 64 28 20 4d |= AllocP|ooled( M|
|000032f0| 65 6d 6f 72 79 2c 20 73 | 69 7a 65 6f 66 28 20 4f |emory, s|izeof( O|
|00003300| 62 6a 65 63 74 20 2a 20 | 29 20 2a 20 28 20 4e 75 |bject * |) * ( Nu|
|00003310| 6d 47 61 64 67 65 74 73 | 20 2b 20 31 20 29 29 3b |mGadgets| + 1 ));|
|00003320| 0a 20 20 20 20 49 6e 64 | 69 63 73 20 3d 20 41 6c |. Ind|ics = Al|
|00003330| 6c 6f 63 50 6f 6f 6c 65 | 64 28 20 4d 65 6d 6f 72 |locPoole|d( Memor|
|00003340| 79 2c 20 73 69 7a 65 6f | 66 28 20 4f 62 6a 65 63 |y, sizeo|f( Objec|
|00003350| 74 20 2a 20 29 20 2a 20 | 28 20 4e 75 6d 47 61 64 |t * ) * |( NumGad|
|00003360| 67 65 74 73 20 2b 20 31 | 20 29 29 3b 0a 20 20 20 |gets + 1| ));. |
|00003370| 20 50 72 65 66 73 20 3d | 20 41 6c 6c 6f 63 50 6f | Prefs =| AllocPo|
|00003380| 6f 6c 65 64 28 20 4d 65 | 6d 6f 72 79 2c 20 73 69 |oled( Me|mory, si|
|00003390| 7a 65 6f 66 28 20 50 72 | 65 66 4f 62 6a 65 63 74 |zeof( Pr|efObject|
|000033a0| 20 29 20 2a 20 28 20 4e | 75 6d 47 61 64 67 65 74 | ) * ( N|umGadget|
|000033b0| 73 20 2b 20 31 20 29 29 | 3b 0a 20 20 20 20 54 79 |s + 1 ))|;. Ty|
|000033c0| 70 65 73 20 3d 20 41 6c | 6c 6f 63 50 6f 6f 6c 65 |pes = Al|locPoole|
|000033d0| 64 28 20 4d 65 6d 6f 72 | 79 2c 20 73 69 7a 65 6f |d( Memor|y, sizeo|
|000033e0| 66 28 20 4c 4f 4e 47 20 | 29 20 2a 20 28 20 4e 75 |f( LONG |) * ( Nu|
|000033f0| 6d 47 61 64 67 65 74 73 | 20 2b 20 31 20 29 29 3b |mGadgets| + 1 ));|
|00003400| 0a 20 20 20 20 4b 65 79 | 53 74 72 73 20 3d 20 41 |. Key|Strs = A|
|00003410| 6c 6c 6f 63 50 6f 6f 6c | 65 64 28 20 4d 65 6d 6f |llocPool|ed( Memo|
|00003420| 72 79 2c 20 73 69 7a 65 | 6f 66 28 20 53 54 52 50 |ry, size|of( STRP|
|00003430| 54 52 20 29 20 2a 20 28 | 20 4e 75 6d 47 61 64 67 |TR ) * (| NumGadg|
|00003440| 65 74 73 20 2b 20 31 20 | 29 29 3b 0a 20 20 20 20 |ets + 1 |));. |
|00003450| 0a 20 20 20 20 69 66 28 | 20 21 4f 62 6a 65 63 74 |. if(| !Object|
|00003460| 73 20 7c 7c 20 21 49 6e | 64 69 63 73 20 7c 7c 20 |s || !In|dics || |
|00003470| 21 50 72 65 66 73 20 7c | 7c 20 21 54 79 70 65 73 |!Prefs ||| !Types|
|00003480| 20 7c 7c 20 21 4b 65 79 | 53 74 72 73 20 29 0a 20 | || !Key|Strs ). |
|00003490| 20 20 20 20 20 20 20 67 | 6f 74 6f 20 50 52 45 4a | g|oto PREJ|
|000034a0| 41 49 4c 3b 0a 0a 20 20 | 20 20 56 65 72 74 47 72 |AIL;.. | VertGr|
|000034b0| 6f 75 70 20 3d 20 42 47 | 55 49 5f 4e 65 77 4f 62 |oup = BG|UI_NewOb|
|000034c0| 6a 65 63 74 28 20 42 47 | 55 49 5f 47 52 4f 55 50 |ject( BG|UI_GROUP|
|000034d0| 5f 47 41 44 47 45 54 2c | 0a 20 20 20 20 20 20 20 |_GADGET,|. |
|000034e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034f0| 20 20 20 20 20 20 20 20 | 47 52 4f 55 50 5f 53 74 | |GROUP_St|
|00003500| 79 6c 65 2c 20 47 52 53 | 54 59 4c 45 5f 56 45 52 |yle, GRS|TYLE_VER|
|00003510| 54 49 43 41 4c 2c 0a 20 | 20 20 20 20 20 20 20 20 |TICAL,. | |
|00003520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003530| 20 20 20 20 20 20 48 4f | 66 66 73 65 74 28 20 33 | HO|ffset( 3|
|00003540| 20 29 2c 20 56 4f 66 66 | 73 65 74 28 20 33 20 29 | ), VOff|set( 3 )|
|00003550| 2c 20 53 70 61 63 69 6e | 67 28 20 33 20 29 2c 0a |, Spacin|g( 3 ),.|
|00003560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 54 | | T|
|00003580| 41 47 5f 45 4e 44 20 29 | 3b 0a 0a 09 42 6f 78 56 |AG_END )|;...BoxV|
|00003590| 61 72 4e 61 6d 65 20 3d | 20 4d 61 6b 65 42 6f 78 |arName =| MakeBox|
|000035a0| 56 61 72 4e 61 6d 65 28 | 20 46 69 6c 65 50 61 72 |VarName(| FilePar|
|000035b0| 74 28 20 61 72 67 76 5b | 30 5d 20 29 2c 20 46 69 |t( argv[|0] ), Fi|
|000035c0| 6c 65 50 61 72 74 28 20 | 61 72 67 76 5b 31 5d 20 |lePart( |argv[1] |
|000035d0| 29 29 3b 0a 0a 09 69 66 | 28 20 47 65 74 56 61 72 |));...if|( GetVar|
|000035e0| 33 37 28 20 42 6f 78 56 | 61 72 4e 61 6d 65 2c 20 |37( BoxV|arName, |
|000035f0| 28 20 53 54 52 50 54 52 | 20 29 26 57 69 6e 42 6f |( STRPTR| )&WinBo|
|00003600| 78 2c 20 73 69 7a 65 6f | 66 28 20 73 74 72 75 63 |x, sizeo|f( struc|
|00003610| 74 20 49 42 6f 78 20 29 | 2c 0a 09 09 09 09 20 47 |t IBox )|,..... G|
|00003620| 56 46 5f 42 49 4e 41 52 | 59 5f 56 41 52 7c 47 56 |VF_BINAR|Y_VAR|GV|
|00003630| 46 5f 44 4f 4e 54 5f 4e | 55 4c 4c 5f 54 45 52 4d |F_DONT_N|ULL_TERM|
|00003640| 20 29 20 21 3d 20 2d 31 | 20 29 0a 09 7b 0a 09 09 | ) != -1| )..{...|
|00003650| 4f 6c 64 42 6f 78 20 3d | 20 57 69 6e 42 6f 78 3b |OldBox =| WinBox;|
|00003660| 0a 09 09 4d 6f 64 75 6c | 65 4f 62 6a 20 3d 20 42 |...Modul|eObj = B|
|00003670| 47 55 49 5f 4e 65 77 4f | 62 6a 65 63 74 28 20 42 |GUI_NewO|bject( B|
|00003680| 47 55 49 5f 57 49 4e 44 | 4f 57 5f 4f 42 4a 45 43 |GUI_WIND|OW_OBJEC|
|00003690| 54 2c 0a 09 09 09 09 09 | 09 09 09 20 20 20 57 49 |T,......|... WI|
|000036a0| 4e 44 4f 57 5f 4d 61 73 | 74 65 72 47 72 6f 75 70 |NDOW_Mas|terGroup|
|000036b0| 2c 20 56 65 72 74 47 72 | 6f 75 70 2c 0a 09 09 09 |, VertGr|oup,....|
|000036c0| 09 09 09 09 09 20 20 20 | 57 49 4e 44 4f 57 5f 54 |..... |WINDOW_T|
|000036d0| 69 74 6c 65 2c 20 46 69 | 6c 65 50 61 72 74 28 20 |itle, Fi|lePart( |
|000036e0| 61 72 67 76 5b 31 5d 20 | 29 2c 0a 09 09 09 09 09 |argv[1] |),......|
|000036f0| 09 09 09 20 20 20 57 49 | 4e 44 4f 57 5f 42 6f 75 |... WI|NDOW_Bou|
|00003700| 6e 64 73 2c 20 26 57 69 | 6e 42 6f 78 2c 0a 09 09 |nds, &Wi|nBox,...|
|00003710| 09 09 09 09 09 09 20 20 | 20 54 41 47 5f 45 4e 44 |...... | TAG_END|
|00003720| 20 29 3b 0a 09 7d 0a 09 | 65 6c 73 65 0a 09 7b 0a | );..}..|else..{.|
|00003730| 09 09 4d 6f 64 75 6c 65 | 4f 62 6a 20 3d 20 42 47 |..Module|Obj = BG|
|00003740| 55 49 5f 4e 65 77 4f 62 | 6a 65 63 74 28 20 42 47 |UI_NewOb|ject( BG|
|00003750| 55 49 5f 57 49 4e 44 4f | 57 5f 4f 42 4a 45 43 54 |UI_WINDO|W_OBJECT|
|00003760| 2c 0a 09 09 09 09 09 09 | 09 09 20 20 20 57 49 4e |,.......|.. WIN|
|00003770| 44 4f 57 5f 4d 61 73 74 | 65 72 47 72 6f 75 70 2c |DOW_Mast|erGroup,|
|00003780| 20 56 65 72 74 47 72 6f | 75 70 2c 0a 09 09 09 09 | VertGro|up,.....|
|00003790| 09 09 09 09 20 20 20 57 | 49 4e 44 4f 57 5f 54 69 |.... W|INDOW_Ti|
|000037a0| 74 6c 65 2c 20 46 69 6c | 65 50 61 72 74 28 20 61 |tle, Fil|ePart( a|
|000037b0| 72 67 76 5b 31 5d 20 29 | 2c 0a 09 09 09 09 09 09 |rgv[1] )|,.......|
|000037c0| 09 09 20 20 20 54 41 47 | 5f 45 4e 44 20 29 3b 0a |.. TAG|_END );.|
|000037d0| 09 7d 0a 09 09 0a 20 20 | 20 20 69 66 28 20 54 6d |.}.... | if( Tm|
|000037e0| 70 20 3d 20 4f 70 65 6e | 28 20 50 72 65 66 73 4e |p = Open|( PrefsN|
|000037f0| 61 6d 65 2c 20 4d 4f 44 | 45 5f 4f 4c 44 46 49 4c |ame, MOD|E_OLDFIL|
|00003800| 45 20 29 29 0a 20 20 20 | 20 7b 0a 20 20 20 20 20 |E )). | {. |
|00003810| 20 20 20 52 65 61 64 28 | 20 54 6d 70 2c 20 50 72 | Read(| Tmp, Pr|
|00003820| 65 66 73 2c 20 73 69 7a | 65 6f 66 28 20 4c 4f 4e |efs, siz|eof( LON|
|00003830| 47 20 29 29 3b 20 2f 2a | 20 49 67 6e 6f 72 65 20 |G )); /*| Ignore |
|00003840| 65 6e 74 72 79 20 63 6f | 75 6e 74 20 2a 2f 0a 20 |entry co|unt */. |
|00003850| 20 20 20 20 20 20 20 69 | 66 28 20 52 65 61 64 28 | i|f( Read(|
|00003860| 20 54 6d 70 2c 20 50 72 | 65 66 73 2c 20 73 69 7a | Tmp, Pr|efs, siz|
|00003870| 65 6f 66 28 20 50 72 65 | 66 4f 62 6a 65 63 74 20 |eof( Pre|fObject |
|00003880| 29 20 2a 20 4e 75 6d 47 | 61 64 67 65 74 73 20 29 |) * NumG|adgets )|
|00003890| 20 3d 3d 0a 20 20 20 20 | 20 20 20 20 20 20 20 73 | ==. | s|
|000038a0| 69 7a 65 6f 66 28 20 50 | 72 65 66 4f 62 6a 65 63 |izeof( P|refObjec|
|000038b0| 74 20 29 20 2a 20 4e 75 | 6d 47 61 64 67 65 74 73 |t ) * Nu|mGadgets|
|000038c0| 20 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 56 | ). | V|
|000038d0| 61 6c 69 64 50 72 65 66 | 73 20 3d 20 54 52 55 45 |alidPref|s = TRUE|
|000038e0| 3b 0a 20 20 20 20 20 20 | 20 20 43 6c 6f 73 65 28 |;. | Close(|
|000038f0| 20 54 6d 70 20 29 3b 0a | 20 20 20 20 7d 0a 0a 20 | Tmp );.| }.. |
|00003900| 20 20 20 66 6f 72 28 20 | 69 20 3d 20 30 3b 20 69 | for( |i = 0; i|
|00003910| 20 3c 20 4e 75 6d 47 61 | 64 67 65 74 73 3b 20 69 | < NumGa|dgets; i|
|00003920| 2b 2b 20 29 0a 20 20 20 | 20 7b 0a 20 20 20 20 20 |++ ). | {. |
|00003930| 20 20 20 53 54 52 50 54 | 52 20 49 44 53 74 72 2c | STRPT|R IDStr,|
|00003940| 20 4c 61 62 65 6c 53 74 | 72 3b 0a 20 20 20 20 20 | LabelSt|r;. |
|00003950| 20 20 20 0a 20 20 20 20 | 20 20 20 20 49 44 53 74 | . | IDSt|
|00003960| 72 20 3d 20 53 63 61 6e | 54 6f 6b 65 6e 28 20 44 |r = Scan|Token( D|
|00003970| 65 73 63 72 69 70 20 29 | 3b 0a 20 20 20 20 20 20 |escrip )|;. |
|00003980| 20 20 73 77 69 74 63 68 | 28 20 74 6f 6c 6f 77 65 | switch|( tolowe|
|00003990| 72 28 20 49 44 53 74 72 | 5b 30 5d 20 29 29 0a 20 |r( IDStr|[0] )). |
|000039a0| 20 20 20 20 20 20 20 7b | 0a 20 20 20 20 20 20 20 | {|. |
|000039b0| 20 63 61 73 65 20 27 63 | 27 3a 0a 20 20 20 20 20 | case 'c|':. |
|000039c0| 20 20 20 20 20 20 20 54 | 79 70 65 73 5b 69 5d 20 | T|ypes[i] |
|000039d0| 3d 20 47 41 44 5f 43 59 | 43 4c 45 3b 0a 20 20 20 |= GAD_CY|CLE;. |
|000039e0| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.|
|000039f0| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 27 64 27 | |case 'd'|
|00003a00| 3a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 54 79 |:. | Ty|
|00003a10| 70 65 73 5b 69 5d 20 3d | 20 28 20 74 6f 6c 6f 77 |pes[i] =| ( tolow|
|00003a20| 65 72 28 20 49 44 53 74 | 72 5b 31 5d 20 29 20 3d |er( IDSt|r[1] ) =|
|00003a30| 3d 20 27 69 27 20 29 3f | 20 47 41 44 5f 44 49 53 |= 'i' )?| GAD_DIS|
|00003a40| 50 4c 41 59 20 3a 20 47 | 41 44 5f 44 45 4c 49 4d |PLAY : G|AD_DELIM|
|00003a50| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 |;. | br|
|00003a60| 65 61 6b 3b 0a 20 20 20 | 20 20 20 20 20 63 61 73 |eak;. | cas|
|00003a70| 65 20 27 66 27 3a 0a 20 | 20 20 20 20 20 20 20 20 |e 'f':. | |
|00003a80| 20 20 20 54 79 70 65 73 | 5b 69 5d 20 3d 20 47 41 | Types|[i] = GA|
|00003a90| 44 5f 46 4f 4e 54 3b 0a | 20 20 20 20 20 20 20 20 |D_FONT;.| |
|00003aa0| 20 20 20 20 62 72 65 61 | 6b 3b 0a 20 20 20 20 20 | brea|k;. |
|00003ab0| 20 20 20 63 61 73 65 20 | 27 73 27 3a 0a 20 20 20 | case |'s':. |
|00003ac0| 20 20 20 20 20 20 20 20 | 20 54 79 70 65 73 5b 69 | | Types[i|
|00003ad0| 5d 20 3d 20 28 20 74 6f | 6c 6f 77 65 72 28 20 49 |] = ( to|lower( I|
|00003ae0| 44 53 74 72 5b 31 5d 20 | 29 20 3d 3d 20 27 6c 27 |DStr[1] |) == 'l'|
|00003af0| 20 29 3f 20 47 41 44 5f | 53 4c 49 44 45 52 20 3a | )? GAD_|SLIDER :|
|00003b00| 20 47 41 44 5f 53 54 52 | 49 4e 47 3b 0a 20 20 20 | GAD_STR|ING;. |
|00003b10| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.|
|00003b20| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. |
|00003b30| 20 20 0a 20 20 20 20 20 | 20 20 20 73 77 69 74 63 | . | switc|
|00003b40| 68 28 20 50 72 65 66 73 | 5b 69 5d 2e 70 6f 5f 54 |h( Prefs|[i].po_T|
|00003b50| 79 70 65 20 3d 20 54 79 | 70 65 73 5b 69 5d 20 29 |ype = Ty|pes[i] )|
|00003b60| 0a 20 20 20 20 20 20 20 | 20 7b 0a 20 20 20 20 20 |. | {. |
|00003b70| 20 20 20 63 61 73 65 20 | 47 41 44 5f 43 59 43 4c | case |GAD_CYCL|
|00003b80| 45 3a 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 4c |E:. | L|
|00003b90| 61 62 65 6c 53 74 72 20 | 3d 20 53 63 61 6e 54 6f |abelStr |= ScanTo|
|00003ba0| 6b 65 6e 28 20 44 65 73 | 63 72 69 70 20 29 3b 0a |ken( Des|crip );.|
|00003bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 4b 65 79 53 | | KeyS|
|00003bc0| 74 72 73 5b 69 5d 20 3d | 20 53 63 61 6e 54 6f 6b |trs[i] =| ScanTok|
|00003bd0| 65 6e 28 20 44 65 73 63 | 72 69 70 20 29 3b 0a 20 |en( Desc|rip );. |
|00003be0| 20 20 20 20 20 20 20 20 | 20 20 20 4c 61 62 65 6c | | Label|
|00003bf0| 73 20 3d 20 53 63 61 6e | 54 6f 6b 65 6e 41 72 72 |s = Scan|TokenArr|
|00003c00| 61 79 28 20 44 65 73 63 | 72 69 70 20 29 3b 0a 20 |ay( Desc|rip );. |
|00003c10| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 28 20 56 | | if( V|
|00003c20| 61 6c 69 64 50 72 65 66 | 73 20 29 0a 20 20 20 20 |alidPref|s ). |
|00003c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 63 61 6e | | Scan|
|00003c40| 44 69 67 69 74 28 20 44 | 65 73 63 72 69 70 20 29 |Digit( D|escrip )|
|00003c50| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c |;. | el|
|00003c60| 73 65 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |se. | |
|00003c70| 20 20 20 50 72 65 66 73 | 5b 69 5d 2e 70 6f 5f 41 | Prefs|[i].po_A|
|00003c80| 63 74 69 76 65 20 3d 20 | 53 63 61 6e 44 69 67 69 |ctive = |ScanDigi|
|00003c90| 74 28 20 44 65 73 63 72 | 69 70 20 29 3b 0a 20 20 |t( Descr|ip );. |
|00003ca0| 20 20 20 20 20 20 20 20 | 20 20 4f 62 6a 65 63 74 | | Object|
|00003cb0| 73 5b 69 5d 20 3d 0a 20 | 20 20 20 20 20 20 20 20 |s[i] =. | |
|00003cc0| 20 20 20 20 20 20 20 42 | 47 55 49 5f 4e 65 77 4f | B|GUI_NewO|
|00003cd0| 62 6a 65 63 74 28 20 42 | 47 55 49 5f 43 59 43 4c |bject( B|GUI_CYCL|
|00003ce0| 45 5f 47 41 44 47 45 54 | 2c 0a 20 20 20 20 20 20 |E_GADGET|,. |
|00003cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d00| 20 20 20 20 20 20 20 20 | 20 47 41 5f 49 44 2c 20 | | GA_ID, |
|00003d10| 69 20 2b 20 31 30 2c 0a | 20 20 20 20 20 20 20 20 |i + 10,.| |
|00003d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d30| 20 20 20 20 20 20 20 4c | 41 42 5f 4c 61 62 65 6c | L|AB_Label|
|00003d40| 2c 20 4c 61 62 65 6c 53 | 74 72 2c 0a 20 20 20 20 |, LabelS|tr,. |
|00003d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d60| 20 20 20 20 20 20 20 20 | 20 20 20 4c 41 42 5f 55 | | LAB_U|
|00003d70| 6e 64 65 72 73 63 6f 72 | 65 2c 20 27 5f 27 2c 0a |nderscor|e, '_',.|
|00003d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 46 | | F|
|00003da0| 52 4d 5f 54 79 70 65 2c | 20 46 52 54 59 50 45 5f |RM_Type,| FRTYPE_|
|00003db0| 42 55 54 54 4f 4e 2c 0a | 20 20 20 20 20 20 20 20 |BUTTON,.| |
|00003dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003dd0| 20 20 20 20 20 20 20 43 | 59 43 5f 4c 61 62 65 6c | C|YC_Label|
|00003de0| 73 2c 20 4c 61 62 65 6c | 73 2c 0a 20 20 20 20 20 |s, Label|s,. |
|00003df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e00| 20 20 20 20 20 20 20 20 | 20 20 43 59 43 5f 41 63 | | CYC_Ac|
|00003e10| 74 69 76 65 2c 20 50 72 | 65 66 73 5b 69 5d 2e 70 |tive, Pr|efs[i].p|
|00003e20| 6f 5f 41 63 74 69 76 65 | 2c 0a 20 20 20 20 20 20 |o_Active|,. |
|00003e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e40| 20 20 20 20 20 20 20 20 | 20 54 41 47 5f 44 4f 4e | | TAG_DON|
|00003e50| 45 20 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |E );. | |
|00003e60| 20 62 72 65 61 6b 3b 0a | 20 20 20 20 20 20 20 20 | break;.| |
|00003e70| 63 61 73 65 20 47 41 44 | 5f 53 4c 49 44 45 52 3a |case GAD|_SLIDER:|
|00003e80| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 4c 61 62 |. | Lab|
|00003e90| 65 6c 53 74 72 20 3d 20 | 53 63 61 6e 54 6f 6b 65 |elStr = |ScanToke|
|00003ea0| 6e 28 20 44 65 73 63 72 | 69 70 20 29 3b 0a 20 20 |n( Descr|ip );. |
|00003eb0| 20 20 20 20 20 20 20 20 | 20 20 4b 65 79 53 74 72 | | KeyStr|
|00003ec0| 73 5b 69 5d 20 3d 20 53 | 63 61 6e 54 6f 6b 65 6e |s[i] = S|canToken|
|00003ed0| 28 20 44 65 73 63 72 69 | 70 20 29 3b 0a 20 20 20 |( Descri|p );. |
|00003ee0| 20 20 20 20 20 20 20 20 | 20 4d 69 6e 20 3d 20 53 | | Min = S|
|00003ef0| 63 61 6e 44 69 67 69 74 | 28 20 44 65 73 63 72 69 |canDigit|( Descri|
|00003f00| 70 20 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |p );. | |
|00003f10| 20 4d 61 78 20 3d 20 53 | 63 61 6e 44 69 67 69 74 | Max = S|canDigit|
|00003f20| 28 20 44 65 73 63 72 69 | 70 20 29 3b 0a 20 20 20 |( Descri|p );. |
|00003f30| 20 20 20 20 20 20 20 20 | 20 69 66 28 20 56 61 6c | | if( Val|
|00003f40| 69 64 50 72 65 66 73 20 | 29 0a 20 20 20 20 20 20 |idPrefs |). |
|00003f50| 20 20 20 20 20 20 20 20 | 20 20 53 63 61 6e 44 69 | | ScanDi|
|00003f60| 67 69 74 28 20 44 65 73 | 63 72 69 70 20 29 3b 0a |git( Des|crip );.|
|00003f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|00003f80| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003f90| 20 50 72 65 66 73 5b 69 | 5d 2e 70 6f 5f 4c 65 76 | Prefs[i|].po_Lev|
|00003fa0| 65 6c 20 3d 20 53 63 61 | 6e 44 69 67 69 74 28 20 |el = Sca|nDigit( |
|00003fb0| 44 65 73 63 72 69 70 20 | 29 3b 0a 20 20 20 20 20 |Descrip |);. |
|00003fc0| 20 20 20 20 20 20 20 4f | 62 6a 65 63 74 73 5b 69 | O|bjects[i|
|00003fd0| 5d 20 3d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |] =. | |
|00003fe0| 20 20 20 20 42 47 55 49 | 5f 4e 65 77 4f 62 6a 65 | BGUI|_NewObje|
|00003ff0| 63 74 28 20 42 47 55 49 | 5f 53 4c 49 44 45 52 5f |ct( BGUI|_SLIDER_|
|00004000| 47 41 44 47 45 54 2c 0a | 20 20 20 20 20 20 20 20 |GADGET,.| |
|00004010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004020| 20 20 20 20 20 20 20 47 | 41 5f 49 44 2c 20 69 20 | G|A_ID, i |
|00004030| 2b 20 31 30 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |+ 10,. | |
|00004040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004050| 20 20 20 20 20 4c 41 42 | 5f 4c 61 62 65 6c 2c 20 | LAB|_Label, |
|00004060| 4c 61 62 65 6c 53 74 72 | 2c 0a 20 20 20 20 20 20 |LabelStr|,. |
|00004070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004080| 20 20 20 20 20 20 20 20 | 20 4c 41 42 5f 55 6e 64 | | LAB_Und|
|00004090| 65 72 73 63 6f 72 65 2c | 20 27 5f 27 2c 0a 20 20 |erscore,| '_',. |
|000040a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 53 4c 49 | | SLI|
|000040c0| 44 45 52 5f 4d 69 6e 2c | 20 4d 69 6e 2c 20 0a 20 |DER_Min,| Min, . |
|000040d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 4c | | SL|
|000040f0| 49 44 45 52 5f 4d 61 78 | 2c 20 4d 61 78 2c 0a 20 |IDER_Max|, Max,. |
|00004100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 4c | | SL|
|00004120| 49 44 45 52 5f 4c 65 76 | 65 6c 2c 20 50 72 65 66 |IDER_Lev|el, Pref|
|00004130| 73 5b 69 5d 2e 70 6f 5f | 4c 65 76 65 6c 2c 0a 20 |s[i].po_|Level,. |
|00004140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 54 41 | | TA|
|00004160| 47 5f 44 4f 4e 45 20 29 | 3b 0a 20 20 20 20 20 20 |G_DONE )|;. |
|00004170| 20 20 20 20 20 20 49 6e | 64 69 63 73 5b 69 5d 20 | In|dics[i] |
|00004180| 3d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |=. | |
|00004190| 20 20 42 47 55 49 5f 4e | 65 77 4f 62 6a 65 63 74 | BGUI_N|ewObject|
|000041a0| 28 20 42 47 55 49 5f 49 | 4e 44 49 43 41 54 4f 52 |( BGUI_I|NDICATOR|
|000041b0| 5f 47 41 44 47 45 54 2c | 0a 20 20 20 20 20 20 20 |_GADGET,|. |
|000041c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041d0| 20 20 20 20 20 20 20 20 | 49 4e 44 49 43 5f 4d 69 | |INDIC_Mi|
|000041e0| 6e 2c 20 4d 69 6e 2c 0a | 20 20 20 20 20 20 20 20 |n, Min,.| |
|000041f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004200| 20 20 20 20 20 20 20 49 | 4e 44 49 43 5f 4d 61 78 | I|NDIC_Max|
|00004210| 2c 20 4d 61 78 2c 0a 20 | 20 20 20 20 20 20 20 20 |, Max,. | |
|00004220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004230| 20 20 20 20 20 20 49 4e | 44 49 43 5f 4c 65 76 65 | IN|DIC_Leve|
|00004240| 6c 2c 20 50 72 65 66 73 | 5b 69 5d 2e 70 6f 5f 4c |l, Prefs|[i].po_L|
|00004250| 65 76 65 6c 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |evel,. | |
|00004260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004270| 20 20 20 20 20 49 4e 44 | 49 43 5f 4a 75 73 74 69 | IND|IC_Justi|
|00004280| 66 69 63 61 74 69 6f 6e | 2c 20 49 44 4a 5f 43 45 |fication|, IDJ_CE|
|00004290| 4e 54 45 52 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |NTER,. | |
|000042a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042b0| 20 20 20 20 20 54 41 47 | 5f 44 4f 4e 45 20 29 3b | TAG|_DONE );|
|000042c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 |. | bre|
|000042d0| 61 6b 3b 0a 20 20 20 20 | 20 20 20 20 63 61 73 65 |ak;. | case|
|000042e0| 20 47 41 44 5f 46 4f 4e | 54 3a 0a 20 20 20 20 20 | GAD_FON|T:. |
|000042f0| 20 20 20 20 20 20 20 69 | 66 28 20 56 61 6c 69 64 | i|f( Valid|
|00004300| 50 72 65 66 73 20 29 0a | 20 20 20 20 20 20 20 20 |Prefs ).| |
|00004310| 20 20 20 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00004320| 20 20 20 20 20 20 53 63 | 61 6e 54 6f 6b 65 6e 28 | Sc|anToken(|
|00004330| 20 44 65 73 63 72 69 70 | 20 29 3b 0a 20 20 20 20 | Descrip| );. |
|00004340| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 63 61 6e | | Scan|
|00004350| 44 69 67 69 74 28 20 44 | 65 73 63 72 69 70 20 29 |Digit( D|escrip )|
|00004360| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a |;. | }.|
|00004370| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|00004380| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 0a 20 |. | {. |
|00004390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 | | s|
|000043a0| 74 72 63 70 79 28 20 50 | 72 65 66 73 5b 69 5d 2e |trcpy( P|refs[i].|
|000043b0| 70 6f 5f 4e 61 6d 65 2c | 20 53 63 61 6e 54 6f 6b |po_Name,| ScanTok|
|000043c0| 65 6e 28 20 44 65 73 63 | 72 69 70 20 29 29 3b 0a |en( Desc|rip ));.|
|000043d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043e0| 50 72 65 66 73 5b 69 5d | 2e 70 6f 5f 41 74 74 72 |Prefs[i]|.po_Attr|
|000043f0| 2e 74 61 5f 59 53 69 7a | 65 20 3d 20 53 63 61 6e |.ta_YSiz|e = Scan|
|00004400| 44 69 67 69 74 28 20 44 | 65 73 63 72 69 70 20 29 |Digit( D|escrip )|
|00004410| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a |;. | }.|
|00004420| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 72 65 66 | | Pref|
|00004430| 73 5b 69 5d 2e 70 6f 5f | 41 74 74 72 2e 74 61 5f |s[i].po_|Attr.ta_|
|00004440| 4e 61 6d 65 20 3d 20 50 | 72 65 66 73 5b 69 5d 2e |Name = P|refs[i].|
|00004450| 70 6f 5f 4e 61 6d 65 3b | 0a 20 20 20 20 20 20 20 |po_Name;|. |
|00004460| 20 20 20 20 20 4f 62 6a | 65 63 74 73 5b 69 5d 20 | Obj|ects[i] |
|00004470| 3d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |=. | |
|00004480| 20 20 42 47 55 49 5f 4e | 65 77 4f 62 6a 65 63 74 | BGUI_N|ewObject|
|00004490| 28 20 42 47 55 49 5f 42 | 55 54 54 4f 4e 5f 47 41 |( BGUI_B|UTTON_GA|
|000044a0| 44 47 45 54 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |DGET,. | |
|000044b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044c0| 20 20 20 20 20 47 41 5f | 49 44 2c 20 69 20 2b 20 | GA_|ID, i + |
|000044d0| 31 30 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |10,. | |
|000044e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044f0| 20 20 20 4c 41 42 5f 4c | 61 62 65 6c 2c 20 22 5f | LAB_L|abel, "_|
|00004500| 46 6f 6e 74 22 2c 0a 20 | 20 20 20 20 20 20 20 20 |Font",. | |
|00004510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004520| 20 20 20 20 20 20 4c 41 | 42 5f 55 6e 64 65 72 73 | LA|B_Unders|
|00004530| 63 6f 72 65 2c 20 27 5f | 27 2c 0a 20 20 20 20 20 |core, '_|',. |
|00004540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004550| 20 20 20 20 20 20 20 20 | 20 20 46 52 4d 5f 54 79 | | FRM_Ty|
|00004560| 70 65 2c 20 46 52 54 59 | 50 45 5f 42 55 54 54 4f |pe, FRTY|PE_BUTTO|
|00004570| 4e 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |N,. | |
|00004580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004590| 20 20 54 41 47 5f 44 4f | 4e 45 20 29 3b 0a 20 20 | TAG_DO|NE );. |
|000045a0| 20 20 20 20 20 20 20 20 | 20 20 41 72 67 73 5b 30 | | Args[0|
|000045b0| 5d 20 3d 20 50 72 65 66 | 73 5b 69 5d 2e 70 6f 5f |] = Pref|s[i].po_|
|000045c0| 41 74 74 72 2e 74 61 5f | 59 53 69 7a 65 2c 0a 20 |Attr.ta_|YSize,. |
|000045d0| 20 20 20 20 20 20 20 20 | 20 20 20 49 6e 64 69 63 | | Indic|
|000045e0| 73 5b 69 5d 20 3d 0a 20 | 20 20 20 20 20 20 20 20 |s[i] =. | |
|000045f0| 20 20 20 20 20 20 20 42 | 47 55 49 5f 4e 65 77 4f | B|GUI_NewO|
|00004600| 62 6a 65 63 74 28 20 42 | 47 55 49 5f 47 52 4f 55 |bject( B|GUI_GROU|
|00004610| 50 5f 47 41 44 47 45 54 | 2c 20 53 70 61 63 69 6e |P_GADGET|, Spacin|
|00004620| 67 28 20 33 20 29 2c 0a | 20 20 20 20 20 20 20 20 |g( 3 ),.| |
|00004630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004640| 20 20 20 20 20 20 20 53 | 74 61 72 74 4d 65 6d 62 | S|tartMemb|
|00004650| 65 72 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |er,. | |
|00004660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004670| 20 20 20 4e 61 6d 65 49 | 6e 66 20 3d 0a 20 20 20 | NameI|nf =. |
|00004680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004690| 20 20 20 20 20 20 20 20 | 20 20 20 20 42 47 55 49 | | BGUI|
|000046a0| 5f 4e 65 77 4f 62 6a 65 | 63 74 28 20 42 47 55 49 |_NewObje|ct( BGUI|
|000046b0| 5f 49 4e 46 4f 5f 47 41 | 44 47 45 54 2c 0a 20 20 |_INFO_GA|DGET,. |
|000046c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 46 52 4d 5f | | FRM_|
|000046f0| 54 79 70 65 2c 20 46 52 | 54 59 50 45 5f 42 55 54 |Type, FR|TYPE_BUT|
|00004700| 54 4f 4e 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |TON,. | |
|00004710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004730| 20 20 20 46 52 4d 5f 46 | 6c 61 67 73 2c 20 46 52 | FRM_F|lags, FR|
|00004740| 46 5f 52 45 43 45 53 53 | 45 44 2c 0a 20 20 20 20 |F_RECESS|ED,. |
|00004750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004770| 20 20 20 20 20 20 20 20 | 20 20 49 4e 46 4f 5f 48 | | INFO_H|
|00004780| 6f 72 69 7a 4f 66 66 73 | 65 74 2c 20 36 2c 0a 20 |orizOffs|et, 6,. |
|00004790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 49 4e 46 | | INF|
|000047c0| 4f 5f 56 65 72 74 4f 66 | 66 73 65 74 2c 20 33 2c |O_VertOf|fset, 3,|
|000047d0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000047e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|00004800| 4e 46 4f 5f 54 65 78 74 | 46 6f 72 6d 61 74 2c 0a |NFO_Text|Format,.|
|00004810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 72 | | Pr|
|00004840| 65 66 73 5b 69 5d 2e 70 | 6f 5f 4e 61 6d 65 2c 0a |efs[i].p|o_Name,.|
|00004850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 54 41 | | TA|
|00004880| 47 5f 44 4f 4e 45 20 29 | 2c 0a 20 20 20 20 20 20 |G_DONE )|,. |
|00004890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000048a0| 20 20 20 20 20 20 20 20 | 20 57 65 69 67 68 74 28 | | Weight(|
|000048b0| 20 38 30 20 29 2c 0a 20 | 20 20 20 20 20 20 20 20 | 80 ),. | |
|000048c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000048d0| 20 20 20 20 20 20 45 6e | 64 4d 65 6d 62 65 72 2c | En|dMember,|
|000048e0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000048f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004900| 53 74 61 72 74 4d 65 6d | 62 65 72 2c 0a 20 20 20 |StartMem|ber,. |
|00004910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004920| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 69 7a 65 | | Size|
|00004930| 49 6e 66 20 3d 20 0a 20 | 20 20 20 20 20 20 20 20 |Inf = . | |
|00004940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004950| 20 20 20 20 20 20 42 47 | 55 49 5f 4e 65 77 4f 62 | BG|UI_NewOb|
|00004960| 6a 65 63 74 28 20 42 47 | 55 49 5f 49 4e 46 4f 5f |ject( BG|UI_INFO_|
|00004970| 47 41 44 47 45 54 2c 0a | 20 20 20 20 20 20 20 20 |GADGET,.| |
|00004980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049a0| 20 20 20 20 20 20 46 52 | 4d 5f 54 79 70 65 2c 20 | FR|M_Type, |
|000049b0| 46 52 54 59 50 45 5f 42 | 55 54 54 4f 4e 2c 0a 20 |FRTYPE_B|UTTON,. |
|000049c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 46 52 4d | | FRM|
|000049f0| 5f 46 6c 61 67 73 2c 20 | 46 52 46 5f 52 45 43 45 |_Flags, |FRF_RECE|
|00004a00| 53 53 45 44 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |SSED,. | |
|00004a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a30| 20 20 20 20 49 4e 46 4f | 5f 48 6f 72 69 7a 4f 66 | INFO|_HorizOf|
|00004a40| 66 73 65 74 2c 20 36 2c | 0a 20 20 20 20 20 20 20 |fset, 6,|. |
|00004a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a70| 20 20 20 20 20 20 20 49 | 4e 46 4f 5f 56 65 72 74 | I|NFO_Vert|
|00004a80| 4f 66 66 73 65 74 2c 20 | 33 2c 0a 20 20 20 20 20 |Offset, |3,. |
|00004a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ab0| 20 20 20 20 20 20 20 20 | 20 49 4e 46 4f 5f 54 65 | | INFO_Te|
|00004ac0| 78 74 46 6f 72 6d 61 74 | 2c 20 22 25 6c 64 22 2c |xtFormat|, "%ld",|
|00004ad0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|00004b00| 4e 46 4f 5f 41 72 67 73 | 2c 20 41 72 67 73 2c 0a |NFO_Args|, Args,.|
|00004b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 54 41 | | TA|
|00004b40| 47 5f 44 4f 4e 45 20 29 | 2c 0a 20 20 20 20 20 20 |G_DONE )|,. |
|00004b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b60| 20 20 20 20 20 20 20 20 | 20 57 65 69 67 68 74 28 | | Weight(|
|00004b70| 20 32 30 20 29 2c 0a 20 | 20 20 20 20 20 20 20 20 | 20 ),. | |
|00004b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b90| 20 20 20 20 20 20 45 6e | 64 4d 65 6d 62 65 72 2c | En|dMember,|
|00004ba0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004bc0| 54 41 47 5f 44 4f 4e 45 | 20 29 3b 0a 20 20 20 20 |TAG_DONE| );. |
|00004bd0| 20 20 20 20 20 20 20 20 | 62 72 65 61 6b 3b 0a 20 | |break;. |
|00004be0| 20 20 20 20 20 20 20 63 | 61 73 65 20 47 41 44 5f | c|ase GAD_|
|00004bf0| 53 54 52 49 4e 47 3a 0a | 20 20 20 20 20 20 20 20 |STRING:.| |
|00004c00| 20 20 20 20 4c 61 62 65 | 6c 53 74 72 20 3d 20 53 | Labe|lStr = S|
|00004c10| 63 61 6e 54 6f 6b 65 6e | 28 20 44 65 73 63 72 69 |canToken|( Descri|
|00004c20| 70 20 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |p );. | |
|00004c30| 20 4b 65 79 53 74 72 73 | 5b 69 5d 20 3d 20 53 63 | KeyStrs|[i] = Sc|
|00004c40| 61 6e 54 6f 6b 65 6e 28 | 20 44 65 73 63 72 69 70 |anToken(| Descrip|
|00004c50| 20 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | );. | |
|00004c60| 69 66 28 20 56 61 6c 69 | 64 50 72 65 66 73 20 29 |if( Vali|dPrefs )|
|00004c70| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004c80| 20 46 47 65 74 73 28 20 | 44 65 73 63 72 69 70 2c | FGets( |Descrip,|
|00004c90| 20 42 6f 67 75 73 42 75 | 66 2c 20 31 32 38 20 29 | BogusBu|f, 128 )|
|00004ca0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c |;. | el|
|00004cb0| 73 65 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 7b |se. | {|
|00004cc0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004cd0| 20 46 47 65 74 73 28 20 | 44 65 73 63 72 69 70 2c | FGets( |Descrip,|
|00004ce0| 20 50 72 65 66 73 5b 69 | 5d 2e 70 6f 5f 56 61 6c | Prefs[i|].po_Val|
|00004cf0| 75 65 2c 20 31 32 38 20 | 29 3b 0a 20 20 20 20 20 |ue, 128 |);. |
|00004d00| 20 20 20 20 20 20 20 20 | 20 20 20 50 72 65 66 73 | | Prefs|
|00004d10| 5b 69 5d 2e 70 6f 5f 56 | 61 6c 75 65 5b 73 74 72 |[i].po_V|alue[str|
|00004d20| 6c 65 6e 28 20 50 72 65 | 66 73 5b 69 5d 2e 70 6f |len( Pre|fs[i].po|
|00004d30| 5f 56 61 6c 75 65 20 29 | 2d 31 5d 20 3d 20 27 5c |_Value )|-1] = '\|
|00004d40| 30 27 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |0';. | |
|00004d50| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 4f 62 |}. | Ob|
|00004d60| 6a 65 63 74 73 5b 69 5d | 20 3d 0a 20 20 20 20 20 |jects[i]| =. |
|00004d70| 20 20 20 20 20 20 20 20 | 20 20 20 42 47 55 49 5f | | BGUI_|
|00004d80| 4e 65 77 4f 62 6a 65 63 | 74 28 20 42 47 55 49 5f |NewObjec|t( BGUI_|
|00004d90| 53 54 52 49 4e 47 5f 47 | 41 44 47 45 54 2c 0a 20 |STRING_G|ADGET,. |
|00004da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 47 41 | | GA|
|00004dc0| 5f 49 44 2c 20 69 20 2b | 20 31 30 2c 0a 20 20 20 |_ID, i +| 10,. |
|00004dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 4c 41 42 5f | | LAB_|
|00004df0| 4c 61 62 65 6c 2c 20 4c | 61 62 65 6c 53 74 72 2c |Label, L|abelStr,|
|00004e00| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e20| 4c 41 42 5f 55 6e 64 65 | 72 73 63 6f 72 65 2c 20 |LAB_Unde|rscore, |
|00004e30| 27 5f 27 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |'_',. | |
|00004e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e50| 20 20 20 20 46 52 4d 5f | 54 79 70 65 2c 20 46 52 | FRM_|Type, FR|
|00004e60| 54 59 50 45 5f 52 49 44 | 47 45 2c 0a 20 20 20 20 |TYPE_RID|GE,. |
|00004e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e80| 20 20 20 20 20 20 20 20 | 20 20 20 53 54 52 49 4e | | STRIN|
|00004e90| 47 41 5f 54 65 78 74 56 | 61 6c 2c 20 50 72 65 66 |GA_TextV|al, Pref|
|00004ea0| 73 5b 69 5d 2e 70 6f 5f | 56 61 6c 75 65 2c 0a 20 |s[i].po_|Value,. |
|00004eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 54 | | ST|
|00004ed0| 52 49 4e 47 41 5f 4d 61 | 78 43 68 61 72 73 2c 20 |RINGA_Ma|xChars, |
|00004ee0| 31 32 37 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |127,. | |
|00004ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f00| 20 20 20 20 54 41 47 5f | 44 4f 4e 45 20 29 3b 0a | TAG_|DONE );.|
|00004f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 72 65 61 | | brea|
|00004f20| 6b 3b 0a 20 20 20 20 20 | 20 20 20 63 61 73 65 20 |k;. | case |
|00004f30| 47 41 44 5f 44 49 53 50 | 4c 41 59 3a 0a 20 20 20 |GAD_DISP|LAY:. |
|00004f40| 20 20 20 20 20 20 20 20 | 20 44 69 73 70 49 44 20 | | DispID |
|00004f50| 3d 20 69 20 2b 20 31 30 | 3b 0a 20 20 20 20 20 20 |= i + 10|;. |
|00004f60| 20 20 20 20 20 20 69 66 | 28 20 56 61 6c 69 64 50 | if|( ValidP|
|00004f70| 72 65 66 73 20 29 0a 20 | 20 20 20 20 20 20 20 20 |refs ). | |
|00004f80| 20 20 20 20 20 20 20 53 | 63 61 6e 44 69 67 69 74 | S|canDigit|
|00004f90| 28 20 44 65 73 63 72 69 | 70 20 29 3b 0a 20 20 20 |( Descri|p );. |
|00004fa0| 20 20 20 20 20 20 20 20 | 20 65 6c 73 65 0a 20 20 | | else. |
|00004fb0| 20 20 20 20 20 20 20 20 | 20 20 7b 0a 20 20 20 20 | | {. |
|00004fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 72 65 66 | | Pref|
|00004fd0| 73 5b 69 5d 2e 70 6f 5f | 4d 6f 64 65 49 44 20 3d |s[i].po_|ModeID =|
|00004fe0| 20 67 65 74 54 6f 70 53 | 63 72 65 65 6e 4d 6f 64 | getTopS|creenMod|
|00004ff0| 65 28 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |e();. | |
|00005000| 20 20 20 20 20 50 72 65 | 66 73 5b 69 5d 2e 70 6f | Pre|fs[i].po|
|00005010| 5f 44 65 70 74 68 20 3d | 20 53 63 61 6e 44 69 67 |_Depth =| ScanDig|
|00005020| 69 74 28 20 44 65 73 63 | 72 69 70 20 29 3b 0a 20 |it( Desc|rip );. |
|00005030| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 | | }. |
|00005040| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.|
|00005050| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 47 41 44 | |case GAD|
|00005060| 5f 44 45 4c 49 4d 3a 0a | 20 20 20 20 20 20 20 20 |_DELIM:.| |
|00005070| 20 20 20 20 69 66 28 20 | 54 79 70 65 73 5b 4c 61 | if( |Types[La|
|00005080| 73 74 4e 6f 6e 47 72 70 | 5d 20 3d 3d 20 47 41 44 |stNonGrp|] == GAD|
|00005090| 5f 53 4c 49 44 45 52 20 | 29 0a 20 20 20 20 20 20 |_SLIDER |). |
|000050a0| 20 20 20 20 20 20 20 20 | 20 20 4f 62 6a 65 63 74 | | Object|
|000050b0| 73 5b 69 5d 20 3d 20 42 | 47 55 49 5f 4e 65 77 4f |s[i] = B|GUI_NewO|
|000050c0| 62 6a 65 63 74 28 20 42 | 47 55 49 5f 47 52 4f 55 |bject( B|GUI_GROU|
|000050d0| 50 5f 47 41 44 47 45 54 | 2c 20 53 70 61 63 69 6e |P_GADGET|, Spacin|
|000050e0| 67 28 20 33 20 29 2c 0a | 20 20 20 20 20 20 20 20 |g( 3 ),.| |
|000050f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005110| 20 20 20 20 53 74 61 72 | 74 4d 65 6d 62 65 72 2c | Star|tMember,|
|00005120| 20 4f 62 6a 65 63 74 73 | 5b 4c 61 73 74 4e 6f 6e | Objects|[LastNon|
|00005130| 47 72 70 5d 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |Grp],. | |
|00005140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005160| 20 20 57 65 69 67 68 74 | 28 20 39 30 20 29 2c 20 | Weight|( 90 ), |
|00005170| 45 6e 64 4d 65 6d 62 65 | 72 2c 0a 20 20 20 20 20 |EndMembe|r,. |
|00005180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051a0| 20 20 20 20 20 20 20 53 | 74 61 72 74 4d 65 6d 62 | S|tartMemb|
|000051b0| 65 72 2c 20 49 6e 64 69 | 63 73 5b 4c 61 73 74 4e |er, Indi|cs[LastN|
|000051c0| 6f 6e 47 72 70 5d 2c 0a | 20 20 20 20 20 20 20 20 |onGrp],.| |
|000051d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051f0| 20 20 20 20 57 65 69 67 | 68 74 28 20 31 30 20 29 | Weig|ht( 10 )|
|00005200| 2c 20 45 6e 64 4d 65 6d | 62 65 72 2c 0a 20 20 20 |, EndMem|ber,. |
|00005210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005230| 20 20 20 20 20 20 20 20 | 20 54 41 47 5f 44 4f 4e | | TAG_DON|
|00005240| 45 20 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |E );. | |
|00005250| 20 65 6c 73 65 20 69 66 | 28 20 54 79 70 65 73 5b | else if|( Types[|
|00005260| 4c 61 73 74 4e 6f 6e 47 | 72 70 5d 20 3d 3d 20 47 |LastNonG|rp] == G|
|00005270| 41 44 5f 46 4f 4e 54 20 | 29 0a 20 20 20 20 20 20 |AD_FONT |). |
|00005280| 20 20 20 20 20 20 20 20 | 20 20 4f 62 6a 65 63 74 | | Object|
|00005290| 73 5b 69 5d 20 3d 20 42 | 47 55 49 5f 4e 65 77 4f |s[i] = B|GUI_NewO|
|000052a0| 62 6a 65 63 74 28 20 42 | 47 55 49 5f 47 52 4f 55 |bject( B|GUI_GROU|
|000052b0| 50 5f 47 41 44 47 45 54 | 2c 20 53 70 61 63 69 6e |P_GADGET|, Spacin|
|000052c0| 67 28 20 33 20 29 2c 0a | 20 20 20 20 20 20 20 20 |g( 3 ),.| |
|000052d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000052e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000052f0| 20 20 20 20 53 74 61 72 | 74 4d 65 6d 62 65 72 2c | Star|tMember,|
|00005300| 20 4f 62 6a 65 63 74 73 | 5b 4c 61 73 74 4e 6f 6e | Objects|[LastNon|
|00005310| 47 72 70 5d 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |Grp],. | |
|00005320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005340| 20 20 57 65 69 67 68 74 | 28 20 32 30 20 29 2c 20 | Weight|( 20 ), |
|00005350| 45 6e 64 4d 65 6d 62 65 | 72 2c 0a 20 20 20 20 20 |EndMembe|r,. |
|00005360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005380| 20 20 20 20 20 20 20 53 | 74 61 72 74 4d 65 6d 62 | S|tartMemb|
|00005390| 65 72 2c 20 49 6e 64 69 | 63 73 5b 4c 61 73 74 4e |er, Indi|cs[LastN|
|000053a0| 6f 6e 47 72 70 5d 2c 0a | 20 20 20 20 20 20 20 20 |onGrp],.| |
|000053b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000053c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000053d0| 20 20 20 20 57 65 69 67 | 68 74 28 20 38 30 20 29 | Weig|ht( 80 )|
|000053e0| 2c 20 45 6e 64 4d 65 6d | 62 65 72 2c 0a 20 20 20 |, EndMem|ber,. |
|000053f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005410| 20 20 20 20 20 20 20 20 | 20 54 41 47 5f 44 4f 4e | | TAG_DON|
|00005420| 45 20 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |E );. | |
|00005430| 20 65 6c 73 65 0a 20 20 | 20 20 20 20 20 20 20 20 | else. | |
|00005440| 20 20 20 20 20 20 4f 62 | 6a 65 63 74 73 5b 69 5d | Ob|jects[i]|
|00005450| 20 3d 20 42 47 55 49 5f | 4e 65 77 4f 62 6a 65 63 | = BGUI_|NewObjec|
|00005460| 74 28 20 42 47 55 49 5f | 47 52 4f 55 50 5f 47 41 |t( BGUI_|GROUP_GA|
|00005470| 44 47 45 54 2c 20 53 70 | 61 63 69 6e 67 28 20 33 |DGET, Sp|acing( 3|
|00005480| 20 29 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | ),. | |
|00005490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000054a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000054b0| 53 74 61 72 74 4d 65 6d | 62 65 72 2c 20 4f 62 6a |StartMem|ber, Obj|
|000054c0| 65 63 74 73 5b 4c 61 73 | 74 4e 6f 6e 47 72 70 5d |ects[Las|tNonGrp]|
|000054d0| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|000054e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000054f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 45 6e | | En|
|00005500| 64 4d 65 6d 62 65 72 2c | 20 54 41 47 5f 44 4f 4e |dMember,| TAG_DON|
|00005510| 45 20 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |E );. | |
|00005520| 20 66 6f 72 28 20 6a 20 | 3d 20 4c 61 73 74 4e 6f | for( j |= LastNo|
|00005530| 6e 47 72 70 20 2b 20 31 | 3b 20 4f 62 6a 65 63 74 |nGrp + 1|; Object|
|00005540| 73 5b 69 5d 20 26 26 28 | 20 6a 20 3c 20 69 20 29 |s[i] &&(| j < i )|
|00005550| 3b 20 6a 2b 2b 20 29 0a | 20 20 20 20 20 20 20 20 |; j++ ).| |
|00005560| 20 20 20 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00005570| 20 20 20 20 20 20 69 66 | 28 20 54 79 70 65 73 5b | if|( Types[|
|00005580| 6a 5d 20 3d 3d 20 47 41 | 44 5f 53 4c 49 44 45 52 |j] == GA|D_SLIDER|
|00005590| 20 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | ). | |
|000055a0| 20 20 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|000055b0| 20 20 20 20 20 20 20 20 | 20 44 6f 4d 65 74 68 6f | | DoMetho|
|000055c0| 64 28 20 4f 62 6a 65 63 | 74 73 5b 69 5d 2c 20 47 |d( Objec|ts[i], G|
|000055d0| 52 4d 5f 41 44 44 4d 45 | 4d 42 45 52 2c 20 4f 62 |RM_ADDME|MBER, Ob|
|000055e0| 6a 65 63 74 73 5b 6a 5d | 2c 0a 20 20 20 20 20 20 |jects[j]|,. |
|000055f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005600| 20 20 20 20 20 20 20 4c | 47 4f 5f 57 65 69 67 68 | L|GO_Weigh|
|00005610| 74 2c 20 39 30 2c 20 54 | 41 47 5f 45 4e 44 20 29 |t, 90, T|AG_END )|
|00005620| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00005630| 20 20 20 20 20 20 44 6f | 4d 65 74 68 6f 64 28 20 | Do|Method( |
|00005640| 4f 62 6a 65 63 74 73 5b | 69 5d 2c 20 47 52 4d 5f |Objects[|i], GRM_|
|00005650| 41 44 44 4d 45 4d 42 45 | 52 2c 20 49 6e 64 69 63 |ADDMEMBE|R, Indic|
|00005660| 73 5b 6a 5d 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |s[j],. | |
|00005670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005680| 20 20 20 4c 47 4f 5f 57 | 65 69 67 68 74 2c 20 31 | LGO_W|eight, 1|
|00005690| 30 2c 20 54 41 47 5f 45 | 4e 44 20 29 3b 0a 20 20 |0, TAG_E|ND );. |
|000056a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a | | }.|
|000056b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000056c0| 65 6c 73 65 20 69 66 28 | 20 54 79 70 65 73 5b 6a |else if(| Types[j|
|000056d0| 5d 20 3d 3d 20 47 41 44 | 5f 46 4f 4e 54 20 29 0a |] == GAD|_FONT ).|
|000056e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000056f0| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{. | |
|00005700| 20 20 20 20 20 20 44 6f | 4d 65 74 68 6f 64 28 20 | Do|Method( |
|00005710| 4f 62 6a 65 63 74 73 5b | 69 5d 2c 20 47 52 4d 5f |Objects[|i], GRM_|
|00005720| 41 44 44 4d 45 4d 42 45 | 52 2c 20 4f 62 6a 65 63 |ADDMEMBE|R, Objec|
|00005730| 74 73 5b 6a 5d 2c 0a 20 | 20 20 20 20 20 20 20 20 |ts[j],. | |
|00005740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005750| 20 20 20 20 4c 47 4f 5f | 57 65 69 67 68 74 2c 20 | LGO_|Weight, |
|00005760| 32 30 2c 20 54 41 47 5f | 45 4e 44 20 29 3b 0a 20 |20, TAG_|END );. |
|00005770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005780| 20 20 20 44 6f 4d 65 74 | 68 6f 64 28 20 4f 62 6a | DoMet|hod( Obj|
|00005790| 65 63 74 73 5b 69 5d 2c | 20 47 52 4d 5f 41 44 44 |ects[i],| GRM_ADD|
|000057a0| 4d 45 4d 42 45 52 2c 20 | 49 6e 64 69 63 73 5b 6a |MEMBER, |Indics[j|
|000057b0| 5d 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |],. | |
|000057c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057d0| 4c 47 4f 5f 57 65 69 67 | 68 74 2c 20 38 30 2c 20 |LGO_Weig|ht, 80, |
|000057e0| 54 41 47 5f 45 4e 44 20 | 29 3b 0a 20 20 20 20 20 |TAG_END |);. |
|000057f0| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 | | }. |
|00005800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 | | els|
|00005810| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e. | |
|00005820| 20 20 20 20 20 20 66 6f | 72 28 20 6a 20 3d 20 4c | fo|r( j = L|
|00005830| 61 73 74 4e 6f 6e 47 72 | 70 20 2b 20 31 3b 20 6a |astNonGr|p + 1; j|
|00005840| 20 3c 20 69 3b 20 6a 2b | 2b 20 29 0a 20 20 20 20 | < i; j+|+ ). |
|00005850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005860| 20 20 20 20 44 6f 4d 65 | 74 68 6f 64 28 20 4f 62 | DoMe|thod( Ob|
|00005870| 6a 65 63 74 73 5b 69 5d | 2c 20 47 52 4d 5f 41 44 |jects[i]|, GRM_AD|
|00005880| 44 4d 45 4d 42 45 52 2c | 20 4f 62 6a 65 63 74 73 |DMEMBER,| Objects|
|00005890| 5b 6a 5d 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |[j],. | |
|000058a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000058b0| 20 20 20 20 20 20 54 41 | 47 5f 45 4e 44 20 29 3b | TA|G_END );|
|000058c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 20 20 |. | } |
|000058d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 20 20 | | . |
|000058e0| 20 20 20 20 20 20 20 20 | 20 20 4c 61 73 74 4e 6f | | LastNo|
|000058f0| 6e 47 72 70 20 3d 20 69 | 2b 31 3b 0a 20 20 20 20 |nGrp = i|+1;. |
|00005900| 20 20 20 20 20 20 20 20 | 44 6f 4d 65 74 68 6f 64 | |DoMethod|
|00005910| 28 20 56 65 72 74 47 72 | 6f 75 70 2c 20 47 52 4d |( VertGr|oup, GRM|
|00005920| 5f 41 44 44 4d 45 4d 42 | 45 52 2c 20 4f 62 6a 65 |_ADDMEMB|ER, Obje|
|00005930| 63 74 73 5b 69 5d 2c 20 | 54 41 47 5f 45 4e 44 20 |cts[i], |TAG_END |
|00005940| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 62 |);. | b|
|00005950| 72 65 61 6b 3b 0a 20 20 | 20 20 20 20 20 20 64 65 |reak;. | de|
|00005960| 66 61 75 6c 74 3a 0a 20 | 20 20 20 20 20 20 20 20 |fault:. | |
|00005970| 20 20 20 62 72 65 61 6b | 3b 0a 20 20 20 20 20 20 | break|;. |
|00005980| 20 20 7d 0a 20 20 20 20 | 7d 0a 20 20 20 20 0a 20 | }. |}. . |
|00005990| 20 20 20 69 66 28 20 44 | 65 73 63 72 69 70 20 29 | if( D|escrip )|
|000059a0| 0a 20 20 20 20 7b 0a 20 | 20 20 20 20 20 20 20 43 |. {. | C|
|000059b0| 6c 6f 73 65 28 20 44 65 | 73 63 72 69 70 20 29 3b |lose( De|scrip );|
|000059c0| 0a 20 20 20 20 20 20 20 | 20 44 65 73 63 72 69 70 |. | Descrip|
|000059d0| 20 3d 20 30 4c 3b 0a 20 | 20 20 20 7d 0a 0a 20 20 | = 0L;. | }.. |
|000059e0| 20 20 69 66 28 20 21 4d | 6f 64 75 6c 65 4f 62 6a | if( !M|oduleObj|
|000059f0| 20 29 0a 20 20 20 20 20 | 20 20 20 67 6f 74 6f 20 | ). | goto |
|00005a00| 50 52 45 4a 41 49 4c 3b | 0a 0a 20 20 20 20 69 66 |PREJAIL;|.. if|
|00005a10| 28 20 44 69 73 70 49 44 | 20 21 3d 20 2d 31 20 29 |( DispID| != -1 )|
|00005a20| 0a 20 20 20 20 7b 0a 20 | 20 20 20 20 20 20 20 43 |. {. | C|
|00005a30| 74 72 6c 47 72 70 20 3d | 20 48 47 72 6f 75 70 4f |trlGrp =| HGroupO|
|00005a40| 62 6a 65 63 74 2c 20 53 | 70 61 63 69 6e 67 28 20 |bject, S|pacing( |
|00005a50| 33 20 29 2c 0a 20 20 20 | 20 20 20 20 20 53 74 61 |3 ),. | Sta|
|00005a60| 72 74 4d 65 6d 62 65 72 | 2c 20 53 61 76 65 42 74 |rtMember|, SaveBt|
|00005a70| 6e 20 3d 20 4b 65 79 42 | 75 74 74 6f 6e 28 20 22 |n = KeyB|utton( "|
|00005a80| 5f 53 61 76 65 22 2c 20 | 49 44 5f 53 41 56 45 20 |_Save", |ID_SAVE |
|00005a90| 29 2c 20 45 6e 64 4d 65 | 6d 62 65 72 2c 0a 20 20 |), EndMe|mber,. |
|00005aa0| 20 20 20 20 20 20 53 74 | 61 72 74 4d 65 6d 62 65 | St|artMembe|
|00005ab0| 72 2c 20 54 65 73 74 42 | 74 6e 20 3d 20 4b 65 79 |r, TestB|tn = Key|
|00005ac0| 42 75 74 74 6f 6e 28 20 | 22 5f 54 65 73 74 22 2c |Button( |"_Test",|
|00005ad0| 20 49 44 5f 54 45 53 54 | 20 29 2c 20 45 6e 64 4d | ID_TEST| ), EndM|
|00005ae0| 65 6d 62 65 72 2c 0a 20 | 20 20 20 20 20 20 20 53 |ember,. | S|
|00005af0| 74 61 72 74 4d 65 6d 62 | 65 72 2c 20 44 69 73 70 |tartMemb|er, Disp|
|00005b00| 6c 61 79 42 74 6e 20 3d | 20 4b 65 79 42 75 74 74 |layBtn =| KeyButt|
|00005b10| 6f 6e 28 20 22 5f 44 69 | 73 70 6c 61 79 22 2c 20 |on( "_Di|splay", |
|00005b20| 44 69 73 70 49 44 20 29 | 2c 20 45 6e 64 4d 65 6d |DispID )|, EndMem|
|00005b30| 62 65 72 2c 0a 20 20 20 | 20 20 20 20 20 53 74 61 |ber,. | Sta|
|00005b40| 72 74 4d 65 6d 62 65 72 | 2c 20 43 61 6e 63 65 6c |rtMember|, Cancel|
|00005b50| 42 74 6e 20 3d 20 4b 65 | 79 42 75 74 74 6f 6e 28 |Btn = Ke|yButton(|
|00005b60| 20 22 5f 43 61 6e 63 65 | 6c 22 2c 20 49 44 5f 43 | "_Cance|l", ID_C|
|00005b70| 41 4e 43 45 4c 20 29 2c | 20 45 6e 64 4d 65 6d 62 |ANCEL ),| EndMemb|
|00005b80| 65 72 2c 0a 20 20 20 20 | 20 20 20 20 45 6e 64 4f |er,. | EndO|
|00005b90| 62 6a 65 63 74 3b 0a 20 | 20 20 20 7d 0a 20 20 20 |bject;. | }. |
|00005ba0| 20 65 6c 73 65 0a 20 20 | 20 20 7b 0a 20 20 20 20 | else. | {. |
|00005bb0| 20 20 20 20 43 74 72 6c | 47 72 70 20 3d 20 48 47 | Ctrl|Grp = HG|
|00005bc0| 72 6f 75 70 4f 62 6a 65 | 63 74 2c 20 53 70 61 63 |roupObje|ct, Spac|
|00005bd0| 69 6e 67 28 20 33 20 29 | 2c 0a 20 20 20 20 20 20 |ing( 3 )|,. |
|00005be0| 20 20 53 74 61 72 74 4d | 65 6d 62 65 72 2c 20 53 | StartM|ember, S|
|00005bf0| 61 76 65 42 74 6e 20 3d | 20 4b 65 79 42 75 74 74 |aveBtn =| KeyButt|
|00005c00| 6f 6e 28 20 22 5f 53 61 | 76 65 22 2c 20 49 44 5f |on( "_Sa|ve", ID_|
|00005c10| 53 41 56 45 20 29 2c 20 | 45 6e 64 4d 65 6d 62 65 |SAVE ), |EndMembe|
|00005c20| 72 2c 0a 20 20 20 20 20 | 20 20 20 53 74 61 72 74 |r,. | Start|
|00005c30| 4d 65 6d 62 65 72 2c 20 | 54 65 73 74 42 74 6e 20 |Member, |TestBtn |
|00005c40| 3d 20 4b 65 79 42 75 74 | 74 6f 6e 28 20 22 5f 54 |= KeyBut|ton( "_T|
|00005c50| 65 73 74 22 2c 20 49 44 | 5f 54 45 53 54 20 29 2c |est", ID|_TEST ),|
|00005c60| 20 45 6e 64 4d 65 6d 62 | 65 72 2c 0a 20 20 20 20 | EndMemb|er,. |
|00005c70| 20 20 20 20 53 74 61 72 | 74 4d 65 6d 62 65 72 2c | Star|tMember,|
|00005c80| 20 43 61 6e 63 65 6c 42 | 74 6e 20 3d 20 4b 65 79 | CancelB|tn = Key|
|00005c90| 42 75 74 74 6f 6e 28 20 | 22 5f 43 61 6e 63 65 6c |Button( |"_Cancel|
|00005ca0| 22 2c 20 49 44 5f 43 41 | 4e 43 45 4c 20 29 2c 20 |", ID_CA|NCEL ), |
|00005cb0| 45 6e 64 4d 65 6d 62 65 | 72 2c 0a 20 20 20 20 20 |EndMembe|r,. |
|00005cc0| 20 20 20 45 6e 64 4f 62 | 6a 65 63 74 3b 0a 20 20 | EndOb|ject;. |
|00005cd0| 20 20 7d 0a 20 20 20 20 | 44 6f 4d 65 74 68 6f 64 | }. |DoMethod|
|00005ce0| 28 20 56 65 72 74 47 72 | 6f 75 70 2c 20 47 52 4d |( VertGr|oup, GRM|
|00005cf0| 5f 41 44 44 4d 45 4d 42 | 45 52 2c 20 43 74 72 6c |_ADDMEMB|ER, Ctrl|
|00005d00| 47 72 70 2c 20 54 41 47 | 5f 45 4e 44 20 29 3b 0a |Grp, TAG|_END );.|
|00005d10| 0a 20 20 20 20 47 61 64 | 67 65 74 4b 65 79 28 20 |. Gad|getKey( |
|00005d20| 4d 6f 64 75 6c 65 4f 62 | 6a 2c 20 53 61 76 65 42 |ModuleOb|j, SaveB|
|00005d30| 74 6e 2c 20 22 73 22 20 | 29 3b 0a 20 20 20 20 47 |tn, "s" |);. G|
|00005d40| 61 64 67 65 74 4b 65 79 | 28 20 4d 6f 64 75 6c 65 |adgetKey|( Module|
|00005d50| 4f 62 6a 2c 20 54 65 73 | 74 42 74 6e 2c 20 22 74 |Obj, Tes|tBtn, "t|
|00005d60| 22 20 29 3b 0a 20 20 20 | 20 69 66 28 20 44 69 73 |" );. | if( Dis|
|00005d70| 70 49 44 20 21 3d 20 2d | 31 20 29 0a 20 20 20 20 |pID != -|1 ). |
|00005d80| 20 20 20 20 47 61 64 67 | 65 74 4b 65 79 28 20 4d | Gadg|etKey( M|
|00005d90| 6f 64 75 6c 65 4f 62 6a | 2c 20 44 69 73 70 6c 61 |oduleObj|, Displa|
|00005da0| 79 42 74 6e 2c 20 22 64 | 22 20 29 3b 0a 20 20 20 |yBtn, "d|" );. |
|00005db0| 20 47 61 64 67 65 74 4b | 65 79 28 20 4d 6f 64 75 | GadgetK|ey( Modu|
|00005dc0| 6c 65 4f 62 6a 2c 20 43 | 61 6e 63 65 6c 42 74 6e |leObj, C|ancelBtn|
|00005dd0| 2c 20 22 63 22 20 29 3b | 0a 20 20 20 20 0a 20 20 |, "c" );|. . |
|00005de0| 20 20 66 6f 72 28 20 69 | 20 3d 20 30 3b 20 69 20 | for( i| = 0; i |
|00005df0| 3c 20 4e 75 6d 47 61 64 | 67 65 74 73 3b 20 69 2b |< NumGad|gets; i+|
|00005e00| 2b 20 29 0a 20 20 20 20 | 7b 0a 20 20 20 20 20 20 |+ ). |{. |
|00005e10| 20 20 73 77 69 74 63 68 | 28 20 54 79 70 65 73 5b | switch|( Types[|
|00005e20| 69 5d 20 29 0a 20 20 20 | 20 20 20 20 20 7b 0a 20 |i] ). | {. |
|00005e30| 20 20 20 20 20 20 20 63 | 61 73 65 20 47 41 44 5f | c|ase GAD_|
|00005e40| 53 4c 49 44 45 52 3a 0a | 20 20 20 20 20 20 20 20 |SLIDER:.| |
|00005e50| 20 20 20 20 41 64 64 4d | 61 70 28 20 4f 62 6a 65 | AddM|ap( Obje|
|00005e60| 63 74 73 5b 69 5d 2c 20 | 49 6e 64 69 63 73 5b 69 |cts[i], |Indics[i|
|00005e70| 5d 2c 20 4d 61 70 20 29 | 3b 0a 20 20 20 20 20 20 |], Map )|;. |
|00005e80| 20 20 63 61 73 65 20 47 | 41 44 5f 43 59 43 4c 45 | case G|AD_CYCLE|
|00005e90| 3a 0a 20 20 20 20 20 20 | 20 20 63 61 73 65 20 47 |:. | case G|
|00005ea0| 41 44 5f 53 54 52 49 4e | 47 3a 0a 20 20 20 20 20 |AD_STRIN|G:. |
|00005eb0| 20 20 20 20 20 20 20 47 | 61 64 67 65 74 4b 65 79 | G|adgetKey|
|00005ec0| 28 20 4d 6f 64 75 6c 65 | 4f 62 6a 2c 20 4f 62 6a |( Module|Obj, Obj|
|00005ed0| 65 63 74 73 5b 69 5d 2c | 20 4b 65 79 53 74 72 73 |ects[i],| KeyStrs|
|00005ee0| 5b 69 5d 20 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |[i] );. | |
|00005ef0| 20 20 20 62 72 65 61 6b | 3b 0a 20 20 20 20 20 20 | break|;. |
|00005f00| 20 20 63 61 73 65 20 47 | 41 44 5f 46 4f 4e 54 3a | case G|AD_FONT:|
|00005f10| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 47 61 64 |. | Gad|
|00005f20| 67 65 74 4b 65 79 28 20 | 4d 6f 64 75 6c 65 4f 62 |getKey( |ModuleOb|
|00005f30| 6a 2c 20 4f 62 6a 65 63 | 74 73 5b 69 5d 2c 20 22 |j, Objec|ts[i], "|
|00005f40| 66 22 20 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |f" );. | |
|00005f50| 20 20 62 72 65 61 6b 3b | 0a 20 20 20 20 20 20 20 | break;|. |
|00005f60| 20 64 65 66 61 75 6c 74 | 3a 0a 20 20 20 20 20 20 | default|:. |
|00005f70| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0a 20 20 20 | br|eak;. |
|00005f80| 20 20 20 20 20 7d 0a 20 | 20 20 20 7d 0a 20 20 20 | }. | }. |
|00005f90| 20 4d 6f 64 75 6c 65 57 | 6e 64 20 3d 20 57 69 6e | ModuleW|nd = Win|
|00005fa0| 64 6f 77 4f 70 65 6e 28 | 20 4d 6f 64 75 6c 65 4f |dowOpen(| ModuleO|
|00005fb0| 62 6a 20 29 3b 0a 20 20 | 20 20 47 65 74 41 74 74 |bj );. | GetAtt|
|00005fc0| 72 28 20 57 49 4e 44 4f | 57 5f 53 69 67 4d 61 73 |r( WINDO|W_SigMas|
|00005fd0| 6b 2c 20 4d 6f 64 75 6c | 65 4f 62 6a 2c 20 26 4d |k, Modul|eObj, &M|
|00005fe0| 6f 64 75 6c 65 53 69 67 | 73 20 29 3b 0a 0a 20 20 |oduleSig|s );.. |
|00005ff0| 20 20 77 68 69 6c 65 28 | 20 4d 6f 64 75 6c 65 4f | while(| ModuleO|
|00006000| 62 6a 20 26 26 20 4d 6f | 64 75 6c 65 53 69 67 73 |bj && Mo|duleSigs|
|00006010| 20 29 0a 20 20 20 20 7b | 0a 20 20 20 20 20 20 20 | ). {|. |
|00006020| 20 53 69 67 73 20 3d 20 | 57 61 69 74 28 20 4d 6f | Sigs = |Wait( Mo|
|00006030| 64 75 6c 65 53 69 67 73 | 20 7c 28 20 31 4c 20 3c |duleSigs| |( 1L <|
|00006040| 3c 20 52 65 70 6c 79 50 | 6f 72 74 2d 3e 6d 70 5f |< ReplyP|ort->mp_|
|00006050| 53 69 67 42 69 74 20 29 | 7c 0a 20 20 20 20 20 20 |SigBit )||. |
|00006060| 20 20 20 20 20 20 53 49 | 47 42 52 45 41 4b 46 5f | SI|GBREAKF_|
|00006070| 43 54 52 4c 5f 43 20 29 | 3b 0a 20 20 20 20 20 20 |CTRL_C )|;. |
|00006080| 20 20 0a 20 20 20 20 20 | 20 20 20 69 66 28 20 53 | . | if( S|
|00006090| 69 67 73 20 26 20 28 20 | 31 4c 20 3c 3c 20 52 65 |igs & ( |1L << Re|
|000060a0| 70 6c 79 50 6f 72 74 2d | 3e 6d 70 5f 53 69 67 42 |plyPort-|>mp_SigB|
|000060b0| 69 74 20 29 29 0a 20 20 | 20 20 20 20 20 20 7b 0a |it )). | {.|
|000060c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 42 6c 61 6e | | Blan|
|000060d0| 6b 4d 73 67 20 2a 46 72 | 65 65 4d 65 3b 0a 0a 20 |kMsg *Fr|eeMe;.. |
|000060e0| 20 20 20 20 20 20 20 20 | 20 20 20 77 68 69 6c 65 | | while|
|000060f0| 28 20 46 72 65 65 4d 65 | 20 3d 20 28 20 42 6c 61 |( FreeMe| = ( Bla|
|00006100| 6e 6b 4d 73 67 20 2a 20 | 29 47 65 74 4d 73 67 28 |nkMsg * |)GetMsg(|
|00006110| 20 52 65 70 6c 79 50 6f | 72 74 20 29 29 0a 20 20 | ReplyPo|rt )). |
|00006120| 20 20 20 20 20 20 20 20 | 20 20 7b 0a 20 20 20 20 | | {. |
|00006130| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 77 69 74 | | swit|
|00006140| 63 68 28 20 46 72 65 65 | 4d 65 2d 3e 62 6d 5f 54 |ch( Free|Me->bm_T|
|00006150| 79 70 65 20 29 0a 20 20 | 20 20 20 20 20 20 20 20 |ype ). | |
|00006160| 20 20 20 20 20 20 7b 0a | 20 20 20 20 20 20 20 20 | {.| |
|00006170| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 42 4d 5f | |case BM_|
|00006180| 44 4f 51 55 49 54 3a 0a | 20 20 20 20 20 20 20 20 |DOQUIT:.| |
|00006190| 20 20 20 20 20 20 20 20 | 20 20 20 20 46 72 65 65 | | Free|
|000061a0| 4d 65 2d 3e 62 6d 5f 46 | 6c 61 67 73 20 7c 3d 20 |Me->bm_F|lags |= |
|000061b0| 42 46 5f 52 45 50 4c 59 | 3b 0a 20 20 20 20 20 20 |BF_REPLY|;. |
|000061c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 52 65 | | Re|
|000061d0| 70 6c 79 4d 73 67 28 28 | 20 73 74 72 75 63 74 20 |plyMsg((| struct |
|000061e0| 4d 65 73 73 61 67 65 20 | 2a 20 29 46 72 65 65 4d |Message |* )FreeM|
|000061f0| 65 20 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |e );. | |
|00006200| 20 20 20 20 20 20 20 20 | 20 4d 6f 64 75 6c 65 53 | | ModuleS|
|00006210| 69 67 73 20 3d 20 30 4c | 3b 0a 20 20 20 20 20 20 |igs = 0L|;. |
|00006220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 | | br|
|00006230| 65 61 6b 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |eak;. | |
|00006240| 20 20 20 20 20 63 61 73 | 65 20 42 4d 5f 52 45 4c | cas|e BM_REL|
|00006250| 4f 41 44 50 52 45 46 53 | 3a 0a 20 20 20 20 20 20 |OADPREFS|:. |
|00006260| 20 20 20 20 20 20 20 20 | 20 20 63 61 73 65 20 42 | | case B|
|00006270| 4d 5f 53 45 4e 44 54 45 | 53 54 3a 0a 20 20 20 20 |M_SENDTE|ST:. |
|00006280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006290| 46 72 65 65 50 6f 6f 6c | 65 64 28 20 4d 65 6d 6f |FreePool|ed( Memo|
|000062a0| 72 79 2c 20 46 72 65 65 | 4d 65 2c 20 73 69 7a 65 |ry, Free|Me, size|
|000062b0| 6f 66 28 20 42 6c 61 6e | 6b 4d 73 67 20 29 29 3b |of( Blan|kMsg ));|
|000062c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000062d0| 20 20 20 20 20 62 72 65 | 61 6b 3b 0a 20 20 20 20 | bre|ak;. |
|000062e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0a 20 20 | | }. |
|000062f0| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 | | }. |
|00006300| 20 20 20 20 7d 0a 0a 20 | 20 20 20 20 20 20 20 69 | }.. | i|
|00006310| 66 28 20 53 69 67 73 20 | 26 20 53 49 47 42 52 45 |f( Sigs |& SIGBRE|
|00006320| 41 4b 46 5f 43 54 52 4c | 5f 43 20 29 0a 20 20 20 |AKF_CTRL|_C ). |
|00006330| 20 20 20 20 20 7b 0a 20 | 20 20 20 20 20 20 20 20 | {. | |
|00006340| 20 20 20 4d 6f 64 75 6c | 65 53 69 67 73 20 3d 20 | Modul|eSigs = |
|00006350| 30 4c 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |0L;. | |
|00006360| 62 72 65 61 6b 3b 0a 20 | 20 20 20 20 20 20 20 7d |break;. | }|
|00006370| 0a 20 20 20 20 20 20 20 | 20 0a 20 20 20 20 20 20 |. | . |
|00006380| 20 20 64 6f 0a 20 20 20 | 20 20 20 20 20 7b 0a 20 | do. | {. |
|00006390| 20 20 20 20 20 20 20 20 | 20 20 20 73 77 69 74 63 | | switc|
|000063a0| 68 28 20 72 63 20 3d 20 | 48 61 6e 64 6c 65 45 76 |h( rc = |HandleEv|
|000063b0| 65 6e 74 28 20 4d 6f 64 | 75 6c 65 4f 62 6a 20 29 |ent( Mod|uleObj )|
|000063c0| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0a |). | {.|
|000063d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 73 65 | | case|
|000063e0| 20 49 44 5f 53 41 56 45 | 3a 0a 20 20 20 20 20 20 | ID_SAVE|:. |
|000063f0| 20 20 20 20 20 20 20 20 | 20 20 69 66 28 20 54 6d | | if( Tm|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.