home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / Bowers Development / AppMaker 2.1.sit / AppMaker 2.1 / Examples / PowerPlant / AMReminder / CMainWindow.cp < prev    next >
MacBinary  |  1997-07-02  |  5.4 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: CMainWindow.cp

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Wed Jul 2 15:57:29 1997, modified Wed Jul 2 15:57:29 1997, creator 'CWIE', type ASCII, 4927 bytes "CMainWindow.cp" , at 0x13bf 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 43 4d 61 69 6e 57 | 69 6e 64 6f 77 2e 63 70 |..CMainW|indow.cp|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 13 3f 00 | 00 01 1e af e0 63 29 af |......?.|.....c).|
|00000060| e0 63 29 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c).....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 49 c4 00 00 |........|....I...|
|00000080| 2f 2f 20 43 4d 61 69 6e | 57 69 6e 64 6f 77 2e 63 |// CMain|Window.c|
|00000090| 70 20 2d 2d 20 77 69 6e | 64 6f 77 20 6d 65 74 68 |p -- win|dow meth|
|000000a0| 6f 64 73 0d 2f 2f 20 43 | 72 65 61 74 65 64 20 37 |ods.// C|reated 7|
|000000b0| 2f 32 2f 39 37 20 33 3a | 35 37 20 50 4d 20 62 79 |/2/97 3:|57 PM by|
|000000c0| 20 41 70 70 4d 61 6b 65 | 72 0d 0d 23 69 6e 63 6c | AppMake|r..#incl|
|000000d0| 75 64 65 20 22 43 4d 61 | 69 6e 57 69 6e 64 6f 77 |ude "CMa|inWindow|
|000000e0| 2e 68 22 0d 0d 23 69 6e | 63 6c 75 64 65 20 3c 55 |.h"..#in|clude <U|
|000000f0| 52 65 61 6e 69 6d 61 74 | 6f 72 2e 68 3e 0d 23 69 |Reanimat|or.h>.#i|
|00000100| 6e 63 6c 75 64 65 20 3c | 55 52 65 67 69 73 74 72 |nclude <|URegistr|
|00000110| 61 72 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ar.h>.#i|nclude <|
|00000120| 4c 53 74 72 65 61 6d 2e | 68 3e 0d 23 69 6e 63 6c |LStream.|h>.#incl|
|00000130| 75 64 65 20 3c 4c 54 65 | 78 74 54 61 62 6c 65 56 |ude <LTe|xtTableV|
|00000140| 69 65 77 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |iew.h>.#|include |
|00000150| 3c 4c 43 65 6c 6c 53 69 | 7a 65 54 6f 46 69 74 2e |<LCellSi|zeToFit.|
|00000160| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 4c 54 65 |h>.#incl|ude <LTe|
|00000170| 78 74 41 72 72 61 79 2e | 68 3e 0d 23 69 6e 63 6c |xtArray.|h>.#incl|
|00000180| 75 64 65 20 3c 4c 54 61 | 62 6c 65 41 72 72 61 79 |ude <LTa|bleArray|
|00000190| 53 74 6f 72 61 67 65 2e | 68 3e 0d 23 69 6e 63 6c |Storage.|h>.#incl|
|000001a0| 75 64 65 20 3c 4c 54 61 | 62 6c 65 4d 6f 6e 6f 47 |ude <LTa|bleMonoG|
|000001b0| 65 6f 6d 65 74 72 79 2e | 68 3e 0d 23 69 6e 63 6c |eometry.|h>.#incl|
|000001c0| 75 64 65 20 3c 4c 54 61 | 62 6c 65 53 69 6e 67 6c |ude <LTa|bleSingl|
|000001d0| 65 53 65 6c 65 63 74 6f | 72 2e 68 3e 0d 23 69 6e |eSelecto|r.h>.#in|
|000001e0| 63 6c 75 64 65 20 3c 4c | 53 74 64 43 6f 6e 74 72 |clude <L|StdContr|
|000001f0| 6f 6c 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ol.h>.#i|nclude "|
|00000200| 43 41 4d 52 65 6d 69 6e | 64 65 72 44 61 74 61 2e |CAMRemin|derData.|
|00000210| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 44 52 65 |h".#incl|ude "DRe|
|00000220| 6d 69 6e 64 65 72 2e 68 | 22 0d 23 69 6e 63 6c 75 |minder.h|".#inclu|
|00000230| 64 65 20 22 44 44 6f 63 | 44 61 74 61 2e 68 22 0d |de "DDoc|Data.h".|
|00000240| 23 69 6e 63 6c 75 64 65 | 20 22 43 41 64 64 2e 68 |#include| "CAdd.h|
|00000250| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 41 4d 52 65 |".#inclu|de "AMRe|
|00000260| 6d 69 6e 64 65 72 43 6d | 64 73 2e 68 22 0d 0d 23 |minderCm|ds.h"..#|
|00000270| 64 65 66 69 6e 65 20 50 | 50 6f 62 5f 4d 61 69 6e |define P|Pob_Main|
|00000280| 57 69 6e 64 6f 77 49 44 | 09 32 30 31 0d 23 64 65 |WindowID|.201.#de|
|00000290| 66 69 6e 65 20 52 69 64 | 4c 5f 4d 61 69 6e 57 69 |fine Rid|L_MainWi|
|000002a0| 6e 64 6f 77 49 44 09 32 | 30 31 0d 0d 42 6f 6f 6c |ndowID.2|01..Bool|
|000002b0| 65 61 6e 09 09 43 4d 61 | 69 6e 57 69 6e 64 6f 77 |ean..CMa|inWindow|
|000002c0| 3a 3a 73 49 73 52 65 67 | 69 73 74 65 72 65 64 20 |::sIsReg|istered |
|000002d0| 3d 20 66 61 6c 73 65 3b | 0d 0d 2f 2f 2d 2d 2d 2d |= false;|..//----|
|000002e0| 2d 2d 2d 2d 2d 2d 0d 43 | 4d 61 69 6e 57 69 6e 64 |------.C|MainWind|
|000002f0| 6f 77 2a 0d 43 4d 61 69 | 6e 57 69 6e 64 6f 77 3a |ow*.CMai|nWindow:|
|00000300| 3a 43 72 65 61 74 65 4d | 61 69 6e 57 69 6e 64 6f |:CreateM|ainWindo|
|00000310| 77 28 0d 09 4c 43 6f 6d | 6d 61 6e 64 65 72 2a 09 |w(..LCom|mander*.|
|00000320| 09 09 69 6e 53 75 70 65 | 72 43 6f 6d 6d 61 6e 64 |..inSupe|rCommand|
|00000330| 65 72 2c 0d 09 43 41 4d | 52 65 6d 69 6e 64 65 72 |er,..CAM|Reminder|
|00000340| 44 61 74 61 2a 09 09 69 | 6e 44 61 74 61 29 0d 7b |Data*..i|nData).{|
|00000350| 0d 09 69 66 20 28 21 73 | 49 73 52 65 67 69 73 74 |..if (!s|IsRegist|
|00000360| 65 72 65 64 29 20 7b 0d | 09 09 52 65 67 69 73 74 |ered) {.|..Regist|
|00000370| 65 72 43 6c 61 73 73 20 | 28 29 3b 0d 09 7d 0d 0d |erClass |();..}..|
|00000380| 09 43 4d 61 69 6e 57 69 | 6e 64 6f 77 2a 09 09 77 |.CMainWi|ndow*..w|
|00000390| 69 6e 64 6f 77 3b 0d 09 | 77 69 6e 64 6f 77 20 3d |indow;..|window =|
|000003a0| 20 28 43 4d 61 69 6e 57 | 69 6e 64 6f 77 20 2a 29 | (CMainW|indow *)|
|000003b0| 4c 57 69 6e 64 6f 77 3a | 3a 43 72 65 61 74 65 57 |LWindow:|:CreateW|
|000003c0| 69 6e 64 6f 77 28 50 50 | 6f 62 5f 4d 61 69 6e 57 |indow(PP|ob_MainW|
|000003d0| 69 6e 64 6f 77 49 44 2c | 20 69 6e 53 75 70 65 72 |indowID,| inSuper|
|000003e0| 43 6f 6d 6d 61 6e 64 65 | 72 29 3b 0d 09 77 69 6e |Commande|r);..win|
|000003f0| 64 6f 77 2d 3e 43 6f 6e | 6e 65 63 74 54 6f 44 61 |dow->Con|nectToDa|
|00000400| 74 61 20 28 69 6e 44 61 | 74 61 29 3b 0d 09 72 65 |ta (inDa|ta);..re|
|00000410| 74 75 72 6e 20 77 69 6e | 64 6f 77 3b 0d 7d 0d 0d |turn win|dow;.}..|
|00000420| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 76 6f 69 |//------|----.voi|
|00000430| 64 0d 43 4d 61 69 6e 57 | 69 6e 64 6f 77 3a 3a 52 |d.CMainW|indow::R|
|00000440| 65 67 69 73 74 65 72 43 | 6c 61 73 73 20 28 29 0d |egisterC|lass ().|
|00000450| 7b 0d 09 52 65 67 69 73 | 74 65 72 43 6c 61 73 73 |{..Regis|terClass|
|00000460| 5f 28 43 4d 61 69 6e 57 | 69 6e 64 6f 77 29 3b 0d |_(CMainW|indow);.|
|00000470| 0d 09 2f 2f 20 72 65 67 | 69 73 74 65 72 20 74 68 |..// reg|ister th|
|00000480| 65 20 70 61 6e 65 20 63 | 6c 61 73 73 65 73 20 77 |e pane c|lasses w|
|00000490| 65 20 75 73 65 0d 09 52 | 65 67 69 73 74 65 72 43 |e use..R|egisterC|
|000004a0| 6c 61 73 73 5f 28 4c 50 | 69 63 74 75 72 65 29 3b |lass_(LP|icture);|
|000004b0| 0d 09 52 65 67 69 73 74 | 65 72 43 6c 61 73 73 5f |..Regist|erClass_|
|000004c0| 28 4c 43 61 70 74 69 6f | 6e 29 3b 0d 09 52 65 67 |(LCaptio|n);..Reg|
|000004d0| 69 73 74 65 72 43 6c 61 | 73 73 5f 28 4c 53 63 72 |isterCla|ss_(LScr|
|000004e0| 6f 6c 6c 65 72 29 3b 0d | 09 52 65 67 69 73 74 65 |oller);.|.Registe|
|000004f0| 72 43 6c 61 73 73 5f 28 | 4c 54 65 78 74 54 61 62 |rClass_(|LTextTab|
|00000500| 6c 65 56 69 65 77 29 3b | 0d 09 52 65 67 69 73 74 |leView);|..Regist|
|00000510| 65 72 43 6c 61 73 73 5f | 28 4c 53 74 64 42 75 74 |erClass_|(LStdBut|
|00000520| 74 6f 6e 29 3b 0d 0d 09 | 73 49 73 52 65 67 69 73 |ton);...|sIsRegis|
|00000530| 74 65 72 65 64 20 3d 20 | 74 72 75 65 3b 0d 7d 0d |tered = |true;.}.|
|00000540| 0d 2f 2f 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 43 4d |.//-----|-----.CM|
|00000550| 61 69 6e 57 69 6e 64 6f | 77 3a 3a 43 4d 61 69 6e |ainWindo|w::CMain|
|00000560| 57 69 6e 64 6f 77 20 28 | 0d 09 4c 53 74 72 65 61 |Window (|..LStrea|
|00000570| 6d 2a 09 69 6e 53 74 72 | 65 61 6d 29 0d 09 3a 20 |m*.inStr|eam)..: |
|00000580| 4c 57 69 6e 64 6f 77 20 | 28 69 6e 53 74 72 65 61 |LWindow |(inStrea|
|00000590| 6d 29 0d 7b 0d 7d 0d 0d | 2f 2f 2d 2d 2d 2d 2d 2d |m).{.}..|//------|
|000005a0| 2d 2d 2d 2d 0d 43 4d 61 | 69 6e 57 69 6e 64 6f 77 |----.CMa|inWindow|
|000005b0| 3a 3a 7e 43 4d 61 69 6e | 57 69 6e 64 6f 77 28 29 |::~CMain|Window()|
|000005c0| 0d 7b 0d 7d 0d 0d 2f 2f | 2d 2d 2d 2d 2d 2d 2d 2d |.{.}..//|--------|
|000005d0| 2d 2d 0d 2f 2f 09 54 68 | 69 73 20 6d 65 6d 62 65 |--.//.Th|is membe|
|000005e0| 72 20 66 75 6e 63 74 69 | 6f 6e 20 67 65 74 73 20 |r functi|on gets |
|000005f0| 63 61 6c 6c 65 64 20 6f | 6e 63 65 20 74 68 65 20 |called o|nce the |
|00000600| 63 6f 6e 74 61 69 6e 6d | 65 6e 74 20 68 69 65 72 |containm|ent hier|
|00000610| 61 72 63 68 79 20 74 68 | 61 74 20 63 6f 6e 74 61 |archy th|at conta|
|00000620| 69 6e 73 0d 2f 2f 09 74 | 68 69 73 20 70 61 6e 65 |ins.//.t|his pane|
|00000630| 20 68 61 73 20 62 65 65 | 6e 20 62 75 69 6c 74 2e | has bee|n built.|
|00000640| 20 49 74 20 67 69 76 65 | 73 20 75 73 20 61 20 63 | It give|s us a c|
|00000650| 68 61 6e 63 65 20 74 6f | 20 67 65 74 20 64 61 74 |hance to| get dat|
|00000660| 61 20 6d 65 6d 62 65 72 | 73 20 66 6f 72 0d 2f 2f |a member|s for.//|
|00000670| 09 69 6e 74 65 72 65 73 | 74 69 6e 67 20 73 75 62 |.interes|ting sub|
|00000680| 76 69 65 77 73 2c 20 61 | 6e 64 20 74 6f 20 64 6f |views, a|nd to do|
|00000690| 20 6f 74 68 65 72 20 6f | 70 65 72 61 74 69 6f 6e | other o|peration|
|000006a0| 73 20 6e 6f 77 20 74 68 | 61 74 20 6f 75 72 20 73 |s now th|at our s|
|000006b0| 75 62 76 69 65 77 73 20 | 65 78 69 73 74 2e 0d 76 |ubviews |exist..v|
|000006c0| 6f 69 64 0d 43 4d 61 69 | 6e 57 69 6e 64 6f 77 3a |oid.CMai|nWindow:|
|000006d0| 3a 46 69 6e 69 73 68 43 | 72 65 61 74 65 53 65 6c |:FinishC|reateSel|
|000006e0| 66 28 29 0d 7b 0d 09 6d | 52 65 6d 69 6e 64 65 72 |f().{..m|Reminder|
|000006f0| 73 54 61 62 6c 65 20 3d | 20 28 4c 54 65 78 74 54 |sTable =| (LTextT|
|00000700| 61 62 6c 65 56 69 65 77 | 20 2a 29 46 69 6e 64 50 |ableView| *)FindP|
|00000710| 61 6e 65 42 79 49 44 28 | 27 52 65 6d 69 27 29 3b |aneByID(|'Remi');|
|00000720| 0d 09 6d 52 65 6d 69 6e | 64 65 72 73 54 61 62 6c |..mRemin|dersTabl|
|00000730| 65 2d 3e 53 65 74 43 65 | 6c 6c 53 69 7a 65 72 28 |e->SetCe|llSizer(|
|00000740| 6e 65 77 20 4c 43 65 6c | 6c 53 69 7a 65 54 6f 46 |new LCel|lSizeToF|
|00000750| 69 74 28 29 29 3b 0d 09 | 6d 52 65 6d 69 6e 64 65 |it());..|mReminde|
|00000760| 72 73 54 61 62 6c 65 2d | 3e 53 65 74 54 61 62 6c |rsTable-|>SetTabl|
|00000770| 65 47 65 6f 6d 65 74 72 | 79 28 6e 65 77 20 4c 54 |eGeometr|y(new LT|
|00000780| 61 62 6c 65 4d 6f 6e 6f | 47 65 6f 6d 65 74 72 79 |ableMono|Geometry|
|00000790| 28 6d 52 65 6d 69 6e 64 | 65 72 73 54 61 62 6c 65 |(mRemind|ersTable|
|000007a0| 2c 20 0d 09 09 09 09 09 | 09 09 33 34 37 20 2f 2a |, ......|..347 /*|
|000007b0| 20 63 6f 6c 20 77 69 64 | 74 68 20 2a 2f 2c 20 0d | col wid|th */, .|
|000007c0| 09 09 09 09 09 09 09 31 | 34 20 20 2f 2a 20 72 6f |.......1|4 /* ro|
|000007d0| 77 20 68 65 69 67 68 74 | 20 2a 2f 29 29 3b 0d 09 |w height| */));..|
|000007e0| 6d 52 65 6d 69 6e 64 65 | 72 73 54 61 62 6c 65 2d |mReminde|rsTable-|
|000007f0| 3e 53 65 74 54 61 62 6c | 65 53 65 6c 65 63 74 6f |>SetTabl|eSelecto|
|00000800| 72 28 6e 65 77 20 4c 54 | 61 62 6c 65 53 69 6e 67 |r(new LT|ableSing|
|00000810| 6c 65 53 65 6c 65 63 74 | 6f 72 28 6d 52 65 6d 69 |leSelect|or(mRemi|
|00000820| 6e 64 65 72 73 54 61 62 | 6c 65 29 29 3b 0d 2f 2f |ndersTab|le));.//|
|00000830| 20 75 73 65 20 4c 54 65 | 78 74 41 72 72 61 79 20 | use LTe|xtArray |
|00000840| 74 6f 20 63 6f 6e 74 61 | 69 6e 20 6c 69 73 74 20 |to conta|in list |
|00000850| 69 74 65 6d 73 0d 09 4c | 54 65 78 74 41 72 72 61 |items..L|TextArra|
|00000860| 79 2a 20 6d 52 65 6d 69 | 6e 64 65 72 73 54 61 62 |y* mRemi|ndersTab|
|00000870| 6c 65 41 72 72 61 79 20 | 3d 20 6e 65 77 20 4c 54 |leArray |= new LT|
|00000880| 65 78 74 41 72 72 61 79 | 3b 0d 09 2a 6d 52 65 6d |extArray|;..*mRem|
|00000890| 69 6e 64 65 72 73 54 61 | 62 6c 65 41 72 72 61 79 |indersTa|bleArray|
|000008a0| 20 2b 3d 20 22 4f 6e 65 | 22 3b 0d 09 2a 6d 52 65 | += "One|";..*mRe|
|000008b0| 6d 69 6e 64 65 72 73 54 | 61 62 6c 65 41 72 72 61 |mindersT|ableArra|
|000008c0| 79 20 2b 3d 20 22 54 77 | 6f 22 3b 0d 09 2a 6d 52 |y += "Tw|o";..*mR|
|000008d0| 65 6d 69 6e 64 65 72 73 | 54 61 62 6c 65 41 72 72 |eminders|TableArr|
|000008e0| 61 79 20 2b 3d 20 22 54 | 68 72 65 65 22 3b 0d 09 |ay += "T|hree";..|
|000008f0| 2a 6d 52 65 6d 69 6e 64 | 65 72 73 54 61 62 6c 65 |*mRemind|ersTable|
|00000900| 41 72 72 61 79 20 2b 3d | 20 22 49 6e 66 69 6e 69 |Array +=| "Infini|
|00000910| 74 79 22 3b 0d 09 6d 52 | 65 6d 69 6e 64 65 72 73 |ty";..mR|eminders|
|00000920| 54 61 62 6c 65 2d 3e 53 | 65 74 54 61 62 6c 65 53 |Table->S|etTableS|
|00000930| 74 6f 72 61 67 65 28 6e | 65 77 20 4c 54 61 62 6c |torage(n|ew LTabl|
|00000940| 65 41 72 72 61 79 53 74 | 6f 72 61 67 65 28 6d 52 |eArraySt|orage(mR|
|00000950| 65 6d 69 6e 64 65 72 73 | 54 61 62 6c 65 2c 20 6d |eminders|Table, m|
|00000960| 52 65 6d 69 6e 64 65 72 | 73 54 61 62 6c 65 41 72 |Reminder|sTableAr|
|00000970| 72 61 79 29 29 3b 0d 09 | 6d 52 65 6d 69 6e 64 65 |ray));..|mReminde|
|00000980| 72 73 54 61 62 6c 65 2d | 3e 41 64 64 4c 69 73 74 |rsTable-|>AddList|
|00000990| 65 6e 65 72 28 74 68 69 | 73 29 3b 20 20 2f 2f 20 |ener(thi|s); // |
|000009a0| 4c 54 61 62 6c 65 56 69 | 65 77 20 69 73 6e 27 74 |LTableVi|ew isn't|
|000009b0| 20 61 20 63 6f 6e 74 72 | 6f 6c 20 73 6f 20 63 61 | a contr|ol so ca|
|000009c0| 6e 27 74 20 62 65 20 69 | 6e 63 6c 75 64 65 64 20 |n't be i|ncluded |
|000009d0| 69 6e 20 52 69 64 4c 0d | 0d 09 6d 41 64 64 42 75 |in RidL.|..mAddBu|
|000009e0| 74 74 6f 6e 20 3d 20 28 | 4c 53 74 64 42 75 74 74 |tton = (|LStdButt|
|000009f0| 6f 6e 2a 29 46 69 6e 64 | 50 61 6e 65 42 79 49 44 |on*)Find|PaneByID|
|00000a00| 20 28 27 41 64 64 20 27 | 29 3b 0d 09 6d 45 64 69 | ('Add '|);..mEdi|
|00000a10| 74 42 75 74 74 6f 6e 20 | 3d 20 28 4c 53 74 64 42 |tButton |= (LStdB|
|00000a20| 75 74 74 6f 6e 2a 29 46 | 69 6e 64 50 61 6e 65 42 |utton*)F|indPaneB|
|00000a30| 79 49 44 20 28 27 45 64 | 69 74 27 29 3b 0d 09 6d |yID ('Ed|it');..m|
|00000a40| 44 65 6c 65 74 65 42 75 | 74 74 6f 6e 20 3d 20 28 |DeleteBu|tton = (|
|00000a50| 4c 53 74 64 42 75 74 74 | 6f 6e 2a 29 46 69 6e 64 |LStdButt|on*)Find|
|00000a60| 50 61 6e 65 42 79 49 44 | 20 28 27 44 65 6c 65 27 |PaneByID| ('Dele'|
|00000a70| 29 3b 0d 0d 09 55 52 65 | 61 6e 69 6d 61 74 6f 72 |);...URe|animator|
|00000a80| 3a 3a 4c 69 6e 6b 4c 69 | 73 74 65 6e 65 72 54 6f |::LinkLi|stenerTo|
|00000a90| 43 6f 6e 74 72 6f 6c 73 | 28 74 68 69 73 2c 20 74 |Controls|(this, t|
|00000aa0| 68 69 73 2c 20 52 69 64 | 4c 5f 4d 61 69 6e 57 69 |his, Rid|L_MainWi|
|00000ab0| 6e 64 6f 77 49 44 29 3b | 0d 09 09 2f 2f 20 74 68 |ndowID);|...// th|
|00000ac0| 65 20 70 75 72 70 6f 73 | 65 20 69 73 20 74 6f 20 |e purpos|e is to |
|00000ad0| 22 63 6f 6e 6e 65 63 74 | 22 20 73 65 6c 66 20 74 |"connect|" self t|
|00000ae0| 6f 20 77 68 61 74 65 76 | 65 72 20 63 6f 6e 74 72 |o whatev|er contr|
|00000af0| 6f 6c 73 0d 09 09 2f 2f | 20 74 68 61 74 20 77 65 |ols...//| that we|
|00000b00| 20 77 61 6e 74 20 74 6f | 20 22 6c 69 73 74 65 6e | want to| "listen|
|00000b10| 22 20 74 6f 0d 0d 09 2f | 2f 20 61 6e 79 20 61 64 |" to.../|/ any ad|
|00000b20| 64 69 74 69 6f 6e 61 6c | 20 69 6e 69 74 69 61 6c |ditional| initial|
|00000b30| 69 7a 61 74 69 6f 6e 20 | 66 6f 72 20 79 6f 75 72 |ization |for your|
|00000b40| 20 77 69 6e 64 6f 77 3a | 0d 7d 0d 0d 2f 2f 2d 2d | window:|.}..//--|
|00000b50| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 76 6f 69 64 0d 43 4d |--------|.void.CM|
|00000b60| 61 69 6e 57 69 6e 64 6f | 77 3a 3a 43 6f 6e 6e 65 |ainWindo|w::Conne|
|00000b70| 63 74 54 6f 44 61 74 61 | 20 28 0d 09 43 41 4d 52 |ctToData| (..CAMR|
|00000b80| 65 6d 69 6e 64 65 72 44 | 61 74 61 2a 09 09 69 6e |eminderD|ata*..in|
|00000b90| 44 61 74 61 29 0d 7b 0d | 09 6d 44 61 74 61 20 3d |Data).{.|.mData =|
|00000ba0| 20 69 6e 44 61 74 61 3b | 0d 0d 7d 0d 0d 2f 2f 2d | inData;|..}..//-|
|00000bb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 42 6f 6f 6c 65 61 |--------|-.Boolea|
|00000bc0| 6e 0d 43 4d 61 69 6e 57 | 69 6e 64 6f 77 3a 3a 44 |n.CMainW|indow::D|
|00000bd0| 6f 41 64 64 52 65 6d 69 | 6e 64 65 72 09 28 76 6f |oAddRemi|nder.(vo|
|00000be0| 69 64 2a 09 69 6f 50 61 | 72 61 6d 29 0d 7b 0d 09 |id*.ioPa|ram).{..|
|00000bf0| 42 6f 6f 6c 65 61 6e 09 | 09 63 6d 64 48 61 6e 64 |Boolean.|.cmdHand|
|00000c00| 6c 65 64 20 3d 20 74 72 | 75 65 3b 0d 0d 09 44 52 |led = tr|ue;...DR|
|00000c10| 65 6d 69 6e 64 65 72 2a | 09 64 6c 6f 67 44 61 74 |eminder*|.dlogDat|
|00000c20| 61 20 3d 20 6e 65 77 20 | 44 52 65 6d 69 6e 64 65 |a = new |DReminde|
|00000c30| 72 3b 0d 09 09 2f 2f 20 | 72 65 70 6c 61 63 65 20 |r;...// |replace |
|00000c40| 74 68 69 73 20 77 69 74 | 68 20 79 6f 75 72 20 63 |this wit|h your c|
|00000c50| 6f 64 65 20 74 68 61 74 | 0d 09 09 2f 2f 20 67 65 |ode that|...// ge|
|00000c60| 74 73 20 61 20 44 52 65 | 6d 69 6e 64 65 72 20 66 |ts a DRe|minder f|
|00000c70| 72 6f 6d 20 73 6f 6d 65 | 70 6c 61 63 65 20 75 73 |rom some|place us|
|00000c80| 65 66 75 6c 20 0d 0d 09 | 43 41 64 64 2a 09 09 64 |eful ...|CAdd*..d|
|00000c90| 69 61 6c 6f 67 20 3d 20 | 43 41 64 64 3a 3a 43 72 |ialog = |CAdd::Cr|
|00000ca0| 65 61 74 65 41 64 64 20 | 28 74 68 69 73 2c 20 64 |eateAdd |(this, d|
|00000cb0| 6c 6f 67 44 61 74 61 29 | 3b 0d 0d 09 72 65 74 75 |logData)|;...retu|
|00000cc0| 72 6e 20 63 6d 64 48 61 | 6e 64 6c 65 64 3b 0d 7d |rn cmdHa|ndled;.}|
|00000cd0| 0d 0d 2f 2f 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 42 |..//----|------.B|
|00000ce0| 6f 6f 6c 65 61 6e 0d 43 | 4d 61 69 6e 57 69 6e 64 |oolean.C|MainWind|
|00000cf0| 6f 77 3a 3a 44 6f 45 64 | 69 74 52 65 6d 69 6e 64 |ow::DoEd|itRemind|
|00000d00| 65 72 09 28 76 6f 69 64 | 2a 09 69 6f 50 61 72 61 |er.(void|*.ioPara|
|00000d10| 6d 29 0d 7b 0d 09 42 6f | 6f 6c 65 61 6e 09 09 63 |m).{..Bo|olean..c|
|00000d20| 6d 64 48 61 6e 64 6c 65 | 64 20 3d 20 74 72 75 65 |mdHandle|d = true|
|00000d30| 3b 0d 0d 09 44 52 65 6d | 69 6e 64 65 72 2a 09 64 |;...DRem|inder*.d|
|00000d40| 6c 6f 67 44 61 74 61 20 | 3d 20 6e 65 77 20 44 52 |logData |= new DR|
|00000d50| 65 6d 69 6e 64 65 72 3b | 0d 09 09 2f 2f 20 72 65 |eminder;|...// re|
|00000d60| 70 6c 61 63 65 20 74 68 | 69 73 20 77 69 74 68 20 |place th|is with |
|00000d70| 79 6f 75 72 20 63 6f 64 | 65 20 74 68 61 74 0d 09 |your cod|e that..|
|00000d80| 09 2f 2f 20 67 65 74 73 | 20 61 20 44 52 65 6d 69 |.// gets| a DRemi|
|00000d90| 6e 64 65 72 20 66 72 6f | 6d 20 73 6f 6d 65 70 6c |nder fro|m somepl|
|00000da0| 61 63 65 20 75 73 65 66 | 75 6c 20 0d 0d 09 43 41 |ace usef|ul ...CA|
|00000db0| 64 64 2a 09 09 64 69 61 | 6c 6f 67 20 3d 20 43 41 |dd*..dia|log = CA|
|00000dc0| 64 64 3a 3a 43 72 65 61 | 74 65 41 64 64 20 28 74 |dd::Crea|teAdd (t|
|00000dd0| 68 69 73 2c 20 64 6c 6f | 67 44 61 74 61 29 3b 0d |his, dlo|gData);.|
|00000de0| 0d 09 72 65 74 75 72 6e | 20 63 6d 64 48 61 6e 64 |..return| cmdHand|
|00000df0| 6c 65 64 3b 0d 7d 0d 0d | 2f 2f 2d 2d 2d 2d 2d 2d |led;.}..|//------|
|00000e00| 2d 2d 2d 2d 0d 42 6f 6f | 6c 65 61 6e 0d 43 4d 61 |----.Boo|lean.CMa|
|00000e10| 69 6e 57 69 6e 64 6f 77 | 3a 3a 44 6f 44 65 6c 65 |inWindow|::DoDele|
|00000e20| 74 65 52 65 6d 69 6e 64 | 65 72 09 28 76 6f 69 64 |teRemind|er.(void|
|00000e30| 2a 09 69 6f 50 61 72 61 | 6d 29 0d 7b 0d 09 42 6f |*.ioPara|m).{..Bo|
|00000e40| 6f 6c 65 61 6e 09 09 63 | 6d 64 48 61 6e 64 6c 65 |olean..c|mdHandle|
|00000e50| 64 20 3d 20 74 72 75 65 | 3b 0d 0d 0d 09 72 65 74 |d = true|;....ret|
|00000e60| 75 72 6e 20 63 6d 64 48 | 61 6e 64 6c 65 64 3b 0d |urn cmdH|andled;.|
|00000e70| 7d 0d 0d 2f 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |}..//---|-------.|
|00000e80| 76 6f 69 64 0d 43 4d 61 | 69 6e 57 69 6e 64 6f 77 |void.CMa|inWindow|
|00000e90| 3a 3a 4f 62 65 79 41 64 | 64 09 09 28 76 6f 69 64 |::ObeyAd|d..(void|
|00000ea0| 2a 09 69 6f 50 61 72 61 | 6d 29 0d 7b 0d 09 43 41 |*.ioPara|m).{..CA|
|00000eb0| 64 64 2a 09 09 64 69 61 | 6c 6f 67 20 3d 20 28 43 |dd*..dia|log = (C|
|00000ec0| 41 64 64 20 2a 29 69 6f | 50 61 72 61 6d 3b 0d 09 |Add *)io|Param;..|
|00000ed0| 44 52 65 6d 69 6e 64 65 | 72 2a 09 64 6c 6f 67 44 |DReminde|r*.dlogD|
|00000ee0| 61 74 61 20 3d 20 64 69 | 61 6c 6f 67 2d 3e 67 65 |ata = di|alog->ge|
|00000ef0| 74 44 61 74 61 20 28 29 | 3b 0d 0d 09 2f 2f 20 64 |tData ()|;...// d|
|00000f00| 6f 20 73 6f 6d 65 74 68 | 69 6e 67 20 77 69 74 68 |o someth|ing with|
|00000f10| 20 64 69 61 6c 6f 67 20 | 76 61 6c 75 65 73 0d 0d | dialog |values..|
|00000f20| 09 64 65 6c 65 74 65 20 | 64 69 61 6c 6f 67 3b 0d |.delete |dialog;.|
|00000f30| 7d 0d 0d 2f 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |}..//---|-------.|
|00000f40| 76 6f 69 64 0d 43 4d 61 | 69 6e 57 69 6e 64 6f 77 |void.CMa|inWindow|
|00000f50| 3a 3a 4c 69 73 74 65 6e | 54 6f 4d 65 73 73 61 67 |::Listen|ToMessag|
|00000f60| 65 28 0d 09 4d 65 73 73 | 61 67 65 54 09 69 6e 4d |e(..Mess|ageT.inM|
|00000f70| 65 73 73 61 67 65 2c 0d | 09 76 6f 69 64 2a 09 09 |essage,.|.void*..|
|00000f80| 69 6f 50 61 72 61 6d 29 | 0d 7b 0d 09 73 77 69 74 |ioParam)|.{..swit|
|00000f90| 63 68 20 28 69 6e 4d 65 | 73 73 61 67 65 29 20 7b |ch (inMe|ssage) {|
|00000fa0| 0d 0d 09 63 61 73 65 20 | 63 6d 64 41 64 64 52 65 |...case |cmdAddRe|
|00000fb0| 6d 69 6e 64 65 72 3a 0d | 09 09 44 6f 41 64 64 52 |minder:.|..DoAddR|
|00000fc0| 65 6d 69 6e 64 65 72 20 | 28 69 6f 50 61 72 61 6d |eminder |(ioParam|
|00000fd0| 29 3b 0d 09 09 62 72 65 | 61 6b 3b 0d 0d 09 63 61 |);...bre|ak;...ca|
|00000fe0| 73 65 20 63 6d 64 45 64 | 69 74 52 65 6d 69 6e 64 |se cmdEd|itRemind|
|00000ff0| 65 72 3a 0d 09 09 44 6f | 45 64 69 74 52 65 6d 69 |er:...Do|EditRemi|
|00001000| 6e 64 65 72 20 28 69 6f | 50 61 72 61 6d 29 3b 0d |nder (io|Param);.|
|00001010| 09 09 62 72 65 61 6b 3b | 0d 0d 09 63 61 73 65 20 |..break;|...case |
|00001020| 63 6d 64 44 65 6c 65 74 | 65 52 65 6d 69 6e 64 65 |cmdDelet|eReminde|
|00001030| 72 3a 0d 09 09 44 6f 44 | 65 6c 65 74 65 52 65 6d |r:...DoD|eleteRem|
|00001040| 69 6e 64 65 72 20 28 69 | 6f 50 61 72 61 6d 29 3b |inder (i|oParam);|
|00001050| 0d 09 09 62 72 65 61 6b | 3b 0d 0d 09 64 65 66 61 |...break|;...defa|
|00001060| 75 6c 74 3a 0d 09 09 20 | 20 3b 20 2f 2f 20 64 6f |ult:... | ; // do|
|00001070| 20 73 6f 6d 65 74 68 69 | 6e 67 0d 09 09 62 72 65 | somethi|ng...bre|
|00001080| 61 6b 3b 0d 09 7d 0d 7d | 0d 0d 2f 2f 2d 2d 2d 2d |ak;..}.}|..//----|
|00001090| 2d 2d 2d 2d 2d 2d 0d 42 | 6f 6f 6c 65 61 6e 0d 43 |------.B|oolean.C|
|000010a0| 4d 61 69 6e 57 69 6e 64 | 6f 77 3a 3a 4f 62 65 79 |MainWind|ow::Obey|
|000010b0| 43 6f 6d 6d 61 6e 64 28 | 0d 09 43 6f 6d 6d 61 6e |Command(|..Comman|
|000010c0| 64 54 09 69 6e 43 6f 6d | 6d 61 6e 64 2c 0d 09 76 |dT.inCom|mand,..v|
|000010d0| 6f 69 64 2a 09 09 69 6f | 50 61 72 61 6d 29 0d 7b |oid*..io|Param).{|
|000010e0| 0d 09 42 6f 6f 6c 65 61 | 6e 09 09 63 6d 64 48 61 |..Boolea|n..cmdHa|
|000010f0| 6e 64 6c 65 64 20 3d 20 | 74 72 75 65 3b 0d 0d 09 |ndled = |true;...|
|00001100| 73 77 69 74 63 68 20 28 | 69 6e 43 6f 6d 6d 61 6e |switch (|inComman|
|00001110| 64 29 20 7b 0d 0d 09 2f | 2f 20 2b 2b 2b 20 41 64 |d) {.../|/ +++ Ad|
|00001120| 64 20 63 61 73 65 73 20 | 68 65 72 65 20 66 6f 72 |d cases |here for|
|00001130| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 73 20 79 6f | the com|mands yo|
|00001140| 75 20 68 61 6e 64 6c 65 | 0d 09 2f 2f 09 09 52 65 |u handle|..//..Re|
|00001150| 6d 65 6d 62 65 72 20 74 | 6f 20 61 64 64 20 73 61 |member t|o add sa|
|00001160| 6d 65 20 63 61 73 65 73 | 20 74 6f 20 46 69 6e 64 |me cases| to Find|
|00001170| 43 6f 6d 6d 61 6e 64 53 | 74 61 74 75 73 20 62 65 |CommandS|tatus be|
|00001180| 6c 6f 77 0d 09 2f 2f 09 | 09 74 6f 20 65 6e 61 62 |low..//.|.to enab|
|00001190| 6c 65 2f 64 69 73 61 62 | 6c 65 20 74 68 65 20 63 |le/disab|le the c|
|000011a0| 6f 6d 6d 61 6e 64 73 0d | 0d 09 63 61 73 65 20 63 |ommands.|..case c|
|000011b0| 6d 64 4f 4b 64 69 61 6c | 6f 67 5f 41 64 64 3a 09 |mdOKdial|og_Add:.|
|000011c0| 0d 09 09 4f 62 65 79 41 | 64 64 09 28 69 6f 50 61 |...ObeyA|dd.(ioPa|
|000011d0| 72 61 6d 29 3b 0d 09 09 | 62 72 65 61 6b 3b 0d 0d |ram);...|break;..|
|000011e0| 0d 09 64 65 66 61 75 6c | 74 3a 0d 09 09 09 63 6d |..defaul|t:....cm|
|000011f0| 64 48 61 6e 64 6c 65 64 | 20 3d 20 4c 57 69 6e 64 |dHandled| = LWind|
|00001200| 6f 77 3a 3a 4f 62 65 79 | 43 6f 6d 6d 61 6e 64 28 |ow::Obey|Command(|
|00001210| 69 6e 43 6f 6d 6d 61 6e | 64 2c 20 69 6f 50 61 72 |inComman|d, ioPar|
|00001220| 61 6d 29 3b 0d 09 09 62 | 72 65 61 6b 3b 0d 09 7d |am);...b|reak;..}|
|00001230| 0d 0d 09 72 65 74 75 72 | 6e 20 63 6d 64 48 61 6e |...retur|n cmdHan|
|00001240| 64 6c 65 64 3b 0d 7d 0d | 0d 2f 2f 2d 2d 2d 2d 2d |dled;.}.|.//-----|
|00001250| 2d 2d 2d 2d 2d 0d 76 6f | 69 64 0d 43 4d 61 69 6e |-----.vo|id.CMain|
|00001260| 57 69 6e 64 6f 77 3a 3a | 46 69 6e 64 43 6f 6d 6d |Window::|FindComm|
|00001270| 61 6e 64 53 74 61 74 75 | 73 28 0d 09 43 6f 6d 6d |andStatu|s(..Comm|
|00001280| 61 6e 64 54 09 69 6e 43 | 6f 6d 6d 61 6e 64 2c 0d |andT.inC|ommand,.|
|00001290| 09 42 6f 6f 6c 65 61 6e | 09 09 26 6f 75 74 45 6e |.Boolean|..&outEn|
|000012a0| 61 62 6c 65 64 2c 0d 09 | 42 6f 6f 6c 65 61 6e 09 |abled,..|Boolean.|
|000012b0| 09 26 6f 75 74 55 73 65 | 73 4d 61 72 6b 2c 0d 09 |.&outUse|sMark,..|
|000012c0| 43 68 61 72 31 36 09 09 | 26 6f 75 74 4d 61 72 6b |Char16..|&outMark|
|000012d0| 2c 0d 09 53 74 72 32 35 | 35 09 09 6f 75 74 4e 61 |,..Str25|5..outNa|
|000012e0| 6d 65 29 0d 7b 0d 09 6f | 75 74 55 73 65 73 4d 61 |me).{..o|utUsesMa|
|000012f0| 72 6b 20 3d 20 66 61 6c | 73 65 3b 0d 0d 09 73 77 |rk = fal|se;...sw|
|00001300| 69 74 63 68 20 28 69 6e | 43 6f 6d 6d 61 6e 64 29 |itch (in|Command)|
|00001310| 20 7b 0d 0d 09 2f 2f 20 | 2b 2b 2b 20 41 64 64 20 | {...// |+++ Add |
|00001320| 63 61 73 65 73 20 68 65 | 72 65 20 66 6f 72 20 74 |cases he|re for t|
|00001330| 68 65 20 63 6f 6d 6d 61 | 6e 64 73 20 79 6f 75 20 |he comma|nds you |
|00001340| 68 61 6e 64 6c 65 0d 0d | 09 64 65 66 61 75 6c 74 |handle..|.default|
|00001350| 3a 0d 09 09 09 4c 57 69 | 6e 64 6f 77 3a 3a 46 69 |:....LWi|ndow::Fi|
|00001360| 6e 64 43 6f 6d 6d 61 6e | 64 53 74 61 74 75 73 28 |ndComman|dStatus(|
|00001370| 69 6e 43 6f 6d 6d 61 6e | 64 2c 20 6f 75 74 45 6e |inComman|d, outEn|
|00001380| 61 62 6c 65 64 2c 0d 09 | 09 09 09 09 09 09 09 09 |abled,..|........|
|00001390| 09 6f 75 74 55 73 65 73 | 4d 61 72 6b 2c 20 6f 75 |.outUses|Mark, ou|
|000013a0| 74 4d 61 72 6b 2c 20 6f | 75 74 4e 61 6d 65 29 3b |tMark, o|utName);|
|000013b0| 0d 09 09 62 72 65 61 6b | 3b 0d 09 7d 0d 7d 0d 00 |...break|;..}.}..|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001410| 2f 0a 20 57 22 68 00 04 | 22 69 00 58 4e 91 42 67 |/. W"h..|"i.XN.Bg|
|00001420| 48 6e ff ec 4e b9 00 00 | 1d a0 4f ef 00 0a 4c df |Hn..N...|..O...L.|
|00001430| 0e 43 4d 61 69 6e 57 69 | 6e 64 6f 77 2e 63 70 64 |.CMainWi|ndow.cpd|
|00001440| 02 00 00 00 54 45 58 54 | 43 57 49 45 00 00 64 90 |....TEXT|CWIE..d.|
|00001450| 00 00 54 45 58 54 43 57 | 49 45 00 00 64 90 63 c0 |..TEXTCW|IE..d.c.|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 af e0 2a e8 00 00 | 13 3f 00 00 01 1e 00 00 |....*...|.?......|
|00001480| 2f 0a 24 6e 00 08 0c 2a | 00 02 00 34 67 3e 0c 2d |/.$n...*|...4g>.-|
|00001490| 00 01 93 42 66 18 48 78 | 02 73 48 6d a7 36 48 6d |...Bf.Hx|.sHm.6Hm|
|000014a0| a7 45 4e b9 00 00 01 68 | 4f ef 00 0c 60 1e 0c 2d |.EN....h|O...`..-|
|000014b0| 00 02 93 42 66 08 48 6d | a7 45 ab ff 60 0e 0c 2d |...Bf.Hm|.E..`..-|
|000014c0| 00 03 93 42 66 06 30 3c | fe 16 a9 c9 15 7c 00 01 |...Bf.0<|.....|..|
|000014d0| 00 34 2f 0a 20 57 22 68 | 00 04 22 69 00 5c 4e 91 |.4/. W"h|.."i.\N.|
|000014e0| 20 6a 00 08 b1 ee 00 0c | 58 4f 66 06 42 2a 00 34 | j......|XOf.B*.4|
|000014f0| 60 16 4a aa 00 08 67 10 | 2f 2e 00 0c 2f 2a 00 08 |`.J...g.|/.../*..|
|00001500| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+