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: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 2302
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 6a 61 | 73 6f 6e 40 67 63 78 31 |From: ja|son@gcx1|
|00000010| 2e 73 73 64 2e 63 73 64 | 2e 68 61 72 72 69 73 2e |.ssd.csd|.harris.|
|00000020| 63 6f 6d 20 28 4a 61 73 | 6f 6e 20 42 61 69 65 74 |com (Jas|on Baiet|
|00000030| 74 6f 29 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |to).News|groups: |
|00000040| 61 6c 74 2e 73 6f 75 72 | 63 65 73 0a 53 75 62 6a |alt.sour|ces.Subj|
|00000050| 65 63 74 3a 20 78 64 69 | 61 72 79 20 32 2f 35 20 |ect: xdi|ary 2/5 |
|00000060| 28 58 20 62 61 73 65 64 | 20 63 61 6c 65 6e 64 61 |(X based| calenda|
|00000070| 72 20 61 6e 64 20 64 69 | 61 72 79 29 0a 4d 65 73 |r and di|ary).Mes|
|00000080| 73 61 67 65 2d 49 44 3a | 20 3c 31 37 39 35 40 74 |sage-ID:| <1795@t|
|00000090| 72 61 76 69 73 2e 63 73 | 64 2e 68 61 72 72 69 73 |ravis.cs|d.harris|
|000000a0| 2e 63 6f 6d 3e 0a 44 61 | 74 65 3a 20 31 32 20 44 |.com>.Da|te: 12 D|
|000000b0| 65 63 20 39 30 20 32 33 | 3a 32 37 3a 30 38 20 47 |ec 90 23|:27:08 G|
|000000c0| 4d 54 0a 0a 23 21 20 2f | 62 69 6e 2f 73 68 0a 23 |MT..#! /|bin/sh.#|
|000000d0| 20 54 68 69 73 20 69 73 | 20 61 20 73 68 65 6c 6c | This is| a shell|
|000000e0| 20 61 72 63 68 69 76 65 | 2e 20 20 52 65 6d 6f 76 | archive|. Remov|
|000000f0| 65 20 61 6e 79 74 68 69 | 6e 67 20 62 65 66 6f 72 |e anythi|ng befor|
|00000100| 65 20 74 68 69 73 20 6c | 69 6e 65 2c 20 74 68 65 |e this l|ine, the|
|00000110| 6e 20 75 6e 70 61 63 6b | 0a 23 20 69 74 20 62 79 |n unpack|.# it by|
|00000120| 20 73 61 76 69 6e 67 20 | 69 74 20 69 6e 74 6f 20 | saving |it into |
|00000130| 61 20 66 69 6c 65 20 61 | 6e 64 20 74 79 70 69 6e |a file a|nd typin|
|00000140| 67 20 22 73 68 20 66 69 | 6c 65 22 2e 20 20 54 6f |g "sh fi|le". To|
|00000150| 20 6f 76 65 72 77 72 69 | 74 65 20 65 78 69 73 74 | overwri|te exist|
|00000160| 69 6e 67 0a 23 20 66 69 | 6c 65 73 2c 20 74 79 70 |ing.# fi|les, typ|
|00000170| 65 20 22 73 68 20 66 69 | 6c 65 20 2d 63 22 2e 20 |e "sh fi|le -c". |
|00000180| 20 59 6f 75 20 63 61 6e | 20 61 6c 73 6f 20 66 65 | You can| also fe|
|00000190| 65 64 20 74 68 69 73 20 | 61 73 20 73 74 61 6e 64 |ed this |as stand|
|000001a0| 61 72 64 20 69 6e 70 75 | 74 20 76 69 61 0a 23 20 |ard inpu|t via.# |
|000001b0| 75 6e 73 68 61 72 2c 20 | 6f 72 20 62 79 20 74 79 |unshar, |or by ty|
|000001c0| 70 69 6e 67 20 22 73 68 | 20 3c 66 69 6c 65 22 2c |ping "sh| <file",|
|000001d0| 20 65 2e 67 2e 2e 20 20 | 49 66 20 74 68 69 73 20 | e.g.. |If this |
|000001e0| 61 72 63 68 69 76 65 20 | 69 73 20 63 6f 6d 70 6c |archive |is compl|
|000001f0| 65 74 65 2c 20 79 6f 75 | 0a 23 20 77 69 6c 6c 20 |ete, you|.# will |
|00000200| 73 65 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |see the |followin|
|00000210| 67 20 6d 65 73 73 61 67 | 65 20 61 74 20 74 68 65 |g messag|e at the|
|00000220| 20 65 6e 64 3a 0a 23 09 | 09 22 45 6e 64 20 6f 66 | end:.#.|."End of|
|00000230| 20 61 72 63 68 69 76 65 | 20 32 20 28 6f 66 20 35 | archive| 2 (of 5|
|00000240| 29 2e 22 0a 23 20 43 6f | 6e 74 65 6e 74 73 3a 20 |).".# Co|ntents: |
|00000250| 20 43 61 6c 65 6e 64 61 | 72 2e 64 6f 63 20 43 61 | Calenda|r.doc Ca|
|00000260| 6c 65 6e 64 61 72 50 2e | 68 20 44 61 74 65 2e 63 |lendarP.|h Date.c|
|00000270| 20 4d 61 6b 65 66 69 6c | 65 20 53 74 72 49 6e 52 | Makefil|e StrInR|
|00000280| 65 63 74 2e 63 0a 23 20 | 20 20 6d 61 69 6e 2e 68 |ect.c.# | main.h|
|00000290| 0a 23 20 57 72 61 70 70 | 65 64 20 62 79 20 6a 61 |.# Wrapp|ed by ja|
|000002a0| 73 6f 6e 40 68 63 78 32 | 20 6f 6e 20 54 68 75 20 |son@hcx2| on Thu |
|000002b0| 44 65 63 20 20 36 20 31 | 32 3a 34 39 3a 32 31 20 |Dec 6 1|2:49:21 |
|000002c0| 31 39 39 30 0a 50 41 54 | 48 3d 2f 62 69 6e 3a 2f |1990.PAT|H=/bin:/|
|000002d0| 75 73 72 2f 62 69 6e 3a | 2f 75 73 72 2f 75 63 62 |usr/bin:|/usr/ucb|
|000002e0| 20 3b 20 65 78 70 6f 72 | 74 20 50 41 54 48 0a 69 | ; expor|t PATH.i|
|000002f0| 66 20 74 65 73 74 20 2d | 66 20 27 43 61 6c 65 6e |f test -|f 'Calen|
|00000300| 64 61 72 2e 64 6f 63 27 | 20 2d 61 20 22 24 7b 31 |dar.doc'| -a "${1|
|00000310| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00000320| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00000330| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00000340| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00000350| 22 27 43 61 6c 65 6e 64 | 61 72 2e 64 6f 63 27 5c |"'Calend|ar.doc'\|
|00000360| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00000370| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00000380| 43 61 6c 65 6e 64 61 72 | 2e 64 6f 63 27 5c 22 20 |Calendar|.doc'\" |
|00000390| 5c 28 31 34 32 38 31 20 | 63 68 61 72 61 63 74 65 |\(14281 |characte|
|000003a0| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|000003b0| 22 20 3e 27 43 61 6c 65 | 6e 64 61 72 2e 64 6f 63 |" >'Cale|ndar.doc|
|000003c0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000003d0| 27 0a 58 2e 4e 48 20 31 | 0a 58 43 61 6c 65 6e 64 |'.X.NH 1|.XCalend|
|000003e0| 61 72 20 57 69 64 67 65 | 74 0a 58 2e 58 53 0a 58 |ar Widge|t.X.XS.X|
|000003f0| 09 43 61 6c 65 6e 64 61 | 72 20 57 69 64 67 65 74 |.Calenda|r Widget|
|00000400| 0a 58 2e 58 45 0a 58 2e | 44 73 20 30 0a 58 2e 54 |.X.XE.X.|Ds 0.X.T|
|00000410| 41 20 32 2e 30 69 0a 58 | 2e 74 61 20 32 2e 30 69 |A 2.0i.X|.ta 2.0i|
|00000420| 0a 58 2e 73 70 0a 58 41 | 70 70 6c 69 63 61 74 69 |.X.sp.XA|pplicati|
|00000430| 6f 6e 20 48 65 61 64 65 | 72 20 66 69 6c 65 09 22 |on Heade|r file."|
|00000440| 43 61 6c 65 6e 64 61 72 | 2e 68 22 0a 58 43 6c 61 |Calendar|.h".XCla|
|00000450| 73 73 20 48 65 61 64 65 | 72 20 66 69 6c 65 09 22 |ss Heade|r file."|
|00000460| 43 61 6c 65 6e 64 61 72 | 50 2e 68 22 0a 58 43 6c |Calendar|P.h".XCl|
|00000470| 61 73 73 09 09 43 61 6c | 65 6e 64 61 72 57 69 64 |ass..Cal|endarWid|
|00000480| 67 65 74 43 6c 61 73 73 | 0a 58 43 6c 61 73 73 20 |getClass|.XClass |
|00000490| 4e 61 6d 65 09 43 61 6c | 65 6e 64 61 72 0a 58 53 |Name.Cal|endar.XS|
|000004a0| 75 70 65 72 63 6c 61 73 | 73 09 43 6f 72 65 0a 58 |uperclas|s.Core.X|
|000004b0| 2e 73 70 0a 58 2e 44 65 | 0a 58 2e 4c 50 0a 58 54 |.sp.X.De|.X.LP.XT|
|000004c0| 68 65 20 43 61 6c 65 6e | 64 61 72 20 57 69 64 67 |he Calen|dar Widg|
|000004d0| 65 74 20 69 73 20 61 20 | 77 69 64 67 65 74 20 74 |et is a |widget t|
|000004e0| 68 61 74 20 64 69 73 70 | 6c 61 79 73 20 61 20 6f |hat disp|lays a o|
|000004f0| 6e 65 20 6d 6f 6e 74 68 | 20 63 61 6c 65 6e 64 61 |ne month| calenda|
|00000500| 72 20 66 6f 72 20 61 0a | 58 73 70 65 63 69 66 69 |r for a.|Xspecifi|
|00000510| 65 64 20 64 61 74 65 2e | 20 20 49 74 20 69 73 20 |ed date.| It is |
|00000520| 64 65 73 69 67 6e 65 64 | 20 74 6f 20 62 65 20 75 |designed| to be u|
|00000530| 73 65 64 20 69 6e 20 61 | 70 70 6c 69 63 61 74 69 |sed in a|pplicati|
|00000540| 6f 6e 73 20 74 68 61 74 | 20 6e 65 65 64 20 74 6f |ons that| need to|
|00000550| 20 62 65 0a 58 64 72 69 | 76 65 6e 20 62 79 20 63 | be.Xdri|ven by c|
|00000560| 61 6c 65 6e 64 61 72 20 | 69 6e 70 75 74 2c 20 61 |alendar |input, a|
|00000570| 73 20 77 65 6c 6c 20 61 | 73 20 61 70 70 6c 69 63 |s well a|s applic|
|00000580| 61 74 69 6f 6e 73 20 74 | 68 61 74 20 73 69 6d 70 |ations t|hat simp|
|00000590| 6c 79 20 77 61 6e 74 20 | 74 6f 20 64 69 73 70 6c |ly want |to displ|
|000005a0| 61 79 0a 58 63 61 6c 65 | 6e 64 61 72 73 2e 0a 58 |ay.Xcale|ndars..X|
|000005b0| 2e 4e 48 20 32 0a 58 52 | 65 73 6f 75 72 63 65 73 |.NH 2.XR|esources|
|000005c0| 0a 58 2e 4c 50 0a 58 57 | 68 65 6e 20 63 72 65 61 |.X.LP.XW|hen crea|
|000005d0| 74 69 6e 67 20 61 20 43 | 61 6c 65 6e 64 61 72 20 |ting a C|alendar |
|000005e0| 77 69 64 67 65 74 20 69 | 6e 73 74 61 6e 63 65 2c |widget i|nstance,|
|000005f0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 72 | the fol|lowing r|
|00000600| 65 73 6f 75 72 63 65 73 | 20 61 72 65 0a 58 72 65 |esources| are.Xre|
|00000610| 74 72 69 65 76 65 64 20 | 66 72 6f 6d 20 74 68 65 |trieved |from the|
|00000620| 20 61 72 67 75 6d 65 6e | 74 20 6c 69 73 74 20 6f | argumen|t list o|
|00000630| 72 20 66 72 6f 6d 20 74 | 68 65 20 72 65 73 6f 75 |r from t|he resou|
|00000640| 72 63 65 20 64 61 74 61 | 62 61 73 65 3a 0a 58 2e |rce data|base:.X.|
|00000650| 4c 50 0a 58 2e 70 73 20 | 39 0a 58 2e 6e 72 20 50 |LP.X.ps |9.X.nr P|
|00000660| 53 20 39 0a 58 2e 76 73 | 20 31 31 0a 58 2e 6e 72 |S 9.X.vs| 11.X.nr|
|00000670| 20 56 53 20 31 31 0a 58 | 2e 54 53 20 48 0a 58 6c | VS 11.X|.TS H.Xl|
|00000680| 77 28 31 69 29 20 6c 77 | 28 31 69 29 20 6c 77 28 |w(1i) lw|(1i) lw(|
|00000690| 31 69 29 20 6c 77 28 2e | 35 69 29 20 6c 77 28 32 |1i) lw(.|5i) lw(2|
|000006a0| 69 29 2e 0a 58 5f 0a 58 | 2e 73 70 20 33 70 0a 58 |i)..X_.X|.sp 3p.X|
|000006b0| 2e 54 42 0a 58 4e 61 6d | 65 09 43 6c 61 73 73 09 |.TB.XNam|e.Class.|
|000006c0| 54 79 70 65 09 4e 6f 74 | 65 73 09 44 65 66 61 75 |Type.Not|es.Defau|
|000006d0| 6c 74 20 56 61 6c 75 65 | 0a 58 2e 73 70 20 33 70 |lt Value|.X.sp 3p|
|000006e0| 0a 58 5f 0a 58 2e 54 48 | 0a 58 2e 52 0a 58 2e 73 |.X_.X.TH|.X.R.X.s|
|000006f0| 70 20 33 70 0a 58 62 61 | 63 6b 67 72 6f 75 6e 64 |p 3p.Xba|ckground|
|00000700| 09 42 61 63 6b 67 72 6f | 75 6e 64 09 50 69 78 65 |.Backgro|und.Pixe|
|00000710| 6c 09 09 58 74 44 65 66 | 61 75 6c 74 42 61 63 6b |l..XtDef|aultBack|
|00000720| 67 72 6f 75 6e 64 0a 58 | 62 61 63 6b 67 72 6f 75 |ground.X|backgrou|
|00000730| 6e 64 50 69 78 6d 61 70 | 09 50 69 78 6d 61 70 09 |ndPixmap|.Pixmap.|
|00000740| 50 69 78 6d 61 70 09 09 | 58 74 55 6e 73 70 65 63 |Pixmap..|XtUnspec|
|00000750| 69 66 69 65 64 50 69 78 | 6d 61 70 0a 58 62 6f 72 |ifiedPix|map.Xbor|
|00000760| 64 65 72 57 69 64 74 68 | 09 42 6f 72 64 65 72 57 |derWidth|.BorderW|
|00000770| 69 64 74 68 09 44 69 6d | 65 6e 73 69 6f 6e 09 09 |idth.Dim|ension..|
|00000780| 31 0a 58 63 61 6c 6c 62 | 61 63 6b 09 43 61 6c 6c |1.Xcallb|ack.Call|
|00000790| 62 61 63 6b 4c 69 73 74 | 09 58 74 43 61 6c 6c 62 |backList|.XtCallb|
|000007a0| 61 63 6b 4c 69 73 74 09 | 09 4e 55 4c 4c 0a 58 64 |ackList.|.NULL.Xd|
|000007b0| 69 67 69 74 46 6f 6e 74 | 09 43 61 6c 65 6e 64 61 |igitFont|.Calenda|
|000007c0| 72 46 6f 6e 74 09 58 46 | 6f 6e 74 53 74 72 75 63 |rFont.XF|ontStruc|
|000007d0| 74 09 09 66 69 78 65 64 | 0a 58 64 69 67 69 74 47 |t..fixed|.XdigitG|
|000007e0| 72 61 76 69 74 79 09 44 | 69 67 69 74 47 72 61 76 |ravity.D|igitGrav|
|000007f0| 69 74 79 09 47 72 61 76 | 69 74 79 09 09 43 65 6e |ity.Grav|ity..Cen|
|00000800| 74 65 72 0a 58 64 69 67 | 69 74 4e 61 6d 65 73 09 |ter.Xdig|itNames.|
|00000810| 44 69 67 69 74 4e 61 6d | 65 73 09 53 74 72 69 6e |DigitNam|es.Strin|
|00000820| 67 54 61 62 6c 65 09 09 | 58 74 44 65 66 61 75 6c |gTable..|XtDefaul|
|00000830| 74 44 69 67 69 74 4e 61 | 6d 65 73 0a 58 66 6f 72 |tDigitNa|mes.Xfor|
|00000840| 65 67 72 6f 75 6e 64 09 | 46 6f 72 65 67 72 6f 75 |eground.|Foregrou|
|00000850| 6e 64 09 50 69 78 65 6c | 09 09 58 74 44 65 66 61 |nd.Pixel|..XtDefa|
|00000860| 75 6c 74 46 6f 72 65 67 | 72 6f 6e 64 0a 58 68 65 |ultForeg|rond.Xhe|
|00000870| 69 67 68 74 09 48 65 69 | 67 68 74 09 44 69 6d 65 |ight.Hei|ght.Dime|
|00000880| 6e 73 69 6f 6e 09 09 4d | 69 6e 69 6d 75 6d 20 68 |nsion..M|inimum h|
|00000890| 65 69 67 68 74 20 6e 65 | 65 64 65 64 0a 58 68 69 |eight ne|eded.Xhi|
|000008a0| 67 68 6c 69 67 68 74 09 | 48 69 67 68 6c 69 67 68 |ghlight.|Highligh|
|000008b0| 74 09 42 6f 6f 6c 65 61 | 6e 09 09 54 72 75 65 0a |t.Boolea|n..True.|
|000008c0| 58 6c 69 6e 65 57 69 64 | 74 68 09 4c 69 6e 65 57 |XlineWid|th.LineW|
|000008d0| 69 64 74 68 09 69 6e 74 | 09 09 31 0a 58 6d 61 70 |idth.int|..1.Xmap|
|000008e0| 70 65 64 57 68 65 6e 4d | 61 6e 61 67 65 64 09 4d |pedWhenM|anaged.M|
|000008f0| 61 70 70 65 64 57 68 65 | 6e 4d 61 6e 61 67 65 64 |appedWhe|nManaged|
|00000900| 09 42 6f 6f 6c 65 61 6e | 09 09 54 72 75 65 0a 58 |.Boolean|..True.X|
|00000910| 6d 6f 6e 74 68 4e 61 6d | 65 73 09 4d 6f 6e 74 68 |monthNam|es.Month|
|00000920| 4e 61 6d 65 73 09 53 74 | 72 69 6e 67 54 61 62 6c |Names.St|ringTabl|
|00000930| 65 09 09 58 74 44 65 66 | 61 75 6c 74 4d 6f 6e 74 |e..XtDef|aultMont|
|00000940| 68 4e 61 6d 65 73 0a 58 | 73 68 6f 77 59 65 61 72 |hNames.X|showYear|
|00000950| 09 53 68 6f 77 59 65 61 | 72 09 42 6f 6f 6c 65 61 |.ShowYea|r.Boolea|
|00000960| 6e 09 09 54 72 75 65 0a | 58 73 74 61 72 74 69 6e |n..True.|Xstartin|
|00000970| 67 57 65 65 6b 64 61 79 | 09 53 74 61 72 74 69 6e |gWeekday|.Startin|
|00000980| 67 57 65 65 6b 64 61 79 | 09 44 61 79 4e 61 6d 65 |gWeekday|.DayName|
|00000990| 09 09 53 75 6e 64 61 79 | 0a 58 74 69 74 6c 65 46 |..Sunday|.XtitleF|
|000009a0| 6f 6e 74 09 43 61 6c 65 | 6e 64 61 72 46 6f 6e 74 |ont.Cale|ndarFont|
|000009b0| 09 58 46 6f 6e 74 53 74 | 72 75 63 74 09 09 66 69 |.XFontSt|ruct..fi|
|000009c0| 78 65 64 0a 58 74 72 61 | 6e 73 6c 61 74 69 6f 6e |xed.Xtra|nslation|
|000009d0| 73 09 54 72 61 6e 73 6c | 61 74 69 6f 6e 73 09 54 |s.Transl|ations.T|
|000009e0| 72 61 6e 73 6c 61 74 69 | 6f 6e 54 61 62 6c 65 09 |ranslati|onTable.|
|000009f0| 09 53 65 65 20 62 65 6c | 6f 77 0a 58 77 65 65 6b |.See bel|ow.Xweek|
|00000a00| 64 61 79 46 6f 6e 74 09 | 43 61 6c 65 6e 64 61 72 |dayFont.|Calendar|
|00000a10| 46 6f 6e 74 09 58 46 6f | 6e 74 53 74 72 75 63 74 |Font.XFo|ntStruct|
|00000a20| 09 09 66 69 78 65 64 0a | 58 77 65 65 6b 64 61 79 |..fixed.|Xweekday|
|00000a30| 4e 61 6d 65 73 09 57 65 | 65 6b 64 61 79 4e 61 6d |Names.We|ekdayNam|
|00000a40| 65 73 09 53 74 72 69 6e | 67 54 61 62 6c 65 09 09 |es.Strin|gTable..|
|00000a50| 58 74 44 65 66 61 75 6c | 74 57 65 65 6b 64 61 79 |XtDefaul|tWeekday|
|00000a60| 4e 61 6d 65 73 0a 58 77 | 69 64 74 68 09 57 69 64 |Names.Xw|idth.Wid|
|00000a70| 74 68 09 44 69 6d 65 6e | 73 69 6f 6e 09 09 4d 69 |th.Dimen|sion..Mi|
|00000a80| 6e 69 6d 75 6d 20 77 69 | 64 74 68 20 6e 65 65 64 |nimum wi|dth need|
|00000a90| 65 64 0a 58 78 09 58 09 | 50 6f 73 69 74 69 6f 6e |ed.Xx.X.|Position|
|00000aa0| 09 09 30 0a 58 79 09 59 | 09 50 6f 73 69 74 69 6f |..0.Xy.Y|.Positio|
|00000ab0| 6e 09 09 30 0a 58 2e 73 | 70 20 33 70 0a 58 5f 0a |n..0.X.s|p 3p.X_.|
|00000ac0| 58 2e 54 45 0a 58 2e 70 | 73 20 31 31 0a 58 2e 6e |X.TE.X.p|s 11.X.n|
|00000ad0| 72 20 50 53 20 31 31 0a | 58 2e 76 73 20 31 33 0a |r PS 11.|X.vs 13.|
|00000ae0| 58 2e 6e 72 20 56 53 20 | 31 33 0a 58 2e 42 67 0a |X.nr VS |13.X.Bg.|
|00000af0| 58 2e 47 70 0a 58 2e 42 | 77 0a 58 2e 43 62 0a 58 |X.Gp.X.B|w.X.Cb.X|
|00000b00| 2e 49 50 20 5c 66 42 64 | 69 67 69 74 46 6f 6e 74 |.IP \fBd|igitFont|
|00000b10| 5c 66 50 20 31 2e 35 69 | 0a 58 54 68 65 20 66 6f |\fP 1.5i|.XThe fo|
|00000b20| 6e 74 20 74 6f 20 62 65 | 20 75 73 65 64 20 66 6f |nt to be| used fo|
|00000b30| 72 20 64 72 61 77 69 6e | 67 20 74 68 65 20 64 69 |r drawin|g the di|
|00000b40| 67 69 74 20 74 65 78 74 | 20 69 6e 20 74 68 65 20 |git text| in the |
|00000b50| 63 61 6c 65 6e 64 61 72 | 2e 0a 58 2e 49 50 20 5c |calendar|..X.IP \|
|00000b60| 66 42 64 69 67 69 74 47 | 72 61 76 69 74 79 5c 66 |fBdigitG|ravity\f|
|00000b70| 50 20 31 2e 35 69 0a 58 | 53 70 65 63 69 66 69 65 |P 1.5i.X|Specifie|
|00000b80| 73 20 74 68 65 20 67 72 | 61 76 69 74 79 20 75 73 |s the gr|avity us|
|00000b90| 65 64 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |ed to de|termine |
|00000ba0| 77 68 65 72 65 20 74 68 | 65 20 64 69 67 69 74 73 |where th|e digits|
|00000bb0| 20 74 68 61 74 20 61 72 | 65 20 64 72 61 77 6e 20 | that ar|e drawn |
|00000bc0| 69 6e 0a 58 74 68 65 20 | 63 61 6c 65 6e 64 61 72 |in.Xthe |calendar|
|00000bd0| 20 63 65 6c 6c 73 20 77 | 69 6c 6c 20 62 65 20 6c | cells w|ill be l|
|00000be0| 6f 63 61 74 65 64 20 77 | 69 74 68 69 6e 20 74 68 |ocated w|ithin th|
|00000bf0| 65 20 63 65 6c 6c 73 2e | 20 20 0a 58 2e 52 73 20 |e cells.| .X.Rs |
|00000c00| 22 4e 6f 72 74 68 57 65 | 73 74 2c 20 4e 6f 72 74 |"NorthWe|st, Nort|
|00000c10| 68 2c 20 4e 6f 72 74 68 | 45 61 73 74 2c 20 57 65 |h, North|East, We|
|00000c20| 73 74 2c 20 43 65 6e 74 | 65 72 2c 20 45 61 73 74 |st, Cent|er, East|
|00000c30| 2c 20 53 6f 75 74 68 57 | 65 73 74 2c 20 53 6f 75 |, SouthW|est, Sou|
|00000c40| 74 68 2c 20 5c 0a 58 5c | 66 50 61 6e 64 5c 66 50 |th, \.X\|fPand\fP|
|00000c50| 20 53 6f 75 74 68 45 61 | 73 74 22 2e 0a 58 2e 49 | SouthEa|st"..X.I|
|00000c60| 50 20 5c 66 42 64 69 67 | 69 74 4e 61 6d 65 73 5c |P \fBdig|itNames\|
|00000c70| 66 50 20 31 2e 35 69 0a | 58 54 68 65 20 74 65 78 |fP 1.5i.|XThe tex|
|00000c80| 74 20 74 6f 20 62 65 20 | 75 73 65 64 20 66 6f 72 |t to be |used for|
|00000c90| 20 74 68 65 20 64 69 67 | 69 74 73 20 69 6e 20 74 | the dig|its in t|
|00000ca0| 68 65 20 63 61 6c 65 6e | 64 61 72 20 63 65 6c 6c |he calen|dar cell|
|00000cb0| 73 2c 20 73 70 65 63 69 | 66 69 65 64 20 61 73 20 |s, speci|fied as |
|00000cc0| 61 0a 58 53 74 72 69 6e | 67 54 61 62 6c 65 2e 0a |a.XStrin|gTable..|
|00000cd0| 58 2e 46 67 0a 58 2e 48 | 77 0a 58 2e 49 50 20 5c |X.Fg.X.H|w.X.IP \|
|00000ce0| 66 42 68 69 67 68 6c 69 | 67 68 74 5c 66 50 20 31 |fBhighli|ght\fP 1|
|00000cf0| 2e 35 69 0a 58 49 66 20 | 74 68 69 73 20 69 73 20 |.5i.XIf |this is |
|00000d00| 5c 66 42 46 61 6c 73 65 | 5c 66 50 20 74 68 65 6e |\fBFalse|\fP then|
|00000d10| 20 74 68 65 20 63 61 6c | 65 6e 64 61 72 20 77 69 | the cal|endar wi|
|00000d20| 6c 6c 20 6e 65 76 65 72 | 20 68 69 67 68 6c 69 67 |ll never| highlig|
|00000d30| 68 74 20 61 6e 79 20 64 | 61 74 65 73 2e 0a 58 2e |ht any d|ates..X.|
|00000d40| 49 50 20 5c 66 42 6c 69 | 6e 65 57 69 64 74 68 5c |IP \fBli|neWidth\|
|00000d50| 66 50 20 31 2e 35 69 0a | 58 44 65 74 65 72 6d 69 |fP 1.5i.|XDetermi|
|00000d60| 6e 65 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |nes the |number o|
|00000d70| 66 20 70 69 78 65 6c 73 | 20 77 69 64 65 20 74 68 |f pixels| wide th|
|00000d80| 65 20 6c 69 6e 65 73 20 | 63 6f 6d 70 6f 73 69 6e |e lines |composin|
|00000d90| 67 20 74 68 65 20 67 72 | 69 64 20 69 6e 20 74 68 |g the gr|id in th|
|00000da0| 65 0a 58 63 61 6c 65 6e | 64 61 72 20 73 68 6f 75 |e.Xcalen|dar shou|
|00000db0| 6c 64 20 62 65 2e 20 20 | 41 63 63 65 70 74 61 62 |ld be. |Acceptab|
|00000dc0| 6c 65 20 76 61 6c 75 65 | 73 20 61 72 65 20 31 20 |le value|s are 1 |
|00000dd0| 74 68 72 6f 75 67 68 20 | 31 30 20 69 6e 63 6c 75 |through |10 inclu|
|00000de0| 73 69 76 65 2e 0a 58 2e | 4d 6d 0a 58 2e 49 50 20 |sive..X.|Mm.X.IP |
|00000df0| 5c 66 42 6d 6f 6e 74 68 | 4e 61 6d 65 73 5c 66 50 |\fBmonth|Names\fP|
|00000e00| 20 31 2e 35 69 0a 58 54 | 68 65 20 74 65 78 74 20 | 1.5i.XT|he text |
|00000e10| 74 6f 20 62 65 20 75 73 | 65 64 20 66 6f 72 20 74 |to be us|ed for t|
|00000e20| 68 65 20 6d 6f 6e 74 68 | 20 6e 61 6d 65 73 20 74 |he month| names t|
|00000e30| 68 61 74 20 61 70 70 65 | 61 72 20 69 6e 20 74 68 |hat appe|ar in th|
|00000e40| 65 20 74 69 74 6c 65 20 | 61 62 6f 76 65 20 74 68 |e title |above th|
|00000e50| 65 0a 58 63 61 6c 65 6e | 64 61 72 2c 20 73 70 65 |e.Xcalen|dar, spe|
|00000e60| 63 69 66 69 65 64 20 61 | 73 20 61 20 53 74 72 69 |cified a|s a Stri|
|00000e70| 6e 67 54 61 62 6c 65 2e | 0a 58 2e 49 50 20 5c 66 |ngTable.|.X.IP \f|
|00000e80| 42 73 68 6f 77 59 65 61 | 72 5c 66 50 20 31 2e 35 |BshowYea|r\fP 1.5|
|00000e90| 69 0a 58 49 66 20 74 68 | 69 73 20 69 73 20 5c 66 |i.XIf th|is is \f|
|00000ea0| 42 46 61 6c 73 65 5c 66 | 50 20 74 68 65 6e 20 74 |BFalse\f|P then t|
|00000eb0| 68 65 20 79 65 61 72 20 | 6e 75 6d 62 65 72 20 77 |he year |number w|
|00000ec0| 69 6c 6c 20 6e 6f 74 20 | 61 70 70 65 61 72 20 69 |ill not |appear i|
|00000ed0| 6e 20 74 68 65 20 74 69 | 74 6c 65 20 6f 66 0a 58 |n the ti|tle of.X|
|00000ee0| 74 68 65 20 63 61 6c 65 | 6e 64 61 72 2e 0a 58 2e |the cale|ndar..X.|
|00000ef0| 49 50 20 5c 66 42 73 74 | 61 72 74 69 6e 67 57 65 |IP \fBst|artingWe|
|00000f00| 65 6b 64 61 79 5c 66 50 | 20 31 2e 35 69 0a 58 54 |ekday\fP| 1.5i.XT|
|00000f10| 68 65 20 64 61 79 20 6f | 66 20 74 68 65 20 77 65 |he day o|f the we|
|00000f20| 65 6b 20 74 68 61 74 20 | 77 69 6c 6c 20 63 6f 72 |ek that |will cor|
|00000f30| 72 65 73 70 6f 6e 64 20 | 74 6f 20 74 68 65 20 64 |respond |to the d|
|00000f40| 61 79 73 20 69 6e 20 74 | 68 65 20 6c 65 66 74 2d |ays in t|he left-|
|00000f50| 6d 6f 73 74 20 63 6f 6c | 75 6d 6e 0a 58 6f 66 20 |most col|umn.Xof |
|00000f60| 74 68 65 20 63 61 6c 65 | 6e 64 61 72 2e 0a 58 2e |the cale|ndar..X.|
|00000f70| 52 73 20 22 53 75 6e 64 | 61 79 2c 20 4d 6f 6e 64 |Rs "Sund|ay, Mond|
|00000f80| 61 79 2c 20 54 75 65 73 | 64 61 79 2c 20 57 65 64 |ay, Tues|day, Wed|
|00000f90| 6e 65 73 64 61 79 2c 20 | 54 68 75 72 73 64 61 79 |nesday, |Thursday|
|00000fa0| 2c 20 46 72 69 64 61 79 | 2c 20 5c 66 50 61 6e 64 |, Friday|, \fPand|
|00000fb0| 5c 66 50 20 53 61 74 75 | 72 64 61 79 22 2e 0a 58 |\fP Satu|rday"..X|
|00000fc0| 2e 49 50 20 5c 66 42 74 | 69 74 6c 65 46 6f 6e 74 |.IP \fBt|itleFont|
|00000fd0| 5c 66 50 20 31 2e 35 69 | 0a 58 54 68 65 20 66 6f |\fP 1.5i|.XThe fo|
|00000fe0| 6e 74 20 74 6f 20 62 65 | 20 75 73 65 64 20 66 6f |nt to be| used fo|
|00000ff0| 72 20 64 72 61 77 69 6e | 67 20 74 68 65 20 6d 6f |r drawin|g the mo|
|00001000| 6e 74 68 20 61 6e 64 20 | 79 65 61 72 20 74 65 78 |nth and |year tex|
|00001010| 74 20 61 62 6f 76 65 20 | 74 68 65 20 63 61 6c 65 |t above |the cale|
|00001020| 6e 64 61 72 0a 58 67 72 | 69 64 2e 0a 58 2e 49 50 |ndar.Xgr|id..X.IP|
|00001030| 20 5c 66 42 77 65 65 6b | 64 61 79 46 6f 6e 74 5c | \fBweek|dayFont\|
|00001040| 66 50 20 31 2e 35 69 0a | 58 54 68 65 20 66 6f 6e |fP 1.5i.|XThe fon|
|00001050| 74 20 74 6f 20 62 65 20 | 75 73 65 64 20 66 6f 72 |t to be |used for|
|00001060| 20 64 72 61 77 69 6e 67 | 20 74 68 65 20 77 65 65 | drawing| the wee|
|00001070| 6b 64 61 79 20 6e 61 6d | 65 73 20 61 62 6f 76 65 |kday nam|es above|
|00001080| 20 65 61 63 68 20 63 6f | 6c 75 6d 6e 20 6f 66 0a | each co|lumn of.|
|00001090| 58 63 61 6c 65 6e 64 61 | 72 20 63 65 6c 6c 73 20 |Xcalenda|r cells |
|000010a0| 69 6e 20 74 68 65 20 63 | 61 6c 65 6e 64 61 72 20 |in the c|alendar |
|000010b0| 67 72 69 64 2e 0a 58 2e | 49 50 20 5c 66 42 77 65 |grid..X.|IP \fBwe|
|000010c0| 65 6b 64 61 79 4e 61 6d | 65 73 5c 66 50 20 31 2e |ekdayNam|es\fP 1.|
|000010d0| 35 69 0a 58 54 68 65 20 | 74 65 78 74 20 74 6f 20 |5i.XThe |text to |
|000010e0| 62 65 20 75 73 65 64 20 | 66 6f 72 20 74 68 65 20 |be used |for the |
|000010f0| 77 65 65 6b 64 61 79 20 | 6e 61 6d 65 73 2c 20 73 |weekday |names, s|
|00001100| 70 65 63 69 66 69 65 64 | 20 61 73 20 61 20 53 74 |pecified| as a St|
|00001110| 72 69 6e 67 54 61 62 6c | 65 2e 0a 58 2e 54 72 0a |ringTabl|e..X.Tr.|
|00001120| 58 2e 58 79 0a 58 2e 4e | 48 20 32 0a 58 52 65 73 |X.Xy.X.N|H 2.XRes|
|00001130| 6f 75 72 63 65 20 44 65 | 66 61 75 6c 74 73 0a 58 |ource De|faults.X|
|00001140| 2e 4c 50 0a 58 46 6f 6c | 6c 6f 77 69 6e 67 20 61 |.LP.XFol|lowing a|
|00001150| 72 65 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 73 |re the d|efault s|
|00001160| 74 72 69 6e 67 20 74 61 | 62 6c 65 73 20 75 73 65 |tring ta|bles use|
|00001170| 64 20 62 79 20 74 68 65 | 20 63 61 6c 65 6e 64 61 |d by the| calenda|
|00001180| 72 20 77 69 64 67 65 74 | 20 77 68 65 6e 0a 58 64 |r widget| when.Xd|
|00001190| 72 61 77 69 6e 67 20 61 | 6c 6c 20 6f 66 20 69 74 |rawing a|ll of it|
|000011a0| 73 20 74 65 78 74 3a 0a | 58 2e 49 50 20 5c 66 42 |s text:.|X.IP \fB|
|000011b0| 58 74 44 65 66 61 75 6c | 74 44 61 79 4e 61 6d 65 |XtDefaul|tDayName|
|000011c0| 73 5c 66 50 20 20 30 2e | 35 69 0a 58 22 53 75 6e |s\fP 0.|5i.X"Sun|
|000011d0| 22 2c 20 22 4d 6f 6e 22 | 2c 20 22 54 75 65 22 2c |", "Mon"|, "Tue",|
|000011e0| 20 22 57 65 64 22 2c 20 | 22 54 68 75 22 2c 20 22 | "Wed", |"Thu", "|
|000011f0| 46 72 69 22 2c 20 22 53 | 61 74 22 0a 58 2e 49 50 |Fri", "S|at".X.IP|
|00001200| 20 5c 66 42 58 74 44 65 | 66 61 75 6c 74 4d 6f 6e | \fBXtDe|faultMon|
|00001210| 74 68 4e 61 6d 65 73 5c | 66 50 20 30 2e 35 69 0a |thNames\|fP 0.5i.|
|00001220| 58 22 4a 61 6e 75 61 72 | 79 22 2c 20 22 46 65 62 |X"Januar|y", "Feb|
|00001230| 72 75 61 72 79 22 2c 20 | 22 4d 61 72 63 68 22 2c |ruary", |"March",|
|00001240| 20 22 41 70 72 69 6c 22 | 2c 20 22 4d 61 79 22 2c | "April"|, "May",|
|00001250| 20 22 4a 75 6e 65 22 0a | 58 22 4a 75 6c 79 22 2c | "June".|X"July",|
|00001260| 20 22 41 75 67 75 73 74 | 22 2c 20 22 53 65 70 74 | "August|", "Sept|
|00001270| 65 6d 62 65 72 22 2c 20 | 22 4f 63 74 6f 62 65 72 |ember", |"October|
|00001280| 22 2c 20 22 4e 6f 76 65 | 6d 62 65 72 22 2c 0a 58 |", "Nove|mber",.X|
|00001290| 22 44 65 63 65 6d 62 65 | 72 22 0a 58 2e 49 50 20 |"Decembe|r".X.IP |
|000012a0| 5c 66 42 58 74 44 65 66 | 61 75 6c 74 44 69 67 69 |\fBXtDef|aultDigi|
|000012b0| 74 4e 61 6d 65 73 5c 66 | 50 20 30 2e 35 69 0a 58 |tNames\f|P 0.5i.X|
|000012c0| 22 31 22 2c 20 22 32 22 | 2c 20 22 33 22 2c 20 22 |"1", "2"|, "3", "|
|000012d0| 34 22 2c 20 22 35 22 2c | 20 22 36 22 2c 20 22 37 |4", "5",| "6", "7|
|000012e0| 22 2c 20 22 38 22 2c 20 | 22 39 22 2c 20 22 31 30 |", "8", |"9", "10|
|000012f0| 22 2c 20 0a 58 22 31 31 | 22 2c 20 22 31 32 22 2c |", .X"11|", "12",|
|00001300| 20 22 31 33 22 2c 20 22 | 31 34 22 2c 20 22 31 35 | "13", "|14", "15|
|00001310| 22 2c 20 22 31 36 22 2c | 20 22 31 37 22 2c 20 22 |", "16",| "17", "|
|00001320| 31 38 22 2c 20 22 31 39 | 22 2c 20 22 32 30 22 2c |18", "19|", "20",|
|00001330| 20 0a 58 22 32 31 22 2c | 20 22 32 32 22 2c 20 22 | .X"21",| "22", "|
|00001340| 32 33 22 2c 20 22 32 34 | 22 2c 20 22 32 35 22 2c |23", "24|", "25",|
|00001350| 20 22 32 36 22 2c 20 22 | 32 37 22 2c 20 22 32 38 | "26", "|27", "28|
|00001360| 22 2c 20 22 32 39 22 2c | 20 22 33 30 22 2c 20 22 |", "29",| "30", "|
|00001370| 33 31 22 0a 58 2e 4e 48 | 20 32 0a 58 44 65 66 69 |31".X.NH| 2.XDefi|
|00001380| 6e 65 64 20 54 79 70 65 | 73 20 61 6e 64 20 43 6f |ned Type|s and Co|
|00001390| 6e 76 65 72 74 65 72 73 | 0a 58 2e 49 50 20 5c 66 |nverters|.X.IP \f|
|000013a0| 42 44 61 74 65 5c 66 50 | 20 31 2e 30 69 0a 58 54 |BDate\fP| 1.0i.XT|
|000013b0| 79 70 65 64 65 66 20 6f | 66 20 61 20 73 74 72 75 |ypedef o|f a stru|
|000013c0| 63 74 75 72 65 20 77 69 | 74 68 20 61 20 6e 75 6d |cture wi|th a num|
|000013d0| 65 72 69 63 20 6d 6f 6e | 74 68 2c 20 64 61 79 2c |eric mon|th, day,|
|000013e0| 20 61 6e 64 20 79 65 61 | 72 20 66 69 65 6c 64 2e | and yea|r field.|
|000013f0| 20 20 54 68 65 0a 58 5c | 66 42 44 61 74 65 43 6f | The.X\|fBDateCo|
|00001400| 6e 76 65 72 74 65 72 5c | 66 50 20 70 75 62 6c 69 |nverter\|fP publi|
|00001410| 63 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 69 6e |c functi|on is in|
|00001420| 63 6c 75 64 65 64 20 77 | 69 74 68 20 74 68 69 73 |cluded w|ith this|
|00001430| 20 77 69 64 67 65 74 2e | 20 20 54 68 69 73 20 69 | widget.| This i|
|00001440| 73 20 6e 6f 74 0a 58 61 | 20 6e 6f 72 6d 61 6c 20 |s not.Xa| normal |
|00001450| 72 65 73 6f 75 72 63 65 | 20 63 6f 6e 76 65 72 74 |resource| convert|
|00001460| 65 72 20 61 6e 64 20 69 | 73 20 64 65 73 63 72 69 |er and i|s descri|
|00001470| 62 65 64 20 62 65 6c 6f | 77 20 75 6e 64 65 72 20 |bed belo|w under |
|00001480| 43 6f 6e 76 65 6e 69 65 | 6e 63 65 20 52 6f 75 74 |Convenie|nce Rout|
|00001490| 69 6e 65 73 2e 0a 58 2e | 49 50 20 5c 66 42 47 72 |ines..X.|IP \fBGr|
|000014a0| 61 76 69 74 79 5c 66 50 | 20 31 2e 30 69 0a 58 54 |avity\fP| 1.0i.XT|
|000014b0| 79 70 65 64 65 66 20 6f | 66 20 61 6e 20 65 6e 75 |ypedef o|f an enu|
|000014c0| 6d 65 72 61 74 65 64 20 | 74 79 70 65 2e 20 20 54 |merated |type. T|
|000014d0| 68 69 73 20 6d 61 79 20 | 68 61 76 65 20 6f 6e 65 |his may |have one|
|000014e0| 20 6f 66 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | of the |followin|
|000014f0| 67 20 76 61 6c 75 65 73 | 3a 0a 58 5c 66 42 4e 6f |g values|:.X\fBNo|
|00001500| 72 74 68 57 65 73 74 2c | 20 4e 6f 72 74 68 2c 20 |rthWest,| North, |
|00001510| 4e 6f 72 74 68 45 61 73 | 74 2c 20 57 65 73 74 2c |NorthEas|t, West,|
|00001520| 20 43 65 6e 74 65 72 2c | 20 45 61 73 74 2c 20 53 | Center,| East, S|
|00001530| 6f 75 74 68 57 65 73 74 | 2c 20 53 6f 75 74 68 2c |outhWest|, South,|
|00001540| 20 5c 66 50 61 6e 64 0a | 58 5c 66 42 53 6f 75 74 | \fPand.|X\fBSout|
|00001550| 68 45 61 73 74 5c 66 50 | 2e 20 20 54 68 65 20 5c |hEast\fP|. The \|
|00001560| 66 42 47 72 61 76 69 74 | 79 43 6f 6e 76 65 72 74 |fBGravit|yConvert|
|00001570| 65 72 5c 66 50 20 72 65 | 73 6f 75 72 63 65 20 63 |er\fP re|source c|
|00001580| 6f 6e 76 65 72 74 65 72 | 20 69 73 0a 58 61 75 74 |onverter| is.Xaut|
|00001590| 6f 6d 61 74 69 63 61 6c | 6c 79 20 69 6e 63 6c 75 |omatical|ly inclu|
|000015a0| 64 65 64 20 77 69 74 68 | 20 74 68 69 73 20 77 69 |ded with| this wi|
|000015b0| 64 67 65 74 3a 0a 58 2e | 46 44 20 30 0a 58 76 6f |dget:.X.|FD 0.Xvo|
|000015c0| 69 64 20 47 72 61 76 69 | 74 79 43 6f 6e 76 65 72 |id Gravi|tyConver|
|000015d0| 74 65 72 28 5c 66 49 61 | 72 67 73 5c 66 50 2c 20 |ter(\fIa|rgs\fP, |
|000015e0| 5c 66 49 6e 75 6d 5f 61 | 72 67 73 5c 66 50 2c 20 |\fInum_a|rgs\fP, |
|000015f0| 5c 66 49 66 72 6f 6d 56 | 61 6c 5c 66 50 2c 20 5c |\fIfromV|al\fP, \|
|00001600| 66 49 74 6f 56 61 6c 5c | 66 50 29 0a 58 2e 62 72 |fItoVal\|fP).X.br|
|00001610| 0a 58 20 20 20 20 20 20 | 58 72 6d 56 61 6c 75 65 |.X |XrmValue|
|00001620| 50 74 72 20 5c 66 49 61 | 72 67 73 5c 66 50 3b 0a |Ptr \fIa|rgs\fP;.|
|00001630| 58 20 20 20 20 20 20 43 | 61 72 64 69 6e 61 6c 20 |X C|ardinal |
|00001640| 2a 20 5c 66 49 6e 75 6d | 5f 61 72 67 73 5c 66 50 |* \fInum|_args\fP|
|00001650| 3b 0a 58 20 20 20 20 20 | 20 58 72 6d 56 61 6c 75 |;.X | XrmValu|
|00001660| 65 50 74 72 20 5c 66 49 | 66 72 6f 6d 56 61 6c 5c |ePtr \fI|fromVal\|
|00001670| 66 50 3b 0a 58 20 20 20 | 20 20 20 58 72 6d 56 61 |fP;.X | XrmVa|
|00001680| 6c 75 65 50 74 72 20 5c | 66 49 74 6f 56 61 6c 5c |luePtr \|fItoVal\|
|00001690| 66 50 3b 0a 58 2e 46 4e | 0a 58 2e 49 50 20 5c 66 |fP;.X.FN|.X.IP \f|
|000016a0| 49 61 72 67 73 5c 66 50 | 20 31 69 0a 58 54 68 69 |Iargs\fP| 1i.XThi|
|000016b0| 73 20 61 72 67 75 6d 65 | 6e 74 20 69 73 20 69 67 |s argume|nt is ig|
|000016c0| 6e 6f 72 65 64 2c 20 62 | 75 74 20 73 68 6f 75 6c |nored, b|ut shoul|
|000016d0| 64 20 62 65 20 73 70 65 | 63 69 66 69 65 64 20 61 |d be spe|cified a|
|000016e0| 73 20 4e 55 4c 4c 2e 0a | 58 2e 49 50 20 5c 66 49 |s NULL..|X.IP \fI|
|000016f0| 6e 75 6d 5f 61 72 67 73 | 5c 66 50 20 31 69 0a 58 |num_args|\fP 1i.X|
|00001700| 54 68 69 73 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |This arg|ument is|
|00001710| 20 69 67 6e 6f 72 65 64 | 2c 20 62 75 74 20 73 68 | ignored|, but sh|
|00001720| 6f 75 6c 64 20 62 65 20 | 73 70 65 63 69 66 69 65 |ould be |specifie|
|00001730| 64 20 61 73 20 4e 55 4c | 4c 2e 0a 58 2e 49 50 20 |d as NUL|L..X.IP |
|00001740| 5c 66 49 66 72 6f 6d 56 | 61 6c 5c 66 50 20 31 69 |\fIfromV|al\fP 1i|
|00001750| 0a 58 41 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |.XA poin|ter to t|
|00001760| 68 65 20 58 72 6d 56 61 | 6c 75 65 20 73 74 72 75 |he XrmVa|lue stru|
|00001770| 63 74 75 72 65 20 74 68 | 61 74 20 68 61 73 20 62 |cture th|at has b|
|00001780| 65 65 6e 20 66 69 6c 6c | 65 64 20 77 69 74 68 20 |een fill|ed with |
|00001790| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 0a 58 74 68 |a pointe|r to.Xth|
|000017a0| 65 20 73 74 72 69 6e 67 | 20 74 6f 20 62 65 20 63 |e string| to be c|
|000017b0| 6f 6e 76 65 72 74 65 64 | 2e 0a 58 2e 49 50 20 5c |onverted|..X.IP \|
|000017c0| 66 49 74 6f 56 61 6c 5c | 66 50 20 31 69 0a 58 41 |fItoVal\|fP 1i.XA|
|000017d0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|000017e0| 58 72 6d 56 61 6c 75 65 | 20 73 74 72 75 63 74 75 |XrmValue| structu|
|000017f0| 72 65 20 74 68 61 74 20 | 77 69 6c 6c 20 62 65 20 |re that |will be |
|00001800| 66 69 6c 6c 65 64 20 77 | 69 74 68 20 61 20 70 6f |filled w|ith a po|
|00001810| 69 6e 74 65 72 20 74 6f | 0a 58 74 68 65 20 63 6f |inter to|.Xthe co|
|00001820| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 47 72 61 76 |rrespond|ing Grav|
|00001830| 69 74 79 2e 0a 58 2e 4c | 50 0a 58 2e 49 50 20 5c |ity..X.L|P.X.IP \|
|00001840| 66 42 53 74 72 69 6e 67 | 54 61 62 6c 65 5c 66 50 |fBString|Table\fP|
|00001850| 20 31 2e 30 69 0a 58 41 | 20 4e 55 4c 4c 20 74 65 | 1.0i.XA| NULL te|
|00001860| 72 6d 69 6e 61 74 65 64 | 20 61 72 72 61 79 20 6f |rminated| array o|
|00001870| 66 20 73 74 72 69 6e 67 | 20 70 6f 69 6e 74 65 72 |f string| pointer|
|00001880| 73 2e 20 20 5c 66 42 54 | 68 65 20 53 74 72 69 6e |s. \fBT|he Strin|
|00001890| 67 54 61 62 6c 65 43 6f | 6e 76 65 72 74 65 72 5c |gTableCo|nverter\|
|000018a0| 66 50 0a 58 72 65 73 6f | 75 72 63 65 20 63 6f 6e |fP.Xreso|urce con|
|000018b0| 76 65 72 74 65 72 20 69 | 73 20 61 75 74 6f 6d 61 |verter i|s automa|
|000018c0| 74 69 63 61 6c 6c 79 20 | 69 6e 63 6c 75 64 65 64 |tically |included|
|000018d0| 20 77 69 74 68 20 74 68 | 69 73 20 77 69 64 67 65 | with th|is widge|
|000018e0| 74 3a 0a 58 2e 46 44 20 | 30 0a 58 76 6f 69 64 20 |t:.X.FD |0.Xvoid |
|000018f0| 53 74 72 69 6e 67 54 61 | 62 6c 65 43 6f 6e 76 65 |StringTa|bleConve|
|00001900| 72 74 65 72 28 5c 66 49 | 61 72 67 73 5c 66 50 2c |rter(\fI|args\fP,|
|00001910| 20 5c 66 49 6e 75 6d 5f | 61 72 67 73 5c 66 50 2c | \fInum_|args\fP,|
|00001920| 20 5c 66 49 66 72 6f 6d | 56 61 6c 5c 66 50 2c 20 | \fIfrom|Val\fP, |
|00001930| 5c 66 49 74 6f 56 61 6c | 5c 66 50 29 0a 58 2e 62 |\fItoVal|\fP).X.b|
|00001940| 72 0a 58 20 20 20 20 20 | 20 58 72 6d 56 61 6c 75 |r.X | XrmValu|
|00001950| 65 50 74 72 20 5c 66 49 | 61 72 67 73 5c 66 50 3b |ePtr \fI|args\fP;|
|00001960| 0a 58 20 20 20 20 20 20 | 43 61 72 64 69 6e 61 6c |.X |Cardinal|
|00001970| 20 2a 20 5c 66 49 6e 75 | 6d 5f 61 72 67 73 5c 66 | * \fInu|m_args\f|
|00001980| 50 3b 0a 58 20 20 20 20 | 20 20 58 72 6d 56 61 6c |P;.X | XrmVal|
|00001990| 75 65 50 74 72 20 5c 66 | 49 66 72 6f 6d 56 61 6c |uePtr \f|IfromVal|
|000019a0| 5c 66 50 3b 0a 58 20 20 | 20 20 20 20 58 72 6d 56 |\fP;.X | XrmV|
|000019b0| 61 6c 75 65 50 74 72 20 | 5c 66 49 74 6f 56 61 6c |aluePtr |\fItoVal|
|000019c0| 5c 66 50 3b 0a 58 2e 46 | 4e 0a 58 2e 49 50 20 5c |\fP;.X.F|N.X.IP \|
|000019d0| 66 49 61 72 67 73 5c 66 | 50 20 31 69 0a 58 54 68 |fIargs\f|P 1i.XTh|
|000019e0| 69 73 20 61 72 67 75 6d | 65 6e 74 20 69 73 20 69 |is argum|ent is i|
|000019f0| 67 6e 6f 72 65 64 2c 20 | 62 75 74 20 73 68 6f 75 |gnored, |but shou|
|00001a00| 6c 64 20 62 65 20 73 70 | 65 63 69 66 69 65 64 20 |ld be sp|ecified |
|00001a10| 61 73 20 4e 55 4c 4c 2e | 0a 58 2e 49 50 20 5c 66 |as NULL.|.X.IP \f|
|00001a20| 49 6e 75 6d 5f 61 72 67 | 73 5c 66 50 20 31 69 0a |Inum_arg|s\fP 1i.|
|00001a30| 58 54 68 69 73 20 61 72 | 67 75 6d 65 6e 74 20 69 |XThis ar|gument i|
|00001a40| 73 20 69 67 6e 6f 72 65 | 64 2c 20 62 75 74 20 73 |s ignore|d, but s|
|00001a50| 68 6f 75 6c 64 20 62 65 | 20 73 70 65 63 69 66 69 |hould be| specifi|
|00001a60| 65 64 20 61 73 20 4e 55 | 4c 4c 2e 0a 58 2e 49 50 |ed as NU|LL..X.IP|
|00001a70| 20 5c 66 49 66 72 6f 6d | 56 61 6c 5c 66 50 20 31 | \fIfrom|Val\fP 1|
|00001a80| 69 0a 58 41 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |i.XA poi|nter to |
|00001a90| 74 68 65 20 58 72 6d 56 | 61 6c 75 65 20 73 74 72 |the XrmV|alue str|
|00001aa0| 75 63 74 75 72 65 20 74 | 68 61 74 20 68 61 73 20 |ucture t|hat has |
|00001ab0| 62 65 65 6e 20 66 69 6c | 6c 65 64 20 77 69 74 68 |been fil|led with|
|00001ac0| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 0a 58 74 | a point|er to.Xt|
|00001ad0| 68 65 20 73 74 72 69 6e | 67 20 74 6f 20 62 65 20 |he strin|g to be |
|00001ae0| 63 6f 6e 76 65 72 74 65 | 64 2e 0a 58 2e 49 50 20 |converte|d..X.IP |
|00001af0| 5c 66 49 74 6f 56 61 6c | 5c 66 50 20 31 69 0a 58 |\fItoVal|\fP 1i.X|
|00001b00| 41 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |A pointe|r to the|
|00001b10| 20 58 72 6d 56 61 6c 75 | 65 20 73 74 72 75 63 74 | XrmValu|e struct|
|00001b20| 75 72 65 20 74 68 61 74 | 20 77 69 6c 6c 20 62 65 |ure that| will be|
|00001b30| 20 66 69 6c 6c 65 64 20 | 77 69 74 68 20 61 20 70 | filled |with a p|
|00001b40| 6f 69 6e 74 65 72 20 74 | 6f 0a 58 74 68 65 20 72 |ointer t|o.Xthe r|
|00001b50| 65 73 75 6c 74 69 6e 67 | 20 53 74 72 69 6e 67 54 |esulting| StringT|
|00001b60| 61 62 6c 65 2e 0a 58 2e | 4c 50 0a 58 54 68 65 20 |able..X.|LP.XThe |
|00001b70| 73 74 72 69 6e 67 20 74 | 6f 20 62 65 20 63 6f 6e |string t|o be con|
|00001b80| 76 65 72 74 65 64 20 6d | 75 73 74 20 62 65 20 73 |verted m|ust be s|
|00001b90| 70 65 63 69 66 69 65 64 | 20 61 73 20 61 20 63 6f |pecified| as a co|
|00001ba0| 6d 6d 61 20 73 65 70 61 | 72 61 74 65 64 20 6c 69 |mma sepa|rated li|
|00001bb0| 73 74 20 6f 66 20 0a 58 | 64 6f 75 62 6c 65 20 71 |st of .X|double q|
|00001bc0| 75 6f 74 65 64 20 73 75 | 62 2d 73 74 72 69 6e 67 |uoted su|b-string|
|00001bd0| 73 2e 0a 58 2e 4c 50 0a | 58 2e 49 50 20 5c 66 42 |s..X.LP.|X.IP \fB|
|00001be0| 44 61 79 4e 61 6d 65 5c | 66 50 20 31 69 0a 58 54 |DayName\|fP 1i.XT|
|00001bf0| 79 70 65 64 65 66 20 6f | 66 20 61 6e 20 65 6e 75 |ypedef o|f an enu|
|00001c00| 6d 65 72 61 74 65 64 20 | 74 79 70 65 2e 20 20 54 |merated |type. T|
|00001c10| 68 69 73 20 6d 61 79 20 | 68 61 76 65 20 6f 6e 65 |his may |have one|
|00001c20| 20 6f 66 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | of the |followin|
|00001c30| 67 20 76 61 6c 75 65 73 | 3a 0a 58 5c 66 42 53 75 |g values|:.X\fBSu|
|00001c40| 6e 64 61 79 2c 20 4d 6f | 6e 64 61 79 2c 20 54 75 |nday, Mo|nday, Tu|
|00001c50| 65 73 64 61 79 2c 20 57 | 65 64 6e 65 73 64 61 79 |esday, W|ednesday|
|00001c60| 2c 20 54 68 75 72 73 64 | 61 79 2c 20 46 72 69 64 |, Thursd|ay, Frid|
|00001c70| 61 79 2c 20 5c 66 50 61 | 6e 64 0a 58 5c 66 42 53 |ay, \fPa|nd.X\fBS|
|00001c80| 61 74 75 72 64 61 79 5c | 66 50 2e 20 20 54 68 65 |aturday\|fP. The|
|00001c90| 20 5c 66 42 44 61 79 4e | 61 6d 65 43 6f 6e 76 65 | \fBDayN|ameConve|
|00001ca0| 72 74 65 72 5c 66 50 20 | 72 65 73 6f 75 72 63 65 |rter\fP |resource|
|00001cb0| 20 63 6f 6e 76 65 72 74 | 65 72 20 69 73 0a 58 61 | convert|er is.Xa|
|00001cc0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 69 6e 63 |utomatic|ally inc|
|00001cd0| 6c 75 64 65 64 20 77 69 | 74 68 20 74 68 69 73 20 |luded wi|th this |
|00001ce0| 77 69 64 67 65 74 3a 0a | 58 2e 46 44 20 30 0a 58 |widget:.|X.FD 0.X|
|00001cf0| 76 6f 69 64 20 44 61 79 | 4e 61 6d 65 43 6f 6e 76 |void Day|NameConv|
|00001d00| 65 72 74 65 72 20 28 5c | 66 49 61 72 67 73 5c 66 |erter (\|fIargs\f|
|00001d10| 50 2c 20 5c 66 49 6e 75 | 6d 5f 61 72 67 73 5c 66 |P, \fInu|m_args\f|
|00001d20| 50 2c 20 5c 66 49 66 72 | 6f 6d 56 61 6c 5c 66 50 |P, \fIfr|omVal\fP|
|00001d30| 2c 20 5c 66 49 74 6f 56 | 61 6c 5c 66 50 29 0a 58 |, \fItoV|al\fP).X|
|00001d40| 2e 62 72 0a 58 20 20 20 | 20 20 20 58 72 6d 56 61 |.br.X | XrmVa|
|00001d50| 6c 75 65 50 74 72 20 5c | 66 49 61 72 67 73 5c 66 |luePtr \|fIargs\f|
|00001d60| 50 3b 0a 58 20 20 20 20 | 20 20 43 61 72 64 69 6e |P;.X | Cardin|
|00001d70| 61 6c 20 2a 20 5c 66 49 | 6e 75 6d 5f 61 72 67 73 |al * \fI|num_args|
|00001d80| 5c 66 50 3b 0a 58 20 20 | 20 20 20 20 58 72 6d 56 |\fP;.X | XrmV|
|00001d90| 61 6c 75 65 50 74 72 20 | 5c 66 49 66 72 6f 6d 56 |aluePtr |\fIfromV|
|00001da0| 61 6c 5c 66 50 3b 0a 58 | 20 20 20 20 20 20 58 72 |al\fP;.X| Xr|
|00001db0| 6d 56 61 6c 75 65 50 74 | 72 20 5c 66 49 74 6f 56 |mValuePt|r \fItoV|
|00001dc0| 61 6c 5c 66 50 3b 0a 58 | 2e 46 4e 0a 58 2e 49 50 |al\fP;.X|.FN.X.IP|
|00001dd0| 20 5c 66 49 61 72 67 73 | 5c 66 50 20 31 69 0a 58 | \fIargs|\fP 1i.X|
|00001de0| 54 68 69 73 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |This arg|ument is|
|00001df0| 20 69 67 6e 6f 72 65 64 | 2c 20 62 75 74 20 73 68 | ignored|, but sh|
|00001e00| 6f 75 6c 64 20 62 65 20 | 73 70 65 63 69 66 69 65 |ould be |specifie|
|00001e10| 64 20 61 73 20 4e 55 4c | 4c 2e 0a 58 2e 49 50 20 |d as NUL|L..X.IP |
|00001e20| 5c 66 49 6e 75 6d 5f 61 | 72 67 73 5c 66 50 20 31 |\fInum_a|rgs\fP 1|
|00001e30| 69 0a 58 54 68 69 73 20 | 61 72 67 75 6d 65 6e 74 |i.XThis |argument|
|00001e40| 20 69 73 20 69 67 6e 6f | 72 65 64 2c 20 62 75 74 | is igno|red, but|
|00001e50| 20 73 68 6f 75 6c 64 20 | 62 65 20 73 70 65 63 69 | should |be speci|
|00001e60| 66 69 65 64 20 61 73 20 | 4e 55 4c 4c 2e 0a 58 2e |fied as |NULL..X.|
|00001e70| 49 50 20 5c 66 49 66 72 | 6f 6d 56 61 6c 5c 66 50 |IP \fIfr|omVal\fP|
|00001e80| 20 31 69 0a 58 41 20 70 | 6f 69 6e 74 65 72 20 74 | 1i.XA p|ointer t|
|00001e90| 6f 20 74 68 65 20 58 72 | 6d 56 61 6c 75 65 20 73 |o the Xr|mValue s|
|00001ea0| 74 72 75 63 74 75 72 65 | 20 74 68 61 74 20 68 61 |tructure| that ha|
|00001eb0| 73 20 62 65 65 6e 20 66 | 69 6c 6c 65 64 20 77 69 |s been f|illed wi|
|00001ec0| 74 68 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 0a |th a poi|nter to.|
|00001ed0| 58 74 68 65 20 73 74 72 | 69 6e 67 20 74 6f 20 62 |Xthe str|ing to b|
|00001ee0| 65 20 63 6f 6e 76 65 72 | 74 65 64 2e 0a 58 2e 49 |e conver|ted..X.I|
|00001ef0| 50 20 5c 66 49 74 6f 56 | 61 6c 5c 66 50 20 31 69 |P \fItoV|al\fP 1i|
|00001f00| 0a 58 41 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |.XA poin|ter to t|
|00001f10| 68 65 20 58 72 6d 56 61 | 6c 75 65 20 73 74 72 75 |he XrmVa|lue stru|
|00001f20| 63 74 75 72 65 20 74 68 | 61 74 20 77 69 6c 6c 20 |cture th|at will |
|00001f30| 62 65 20 66 69 6c 6c 65 | 64 20 77 69 74 68 20 61 |be fille|d with a|
|00001f40| 20 70 6f 69 6e 74 65 72 | 20 74 6f 0a 58 74 68 65 | pointer| to.Xthe|
|00001f50| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 44 | corresp|onding D|
|00001f60| 61 79 4e 61 6d 65 2e 0a | 58 2e 4e 48 20 32 0a 58 |ayName..|X.NH 2.X|
|00001f70| 43 61 6c 65 6e 64 61 72 | 20 41 63 74 69 6f 6e 73 |Calendar| Actions|
|00001f80| 0a 58 2e 4c 50 0a 58 54 | 68 65 20 43 61 6c 65 6e |.X.LP.XT|he Calen|
|00001f90| 64 61 72 20 77 69 64 67 | 65 74 20 73 75 70 70 6f |dar widg|et suppo|
|00001fa0| 72 74 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |rts the |followin|
|00001fb0| 67 20 61 63 74 69 6f 6e | 73 3a 0a 58 2e 49 50 20 |g action|s:.X.IP |
|00001fc0| 5c 28 62 75 20 35 0a 58 | 55 6e 68 69 67 68 6c 69 |\(bu 5.X|Unhighli|
|00001fd0| 67 68 74 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |ght the |previous|
|00001fe0| 6c 79 20 68 69 67 68 6c | 69 67 68 74 65 64 20 63 |ly highl|ighted c|
|00001ff0| 61 6c 65 6e 64 61 72 20 | 63 65 6c 6c 20 61 6e 64 |alendar |cell and|
|00002000| 20 68 69 67 68 6c 69 67 | 68 74 20 74 68 65 0a 58 | highlig|ht the.X|
|00002010| 63 61 6c 65 6e 64 61 72 | 20 63 65 6c 6c 20 63 75 |calendar| cell cu|
|00002020| 72 72 65 6e 74 6c 79 20 | 62 65 6e 65 61 74 68 20 |rrently |beneath |
|00002030| 74 68 65 20 70 6f 69 6e | 74 65 72 20 77 69 74 68 |the poin|ter with|
|00002040| 20 5c 66 42 73 65 6c 65 | 63 74 5c 66 50 2e 0a 58 | \fBsele|ct\fP..X|
|00002050| 2e 49 50 20 5c 28 62 75 | 20 35 0a 58 50 72 6f 63 |.IP \(bu| 5.XProc|
|00002060| 65 73 73 20 63 61 6c 65 | 6e 64 61 72 20 73 65 6c |ess cale|ndar sel|
|00002070| 65 63 74 69 6f 6e 20 63 | 61 6c 6c 62 61 63 6b 73 |ection c|allbacks|
|00002080| 20 77 69 74 68 20 5c 66 | 42 6e 6f 74 69 66 79 5c | with \f|Bnotify\|
|00002090| 66 50 2e 0a 58 2e 73 70 | 0a 58 2e 4c 50 0a 58 54 |fP..X.sp|.X.LP.XT|
|000020a0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 61 72 65 |he follo|wing are|
|000020b0| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 74 72 61 | the def|ault tra|
|000020c0| 6e 73 6c 61 74 69 6f 6e | 20 62 69 6e 64 69 6e 67 |nslation| binding|
|000020d0| 73 20 75 73 65 64 20 62 | 79 20 74 68 65 20 43 61 |s used b|y the Ca|
|000020e0| 6c 65 6e 64 61 72 0a 58 | 77 69 64 67 65 74 3a 0a |lendar.X|widget:.|
|000020f0| 58 2e 4c 50 0a 58 2e 73 | 70 0a 58 2e 44 73 20 30 |X.LP.X.s|p.X.Ds 0|
|00002100| 0a 58 2e 54 41 20 2e 35 | 69 20 32 2e 32 35 69 0a |.X.TA .5|i 2.25i.|
|00002110| 58 2e 74 61 20 2e 35 69 | 20 32 2e 32 35 69 0a 58 |X.ta .5i| 2.25i.X|
|00002120| 09 3c 42 74 6e 31 44 6f | 77 6e 3e 3a 09 73 65 6c |.<Btn1Do|wn>:.sel|
|00002130| 65 63 74 28 29 0a 58 09 | 3c 42 74 6e 31 4d 6f 74 |ect().X.|<Btn1Mot|
|00002140| 69 6f 6e 3e 3a 09 73 65 | 6c 65 63 74 28 29 0a 58 |ion>:.se|lect().X|
|00002150| 09 3c 42 74 6e 31 55 70 | 3e 3a 09 6e 6f 74 69 66 |.<Btn1Up|>:.notif|
|00002160| 79 28 29 0a 58 2e 44 65 | 0a 58 2e 73 70 0a 58 2e |y().X.De|.X.sp.X.|
|00002170| 4c 50 0a 58 2e 4e 48 20 | 32 0a 58 43 6f 6e 76 65 |LP.X.NH |2.XConve|
|00002180| 6e 69 65 6e 63 65 20 52 | 6f 75 74 69 6e 65 73 0a |nience R|outines.|
|00002190| 58 2e 4c 50 0a 58 46 6f | 72 20 63 6f 6e 76 65 6e |X.LP.XFo|r conven|
|000021a0| 69 65 6e 63 65 20 61 6e | 64 20 73 70 65 65 64 20 |ience an|d speed |
|000021b0| 72 65 61 73 6f 6e 73 2c | 20 61 6c 6c 20 6f 66 20 |reasons,| all of |
|000021c0| 74 68 65 20 64 61 74 65 | 20 72 65 6c 61 74 65 64 |the date| related|
|000021d0| 20 72 65 73 6f 75 72 63 | 65 73 20 6f 66 20 74 68 | resourc|es of th|
|000021e0| 65 0a 58 63 61 6c 65 6e | 64 61 72 20 77 69 64 67 |e.Xcalen|dar widg|
|000021f0| 65 74 20 61 72 65 20 6f | 6e 6c 79 20 61 63 63 65 |et are o|nly acce|
|00002200| 73 69 62 6c 65 20 76 69 | 61 20 70 75 62 6c 69 63 |sible vi|a public|
|00002210| 20 66 75 6e 63 74 69 6f | 6e 73 2e 0a 58 2e 4c 50 | functio|ns..X.LP|
|00002220| 0a 58 49 6e 20 6f 72 64 | 65 72 20 74 6f 20 75 73 |.XIn ord|er to us|
|00002230| 65 20 74 68 65 20 63 6f | 6e 76 65 6e 69 65 6e 63 |e the co|nvenienc|
|00002240| 65 20 72 6f 75 74 69 6e | 65 73 20 65 66 66 65 63 |e routin|es effec|
|00002250| 74 69 76 65 6c 79 2c 20 | 69 74 20 69 73 20 69 6d |tively, |it is im|
|00002260| 70 6f 72 74 61 6e 74 20 | 74 6f 0a 58 75 6e 64 65 |portant |to.Xunde|
|00002270| 72 73 74 61 6e 64 20 74 | 68 61 74 20 61 20 63 61 |rstand t|hat a ca|
|00002280| 6c 65 6e 64 61 72 20 77 | 69 64 67 65 74 20 68 61 |lendar w|idget ha|
|00002290| 73 20 74 77 6f 20 5c 66 | 49 75 6e 72 65 6c 61 74 |s two \f|Iunrelat|
|000022a0| 65 64 5c 66 50 20 72 65 | 73 6f 75 72 63 65 73 20 |ed\fP re|sources |
|000022b0| 6f 66 20 74 79 70 65 0a | 58 5c 66 42 44 61 74 65 |of type.|X\fBDate|
|000022c0| 5c 66 50 3a 0a 58 2e 49 | 50 20 5c 66 42 6d 6f 6e |\fP:.X.I|P \fBmon|
|000022d0| 74 68 5c 66 50 20 31 69 | 0a 58 54 68 65 20 64 61 |th\fP 1i|.XThe da|
|000022e0| 74 65 20 73 70 65 63 69 | 66 69 65 64 20 66 6f 72 |te speci|fied for|
|000022f0| 20 74 68 69 73 20 72 65 | 73 6f 75 72 63 65 20 64 | this re|source d|
|00002300| 65 74 65 72 6d 69 6e 65 | 73 20 77 68 61 74 20 6d |etermine|s what m|
|00002310| 6f 6e 74 68 20 74 68 65 | 20 63 61 6c 65 6e 64 61 |onth the| calenda|
|00002320| 72 20 77 69 64 67 65 74 | 0a 58 69 73 20 74 6f 20 |r widget|.Xis to |
|00002330| 64 69 73 70 6c 61 79 2e | 20 20 41 20 6d 6f 6e 74 |display.| A mont|
|00002340| 68 20 61 6e 64 20 79 65 | 61 72 20 61 72 65 20 72 |h and ye|ar are r|
|00002350| 65 71 75 69 72 65 64 20 | 74 6f 20 73 70 65 63 69 |equired |to speci|
|00002360| 66 79 20 61 20 75 6e 69 | 71 75 65 20 5c 66 42 6d |fy a uni|que \fBm|
|00002370| 6f 6e 74 68 5c 66 50 2e | 0a 58 2e 49 50 20 5c 66 |onth\fP.|.X.IP \f|
|00002380| 42 64 61 74 65 5c 66 50 | 20 31 69 0a 58 54 68 65 |Bdate\fP| 1i.XThe|
|00002390| 20 64 61 74 65 20 73 70 | 65 63 69 66 69 65 64 20 | date sp|ecified |
|000023a0| 66 6f 72 20 74 68 69 73 | 20 72 65 73 6f 75 72 63 |for this| resourc|
|000023b0| 65 20 64 65 74 65 72 6d | 69 6e 65 73 20 77 68 61 |e determ|ines wha|
|000023c0| 74 20 73 70 65 63 69 66 | 69 63 20 64 61 79 20 74 |t specif|ic day t|
|000023d0| 68 65 20 63 61 6c 65 6e | 64 61 72 0a 58 77 69 64 |he calen|dar.Xwid|
|000023e0| 67 65 74 20 69 73 20 74 | 6f 20 68 69 67 68 6c 69 |get is t|o highli|
|000023f0| 67 68 74 2e 20 20 41 20 | 6d 6f 6e 74 68 2c 20 64 |ght. A |month, d|
|00002400| 61 79 2c 20 61 6e 64 20 | 79 65 61 72 20 61 72 65 |ay, and |year are|
|00002410| 20 72 65 71 75 69 72 65 | 64 20 74 6f 20 73 70 65 | require|d to spe|
|00002420| 63 69 66 79 20 61 0a 58 | 75 6e 69 71 75 65 20 5c |cify a.X|unique \|
|00002430| 66 42 64 61 74 65 5c 66 | 50 2e 0a 58 2e 4e 48 20 |fBdate\f|P..X.NH |
|00002440| 33 0a 58 53 65 74 74 69 | 6e 67 20 74 68 65 20 43 |3.XSetti|ng the C|
|00002450| 61 6c 65 6e 64 61 72 20 | 57 69 64 67 65 74 27 73 |alendar |Widget's|
|00002460| 20 6d 6f 6e 74 68 0a 58 | 2e 4c 50 0a 58 54 68 65 | month.X|.LP.XThe|
|00002470| 20 5c 66 42 6d 6f 6e 74 | 68 5c 66 50 20 66 6f 72 | \fBmont|h\fP for|
|00002480| 20 74 68 65 20 63 61 6c | 65 6e 64 61 72 20 77 69 | the cal|endar wi|
|00002490| 64 67 65 74 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |dget to |display |
|000024a0| 63 61 6e 20 62 65 20 73 | 65 74 20 62 79 20 63 61 |can be s|et by ca|
|000024b0| 6c 6c 69 6e 67 3a 0a 58 | 2e 46 44 20 30 0a 58 76 |lling:.X|.FD 0.Xv|
|000024c0| 6f 69 64 20 43 61 6c 65 | 6e 64 61 72 53 68 6f 77 |oid Cale|ndarShow|
|000024d0| 4d 6f 6e 74 68 28 5c 66 | 49 77 69 64 67 65 74 5c |Month(\f|Iwidget\|
|000024e0| 66 50 2c 20 5c 66 49 64 | 61 74 65 5c 66 50 29 0a |fP, \fId|ate\fP).|
|000024f0| 58 2e 62 72 0a 58 20 20 | 20 20 20 20 43 61 6c 65 |X.br.X | Cale|
|00002500| 6e 64 61 72 57 69 64 67 | 65 74 20 5c 66 49 77 69 |ndarWidg|et \fIwi|
|00002510| 64 67 65 74 5c 66 50 3b | 0a 58 20 20 20 20 20 20 |dget\fP;|.X |
|00002520| 44 61 74 65 20 5c 66 49 | 64 69 67 69 74 5c 66 50 |Date \fI|digit\fP|
|00002530| 3b 0a 58 2e 46 4e 0a 58 | 2e 49 50 20 5c 66 49 77 |;.X.FN.X|.IP \fIw|
|00002540| 69 64 67 65 74 5c 66 50 | 20 31 69 0a 58 53 70 65 |idget\fP| 1i.XSpe|
|00002550| 63 69 66 69 65 73 20 74 | 68 65 20 63 61 6c 65 6e |cifies t|he calen|
|00002560| 64 61 72 20 77 69 64 67 | 65 74 2e 0a 58 2e 49 50 |dar widg|et..X.IP|
|00002570| 20 5c 66 49 64 61 74 65 | 5c 66 50 20 31 69 0a 58 | \fIdate|\fP 1i.X|
|00002580| 53 70 65 63 69 66 69 65 | 73 20 74 68 65 20 6e 65 |Specifie|s the ne|
|00002590| 77 20 64 61 74 65 20 77 | 68 6f 73 65 20 6d 6f 6e |w date w|hose mon|
|000025a0| 74 68 20 61 6e 64 20 79 | 65 61 72 20 66 69 65 6c |th and y|ear fiel|
|000025b0| 64 73 20 77 69 6c 6c 20 | 64 65 74 65 72 6d 69 6e |ds will |determin|
|000025c0| 65 20 74 68 65 20 6e 65 | 77 0a 58 5c 66 42 6d 6f |e the ne|w.X\fBmo|
|000025d0| 6e 74 68 5c 66 50 20 66 | 6f 72 20 74 68 65 20 63 |nth\fP f|or the c|
|000025e0| 61 6c 65 6e 64 61 72 20 | 74 6f 20 64 69 73 70 6c |alendar |to displ|
|000025f0| 61 79 2e 0a 58 2e 4c 50 | 0a 58 43 61 6c 6c 69 6e |ay..X.LP|.XCallin|
|00002600| 67 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |g this f|unction |
|00002610| 77 69 6c 6c 20 63 68 61 | 6e 67 65 20 74 68 65 20 |will cha|nge the |
|00002620| 5c 66 42 6d 6f 6e 74 68 | 5c 66 50 20 74 68 61 74 |\fBmonth|\fP that|
|00002630| 20 69 73 20 63 75 72 72 | 65 6e 74 6c 79 20 62 65 | is curr|ently be|
|00002640| 69 6e 67 0a 58 64 69 73 | 70 6c 61 79 65 64 20 6f |ing.Xdis|played o|
|00002650| 6e 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |n the sp|ecified |
|00002660| 63 61 6c 65 6e 64 61 72 | 20 77 69 64 67 65 74 2c |calendar| widget,|
|00002670| 20 69 66 20 69 74 20 64 | 69 66 66 65 72 73 20 66 | if it d|iffers f|
|00002680| 72 6f 6d 20 74 68 65 20 | 5c 66 42 6d 6f 6e 74 68 |rom the |\fBmonth|
|00002690| 5c 66 50 0a 58 74 68 61 | 74 20 74 68 65 20 63 61 |\fP.Xtha|t the ca|
|000026a0| 6c 65 6e 64 61 72 20 77 | 69 64 67 65 74 20 69 73 |lendar w|idget is|
|000026b0| 20 63 75 72 72 65 6e 74 | 6c 79 20 64 69 73 70 6c | current|ly displ|
|000026c0| 61 79 69 6e 67 2e 20 20 | 54 68 65 20 64 61 79 20 |aying. |The day |
|000026d0| 66 69 65 6c 64 20 69 73 | 20 69 67 6e 6f 72 65 64 |field is| ignored|
|000026e0| 0a 58 61 6e 64 20 6d 61 | 79 20 62 65 20 7a 65 72 |.Xand ma|y be zer|
|000026f0| 6f 2e 20 20 49 66 20 74 | 68 65 20 73 70 65 63 69 |o. If t|he speci|
|00002700| 66 69 65 64 20 5c 66 42 | 6d 6f 6e 74 68 5c 66 50 |fied \fB|month\fP|
|00002710| 20 63 6f 72 72 65 73 70 | 6f 6e 64 73 20 74 6f 20 | corresp|onds to |
|00002720| 74 68 65 20 5c 66 42 64 | 61 74 65 5c 66 50 0a 58 |the \fBd|ate\fP.X|
|00002730| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 74 68 65 |specifie|d by the|
|00002740| 20 6c 61 73 74 20 63 61 | 6c 6c 20 74 6f 20 5c 66 | last ca|ll to \f|
|00002750| 42 43 61 6c 65 6e 64 61 | 72 53 65 74 44 61 74 65 |BCalenda|rSetDate|
|00002760| 5c 66 50 2c 20 61 6e 64 | 20 74 68 65 20 5c 66 42 |\fP, and| the \fB|
|00002770| 68 69 67 68 6c 69 67 68 | 74 5c 66 50 0a 58 72 65 |highligh|t\fP.Xre|
|00002780| 73 6f 75 72 63 65 20 69 | 73 20 5c 66 42 54 72 75 |source i|s \fBTru|
|00002790| 65 5c 66 50 2c 20 74 68 | 65 6e 20 74 68 61 74 20 |e\fP, th|en that |
|000027a0| 73 70 65 63 69 66 69 65 | 64 20 5c 66 42 64 61 74 |specifie|d \fBdat|
|000027b0| 65 5c 66 50 20 77 69 6c | 6c 20 61 70 70 65 61 72 |e\fP wil|l appear|
|000027c0| 0a 58 68 69 67 68 6c 69 | 67 68 74 65 64 2e 0a 58 |.Xhighli|ghted..X|
|000027d0| 2e 4e 48 20 33 0a 58 53 | 65 74 74 69 6e 67 20 74 |.NH 3.XS|etting t|
|000027e0| 68 65 20 43 61 6c 65 6e | 64 61 72 20 57 69 64 67 |he Calen|dar Widg|
|000027f0| 65 74 27 73 20 64 61 74 | 65 0a 58 2e 4c 50 0a 58 |et's dat|e.X.LP.X|
|00002800| 54 6f 20 73 65 74 20 74 | 68 65 20 5c 66 42 64 61 |To set t|he \fBda|
|00002810| 74 65 5c 66 50 20 66 6f | 72 20 74 68 65 20 63 61 |te\fP fo|r the ca|
|00002820| 6c 65 6e 64 61 72 20 77 | 69 64 67 65 74 20 74 6f |lendar w|idget to|
|00002830| 20 68 69 67 68 6c 69 67 | 68 74 20 75 73 65 20 74 | highlig|ht use t|
|00002840| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 0a 58 66 75 |he follo|wing.Xfu|
|00002850| 6e 63 74 69 6f 6e 3a 0a | 58 2e 46 44 20 30 0a 58 |nction:.|X.FD 0.X|
|00002860| 76 6f 69 64 20 43 61 6c | 65 6e 64 61 72 53 65 74 |void Cal|endarSet|
|00002870| 44 61 74 65 28 5c 66 49 | 77 69 64 67 65 74 5c 66 |Date(\fI|widget\f|
|00002880| 50 2c 20 5c 66 49 64 61 | 74 65 5c 66 50 29 0a 58 |P, \fIda|te\fP).X|
|00002890| 2e 62 72 0a 58 20 20 20 | 20 20 20 43 61 6c 65 6e |.br.X | Calen|
|000028a0| 64 61 72 57 69 64 67 65 | 74 20 5c 66 49 77 69 64 |darWidge|t \fIwid|
|000028b0| 67 65 74 5c 66 50 3b 0a | 58 20 20 20 20 20 20 44 |get\fP;.|X D|
|000028c0| 61 74 65 20 5c 66 49 64 | 61 74 65 5c 66 50 3b 0a |ate \fId|ate\fP;.|
|000028d0| 58 2e 46 4e 0a 58 2e 49 | 50 20 5c 66 49 77 69 64 |X.FN.X.I|P \fIwid|
|000028e0| 67 65 74 5c 66 50 20 31 | 69 0a 58 53 70 65 63 69 |get\fP 1|i.XSpeci|
|000028f0| 66 69 65 73 20 74 68 65 | 20 63 61 6c 65 6e 64 61 |fies the| calenda|
|00002900| 72 20 77 69 64 67 65 74 | 2e 0a 58 2e 49 50 20 5c |r widget|..X.IP \|
|00002910| 66 49 64 61 74 65 5c 66 | 50 20 31 69 0a 58 53 70 |fIdate\f|P 1i.XSp|
|00002920| 65 63 69 66 69 65 73 20 | 74 68 65 20 6e 65 77 20 |ecifies |the new |
|00002930| 64 61 74 65 20 66 6f 72 | 20 74 68 65 20 63 61 6c |date for| the cal|
|00002940| 65 6e 64 61 72 20 74 6f | 20 68 69 67 68 6c 69 67 |endar to| highlig|
|00002950| 68 74 2e 0a 58 2e 4c 50 | 0a 58 54 68 65 20 73 70 |ht..X.LP|.XThe sp|
|00002960| 65 63 69 66 69 65 64 20 | 5c 66 42 64 61 74 65 5c |ecified |\fBdate\|
|00002970| 66 50 20 77 69 6c 6c 20 | 61 70 70 65 61 72 20 68 |fP will |appear h|
|00002980| 69 67 68 6c 69 67 68 74 | 65 64 20 6f 6e 20 74 68 |ighlight|ed on th|
|00002990| 65 20 73 70 65 63 69 66 | 69 65 64 20 63 61 6c 65 |e specif|ied cale|
|000029a0| 6e 64 61 72 0a 58 77 69 | 64 67 65 74 20 77 68 65 |ndar.Xwi|dget whe|
|000029b0| 6e 65 76 65 72 20 74 68 | 65 20 77 69 64 67 65 74 |never th|e widget|
|000029c0| 20 68 61 73 20 62 65 65 | 6e 20 74 6f 6c 64 20 74 | has bee|n told t|
|000029d0| 6f 20 64 69 73 70 6c 61 | 79 20 74 68 65 20 63 6f |o displa|y the co|
|000029e0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 0a 58 5c 66 42 |rrespond|ing.X\fB|
|000029f0| 6d 6f 6e 74 68 5c 66 50 | 2c 20 69 66 20 74 68 65 |month\fP|, if the|
|00002a00| 20 5c 66 42 68 69 67 68 | 6c 69 67 68 74 5c 66 50 | \fBhigh|light\fP|
|00002a10| 20 72 65 73 6f 75 72 63 | 65 20 69 73 20 5c 66 42 | resourc|e is \fB|
|00002a20| 54 72 75 65 5c 66 50 2e | 0a 58 2e 4e 48 20 33 0a |True\fP.|.X.NH 3.|
|00002a30| 58 47 65 74 74 69 6e 67 | 20 74 68 65 20 43 61 6c |XGetting| the Cal|
|00002a40| 65 6e 64 61 72 20 57 69 | 64 67 65 74 27 73 20 43 |endar Wi|dget's C|
|00002a50| 75 72 72 65 6e 74 20 64 | 61 74 65 0a 58 2e 4c 50 |urrent d|ate.X.LP|
|00002a60| 0a 58 54 6f 20 67 65 74 | 20 74 68 65 20 63 75 72 |.XTo get| the cur|
|00002a70| 72 65 6e 74 20 5c 66 42 | 64 61 74 65 5c 66 50 20 |rent \fB|date\fP |
|00002a80| 6f 66 20 61 20 63 61 6c | 65 6e 64 61 72 20 77 69 |of a cal|endar wi|
|00002a90| 64 67 65 74 20 75 73 65 | 20 74 68 65 20 66 6f 6c |dget use| the fol|
|00002aa0| 6c 6f 77 69 6e 67 20 66 | 75 6e 63 74 69 6f 6e 3a |lowing f|unction:|
|00002ab0| 0a 58 2e 46 44 20 30 0a | 58 76 6f 69 64 20 43 61 |.X.FD 0.|Xvoid Ca|
|00002ac0| 6c 65 6e 64 61 72 47 65 | 74 44 61 74 65 28 5c 66 |lendarGe|tDate(\f|
|00002ad0| 49 77 69 64 67 65 74 5c | 66 50 2c 20 5c 66 49 64 |Iwidget\|fP, \fId|
|00002ae0| 61 74 65 5f 70 74 72 5c | 66 50 29 0a 58 2e 62 72 |ate_ptr\|fP).X.br|
|00002af0| 0a 58 20 20 20 20 20 20 | 43 61 6c 65 6e 64 61 72 |.X |Calendar|
|00002b00| 57 69 64 67 65 74 20 5c | 66 49 77 69 64 67 65 74 |Widget \|fIwidget|
|00002b10| 5c 66 50 3b 0a 58 20 20 | 20 20 20 20 44 61 74 65 |\fP;.X | Date|
|00002b20| 20 2a 20 5c 66 49 64 61 | 74 65 5f 70 74 72 5c 66 | * \fIda|te_ptr\f|
|00002b30| 50 3b 0a 58 2e 46 4e 0a | 58 2e 49 50 20 5c 66 49 |P;.X.FN.|X.IP \fI|
|00002b40| 77 69 64 67 65 74 5c 66 | 50 20 31 69 0a 58 53 70 |widget\f|P 1i.XSp|
|00002b50| 65 63 69 66 69 65 73 20 | 74 68 65 20 63 61 6c 65 |ecifies |the cale|
|00002b60| 6e 64 61 72 20 77 69 64 | 67 65 74 2e 0a 58 2e 49 |ndar wid|get..X.I|
|00002b70| 50 20 5c 66 49 64 61 74 | 65 5f 70 74 72 5c 66 50 |P \fIdat|e_ptr\fP|
|00002b80| 20 31 69 0a 58 53 70 65 | 63 69 66 69 65 73 20 61 | 1i.XSpe|cifies a|
|00002b90| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00002ba0| 64 61 74 65 20 73 74 72 | 75 63 74 75 72 65 20 74 |date str|ucture t|
|00002bb0| 6f 20 62 65 20 66 69 6c | 6c 65 64 20 69 6e 20 77 |o be fil|led in w|
|00002bc0| 69 74 68 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |ith the |specifie|
|00002bd0| 64 0a 58 63 61 6c 65 6e | 64 61 72 20 77 69 64 67 |d.Xcalen|dar widg|
|00002be0| 65 74 27 73 20 63 75 72 | 72 65 6e 74 20 5c 66 42 |et's cur|rent \fB|
|00002bf0| 64 61 74 65 5c 66 50 2e | 0a 58 2e 4e 48 20 33 0a |date\fP.|.X.NH 3.|
|00002c00| 58 4f 74 68 65 72 20 57 | 61 79 73 20 74 6f 20 43 |XOther W|ays to C|
|00002c10| 68 61 6e 67 65 20 74 68 | 65 20 43 61 6c 65 6e 64 |hange th|e Calend|
|00002c20| 61 72 20 57 69 64 67 65 | 74 27 73 20 64 61 74 65 |ar Widge|t's date|
|00002c30| 0a 58 2e 4c 50 0a 58 54 | 6f 20 69 6e 63 72 65 6d |.X.LP.XT|o increm|
|00002c40| 65 6e 74 20 6f 72 20 64 | 65 63 72 65 6d 65 6e 74 |ent or d|ecrement|
|00002c50| 20 74 68 65 20 5c 66 42 | 64 61 74 65 5c 66 50 20 | the \fB|date\fP |
|00002c60| 66 6f 72 20 74 68 65 20 | 63 61 6c 65 6e 64 61 72 |for the |calendar|
|00002c70| 20 77 69 64 67 65 74 20 | 74 6f 20 68 69 67 68 6c | widget |to highl|
|00002c80| 69 67 68 74 0a 58 62 79 | 20 6f 6e 65 20 64 61 79 |ight.Xby| one day|
|00002c90| 20 75 73 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 | use the| followi|
|00002ca0| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 73 3a 0a 58 2e |ng funct|ions:.X.|
|00002cb0| 46 44 20 30 0a 58 76 6f | 69 64 20 43 61 6c 65 6e |FD 0.Xvo|id Calen|
|00002cc0| 64 61 72 49 6e 63 44 61 | 79 28 5c 66 49 77 69 64 |darIncDa|y(\fIwid|
|00002cd0| 67 65 74 5c 66 50 2c 20 | 5c 66 49 73 68 6f 77 5c |get\fP, |\fIshow\|
|00002ce0| 66 50 29 0a 58 76 6f 69 | 64 20 43 61 6c 65 6e 64 |fP).Xvoi|d Calend|
|00002cf0| 61 72 44 65 63 44 61 79 | 28 5c 66 49 77 69 64 67 |arDecDay|(\fIwidg|
|00002d00| 65 74 5c 66 50 2c 20 5c | 66 49 73 68 6f 77 5c 66 |et\fP, \|fIshow\f|
|00002d10| 50 29 0a 58 2e 62 72 0a | 58 20 20 20 20 20 20 43 |P).X.br.|X C|
|00002d20| 61 6c 65 6e 64 61 72 57 | 69 64 67 65 74 20 5c 66 |alendarW|idget \f|
|00002d30| 49 77 69 64 67 65 74 5c | 66 50 3b 0a 58 20 20 20 |Iwidget\|fP;.X |
|00002d40| 20 20 20 42 6f 6f 6c 65 | 61 6e 20 5c 66 49 73 68 | Boole|an \fIsh|
|00002d50| 6f 77 5c 66 50 3b 0a 58 | 2e 46 4e 0a 58 2e 49 50 |ow\fP;.X|.FN.X.IP|
|00002d60| 20 5c 66 49 77 69 64 67 | 65 74 5c 66 50 20 31 69 | \fIwidg|et\fP 1i|
|00002d70| 0a 58 53 70 65 63 69 66 | 69 65 73 20 74 68 65 20 |.XSpecif|ies the |
|00002d80| 43 61 6c 65 6e 64 61 72 | 20 77 69 64 67 65 74 2e |Calendar| widget.|
|00002d90| 0a 58 2e 49 50 20 5c 66 | 49 73 68 6f 77 5c 66 50 |.X.IP \f|Ishow\fP|
|00002da0| 20 31 69 0a 58 46 6c 61 | 67 20 74 6f 20 63 6f 6e | 1i.XFla|g to con|
|00002db0| 74 72 6f 6c 20 62 65 68 | 61 76 69 6f 72 20 6f 6e |trol beh|avior on|
|00002dc0| 20 6d 6f 6e 74 68 20 72 | 6f 6c 6c 6f 76 65 72 2e | month r|ollover.|
|00002dd0| 0a 58 2e 4c 50 0a 58 49 | 66 20 5c 66 49 73 68 6f |.X.LP.XI|f \fIsho|
|00002de0| 77 5c 66 50 20 69 73 20 | 5c 66 42 54 72 75 65 5c |w\fP is |\fBTrue\|
|00002df0| 66 50 2c 20 74 68 65 6e | 20 74 68 65 73 65 20 72 |fP, then| these r|
|00002e00| 6f 75 74 69 6e 65 73 20 | 77 69 6c 6c 20 61 75 74 |outines |will aut|
|00002e10| 6f 6d 61 74 69 63 61 6c | 6c 79 20 63 61 6c 6c 0a |omatical|ly call.|
|00002e20| 58 5c 66 42 43 61 6c 65 | 6e 64 61 72 53 68 6f 77 |X\fBCale|ndarShow|
|00002e30| 4d 6f 6e 74 68 5c 66 50 | 20 77 69 74 68 20 74 68 |Month\fP| with th|
|00002e40| 65 20 72 65 73 75 6c 74 | 61 6e 74 20 5c 66 42 6d |e result|ant \fBm|
|00002e50| 6f 6e 74 68 5c 66 50 2e | 20 20 54 68 75 73 2c 20 |onth\fP.| Thus, |
|00002e60| 74 68 65 20 63 61 6c 65 | 6e 64 61 72 0a 58 77 69 |the cale|ndar.Xwi|
|00002e70| 64 67 65 74 20 77 69 6c | 6c 20 61 6c 77 61 79 73 |dget wil|l always|
|00002e80| 20 64 69 73 70 6c 61 79 | 20 74 68 65 20 72 65 73 | display| the res|
|00002e90| 75 6c 74 61 6e 74 20 5c | 66 42 64 61 74 65 5c 66 |ultant \|fBdate\f|
|00002ea0| 50 2c 20 61 6e 64 20 69 | 66 20 74 68 65 0a 58 5c |P, and i|f the.X\|
|00002eb0| 66 42 68 69 67 68 6c 69 | 67 68 74 5c 66 50 20 72 |fBhighli|ght\fP r|
|00002ec0| 65 73 6f 75 72 63 65 20 | 69 73 20 5c 66 42 54 72 |esource |is \fBTr|
|00002ed0| 75 65 5c 66 50 2c 20 69 | 74 20 77 69 6c 6c 20 62 |ue\fP, i|t will b|
|00002ee0| 65 20 68 69 67 68 6c 69 | 67 68 74 65 64 2e 0a 58 |e highli|ghted..X|
|00002ef0| 2e 4c 50 0a 58 49 66 20 | 5c 66 49 73 68 6f 77 5c |.LP.XIf |\fIshow\|
|00002f00| 66 50 20 69 73 20 5c 66 | 42 46 61 6c 73 65 5c 66 |fP is \f|BFalse\f|
|00002f10| 50 2c 20 74 68 65 20 5c | 66 42 6d 6f 6e 74 68 5c |P, the \|fBmonth\|
|00002f20| 66 50 20 74 68 65 20 63 | 61 6c 65 6e 64 61 72 20 |fP the c|alendar |
|00002f30| 69 73 20 63 75 72 72 65 | 6e 74 6c 79 0a 58 64 69 |is curre|ntly.Xdi|
|00002f40| 73 70 6c 61 79 69 6e 67 | 20 77 69 6c 6c 20 62 65 |splaying| will be|
|00002f50| 20 75 6e 61 66 66 65 63 | 74 65 64 2e 20 20 48 6f | unaffec|ted. Ho|
|00002f60| 77 65 76 65 72 2c 20 62 | 65 63 61 75 73 65 20 74 |wever, b|ecause t|
|00002f70| 68 65 20 5c 66 42 64 61 | 74 65 5c 66 50 20 68 61 |he \fBda|te\fP ha|
|00002f80| 73 20 63 68 61 6e 67 65 | 64 2c 0a 58 74 68 65 20 |s change|d,.Xthe |
|00002f90| 68 69 67 68 6c 69 67 68 | 74 65 64 20 64 61 79 20 |highligh|ted day |
|00002fa0| 63 6f 75 6c 64 20 76 69 | 73 69 62 6c 79 20 6d 6f |could vi|sibly mo|
|00002fb0| 76 65 2c 20 64 69 73 61 | 70 70 65 61 72 20 69 6e |ve, disa|ppear in|
|00002fc0| 74 6f 20 61 6e 6f 74 68 | 65 72 20 6d 6f 6e 74 68 |to anoth|er month|
|00002fd0| 2c 20 6f 72 0a 58 61 70 | 70 65 61 72 20 69 6e 20 |, or.Xap|pear in |
|00002fe0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6d 6f 6e 74 |the curr|ent mont|
|00002ff0| 68 2c 20 64 65 70 65 6e | 64 69 6e 67 20 6f 6e 20 |h, depen|ding on |
|00003000| 77 68 61 74 20 5c 66 42 | 6d 6f 6e 74 68 5c 66 50 |what \fB|month\fP|
|00003010| 20 74 68 65 20 63 61 6c | 65 6e 64 61 72 20 77 69 | the cal|endar wi|
|00003020| 64 67 65 74 0a 58 69 73 | 20 63 75 72 72 65 6e 74 |dget.Xis| current|
|00003030| 6c 79 20 64 69 73 70 6c | 61 79 69 6e 67 2e 0a 58 |ly displ|aying..X|
|00003040| 2e 4e 48 20 33 0a 58 4f | 74 68 65 72 20 57 61 79 |.NH 3.XO|ther Way|
|00003050| 73 20 74 6f 20 43 68 61 | 6e 67 65 20 74 68 65 20 |s to Cha|nge the |
|00003060| 43 61 6c 65 6e 64 61 72 | 20 57 69 64 67 65 74 27 |Calendar| Widget'|
|00003070| 73 20 4d 6f 6e 74 68 0a | 58 2e 4c 50 0a 58 54 6f |s Month.|X.LP.XTo|
|00003080| 20 69 6e 63 72 65 6d 65 | 6e 74 20 6f 72 20 64 65 | increme|nt or de|
|00003090| 63 72 65 6d 65 6e 74 20 | 74 68 65 20 5c 66 42 6d |crement |the \fBm|
|000030a0| 6f 6e 74 68 5c 66 50 20 | 6f 66 20 61 20 63 61 6c |onth\fP |of a cal|
|000030b0| 65 6e 64 61 72 20 77 69 | 64 67 65 74 20 62 79 20 |endar wi|dget by |
|000030c0| 61 20 6d 6f 6e 74 68 20 | 6f 72 20 61 0a 58 79 65 |a month |or a.Xye|
|000030d0| 61 72 20 75 73 65 20 74 | 68 65 20 66 6f 6c 6c 6f |ar use t|he follo|
|000030e0| 77 69 6e 67 20 66 75 6e | 63 74 69 6f 6e 73 3a 0a |wing fun|ctions:.|
|000030f0| 58 2e 46 44 20 30 0a 58 | 76 6f 69 64 20 43 61 6c |X.FD 0.X|void Cal|
|00003100| 65 6e 64 61 72 49 6e 63 | 4d 6f 6e 74 68 28 5c 66 |endarInc|Month(\f|
|00003110| 49 77 69 64 67 65 74 5c | 66 50 29 0a 58 76 6f 69 |Iwidget\|fP).Xvoi|
|00003120| 64 20 43 61 6c 65 6e 64 | 61 72 44 65 63 4d 6f 6e |d Calend|arDecMon|
|00003130| 74 68 28 5c 66 49 77 69 | 64 67 65 74 5c 66 50 29 |th(\fIwi|dget\fP)|
|00003140| 0a 58 76 6f 69 64 20 43 | 61 6c 65 6e 64 61 72 49 |.Xvoid C|alendarI|
|00003150| 6e 63 59 65 61 72 28 5c | 66 49 77 69 64 67 65 74 |ncYear(\|fIwidget|
|00003160| 5c 66 50 29 0a 58 76 6f | 69 64 20 43 61 6c 65 6e |\fP).Xvo|id Calen|
|00003170| 64 61 72 44 65 63 59 65 | 61 72 28 5c 66 49 77 69 |darDecYe|ar(\fIwi|
|00003180| 64 67 65 74 5c 66 50 29 | 0a 58 2e 62 72 0a 58 20 |dget\fP)|.X.br.X |
|00003190| 20 20 20 20 20 43 61 6c | 65 6e 64 61 72 57 69 64 | Cal|endarWid|
|000031a0| 67 65 74 20 5c 66 49 77 | 69 64 67 65 74 5c 66 50 |get \fIw|idget\fP|
|000031b0| 3b 0a 58 2e 46 4e 0a 58 | 2e 49 50 20 5c 66 49 77 |;.X.FN.X|.IP \fIw|
|000031c0| 69 64 67 65 74 5c 66 50 | 20 31 69 0a 58 53 70 65 |idget\fP| 1i.XSpe|
|000031d0| 63 69 66 69 65 73 20 74 | 68 65 20 63 61 6c 65 6e |cifies t|he calen|
|000031e0| 64 61 72 20 77 69 64 67 | 65 74 2e 0a 58 2e 4c 50 |dar widg|et..X.LP|
|000031f0| 0a 58 54 68 65 20 63 61 | 6c 65 6e 64 61 72 20 77 |.XThe ca|lendar w|
|00003200| 69 64 67 65 74 27 73 20 | 5c 66 42 64 61 74 65 5c |idget's |\fBdate\|
|00003210| 66 50 20 69 73 20 75 6e | 61 66 66 65 63 74 65 64 |fP is un|affected|
|00003220| 20 62 79 20 74 68 65 73 | 65 20 66 75 6e 63 74 69 | by thes|e functi|
|00003230| 6f 6e 73 2e 0a 58 2e 4e | 48 20 33 0a 58 47 65 74 |ons..X.N|H 3.XGet|
|00003240| 74 69 6e 67 20 54 6f 64 | 61 79 27 73 20 44 61 74 |ting Tod|ay's Dat|
|00003250| 65 0a 58 2e 4c 50 0a 58 | 2e 46 44 20 30 0a 58 44 |e.X.LP.X|.FD 0.XD|
|00003260| 61 74 65 20 47 65 74 54 | 6f 64 61 79 73 44 61 74 |ate GetT|odaysDat|
|00003270| 65 28 29 0a 58 2e 62 72 | 0a 58 2e 46 4e 0a 58 4d |e().X.br|.X.FN.XM|
|00003280| 6f 73 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |ost appl|ications|
|00003290| 20 61 72 65 20 67 6f 69 | 6e 67 20 74 6f 20 6e 65 | are goi|ng to ne|
|000032a0| 65 64 20 74 68 69 73 2c | 20 73 6f 20 69 74 20 68 |ed this,| so it h|
|000032b0| 61 73 20 62 65 65 6e 20 | 70 72 6f 76 69 64 65 64 |as been |provided|
|000032c0| 2e 0a 58 2e 4e 48 20 33 | 0a 58 47 65 74 74 69 6e |..X.NH 3|.XGettin|
|000032d0| 67 20 74 68 65 20 43 61 | 6c 65 6e 64 61 72 20 57 |g the Ca|lendar W|
|000032e0| 69 64 67 65 74 27 73 20 | 64 61 74 65 20 69 6e 20 |idget's |date in |
|000032f0| 61 20 50 72 65 74 74 79 | 20 46 6f 72 6d 61 74 0a |a Pretty| Format.|
|00003300| 58 2e 4c 50 0a 58 2e 46 | 44 20 30 0a 58 63 68 61 |X.LP.X.F|D 0.Xcha|
|00003310| 72 20 2a 20 43 61 6c 65 | 6e 64 61 72 50 72 65 74 |r * Cale|ndarPret|
|00003320| 74 79 44 61 74 65 28 5c | 66 49 77 69 64 67 65 74 |tyDate(\|fIwidget|
|00003330| 5c 66 50 29 0a 58 2e 62 | 72 0a 58 20 20 20 20 20 |\fP).X.b|r.X |
|00003340| 20 43 61 6c 65 6e 64 61 | 72 57 69 64 67 65 74 20 | Calenda|rWidget |
|00003350| 5c 66 49 77 69 64 67 65 | 74 5c 66 50 3b 0a 58 2e |\fIwidge|t\fP;.X.|
|00003360| 46 4e 0a 58 2e 49 50 20 | 5c 66 49 77 69 64 67 65 |FN.X.IP |\fIwidge|
|00003370| 74 5c 66 50 20 31 69 0a | 58 53 70 65 63 69 66 69 |t\fP 1i.|XSpecifi|
|00003380| 65 73 20 74 68 65 20 63 | 61 6c 65 6e 64 61 72 20 |es the c|alendar |
|00003390| 77 69 64 67 65 74 2e 0a | 58 2e 4c 50 0a 58 54 68 |widget..|X.LP.XTh|
|000033a0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 72 65 74 75 |is funct|ion retu|
|000033b0| 72 6e 73 20 61 20 73 74 | 72 69 6e 67 20 6c 69 6b |rns a st|ring lik|
|000033c0| 65 20 22 53 61 74 20 53 | 65 70 74 65 6d 62 65 72 |e "Sat S|eptember|
|000033d0| 20 31 37 2c 20 31 39 36 | 36 22 20 62 61 73 65 64 | 17, 196|6" based|
|000033e0| 20 6f 6e 20 74 68 65 0a | 58 63 75 72 72 65 6e 74 | on the.|Xcurrent|
|000033f0| 20 5c 66 42 64 61 74 65 | 5c 66 50 20 6f 66 20 74 | \fBdate|\fP of t|
|00003400| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 63 61 6c |he speci|fied cal|
|00003410| 65 6e 64 61 72 20 77 69 | 64 67 65 74 2e 20 20 54 |endar wi|dget. T|
|00003420| 68 65 20 77 65 65 6b 64 | 61 79 20 61 6e 64 20 6d |he weekd|ay and m|
|00003430| 6f 6e 74 68 0a 58 74 65 | 78 74 20 77 69 6c 6c 20 |onth.Xte|xt will |
|00003440| 62 65 20 67 6f 74 74 65 | 6e 20 66 72 6f 6d 20 74 |be gotte|n from t|
|00003450| 68 65 20 73 74 72 69 6e | 67 20 74 61 62 6c 65 73 |he strin|g tables|
|00003460| 20 73 70 65 63 69 66 69 | 65 64 20 66 6f 72 20 74 | specifi|ed for t|
|00003470| 68 65 0a 58 5c 66 42 77 | 65 65 6b 64 61 79 4e 61 |he.X\fBw|eekdayNa|
|00003480| 6d 65 73 5c 66 50 20 61 | 6e 64 20 5c 66 42 6d 6f |mes\fP a|nd \fBmo|
|00003490| 6e 74 68 4e 61 6d 65 73 | 5c 66 50 20 72 65 73 6f |nthNames|\fP reso|
|000034a0| 75 72 63 65 73 2e 0a 58 | 2e 4c 50 0a 58 2e 4e 48 |urces..X|.LP.X.NH|
|000034b0| 20 33 0a 58 54 6f 20 63 | 6f 6e 76 65 72 74 20 61 | 3.XTo c|onvert a|
|000034c0| 20 73 74 72 69 6e 67 20 | 74 6f 20 61 20 44 61 74 | string |to a Dat|
|000034d0| 65 20 73 74 72 75 63 74 | 75 72 65 0a 58 2e 46 44 |e struct|ure.X.FD|
|000034e0| 20 30 0a 58 44 61 74 65 | 20 44 61 74 65 43 6f 6e | 0.XDate| DateCon|
|000034f0| 76 65 72 74 65 72 28 5c | 66 49 77 69 64 67 65 74 |verter(\|fIwidget|
|00003500| 5c 66 50 2c 20 5c 66 49 | 73 74 72 69 6e 67 5c 66 |\fP, \fI|string\f|
|00003510| 50 29 0a 58 2e 62 72 0a | 58 20 20 20 20 20 20 43 |P).X.br.|X C|
|00003520| 61 6c 65 6e 64 61 72 57 | 69 64 67 65 74 20 5c 66 |alendarW|idget \f|
|00003530| 49 77 69 64 67 65 74 5c | 66 50 3b 0a 58 20 20 20 |Iwidget\|fP;.X |
|00003540| 20 20 20 63 68 61 72 20 | 2a 20 5c 66 49 73 74 72 | char |* \fIstr|
|00003550| 69 6e 67 5c 66 50 3b 0a | 58 2e 46 4e 0a 58 2e 49 |ing\fP;.|X.FN.X.I|
|00003560| 50 20 5c 66 49 77 69 64 | 67 65 74 5c 66 50 20 31 |P \fIwid|get\fP 1|
|00003570| 69 0a 58 53 70 65 63 69 | 66 69 65 73 20 74 68 65 |i.XSpeci|fies the|
|00003580| 20 63 61 6c 65 6e 64 61 | 72 20 77 69 64 67 65 74 | calenda|r widget|
|00003590| 20 77 68 6f 73 65 20 5c | 66 42 6d 6f 6e 74 68 4e | whose \|fBmonthN|
|000035a0| 61 6d 65 73 5c 66 50 20 | 72 65 73 6f 75 72 63 65 |ames\fP |resource|
|000035b0| 20 77 69 6c 6c 20 62 65 | 20 75 73 65 64 20 74 6f | will be| used to|
|000035c0| 0a 58 63 6f 6e 76 65 72 | 74 20 61 6e 79 20 6d 6f |.Xconver|t any mo|
|000035d0| 6e 74 68 20 6e 61 6d 65 | 20 69 6e 20 74 68 65 20 |nth name| in the |
|000035e0| 73 70 65 63 69 66 69 65 | 64 20 5c 66 49 73 74 72 |specifie|d \fIstr|
|000035f0| 69 6e 67 5c 66 50 20 69 | 6e 74 6f 20 61 6e 20 69 |ing\fP i|nto an i|
|00003600| 6e 74 65 67 65 72 20 69 | 6e 20 74 68 65 0a 58 6d |nteger i|n the.Xm|
|00003610| 6f 6e 74 68 20 66 69 65 | 6c 64 20 6f 66 20 74 68 |onth fie|ld of th|
|00003620| 65 20 72 65 74 75 72 6e | 65 64 20 44 61 74 65 20 |e return|ed Date |
|00003630| 73 74 72 75 63 74 75 72 | 65 2e 0a 58 2e 49 50 20 |structur|e..X.IP |
|00003640| 5c 66 49 73 74 72 69 6e | 67 5c 66 50 20 31 69 0a |\fIstrin|g\fP 1i.|
|00003650| 58 53 70 65 63 69 66 69 | 65 73 20 74 68 65 20 73 |XSpecifi|es the s|
|00003660| 74 72 69 6e 67 20 74 6f | 20 62 65 20 63 6f 6e 76 |tring to| be conv|
|00003670| 65 72 74 65 64 2e 0a 58 | 2e 4c 50 0a 58 53 65 76 |erted..X|.LP.XSev|
|00003680| 65 72 61 6c 20 64 61 74 | 65 20 66 6f 72 6d 61 74 |eral dat|e format|
|00003690| 73 20 61 72 65 20 61 63 | 63 65 70 74 65 64 2e 20 |s are ac|cepted. |
|000036a0| 20 49 66 20 74 68 65 20 | 5c 66 49 73 74 72 69 6e | If the |\fIstrin|
|000036b0| 67 5c 66 50 20 73 70 65 | 63 69 66 69 65 64 20 64 |g\fP spe|cified d|
|000036c0| 6f 65 73 20 6e 6f 74 0a | 58 63 6f 72 72 65 73 70 |oes not.|Xcorresp|
|000036d0| 6f 6e 64 20 74 6f 20 61 | 20 76 61 6c 69 64 20 64 |ond to a| valid d|
|000036e0| 61 74 65 2c 20 74 68 65 | 6e 20 74 68 65 20 44 61 |ate, the|n the Da|
|000036f0| 74 65 20 73 74 72 75 63 | 74 75 72 65 20 72 65 74 |te struc|ture ret|
|00003700| 75 72 6e 65 64 20 77 69 | 6c 6c 20 68 61 76 65 20 |urned wi|ll have |
|00003710| 7a 65 72 6f 0a 58 66 6f | 72 20 74 68 65 20 6d 6f |zero.Xfo|r the mo|
|00003720| 6e 74 68 2c 20 64 61 79 | 2c 20 61 6e 64 20 79 65 |nth, day|, and ye|
|00003730| 61 72 20 66 69 65 6c 64 | 73 2e 20 20 52 65 6d 65 |ar field|s. Reme|
|00003740| 6d 62 65 72 20 74 68 61 | 74 20 6f 6e 6c 79 20 61 |mber tha|t only a|
|00003750| 20 6d 6f 6e 74 68 20 61 | 6e 64 20 61 20 79 65 61 | month a|nd a yea|
|00003760| 72 0a 58 61 72 65 20 72 | 65 71 75 69 72 65 64 20 |r.Xare r|equired |
|00003770| 74 6f 20 73 70 65 63 69 | 66 79 20 61 20 75 6e 69 |to speci|fy a uni|
|00003780| 71 75 65 20 6d 6f 6e 74 | 68 2e 20 20 41 73 20 61 |que mont|h. As a|
|00003790| 6e 20 65 78 74 65 6e 73 | 69 6f 6e 2c 20 69 66 20 |n extens|ion, if |
|000037a0| 6f 6e 6c 79 20 61 20 79 | 65 61 72 20 69 73 0a 58 |only a y|ear is.X|
|000037b0| 73 70 65 63 69 66 69 65 | 64 2c 20 61 20 44 61 74 |specifie|d, a Dat|
|000037c0| 65 20 77 69 6c 6c 20 62 | 65 20 72 65 74 75 72 6e |e will b|e return|
|000037d0| 65 64 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |ed corre|sponding|
|000037e0| 20 74 6f 20 4a 61 6e 75 | 61 72 79 20 6f 66 20 74 | to Janu|ary of t|
|000037f0| 68 61 74 20 79 65 61 72 | 2e 0a 58 2e 4e 48 20 32 |hat year|..X.NH 2|
|00003800| 0a 58 43 6f 70 79 72 69 | 67 68 74 0a 58 2e 4c 50 |.XCopyri|ght.X.LP|
|00003810| 0a 58 43 6f 70 79 72 69 | 67 68 74 20 31 39 39 30 |.XCopyri|ght 1990|
|00003820| 20 48 61 72 72 69 73 20 | 43 6f 72 70 6f 72 61 74 | Harris |Corporat|
|00003830| 69 6f 6e 0a 58 2e 4c 50 | 0a 58 50 65 72 6d 69 73 |ion.X.LP|.XPermis|
|00003840| 73 69 6f 6e 20 74 6f 20 | 75 73 65 2c 20 63 6f 70 |sion to |use, cop|
|00003850| 79 2c 20 6d 6f 64 69 66 | 79 2c 20 61 6e 64 20 64 |y, modif|y, and d|
|00003860| 69 73 74 72 69 62 75 74 | 65 2c 20 74 68 69 73 20 |istribut|e, this |
|00003870| 73 6f 66 74 77 61 72 65 | 20 61 6e 64 20 69 74 73 |software| and its|
|00003880| 0a 58 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |.Xdocume|ntation |
|00003890| 66 6f 72 20 61 6e 79 20 | 70 75 72 70 6f 73 65 20 |for any |purpose |
|000038a0| 69 73 20 68 65 72 65 62 | 79 20 67 72 61 6e 74 65 |is hereb|y grante|
|000038b0| 64 20 77 69 74 68 6f 75 | 74 20 66 65 65 2c 20 70 |d withou|t fee, p|
|000038c0| 72 6f 76 69 64 65 64 20 | 74 68 61 74 0a 58 74 68 |rovided |that.Xth|
|000038d0| 65 20 61 62 6f 76 65 20 | 63 6f 70 79 72 69 67 68 |e above |copyrigh|
|000038e0| 74 20 6e 6f 74 69 63 65 | 20 61 70 70 65 61 72 20 |t notice| appear |
|000038f0| 69 6e 20 61 6c 6c 20 63 | 6f 70 69 65 73 20 61 6e |in all c|opies an|
|00003900| 64 20 74 68 61 74 20 62 | 6f 74 68 20 74 68 61 74 |d that b|oth that|
|00003910| 0a 58 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |.Xcopyri|ght noti|
|00003920| 63 65 20 61 6e 64 20 74 | 68 69 73 20 70 65 72 6d |ce and t|his perm|
|00003930| 69 73 73 69 6f 6e 20 6e | 6f 74 69 63 65 20 61 70 |ission n|otice ap|
|00003940| 70 65 61 72 20 69 6e 20 | 73 75 70 70 6f 72 74 69 |pear in |supporti|
|00003950| 6e 67 0a 58 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ng.Xdocu|mentatio|
|00003960| 6e 2c 20 61 6e 64 20 74 | 68 61 74 20 74 68 65 20 |n, and t|hat the |
|00003970| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 63 6f 70 79 |name of |the copy|
|00003980| 72 69 67 68 74 20 68 6f | 6c 64 65 72 20 62 65 20 |right ho|lder be |
|00003990| 75 73 65 64 20 69 6e 0a | 58 61 64 76 65 72 74 69 |used in.|Xadverti|
|000039a0| 73 69 6e 67 20 6f 72 20 | 70 75 62 6c 69 63 69 74 |sing or |publicit|
|000039b0| 79 20 70 65 72 74 61 69 | 6e 69 6e 67 20 74 6f 20 |y pertai|ning to |
|000039c0| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 6f 66 20 |distribu|tion of |
|000039d0| 74 68 65 20 73 6f 66 74 | 77 61 72 65 20 77 69 74 |the soft|ware wit|
|000039e0| 68 0a 58 73 70 65 63 69 | 66 69 63 2c 20 77 72 69 |h.Xspeci|fic, wri|
|000039f0| 74 74 65 6e 20 70 72 69 | 6f 72 20 70 65 72 6d 69 |tten pri|or permi|
|00003a00| 73 73 69 6f 6e 2c 20 61 | 6e 64 20 74 68 61 74 20 |ssion, a|nd that |
|00003a10| 6e 6f 20 66 65 65 20 69 | 73 20 63 68 61 72 67 65 |no fee i|s charge|
|00003a20| 64 20 66 6f 72 20 66 75 | 72 74 68 65 72 0a 58 64 |d for fu|rther.Xd|
|00003a30| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 6f 66 20 74 |istribut|ion of t|
|00003a40| 68 69 73 20 73 6f 66 74 | 77 61 72 65 2c 20 6f 72 |his soft|ware, or|
|00003a50| 20 61 6e 79 20 6d 6f 64 | 69 66 69 63 61 74 69 6f | any mod|ificatio|
|00003a60| 6e 73 20 74 68 65 72 65 | 6f 66 2e 20 20 54 68 65 |ns there|of. The|
|00003a70| 20 63 6f 70 79 72 69 67 | 68 74 0a 58 68 6f 6c 64 | copyrig|ht.Xhold|
|00003a80| 65 72 20 6d 61 6b 65 73 | 20 6e 6f 20 72 65 70 72 |er makes| no repr|
|00003a90| 65 73 65 6e 74 61 74 69 | 6f 6e 73 20 61 62 6f 75 |esentati|ons abou|
|00003aa0| 74 20 74 68 65 20 73 75 | 69 74 61 62 69 6c 69 74 |t the su|itabilit|
|00003ab0| 79 20 6f 66 20 74 68 69 | 73 20 73 6f 66 74 77 61 |y of thi|s softwa|
|00003ac0| 72 65 20 66 6f 72 0a 58 | 61 6e 79 20 70 75 72 70 |re for.X|any purp|
|00003ad0| 6f 73 65 2e 20 20 49 74 | 20 69 73 20 70 72 6f 76 |ose. It| is prov|
|00003ae0| 69 64 65 64 20 22 61 73 | 20 69 73 22 20 77 69 74 |ided "as| is" wit|
|00003af0| 68 6f 75 74 20 65 78 70 | 72 65 73 73 20 6f 72 20 |hout exp|ress or |
|00003b00| 69 6d 70 6c 69 65 64 20 | 77 61 72 72 61 6e 74 79 |implied |warranty|
|00003b10| 2e 0a 58 2e 4c 50 0a 58 | 54 48 45 20 43 4f 50 59 |..X.LP.X|THE COPY|
|00003b20| 52 49 47 48 54 20 48 4f | 4c 44 45 52 20 44 49 53 |RIGHT HO|LDER DIS|
|00003b30| 43 4c 41 49 4d 53 20 41 | 4c 4c 20 57 41 52 52 41 |CLAIMS A|LL WARRA|
|00003b40| 4e 54 49 45 53 20 57 49 | 54 48 20 52 45 47 41 52 |NTIES WI|TH REGAR|
|00003b50| 44 20 54 4f 20 54 48 49 | 53 20 53 4f 46 54 57 41 |D TO THI|S SOFTWA|
|00003b60| 52 45 2c 0a 58 49 4e 43 | 4c 55 44 49 4e 47 20 41 |RE,.XINC|LUDING A|
|00003b70| 4c 4c 20 49 4d 50 4c 49 | 45 44 20 57 41 52 52 41 |LL IMPLI|ED WARRA|
|00003b80| 4e 54 49 45 53 20 4f 46 | 20 4d 45 52 43 48 41 4e |NTIES OF| MERCHAN|
|00003b90| 54 41 42 49 4c 49 54 59 | 20 41 4e 44 20 46 49 54 |TABILITY| AND FIT|
|00003ba0| 4e 45 53 53 2c 20 41 4e | 44 20 49 4e 20 4e 4f 0a |NESS, AN|D IN NO.|
|00003bb0| 58 45 56 45 4e 54 20 53 | 48 41 4c 4c 20 54 48 45 |XEVENT S|HALL THE|
|00003bc0| 20 43 4f 50 59 52 49 47 | 48 54 20 48 4f 4c 44 45 | COPYRIG|HT HOLDE|
|00003bd0| 52 20 42 45 20 4c 49 41 | 42 4c 45 20 46 4f 52 20 |R BE LIA|BLE FOR |
|00003be0| 41 4e 59 20 53 50 45 43 | 49 41 4c 2c 20 49 4e 44 |ANY SPEC|IAL, IND|
|00003bf0| 49 52 45 43 54 20 4f 52 | 0a 58 43 4f 4e 53 45 51 |IRECT OR|.XCONSEQ|
|00003c00| 55 45 4e 54 49 41 4c 20 | 44 41 4d 41 47 45 53 20 |UENTIAL |DAMAGES |
|00003c10| 4f 52 20 41 4e 59 20 44 | 41 4d 41 47 45 53 20 57 |OR ANY D|AMAGES W|
|00003c20| 48 41 54 53 4f 45 56 45 | 52 20 52 45 53 55 4c 54 |HATSOEVE|R RESULT|
|00003c30| 49 4e 47 20 46 52 4f 4d | 20 49 54 53 20 55 53 45 |ING FROM| ITS USE|
|00003c40| 2c 0a 58 4c 4f 53 53 20 | 4f 46 20 44 41 54 41 2c |,.XLOSS |OF DATA,|
|00003c50| 20 50 52 4f 46 49 54 53 | 2c 20 51 50 41 20 4f 52 | PROFITS|, QPA OR|
|00003c60| 20 47 50 41 2c 20 57 48 | 45 54 48 45 52 20 49 4e | GPA, WH|ETHER IN|
|00003c70| 20 41 4e 20 41 43 54 49 | 4f 4e 20 4f 46 20 43 4f | AN ACTI|ON OF CO|
|00003c80| 4e 54 52 41 43 54 2c 0a | 58 4e 45 47 4c 49 47 45 |NTRACT,.|XNEGLIGE|
|00003c90| 4e 43 45 20 4f 52 20 4f | 54 48 45 52 20 54 4f 52 |NCE OR O|THER TOR|
|00003ca0| 54 49 4f 55 53 20 41 43 | 54 49 4f 4e 2c 20 41 52 |TIOUS AC|TION, AR|
|00003cb0| 49 53 49 4e 47 20 4f 55 | 54 20 4f 46 20 4f 52 20 |ISING OU|T OF OR |
|00003cc0| 49 4e 20 43 4f 4e 4e 45 | 43 54 49 4f 4e 20 57 49 |IN CONNE|CTION WI|
|00003cd0| 54 48 0a 58 54 48 45 20 | 55 53 45 20 4f 52 20 50 |TH.XTHE |USE OR P|
|00003ce0| 45 52 46 4f 52 4d 41 4e | 43 45 20 4f 46 20 54 48 |ERFORMAN|CE OF TH|
|00003cf0| 49 53 20 53 4f 46 54 57 | 41 52 45 2e 0a 58 2e 4e |IS SOFTW|ARE..X.N|
|00003d00| 48 20 32 0a 58 41 75 74 | 68 6f 72 0a 58 2e 4c 50 |H 2.XAut|hor.X.LP|
|00003d10| 0a 58 2e 6e 66 0a 58 4a | 61 73 6f 6e 20 42 61 69 |.X.nf.XJ|ason Bai|
|00003d20| 65 74 74 6f 0a 58 6a 61 | 73 6f 6e 40 73 73 64 2e |etto.Xja|son@ssd.|
|00003d30| 63 73 64 2e 68 61 72 72 | 69 73 2e 63 6f 6d 0a 45 |csd.harr|is.com.E|
|00003d40| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|00003d50| 73 74 20 31 34 32 38 31 | 20 2d 6e 65 20 60 77 63 |st 14281| -ne `wc|
|00003d60| 20 2d 63 20 3c 27 43 61 | 6c 65 6e 64 61 72 2e 64 | -c <'Ca|lendar.d|
|00003d70| 6f 63 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |oc'`; th|en. e|
|00003d80| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 43 61 6c |cho shar|: \"'Cal|
|00003d90| 65 6e 64 61 72 2e 64 6f | 63 27 5c 22 20 75 6e 70 |endar.do|c'\" unp|
|00003da0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00003db0| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00003dc0| 6f 66 20 27 43 61 6c 65 | 6e 64 61 72 2e 64 6f 63 |of 'Cale|ndar.doc|
|00003dd0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00003de0| 27 43 61 6c 65 6e 64 61 | 72 50 2e 68 27 20 2d 61 |'Calenda|rP.h' -a|
|00003df0| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00003e00| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00003e10| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00003e20| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00003e30| 69 6c 65 20 5c 22 27 43 | 61 6c 65 6e 64 61 72 50 |ile \"'C|alendarP|
|00003e40| 2e 68 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.h'\".el|se.echo |
|00003e50| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00003e60| 20 5c 22 27 43 61 6c 65 | 6e 64 61 72 50 2e 68 27 | \"'Cale|ndarP.h'|
|00003e70| 5c 22 20 5c 28 31 30 32 | 32 37 20 63 68 61 72 61 |\" \(102|27 chara|
|00003e80| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00003e90| 58 2f 2f 22 20 3e 27 43 | 61 6c 65 6e 64 61 72 50 |X//" >'C|alendarP|
|00003ea0| 2e 68 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.h' <<'E|ND_OF_FI|
|00003eb0| 4c 45 27 0a 58 2f 2a 0a | 58 20 2a 20 41 75 74 68 |LE'.X/*.|X * Auth|
|00003ec0| 6f 72 3a 20 4a 61 73 6f | 6e 20 42 61 69 65 74 74 |or: Jaso|n Baiett|
|00003ed0| 6f 2c 20 6a 61 73 6f 6e | 40 73 73 64 2e 63 73 64 |o, jason|@ssd.csd|
|00003ee0| 2e 68 61 72 72 69 73 2e | 63 6f 6d 0a 58 20 2a 20 |.harris.|com.X * |
|00003ef0| 78 64 69 61 72 79 20 43 | 6f 70 79 72 69 67 68 74 |xdiary C|opyright|
|00003f00| 20 31 39 39 30 20 48 61 | 72 72 69 73 20 43 6f 72 | 1990 Ha|rris Cor|
|00003f10| 70 6f 72 61 74 69 6f 6e | 0a 58 20 2a 0a 58 20 2a |poration|.X *.X *|
|00003f20| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 74 6f 20 75 | Permiss|ion to u|
|00003f30| 73 65 2c 20 63 6f 70 79 | 2c 20 6d 6f 64 69 66 79 |se, copy|, modify|
|00003f40| 2c 20 61 6e 64 20 64 69 | 73 74 72 69 62 75 74 65 |, and di|stribute|
|00003f50| 2c 20 74 68 69 73 20 73 | 6f 66 74 77 61 72 65 20 |, this s|oftware |
|00003f60| 61 6e 64 20 69 74 73 0a | 58 20 2a 20 64 6f 63 75 |and its.|X * docu|
|00003f70| 6d 65 6e 74 61 74 69 6f | 6e 20 66 6f 72 20 61 6e |mentatio|n for an|
|00003f80| 79 20 70 75 72 70 6f 73 | 65 20 69 73 20 68 65 72 |y purpos|e is her|
|00003f90| 65 62 79 20 67 72 61 6e | 74 65 64 20 77 69 74 68 |eby gran|ted with|
|00003fa0| 6f 75 74 20 66 65 65 2c | 20 70 72 6f 76 69 64 65 |out fee,| provide|
|00003fb0| 64 20 74 68 61 74 0a 58 | 20 2a 20 74 68 65 20 61 |d that.X| * the a|
|00003fc0| 62 6f 76 65 20 63 6f 70 | 79 72 69 67 68 74 20 6e |bove cop|yright n|
|00003fd0| 6f 74 69 63 65 20 61 70 | 70 65 61 72 20 69 6e 20 |otice ap|pear in |
|00003fe0| 61 6c 6c 20 63 6f 70 69 | 65 73 20 61 6e 64 20 74 |all copi|es and t|
|00003ff0| 68 61 74 20 62 6f 74 68 | 20 74 68 61 74 0a 58 20 |hat both| that.X |
|00004000| 2a 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |* copyri|ght noti|
|00004010| 63 65 20 61 6e 64 20 74 | 68 69 73 20 70 65 72 6d |ce and t|his perm|
|00004020| 69 73 73 69 6f 6e 20 6e | 6f 74 69 63 65 20 61 70 |ission n|otice ap|
|00004030| 70 65 61 72 20 69 6e 20 | 73 75 70 70 6f 72 74 69 |pear in |supporti|
|00004040| 6e 67 0a 58 20 2a 20 64 | 6f 63 75 6d 65 6e 74 61 |ng.X * d|ocumenta|
|00004050| 74 69 6f 6e 2c 20 61 6e | 64 20 74 68 61 74 20 74 |tion, an|d that t|
|00004060| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 63 |he name |of the c|
|00004070| 6f 70 79 72 69 67 68 74 | 20 68 6f 6c 64 65 72 20 |opyright| holder |
|00004080| 62 65 20 75 73 65 64 20 | 69 6e 0a 58 20 2a 20 61 |be used |in.X * a|
|00004090| 64 76 65 72 74 69 73 69 | 6e 67 20 6f 72 20 70 75 |dvertisi|ng or pu|
|000040a0| 62 6c 69 63 69 74 79 20 | 70 65 72 74 61 69 6e 69 |blicity |pertaini|
|000040b0| 6e 67 20 74 6f 20 64 69 | 73 74 72 69 62 75 74 69 |ng to di|stributi|
|000040c0| 6f 6e 20 6f 66 20 74 68 | 65 20 73 6f 66 74 77 61 |on of th|e softwa|
|000040d0| 72 65 20 77 69 74 68 0a | 58 20 2a 20 73 70 65 63 |re with.|X * spec|
|000040e0| 69 66 69 63 2c 20 77 72 | 69 74 74 65 6e 20 70 72 |ific, wr|itten pr|
|000040f0| 69 6f 72 20 70 65 72 6d | 69 73 73 69 6f 6e 2c 20 |ior perm|ission, |
|00004100| 61 6e 64 20 74 68 61 74 | 20 6e 6f 20 66 65 65 20 |and that| no fee |
|00004110| 69 73 20 63 68 61 72 67 | 65 64 20 66 6f 72 20 66 |is charg|ed for f|
|00004120| 75 72 74 68 65 72 0a 58 | 20 2a 20 64 69 73 74 72 |urther.X| * distr|
|00004130| 69 62 75 74 69 6f 6e 20 | 6f 66 20 74 68 69 73 20 |ibution |of this |
|00004140| 73 6f 66 74 77 61 72 65 | 2c 20 6f 72 20 61 6e 79 |software|, or any|
|00004150| 20 6d 6f 64 69 66 69 63 | 61 74 69 6f 6e 73 20 74 | modific|ations t|
|00004160| 68 65 72 65 6f 66 2e 20 | 20 54 68 65 20 63 6f 70 |hereof. | The cop|
|00004170| 79 72 69 67 68 74 0a 58 | 20 2a 20 68 6f 6c 64 65 |yright.X| * holde|
|00004180| 72 20 6d 61 6b 65 73 20 | 6e 6f 20 72 65 70 72 65 |r makes |no repre|
|00004190| 73 65 6e 74 61 74 69 6f | 6e 73 20 61 62 6f 75 74 |sentatio|ns about|
|000041a0| 20 74 68 65 20 73 75 69 | 74 61 62 69 6c 69 74 79 | the sui|tability|
|000041b0| 20 6f 66 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 | of this| softwar|
|000041c0| 65 20 66 6f 72 0a 58 20 | 2a 20 61 6e 79 20 70 75 |e for.X |* any pu|
|000041d0| 72 70 6f 73 65 2e 20 20 | 49 74 20 69 73 20 70 72 |rpose. |It is pr|
|000041e0| 6f 76 69 64 65 64 20 22 | 61 73 20 69 73 22 20 77 |ovided "|as is" w|
|000041f0| 69 74 68 6f 75 74 20 65 | 78 70 72 65 73 73 20 6f |ithout e|xpress o|
|00004200| 72 20 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e |r implie|d warran|
|00004210| 74 79 2e 0a 58 20 2a 0a | 58 20 2a 20 54 48 45 20 |ty..X *.|X * THE |
|00004220| 43 4f 50 59 52 49 47 48 | 54 20 48 4f 4c 44 45 52 |COPYRIGH|T HOLDER|
|00004230| 20 44 49 53 43 4c 41 49 | 4d 53 20 41 4c 4c 20 57 | DISCLAI|MS ALL W|
|00004240| 41 52 52 41 4e 54 49 45 | 53 20 57 49 54 48 20 52 |ARRANTIE|S WITH R|
|00004250| 45 47 41 52 44 20 54 4f | 20 54 48 49 53 20 53 4f |EGARD TO| THIS SO|
|00004260| 46 54 57 41 52 45 2c 0a | 58 20 2a 20 49 4e 43 4c |FTWARE,.|X * INCL|
|00004270| 55 44 49 4e 47 20 41 4c | 4c 20 49 4d 50 4c 49 45 |UDING AL|L IMPLIE|
|00004280| 44 20 57 41 52 52 41 4e | 54 49 45 53 20 4f 46 20 |D WARRAN|TIES OF |
|00004290| 4d 45 52 43 48 41 4e 54 | 41 42 49 4c 49 54 59 20 |MERCHANT|ABILITY |
|000042a0| 41 4e 44 20 46 49 54 4e | 45 53 53 2c 20 41 4e 44 |AND FITN|ESS, AND|
|000042b0| 20 49 4e 20 4e 4f 0a 58 | 20 2a 20 45 56 45 4e 54 | IN NO.X| * EVENT|
|000042c0| 20 53 48 41 4c 4c 20 54 | 48 45 20 43 4f 50 59 52 | SHALL T|HE COPYR|
|000042d0| 49 47 48 54 20 48 4f 4c | 44 45 52 20 42 45 20 4c |IGHT HOL|DER BE L|
|000042e0| 49 41 42 4c 45 20 46 4f | 52 20 41 4e 59 20 53 50 |IABLE FO|R ANY SP|
|000042f0| 45 43 49 41 4c 2c 20 49 | 4e 44 49 52 45 43 54 20 |ECIAL, I|NDIRECT |
|00004300| 4f 52 0a 58 20 2a 20 43 | 4f 4e 53 45 51 55 45 4e |OR.X * C|ONSEQUEN|
|00004310| 54 49 41 4c 20 44 41 4d | 41 47 45 53 20 4f 52 20 |TIAL DAM|AGES OR |
|00004320| 41 4e 59 20 44 41 4d 41 | 47 45 53 20 57 48 41 54 |ANY DAMA|GES WHAT|
|00004330| 53 4f 45 56 45 52 20 52 | 45 53 55 4c 54 49 4e 47 |SOEVER R|ESULTING|
|00004340| 20 46 52 4f 4d 20 49 54 | 53 20 55 53 45 2c 0a 58 | FROM IT|S USE,.X|
|00004350| 20 2a 20 4c 4f 53 53 20 | 4f 46 20 44 41 54 41 2c | * LOSS |OF DATA,|
|00004360| 20 50 52 4f 46 49 54 53 | 2c 20 51 50 41 20 4f 52 | PROFITS|, QPA OR|
|00004370| 20 47 50 41 2c 20 57 48 | 45 54 48 45 52 20 49 4e | GPA, WH|ETHER IN|
|00004380| 20 41 4e 20 41 43 54 49 | 4f 4e 20 4f 46 20 43 4f | AN ACTI|ON OF CO|
|00004390| 4e 54 52 41 43 54 2c 0a | 58 20 2a 20 4e 45 47 4c |NTRACT,.|X * NEGL|
|000043a0| 49 47 45 4e 43 45 20 4f | 52 20 4f 54 48 45 52 20 |IGENCE O|R OTHER |
|000043b0| 54 4f 52 54 49 4f 55 53 | 20 41 43 54 49 4f 4e 2c |TORTIOUS| ACTION,|
|000043c0| 20 41 52 49 53 49 4e 47 | 20 4f 55 54 20 4f 46 20 | ARISING| OUT OF |
|000043d0| 4f 52 20 49 4e 20 43 4f | 4e 4e 45 43 54 49 4f 4e |OR IN CO|NNECTION|
|000043e0| 20 57 49 54 48 0a 58 20 | 2a 20 54 48 45 20 55 53 | WITH.X |* THE US|
|000043f0| 45 20 4f 52 20 50 45 52 | 46 4f 52 4d 41 4e 43 45 |E OR PER|FORMANCE|
|00004400| 20 4f 46 20 54 48 49 53 | 20 53 4f 46 54 57 41 52 | OF THIS| SOFTWAR|
|00004410| 45 2e 0a 58 20 2a 2f 0a | 58 0a 58 23 69 66 6e 64 |E..X */.|X.X#ifnd|
|00004420| 65 66 20 5f 43 61 6c 65 | 6e 64 61 72 57 69 64 67 |ef _Cale|ndarWidg|
|00004430| 65 74 50 5f 68 0a 58 23 | 64 65 66 69 6e 65 20 5f |etP_h.X#|define _|
|00004440| 43 61 6c 65 6e 64 61 72 | 57 69 64 67 65 74 50 5f |Calendar|WidgetP_|
|00004450| 68 0a 58 0a 58 2f 2a 20 | 43 61 6c 65 6e 64 61 72 |h.X.X/* |Calendar|
|00004460| 50 2e 68 20 2d 2d 20 50 | 72 69 76 61 74 65 20 49 |P.h -- P|rivate I|
|00004470| 6e 63 6c 75 64 65 20 46 | 69 6c 65 2e 20 2a 2f 0a |nclude F|ile. */.|
|00004480| 58 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 58 31 31 |X.X#incl|ude <X11|
|00004490| 2f 43 6f 72 65 50 2e 68 | 3e 0a 58 23 69 6e 63 6c |/CoreP.h|>.X#incl|
|000044a0| 75 64 65 20 3c 76 61 6c | 75 65 73 2e 68 3e 0a 58 |ude <val|ues.h>.X|
|000044b0| 23 69 6e 63 6c 75 64 65 | 20 22 43 61 6c 65 6e 64 |#include| "Calend|
|000044c0| 61 72 2e 68 22 0a 58 23 | 69 6e 63 6c 75 64 65 20 |ar.h".X#|include |
|000044d0| 22 47 72 61 76 69 74 79 | 2e 68 22 0a 58 23 69 6e |"Gravity|.h".X#in|
|000044e0| 63 6c 75 64 65 20 22 44 | 61 79 4e 61 6d 65 2e 68 |clude "D|ayName.h|
|000044f0| 22 0a 58 23 69 6e 63 6c | 75 64 65 20 22 53 74 72 |".X#incl|ude "Str|
|00004500| 54 61 62 6c 65 2e 68 22 | 0a 58 23 69 6e 63 6c 75 |Table.h"|.X#inclu|
|00004510| 64 65 20 22 44 61 74 65 | 2e 68 22 0a 58 0a 58 2f |de "Date|.h".X.X/|
|00004520| 2a 20 57 69 64 67 65 74 | 27 73 20 43 6c 61 73 73 |* Widget|'s Class|
|00004530| 20 50 61 72 74 3a 20 2a | 2f 0a 58 74 79 70 65 64 | Part: *|/.Xtyped|
|00004540| 65 66 20 73 74 72 75 63 | 74 20 7b 0a 58 20 20 20 |ef struc|t {.X |
|00004550| 69 6e 74 20 6d 61 6b 65 | 5f 63 6f 6d 70 69 6c 65 |int make|_compile|
|00004560| 72 5f 68 61 70 70 79 3b | 0a 58 7d 20 43 61 6c 65 |r_happy;|.X} Cale|
|00004570| 6e 64 61 72 43 6c 61 73 | 73 50 61 72 74 3b 0a 58 |ndarClas|sPart;.X|
|00004580| 0a 58 2f 2a 20 57 69 64 | 67 65 74 27 73 20 46 75 |.X/* Wid|get's Fu|
|00004590| 6c 6c 20 43 6c 61 73 73 | 20 52 65 63 6f 72 64 3a |ll Class| Record:|
|000045a0| 20 2a 2f 0a 58 74 79 70 | 65 64 65 66 20 73 74 72 | */.Xtyp|edef str|
|000045b0| 75 63 74 20 5f 43 61 6c | 65 6e 64 61 72 43 6c 61 |uct _Cal|endarCla|
|000045c0| 73 73 52 65 63 20 7b 0a | 58 20 20 20 43 6f 72 65 |ssRec {.|X Core|
|000045d0| 43 6c 61 73 73 50 61 72 | 74 20 63 6f 72 65 5f 63 |ClassPar|t core_c|
|000045e0| 6c 61 73 73 3b 0a 58 20 | 20 20 43 61 6c 65 6e 64 |lass;.X | Calend|
|000045f0| 61 72 43 6c 61 73 73 50 | 61 72 74 20 63 61 6c 65 |arClassP|art cale|
|00004600| 6e 64 61 72 5f 63 6c 61 | 73 73 3b 0a 58 7d 20 43 |ndar_cla|ss;.X} C|
|00004610| 61 6c 65 6e 64 61 72 43 | 6c 61 73 73 52 65 63 3b |alendarC|lassRec;|
|00004620| 0a 58 0a 58 2f 2a 20 53 | 74 61 74 65 20 69 6e 66 |.X.X/* S|tate inf|
|00004630| 6f 20 74 6f 20 61 76 6f | 69 64 20 73 63 72 6f 67 |o to avo|id scrog|
|00004640| 67 69 6e 67 20 74 68 65 | 20 63 61 6c 65 6e 64 61 |ging the| calenda|
|00004650| 72 2e 20 2a 2f 0a 58 74 | 79 70 65 64 65 66 20 65 |r. */.Xt|ypedef e|
|00004660| 6e 75 6d 20 7b 0a 58 20 | 20 20 70 6c 61 73 6d 61 |num {.X | plasma|
|00004670| 2c 20 20 20 20 20 20 20 | 2f 2a 20 42 65 66 6f 72 |, |/* Befor|
|00004680| 65 20 69 6e 69 74 20 2d | 2d 20 69 2e 65 2e 20 75 |e init -|- i.e. u|
|00004690| 6e 69 6e 69 74 69 61 6c | 69 7a 65 64 2e 20 20 20 |ninitial|ized. |
|000046a0| 20 20 20 20 2a 2f 0a 58 | 20 20 20 66 6f 67 67 79 | */.X| foggy|
|000046b0| 2c 20 20 20 20 20 20 20 | 20 2f 2a 20 4a 75 73 74 |, | /* Just|
|000046c0| 20 61 66 74 65 72 20 69 | 6e 69 74 69 61 6c 69 7a | after i|nitializ|
|000046d0| 65 20 6f 72 20 72 65 73 | 69 7a 65 20 6d 65 74 68 |e or res|ize meth|
|000046e0| 6f 64 2e 20 20 2a 2f 0a | 58 20 20 20 73 6f 6c 69 |od. */.|X soli|
|000046f0| 64 20 20 20 20 20 20 20 | 20 20 2f 2a 20 4a 75 73 |d | /* Jus|
|00004700| 74 20 61 66 74 65 72 20 | 65 78 70 6f 73 65 20 75 |t after |expose u|
|00004710| 6e 74 69 6c 20 6e 65 78 | 74 20 72 65 73 69 7a 65 |ntil nex|t resize|
|00004720| 2e 20 20 20 20 20 2a 2f | 0a 58 7d 20 43 61 6c 65 |. */|.X} Cale|
|00004730| 6e 64 61 72 53 74 61 74 | 65 3b 0a 58 0a 58 23 64 |ndarStat|e;.X.X#d|
|00004740| 65 66 69 6e 65 20 44 41 | 59 53 5f 49 4e 5f 57 45 |efine DA|YS_IN_WE|
|00004750| 45 4b 20 28 37 29 0a 58 | 23 64 65 66 69 6e 65 20 |EK (7).X|#define |
|00004760| 4d 41 58 5f 44 41 59 53 | 5f 49 4e 5f 4d 4f 4e 54 |MAX_DAYS|_IN_MONT|
|00004770| 48 20 28 33 31 29 0a 58 | 23 64 65 66 69 6e 65 20 |H (31).X|#define |
|00004780| 4d 4f 4e 54 48 53 5f 49 | 4e 5f 59 45 41 52 20 28 |MONTHS_I|N_YEAR (|
|00004790| 31 32 29 0a 58 23 64 65 | 66 69 6e 65 20 4d 41 58 |12).X#de|fine MAX|
|000047a0| 5f 59 45 41 52 5f 4c 45 | 4e 20 28 31 30 29 0a 58 |_YEAR_LE|N (10).X|
|000047b0| 0a 58 23 64 65 66 69 6e | 65 20 52 4f 57 53 20 28 |.X#defin|e ROWS (|
|000047c0| 38 29 0a 58 23 64 65 66 | 69 6e 65 20 43 4f 4c 53 |8).X#def|ine COLS|
|000047d0| 20 28 44 41 59 53 5f 49 | 4e 5f 57 45 45 4b 29 0a | (DAYS_I|N_WEEK).|
|000047e0| 58 0a 58 23 64 65 66 69 | 6e 65 20 48 4f 52 49 5a |X.X#defi|ne HORIZ|
|000047f0| 5f 53 45 47 4d 45 4e 54 | 53 20 28 52 4f 57 53 2d |_SEGMENT|S (ROWS-|
|00004800| 32 29 0a 58 23 64 65 66 | 69 6e 65 20 56 45 52 54 |2).X#def|ine VERT|
|00004810| 49 5f 53 45 47 4d 45 4e | 54 53 20 28 43 4f 4c 53 |I_SEGMEN|TS (COLS|
|00004820| 2d 31 29 0a 58 23 64 65 | 66 69 6e 65 20 42 4f 52 |-1).X#de|fine BOR|
|00004830| 44 45 52 5f 53 45 47 4d | 45 4e 54 53 20 28 34 29 |DER_SEGM|ENTS (4)|
|00004840| 0a 58 23 64 65 66 69 6e | 65 20 54 4f 54 41 4c 5f |.X#defin|e TOTAL_|
|00004850| 53 45 47 4d 45 4e 54 53 | 20 28 48 4f 52 49 5a 5f |SEGMENTS| (HORIZ_|
|00004860| 53 45 47 4d 45 4e 54 53 | 2b 56 45 52 54 49 5f 53 |SEGMENTS|+VERTI_S|
|00004870| 45 47 4d 45 4e 54 53 2b | 42 4f 52 44 45 52 5f 53 |EGMENTS+|BORDER_S|
|00004880| 45 47 4d 45 4e 54 53 29 | 0a 58 0a 58 2f 2a 20 43 |EGMENTS)|.X.X/* C|
|00004890| 61 6c 65 6e 64 61 72 20 | 57 69 64 67 65 74 27 73 |alendar |Widget's|
|000048a0| 20 49 6e 73 74 61 6e 63 | 65 20 50 61 72 74 3a 20 | Instanc|e Part: |
|000048b0| 2a 2f 0a 58 74 79 70 65 | 64 65 66 20 73 74 72 75 |*/.Xtype|def stru|
|000048c0| 63 74 20 7b 0a 58 0a 58 | 2f 2a 20 50 75 62 6c 69 |ct {.X.X|/* Publi|
|000048d0| 63 20 52 65 73 6f 75 72 | 63 65 73 20 2a 2f 0a 58 |c Resour|ces */.X|
|000048e0| 0a 58 20 20 20 2f 2a 20 | 43 61 6c 6c 62 61 63 6b |.X /* |Callback|
|000048f0| 20 6c 69 73 74 20 66 6f | 72 20 61 6c 6c 20 62 75 | list fo|r all bu|
|00004900| 74 74 6f 6e 73 20 2a 2f | 0a 58 20 20 20 58 74 43 |ttons */|.X XtC|
|00004910| 61 6c 6c 62 61 63 6b 4c | 69 73 74 20 63 61 6c 6c |allbackL|ist call|
|00004920| 62 61 63 6b 3b 0a 58 0a | 58 20 20 20 2f 2a 20 4c |back;.X.|X /* L|
|00004930| 69 6e 65 20 77 69 64 74 | 68 20 6f 66 20 63 61 6c |ine widt|h of cal|
|00004940| 65 6e 64 61 72 20 6c 69 | 6e 65 73 20 2a 2f 0a 58 |endar li|nes */.X|
|00004950| 20 20 20 69 6e 74 20 20 | 20 20 20 20 20 20 20 20 | int | |
|00004960| 20 20 6c 69 6e 65 5f 77 | 69 64 74 68 3b 0a 58 0a | line_w|idth;.X.|
|00004970| 58 20 20 20 50 69 78 65 | 6c 20 20 20 20 20 20 20 |X Pixe|l |
|00004980| 20 20 20 66 6f 72 65 67 | 72 6f 75 6e 64 3b 0a 58 | foreg|round;.X|
|00004990| 20 20 20 50 69 78 65 6c | 20 20 20 20 20 20 20 20 | Pixel| |
|000049a0| 20 20 62 61 63 6b 67 72 | 6f 75 6e 64 3b 0a 58 0a | backgr|ound;.X.|
|000049b0| 58 20 20 20 46 6f 6e 74 | 20 20 20 20 20 20 20 20 |X Font| |
|000049c0| 20 20 20 64 69 67 69 74 | 5f 66 6f 6e 74 3b 0a 58 | digit|_font;.X|
|000049d0| 20 20 20 46 6f 6e 74 20 | 20 20 20 20 20 20 20 20 | Font | |
|000049e0| 20 20 77 65 65 6b 64 61 | 79 5f 66 6f 6e 74 3b 0a | weekda|y_font;.|
|000049f0| 58 20 20 20 46 6f 6e 74 | 20 20 20 20 20 20 20 20 |X Font| |
|00004a00| 20 20 20 74 69 74 6c 65 | 5f 66 6f 6e 74 3b 0a 58 | title|_font;.X|
|00004a10| 20 20 20 46 6f 6e 74 20 | 20 20 20 20 20 20 20 20 | Font | |
|00004a20| 20 20 69 6e 66 6f 5f 66 | 6f 6e 74 3b 0a 58 20 20 | info_f|ont;.X |
|00004a30| 20 0a 58 20 20 20 2f 2a | 20 47 72 61 76 69 74 79 | .X /*| Gravity|
|00004a40| 20 6f 66 20 74 68 65 20 | 64 69 67 69 74 73 20 69 | of the |digits i|
|00004a50| 6e 20 74 68 65 69 72 20 | 62 6f 78 65 73 20 2a 2f |n their |boxes */|
|00004a60| 0a 58 20 20 20 58 74 47 | 72 61 76 69 74 79 20 20 |.X XtG|ravity |
|00004a70| 20 20 20 20 64 69 67 69 | 74 5f 67 72 61 76 69 74 | digi|t_gravit|
|00004a80| 79 3b 0a 58 0a 58 20 20 | 20 2f 2a 20 53 74 72 69 |y;.X.X | /* Stri|
|00004a90| 6e 67 20 74 61 62 6c 65 | 20 66 6f 72 20 6e 61 6d |ng table| for nam|
|00004aa0| 65 73 20 6f 66 20 64 69 | 67 69 74 73 2e 20 2a 2f |es of di|gits. */|
|00004ab0| 0a 58 20 20 20 53 74 72 | 69 6e 67 54 61 62 6c 65 |.X Str|ingTable|
|00004ac0| 20 20 20 20 64 69 67 69 | 74 5f 6e 61 6d 65 73 3b | digi|t_names;|
|00004ad0| 0a 58 0a 58 20 20 20 2f | 2a 20 53 74 72 69 6e 67 |.X.X /|* String|
|00004ae0| 20 74 61 62 6c 65 20 66 | 6f 72 20 6e 61 6d 65 73 | table f|or names|
|00004af0| 20 6f 66 20 64 61 79 73 | 20 6f 66 20 74 68 65 20 | of days| of the |
|00004b00| 77 65 65 6b 2e 20 2a 2f | 0a 58 20 20 20 53 74 72 |week. */|.X Str|
|00004b10| 69 6e 67 54 61 62 6c 65 | 20 20 20 20 77 65 65 6b |ingTable| week|
|00004b20| 64 61 79 5f 6e 61 6d 65 | 73 3b 0a 58 0a 58 20 20 |day_name|s;.X.X |
|00004b30| 20 2f 2a 20 53 74 72 69 | 6e 67 20 74 61 62 6c 65 | /* Stri|ng table|
|00004b40| 20 66 6f 72 20 6e 61 6d | 65 73 20 6f 66 20 6d 6f | for nam|es of mo|
|00004b50| 6e 74 68 73 2e 20 2a 2f | 0a 58 20 20 20 53 74 72 |nths. */|.X Str|
|00004b60| 69 6e 67 54 61 62 6c 65 | 20 20 20 20 6d 6f 6e 74 |ingTable| mont|
|00004b70| 68 5f 6e 61 6d 65 73 3b | 0a 58 0a 58 20 20 20 2f |h_names;|.X.X /|
|00004b80| 2a 20 54 72 75 65 20 6d | 65 61 6e 73 20 68 69 67 |* True m|eans hig|
|00004b90| 68 6c 69 67 68 74 20 73 | 70 65 63 69 66 69 65 64 |hlight s|pecified|
|00004ba0| 20 64 61 79 20 28 69 66 | 20 61 6e 79 29 20 2a 2f | day (if| any) */|
|00004bb0| 0a 58 20 20 20 42 6f 6f | 6c 65 61 6e 20 20 20 20 |.X Boo|lean |
|00004bc0| 20 20 20 20 68 69 67 68 | 6c 69 67 68 74 3b 0a 58 | high|light;.X|
|00004bd0| 0a 58 20 20 20 2f 2a 20 | 54 72 75 65 20 6d 65 61 |.X /* |True mea|
|00004be0| 6e 73 20 73 68 6f 77 20 | 79 65 61 72 20 61 6c 6f |ns show |year alo|
|00004bf0| 6e 67 20 77 69 74 68 20 | 6d 6f 6e 74 68 20 69 6e |ng with |month in|
|00004c00| 20 74 69 74 6c 65 2e 20 | 2a 2f 0a 58 20 20 20 42 | title. |*/.X B|
|00004c10| 6f 6f 6c 65 61 6e 20 20 | 20 20 20 20 20 20 73 68 |oolean | sh|
|00004c20| 6f 77 5f 79 65 61 72 3b | 0a 58 0a 58 20 20 20 2f |ow_year;|.X.X /|
|00004c30| 2a 20 57 65 65 6b 64 61 | 79 20 66 6f 72 20 6c 65 |* Weekda|y for le|
|00004c40| 66 74 6d 6f 73 74 20 63 | 6f 6c 75 6d 6e 20 69 6e |ftmost c|olumn in|
|00004c50| 20 63 61 6c 65 6e 64 61 | 72 2e 20 30 3d 53 75 6e | calenda|r. 0=Sun|
|00004c60| 64 61 79 2c 20 36 3d 53 | 61 74 75 72 64 61 79 2e |day, 6=S|aturday.|
|00004c70| 20 2a 2f 0a 58 20 20 20 | 69 6e 74 20 20 20 20 20 | */.X |int |
|00004c80| 20 20 20 20 20 20 20 73 | 74 61 72 74 69 6e 67 5f | s|tarting_|
|00004c90| 77 65 65 6b 64 61 79 3b | 0a 58 0a 58 2f 2a 20 50 |weekday;|.X.X/* P|
|00004ca0| 72 69 76 61 74 65 20 2a | 2f 0a 58 20 20 20 0a 58 |rivate *|/.X .X|
|00004cb0| 20 20 20 2f 2a 20 44 61 | 74 65 20 66 6f 72 20 63 | /* Da|te for c|
|00004cc0| 61 6c 65 6e 64 61 72 20 | 74 6f 20 64 69 73 70 6c |alendar |to displ|
|00004cd0| 61 79 20 6d 6f 6e 74 68 | 20 66 6f 72 2e 20 20 49 |ay month| for. I|
|00004ce0| 6e 69 74 69 61 6c 6c 79 | 20 63 75 72 72 65 6e 74 |nitially| current|
|00004cf0| 2e 20 2a 2f 0a 58 20 20 | 20 44 61 74 65 20 20 20 |. */.X | Date |
|00004d00| 20 20 20 20 20 20 20 64 | 61 74 65 3b 0a 58 0a 58 | d|ate;.X.X|
|00004d10| 20 20 20 2f 2a 20 54 68 | 65 20 63 75 72 72 65 6e | /* Th|e curren|
|00004d20| 74 20 68 69 67 68 6c 69 | 67 68 74 65 64 20 64 61 |t highli|ghted da|
|00004d30| 74 65 2e 20 20 49 6e 69 | 74 69 61 6c 6c 79 20 63 |te. Ini|tially c|
|00004d40| 75 72 72 65 6e 74 2e 20 | 2a 2f 0a 58 20 20 20 44 |urrent. |*/.X D|
|00004d50| 61 74 65 20 20 20 20 20 | 20 20 20 20 20 68 69 67 |ate | hig|
|00004d60| 68 6c 69 67 68 74 5f 64 | 61 74 65 3b 0a 58 0a 58 |hlight_d|ate;.X.X|
|00004d70| 20 20 20 2f 2a 20 43 75 | 72 72 65 6e 74 20 63 65 | /* Cu|rrent ce|
|00004d80| 6c 6c 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 2a 2f |ll dimen|sions */|
|00004d90| 0a 58 20 20 20 66 6c 6f | 61 74 20 20 20 20 20 20 |.X flo|at |
|00004da0| 20 20 20 72 65 61 6c 5f | 63 65 6c 6c 5f 77 69 64 | real_|cell_wid|
|00004db0| 74 68 3b 0a 58 20 20 20 | 66 6c 6f 61 74 20 20 20 |th;.X |float |
|00004dc0| 20 20 20 20 20 20 72 65 | 61 6c 5f 63 65 6c 6c 5f | re|al_cell_|
|00004dd0| 68 65 69 67 68 74 3b 0a | 58 0a 58 20 20 20 2f 2a |height;.|X.X /*|
|00004de0| 20 4d 69 6e 69 6d 75 6d | 20 63 65 6c 6c 20 64 69 | Minimum| cell di|
|00004df0| 6d 65 6e 73 69 6f 6e 73 | 20 62 61 73 65 64 20 6f |mensions| based o|
|00004e00| 6e 20 63 75 72 72 65 6e | 74 20 66 6f 6e 74 20 65 |n curren|t font e|
|00004e10| 78 74 65 6e 74 73 20 2a | 2f 0a 58 20 20 20 66 6c |xtents *|/.X fl|
|00004e20| 6f 61 74 20 20 20 20 20 | 20 20 20 20 6d 69 6e 5f |oat | min_|
|00004e30| 63 65 6c 6c 5f 77 69 64 | 74 68 3b 0a 58 20 20 20 |cell_wid|th;.X |
|00004e40| 66 6c 6f 61 74 20 20 20 | 20 20 20 20 20 20 6d 69 |float | mi|
|00004e50| 6e 5f 63 65 6c 6c 5f 68 | 65 69 67 68 74 3b 0a 58 |n_cell_h|eight;.X|
|00004e60| 20 20 20 0a 58 20 20 20 | 2f 2a 20 43 65 6c 6c 20 | .X |/* Cell |
|00004e70| 6d 61 74 72 69 78 20 6f | 66 20 58 52 65 63 74 61 |matrix o|f XRecta|
|00004e80| 6e 67 6c 65 73 20 2a 2f | 0a 58 20 20 20 58 52 65 |ngles */|.X XRe|
|00004e90| 63 74 61 6e 67 6c 65 20 | 20 20 20 63 65 6c 6c 5f |ctangle | cell_|
|00004ea0| 67 65 6f 6d 65 74 72 79 | 5b 52 4f 57 53 5d 5b 43 |geometry|[ROWS][C|
|00004eb0| 4f 4c 53 5d 3b 0a 58 0a | 58 20 20 20 2f 2a 20 43 |OLS];.X.|X /* C|
|00004ec0| 75 72 72 65 6e 74 6c 79 | 20 73 65 6c 65 63 74 65 |urrently| selecte|
|00004ed0| 64 20 63 65 6c 6c 20 63 | 6f 6f 72 64 69 6e 61 74 |d cell c|oordinat|
|00004ee0| 65 20 2a 2f 0a 58 20 20 | 20 69 6e 74 20 20 20 20 |e */.X | int |
|00004ef0| 20 20 20 20 20 20 20 63 | 75 72 72 65 6e 74 5f 78 | c|urrent_x|
|00004f00| 5f 63 65 6c 6c 3b 0a 58 | 20 20 20 69 6e 74 20 20 |_cell;.X| int |
|00004f10| 20 20 20 20 20 20 20 20 | 20 63 75 72 72 65 6e 74 | | current|
|00004f20| 5f 79 5f 63 65 6c 6c 3b | 0a 58 0a 58 20 20 20 2f |_y_cell;|.X.X /|
|00004f30| 2a 20 50 72 65 76 69 6f | 75 73 20 63 6f 72 65 20 |* Previo|us core |
|00004f40| 77 69 64 74 68 20 28 75 | 70 64 61 74 65 64 20 61 |width (u|pdated a|
|00004f50| 66 74 65 72 20 72 65 73 | 69 7a 65 29 20 2a 2f 0a |fter res|ize) */.|
|00004f60| 58 20 20 20 69 6e 74 20 | 20 20 20 20 20 20 20 20 |X int | |
|00004f70| 20 20 6f 6c 64 5f 77 69 | 6e 64 6f 77 5f 77 69 64 | old_wi|ndow_wid|
|00004f80| 74 68 3b 0a 58 20 20 20 | 69 6e 74 20 20 20 20 20 |th;.X |int |
|00004f90| 20 20 20 20 20 20 6f 6c | 64 5f 77 69 6e 64 6f 77 | ol|d_window|
|00004fa0| 5f 68 65 69 67 68 74 3b | 0a 58 0a 58 20 20 20 2f |_height;|.X.X /|
|00004fb0| 2a 20 4d 6f 6e 74 68 20 | 64 61 74 61 20 66 6f 72 |* Month |data for|
|00004fc0| 20 74 68 65 20 73 68 6f | 77 69 6e 67 20 64 61 74 | the sho|wing dat|
|00004fd0| 65 27 73 20 79 65 61 72 | 2e 20 2a 2f 0a 58 20 20 |e's year|. */.X |
|00004fe0| 20 69 6e 74 20 20 20 20 | 20 20 20 20 20 20 20 6d | int | m|
|00004ff0| 6f 6e 74 68 5f 73 74 61 | 72 74 69 6e 67 5f 77 65 |onth_sta|rting_we|
|00005000| 65 6b 64 61 79 73 5b 4d | 4f 4e 54 48 53 5f 49 4e |ekdays[M|ONTHS_IN|
|00005010| 5f 59 45 41 52 5d 3b 0a | 58 20 20 20 69 6e 74 20 |_YEAR];.|X int |
|00005020| 20 20 20 20 20 20 20 20 | 20 20 64 61 79 73 5f 69 | | days_i|
|00005030| 6e 5f 66 65 62 72 75 61 | 72 79 3b 0a 58 0a 58 20 |n_februa|ry;.X.X |
|00005040| 20 20 2f 2a 20 4d 6f 6e | 74 68 20 64 61 74 61 20 | /* Mon|th data |
|00005050| 66 6f 72 20 74 68 65 20 | 68 69 67 68 6c 69 67 68 |for the |highligh|
|00005060| 74 5f 64 61 74 65 27 73 | 20 79 65 61 72 2e 20 2a |t_date's| year. *|
|00005070| 2f 0a 58 20 20 20 69 6e | 74 20 20 20 20 20 20 20 |/.X in|t |
|00005080| 20 20 20 20 68 69 67 68 | 6c 69 67 68 74 5f 64 61 | high|light_da|
|00005090| 79 73 5f 69 6e 5f 66 65 | 62 72 75 61 72 79 3b 0a |ys_in_fe|bruary;.|
|000050a0| 58 0a 58 20 20 20 2f 2a | 20 53 69 6d 70 6c 69 63 |X.X /*| Simplic|
|000050b0| 69 74 79 20 76 61 72 69 | 61 62 6c 65 73 20 74 6f |ity vari|ables to|
|000050c0| 20 61 76 6f 69 64 20 72 | 65 63 6f 6d 70 75 74 69 | avoid r|ecomputi|
|000050d0| 6e 67 2e 20 2a 2f 0a 58 | 20 20 20 69 6e 74 20 20 |ng. */.X| int |
|000050e0| 20 20 20 20 20 20 20 20 | 20 6d 6f 6e 74 68 5f 73 | | month_s|
|000050f0| 74 61 72 74 5f 63 65 6c | 6c 6e 75 6d 3b 0a 58 20 |tart_cel|lnum;.X |
|00005100| 20 20 69 6e 74 20 20 20 | 20 20 20 20 20 20 20 20 | int | |
|00005110| 6d 6f 6e 74 68 5f 65 6e | 64 5f 63 65 6c 6c 6e 75 |month_en|d_cellnu|
|00005120| 6d 3b 0a 58 0a 58 20 20 | 20 2f 2a 20 6c 65 6e 67 |m;.X.X | /* leng|
|00005130| 74 68 73 20 6f 66 20 73 | 74 72 69 6e 67 73 20 66 |ths of s|trings f|
|00005140| 72 65 71 75 65 6e 74 6c | 79 20 64 72 61 77 6e 20 |requentl|y drawn |
|00005150| 69 6e 20 63 61 6c 65 6e | 64 61 72 20 2a 2f 0a 58 |in calen|dar */.X|
|00005160| 20 20 20 69 6e 74 20 20 | 20 20 20 20 20 20 20 20 | int | |
|00005170| 20 64 69 67 69 74 5f 6e | 61 6d 65 5f 6c 65 6e 67 | digit_n|ame_leng|
|00005180| 74 68 73 5b 4d 41 58 5f | 44 41 59 53 5f 49 4e 5f |ths[MAX_|DAYS_IN_|
|00005190| 4d 4f 4e 54 48 5d 3b 0a | 58 20 20 20 69 6e 74 20 |MONTH];.|X int |
|000051a0| 20 20 20 20 20 20 20 20 | 20 20 77 65 65 6b 64 61 | | weekda|
|000051b0| 79 5f 6e 61 6d 65 5f 6c | 65 6e 67 74 68 73 5b 44 |y_name_l|engths[D|
|000051c0| 41 59 53 5f 49 4e 5f 57 | 45 45 4b 5d 3b 0a 58 20 |AYS_IN_W|EEK];.X |
|000051d0| 20 20 69 6e 74 20 20 20 | 20 20 20 20 20 20 20 20 | int | |
|000051e0| 6d 6f 6e 74 68 5f 6e 61 | 6d 65 5f 6c 65 6e 67 74 |month_na|me_lengt|
|000051f0| 68 73 5b 4d 4f 4e 54 48 | 53 5f 49 4e 5f 59 45 41 |hs[MONTH|S_IN_YEA|
|00005200| 52 5d 3b 0a 58 0a 58 20 | 20 20 2f 2a 20 59 65 61 |R];.X.X | /* Yea|
|00005210| 72 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 6f |r inform|ation fo|
|00005220| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 61 |r the cu|rrent ca|
|00005230| 6c 65 6e 64 61 72 20 2a | 2f 0a 58 20 20 20 63 68 |lendar *|/.X ch|
|00005240| 61 72 20 20 20 20 20 20 | 20 20 20 20 79 65 61 72 |ar | year|
|00005250| 5f 73 74 72 69 6e 67 5b | 4d 41 58 5f 59 45 41 52 |_string[|MAX_YEAR|
|00005260| 5f 4c 45 4e 5d 3b 0a 58 | 20 20 20 69 6e 74 20 20 |_LEN];.X| int |
|00005270| 20 20 20 20 20 20 20 20 | 20 79 65 61 72 5f 73 74 | | year_st|
|00005280| 72 69 6e 67 5f 6c 65 6e | 67 74 68 3b 0a 58 20 20 |ring_len|gth;.X |
|00005290| 20 69 6e 74 20 20 20 20 | 20 20 20 20 20 20 20 63 | int | c|
|000052a0| 75 72 72 65 6e 74 5f 79 | 65 61 72 3b 0a 58 0a 58 |urrent_y|ear;.X.X|
|000052b0| 20 20 20 2f 2a 20 54 69 | 74 6c 65 20 69 6e 66 6f | /* Ti|tle info|
|000052c0| 72 6d 61 74 69 6f 6e 20 | 66 6f 72 20 74 68 65 20 |rmation |for the |
|000052d0| 63 75 72 72 65 6e 74 20 | 63 61 6c 65 6e 64 61 72 |current |calendar|
|000052e0| 20 2a 2f 0a 58 20 20 20 | 63 68 61 72 20 2a 20 20 | */.X |char * |
|000052f0| 20 20 20 20 20 20 74 69 | 74 6c 65 5f 73 74 72 69 | ti|tle_stri|
|00005300| 6e 67 3b 0a 58 20 20 20 | 69 6e 74 20 20 20 20 20 |ng;.X |int |
|00005310| 20 20 20 20 20 20 74 69 | 74 6c 65 5f 73 74 72 69 | ti|tle_stri|
|00005320| 6e 67 5f 6c 65 6e 67 74 | 68 3b 0a 58 20 20 20 58 |ng_lengt|h;.X X|
|00005330| 52 65 63 74 61 6e 67 6c | 65 20 20 20 20 74 69 74 |Rectangl|e tit|
|00005340| 6c 65 5f 67 65 6f 6d 65 | 74 72 79 3b 0a 58 0a 58 |le_geome|try;.X.X|
|00005350| 20 20 20 2f 2a 20 57 69 | 64 67 65 74 20 73 74 61 | /* Wi|dget sta|
|00005360| 74 65 20 69 6e 66 6f 2e | 20 20 55 73 65 64 20 74 |te info.| Used t|
|00005370| 6f 20 61 76 6f 69 64 20 | 63 68 61 6e 67 69 6e 67 |o avoid |changing|
|00005380| 20 74 68 65 20 64 61 74 | 65 20 62 65 74 77 65 65 | the dat|e betwee|
|00005390| 6e 20 74 68 65 20 2a 2f | 0a 58 20 20 20 2f 2a 20 |n the */|.X /* |
|000053a0| 72 65 73 69 7a 65 20 6f | 72 20 69 6e 69 74 69 61 |resize o|r initia|
|000053b0| 6c 69 7a 61 74 69 6f 6e | 20 6d 65 74 68 6f 64 20 |lization| method |
|000053c0| 61 6e 64 20 74 68 65 20 | 65 78 70 6f 73 65 20 6d |and the |expose m|
|000053d0| 65 74 68 6f 64 2e 20 20 | 20 20 20 20 20 20 20 20 |ethod. | |
|000053e0| 2a 2f 0a 58 0a 58 20 20 | 20 2f 2a 20 54 72 75 65 |*/.X.X | /* True|
|000053f0| 20 69 66 20 61 20 76 61 | 6c 69 64 20 63 65 6c 6c | if a va|lid cell|
|00005400| 20 68 61 73 20 62 65 65 | 6e 20 73 65 6c 65 63 74 | has bee|n select|
|00005410| 65 64 20 77 69 74 68 20 | 74 68 65 20 70 6f 69 6e |ed with |the poin|
|00005420| 74 65 72 2e 20 2a 2f 0a | 58 20 20 20 42 6f 6f 6c |ter. */.|X Bool|
|00005430| 65 61 6e 20 20 20 20 20 | 20 20 20 63 65 6c 6c 5f |ean | cell_|
|00005440| 73 65 6c 65 63 74 65 64 | 3b 0a 58 0a 58 20 20 20 |selected|;.X.X |
|00005450| 2f 2a 20 4c 61 73 74 20 | 6d 65 74 68 6f 64 20 74 |/* Last |method t|
|00005460| 68 61 74 20 68 61 73 20 | 62 65 65 6e 20 72 75 6e |hat has |been run|
|00005470| 2e 20 2a 2f 0a 58 20 20 | 20 43 61 6c 65 6e 64 61 |. */.X | Calenda|
|00005480| 72 53 74 61 74 65 20 20 | 73 74 61 74 65 3b 0a 58 |rState |state;.X|
|00005490| 0a 58 20 20 20 2f 2a 20 | 53 65 67 6d 65 6e 74 73 |.X /* |Segments|
|000054a0| 20 66 6f 72 20 64 72 61 | 77 69 6e 67 20 74 68 65 | for dra|wing the|
|000054b0| 20 67 72 69 64 2e 20 2a | 2f 0a 58 20 20 20 58 53 | grid. *|/.X XS|
|000054c0| 65 67 6d 65 6e 74 20 20 | 20 20 20 20 20 73 65 67 |egment | seg|
|000054d0| 6d 65 6e 74 73 5b 54 4f | 54 41 4c 5f 53 45 47 4d |ments[TO|TAL_SEGM|
|000054e0| 45 4e 54 53 5d 3b 0a 58 | 0a 58 20 20 20 2f 2a 20 |ENTS];.X|.X /* |
|000054f0| 54 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 73 65 |The numb|er of se|
|00005500| 67 6d 65 6e 74 73 20 63 | 75 72 72 65 6e 74 6c 79 |gments c|urrently|
|00005510| 20 69 6e 20 74 68 65 20 | 73 65 67 6d 65 6e 74 73 | in the |segments|
|00005520| 20 61 72 72 61 79 2e 20 | 2a 2f 0a 58 20 20 20 69 | array. |*/.X i|
|00005530| 6e 74 20 20 20 20 20 20 | 20 20 20 20 20 20 6e 75 |nt | nu|
|00005540| 6d 62 65 72 5f 73 65 67 | 6d 65 6e 74 73 3b 0a 58 |mber_seg|ments;.X|
|00005550| 0a 58 20 20 20 2f 2a 20 | 47 43 73 20 66 6f 72 20 |.X /* |GCs for |
|00005560| 6c 69 6e 65 2f 62 6f 78 | 20 64 72 61 77 69 6e 67 |line/box| drawing|
|00005570| 20 2a 2f 0a 58 20 20 20 | 47 43 20 20 20 20 20 20 | */.X |GC |
|00005580| 20 20 20 20 20 20 64 72 | 61 77 5f 67 63 3b 0a 58 | dr|aw_gc;.X|
|00005590| 20 20 20 47 43 20 20 20 | 20 20 20 20 20 20 20 20 | GC | |
|000055a0| 20 75 6e 64 72 61 77 5f | 67 63 3b 0a 58 20 20 20 | undraw_|gc;.X |
|000055b0| 47 43 20 20 20 20 20 20 | 20 20 20 20 20 20 69 6e |GC | in|
|000055c0| 76 65 72 74 5f 67 63 3b | 0a 58 0a 58 20 20 20 2f |vert_gc;|.X.X /|
|000055d0| 2a 20 47 43 73 20 61 6e | 64 20 66 6f 6e 74 20 73 |* GCs an|d font s|
|000055e0| 74 72 75 63 74 73 20 66 | 6f 72 20 74 65 78 74 20 |tructs f|or text |
|000055f0| 64 72 61 77 69 6e 67 20 | 2a 2f 0a 58 20 20 20 47 |drawing |*/.X G|
|00005600| 43 20 20 20 20 20 20 20 | 20 20 20 20 20 64 69 67 |C | dig|
|00005610| 69 74 5f 64 72 61 77 5f | 67 63 3b 0a 58 20 20 20 |it_draw_|gc;.X |
|00005620| 47 43 20 20 20 20 20 20 | 20 20 20 20 20 20 64 69 |GC | di|
|00005630| 67 69 74 5f 75 6e 64 72 | 61 77 5f 67 63 3b 0a 58 |git_undr|aw_gc;.X|
|00005640| 20 20 20 58 46 6f 6e 74 | 53 74 72 75 63 74 20 2a | XFont|Struct *|
|00005650| 20 64 69 67 69 74 5f 66 | 73 70 3b 0a 58 0a 58 20 | digit_f|sp;.X.X |
|00005660| 20 20 47 43 20 20 20 20 | 20 20 20 20 20 20 20 20 | GC | |
|00005670| 77 65 65 6b 64 61 79 5f | 64 72 61 77 5f 67 63 3b |weekday_|draw_gc;|
|00005680| 0a 58 20 20 20 47 43 20 | 20 20 20 20 20 20 20 20 |.X GC | |
|00005690| 20 20 20 77 65 65 6b 64 | 61 79 5f 75 6e 64 72 61 | weekd|ay_undra|
|000056a0| 77 5f 67 63 3b 0a 58 20 | 20 20 58 46 6f 6e 74 53 |w_gc;.X | XFontS|
|000056b0| 74 72 75 63 74 20 2a 20 | 77 65 65 6b 64 61 79 5f |truct * |weekday_|
|000056c0| 66 73 70 3b 0a 58 0a 58 | 20 20 20 47 43 20 20 20 |fsp;.X.X| GC |
|000056d0| 20 20 20 20 20 20 20 20 | 20 74 69 74 6c 65 5f 64 | | title_d|
|000056e0| 72 61 77 5f 67 63 3b 0a | 58 20 20 20 47 43 20 20 |raw_gc;.|X GC |
|000056f0| 20 20 20 20 20 20 20 20 | 20 20 74 69 74 6c 65 5f | | title_|
|00005700| 75 6e 64 72 61 77 5f 67 | 63 3b 0a 58 20 20 20 58 |undraw_g|c;.X X|
|00005710| 46 6f 6e 74 53 74 72 75 | 63 74 20 2a 20 74 69 74 |FontStru|ct * tit|
|00005720| 6c 65 5f 66 73 70 3b 0a | 58 0a 58 20 20 20 47 43 |le_fsp;.|X.X GC|
|00005730| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 6e 66 6f | | info|
|00005740| 5f 64 72 61 77 5f 67 63 | 3b 0a 58 20 20 20 47 43 |_draw_gc|;.X GC|
|00005750| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 6e 66 6f | | info|
|00005760| 5f 75 6e 64 72 61 77 5f | 67 63 3b 0a 58 20 20 20 |_undraw_|gc;.X |
|00005770| 58 46 6f 6e 74 53 74 72 | 75 63 74 20 2a 20 69 6e |XFontStr|uct * in|
|00005780| 66 6f 5f 66 73 70 3b 0a | 58 0a 58 7d 20 43 61 6c |fo_fsp;.|X.X} Cal|
|00005790| 65 6e 64 61 72 50 61 72 | 74 3b 0a 58 0a 58 2f 2a |endarPar|t;.X.X/*|
|000057a0| 20 57 69 64 67 65 74 27 | 73 20 46 75 6c 6c 20 49 | Widget'|s Full I|
|000057b0| 6e 73 74 61 6e 63 65 20 | 52 65 63 6f 72 64 3a 20 |nstance |Record: |
|000057c0| 2a 2f 0a 58 74 79 70 65 | 64 65 66 20 73 74 72 75 |*/.Xtype|def stru|
|000057d0| 63 74 20 5f 43 61 6c 65 | 6e 64 61 72 52 65 63 20 |ct _Cale|ndarRec |
|000057e0| 7b 0a 58 20 20 20 43 6f | 72 65 50 61 72 74 20 20 |{.X Co|rePart |
|000057f0| 20 20 20 63 6f 72 65 3b | 0a 58 20 20 20 43 61 6c | core;|.X Cal|
|00005800| 65 6e 64 61 72 50 61 72 | 74 20 63 61 6c 65 6e 64 |endarPar|t calend|
|00005810| 61 72 3b 0a 58 7d 20 43 | 61 6c 65 6e 64 61 72 52 |ar;.X} C|alendarR|
|00005820| 65 63 3b 0a 58 0a 58 65 | 78 74 65 72 6e 20 43 61 |ec;.X.Xe|xtern Ca|
|00005830| 6c 65 6e 64 61 72 43 6c | 61 73 73 52 65 63 20 63 |lendarCl|assRec c|
|00005840| 61 6c 65 6e 64 61 72 43 | 6c 61 73 73 52 65 63 3b |alendarC|lassRec;|
|00005850| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 53 55 4e 44 |.X.X#def|ine SUND|
|00005860| 41 59 20 20 20 20 30 0a | 58 23 64 65 66 69 6e 65 |AY 0.|X#define|
|00005870| 20 4d 4f 4e 44 41 59 20 | 20 20 20 31 0a 58 23 64 | MONDAY | 1.X#d|
|00005880| 65 66 69 6e 65 20 54 55 | 45 53 44 41 59 20 20 20 |efine TU|ESDAY |
|00005890| 32 0a 58 23 64 65 66 69 | 6e 65 20 57 45 44 4e 45 |2.X#defi|ne WEDNE|
|000058a0| 53 44 41 59 20 33 0a 58 | 23 64 65 66 69 6e 65 20 |SDAY 3.X|#define |
|000058b0| 54 48 55 52 53 44 41 59 | 20 20 34 0a 58 23 64 65 |THURSDAY| 4.X#de|
|000058c0| 66 69 6e 65 20 46 52 49 | 44 41 59 20 20 20 20 35 |fine FRI|DAY 5|
|000058d0| 0a 58 23 64 65 66 69 6e | 65 20 53 41 54 55 52 44 |.X#defin|e SATURD|
|000058e0| 41 59 20 20 36 0a 58 0a | 58 23 64 65 66 69 6e 65 |AY 6.X.|X#define|
|000058f0| 20 58 74 4e 44 65 66 61 | 75 6c 74 57 65 65 6b 64 | XtNDefa|ultWeekd|
|00005900| 61 79 4e 61 6d 65 73 20 | 5c 0a 58 20 20 20 20 22 |ayNames |\.X "|
|00005910| 5c 22 53 75 6e 5c 22 2c | 5c 22 4d 6f 6e 5c 22 2c |\"Sun\",|\"Mon\",|
|00005920| 5c 22 54 75 65 5c 22 2c | 5c 22 57 65 64 5c 22 2c |\"Tue\",|\"Wed\",|
|00005930| 5c 22 54 68 75 5c 22 2c | 5c 22 46 72 69 5c 22 2c |\"Thu\",|\"Fri\",|
|00005940| 5c 22 53 61 74 5c 22 22 | 0a 58 0a 58 23 64 65 66 |\"Sat\""|.X.X#def|
|00005950| 69 6e 65 20 58 74 4e 44 | 65 66 61 75 6c 74 4d 6f |ine XtND|efaultMo|
|00005960| 6e 74 68 4e 61 6d 65 73 | 20 5c 0a 58 20 20 20 20 |nthNames| \.X |
|00005970| 22 5c 22 4a 61 6e 75 61 | 72 79 5c 22 2c 5c 22 46 |"\"Janua|ry\",\"F|
|00005980| 65 62 72 75 61 72 79 5c | 22 2c 5c 22 4d 61 72 63 |ebruary\|",\"Marc|
|00005990| 68 5c 22 2c 5c 22 41 70 | 72 69 6c 5c 22 2c 20 5c |h\",\"Ap|ril\", \|
|000059a0| 0a 58 20 20 20 20 20 5c | 22 4d 61 79 5c 22 2c 5c |.X \|"May\",\|
|000059b0| 22 4a 75 6e 65 5c 22 2c | 5c 22 4a 75 6c 79 5c 22 |"June\",|\"July\"|
|000059c0| 2c 5c 22 41 75 67 75 73 | 74 5c 22 2c 5c 22 53 65 |,\"Augus|t\",\"Se|
|000059d0| 70 74 65 6d 62 65 72 5c | 22 2c 20 5c 0a 58 20 20 |ptember\|", \.X |
|000059e0| 20 20 20 5c 22 4f 63 74 | 6f 62 65 72 5c 22 2c 5c | \"Oct|ober\",\|
|000059f0| 22 4e 6f 76 65 6d 62 65 | 72 5c 22 2c 5c 22 44 65 |"Novembe|r\",\"De|
|00005a00| 63 65 6d 62 65 72 5c 22 | 22 0a 58 0a 58 23 64 65 |cember\"|".X.X#de|
|00005a10| 66 69 6e 65 20 58 74 4e | 44 65 66 61 75 6c 74 44 |fine XtN|DefaultD|
|00005a20| 69 67 69 74 4e 61 6d 65 | 73 20 5c 0a 58 20 20 20 |igitName|s \.X |
|00005a30| 22 5c 22 31 5c 22 2c 5c | 22 32 5c 22 2c 5c 22 33 |"\"1\",\|"2\",\"3|
|00005a40| 5c 22 2c 5c 22 34 5c 22 | 2c 5c 22 35 5c 22 2c 5c |\",\"4\"|,\"5\",\|
|00005a50| 22 36 5c 22 2c 5c 22 37 | 5c 22 2c 5c 22 38 5c 22 |"6\",\"7|\",\"8\"|
|00005a60| 2c 5c 22 39 5c 22 2c 5c | 22 31 30 5c 22 2c 20 5c |,\"9\",\|"10\", \|
|00005a70| 0a 58 20 20 20 5c 22 31 | 31 5c 22 2c 5c 22 31 32 |.X \"1|1\",\"12|
|00005a80| 5c 22 2c 5c 22 31 33 5c | 22 2c 5c 22 31 34 5c 22 |\",\"13\|",\"14\"|
|00005a90| 2c 5c 22 31 35 5c 22 2c | 5c 22 31 36 5c 22 2c 5c |,\"15\",|\"16\",\|
|00005aa0| 22 31 37 5c 22 2c 5c 22 | 31 38 5c 22 2c 5c 22 31 |"17\",\"|18\",\"1|
|00005ab0| 39 5c 22 2c 5c 22 32 30 | 5c 22 2c 20 5c 0a 58 20 |9\",\"20|\", \.X |
|00005ac0| 20 20 5c 22 32 31 5c 22 | 2c 5c 22 32 32 5c 22 2c | \"21\"|,\"22\",|
|00005ad0| 5c 22 32 33 5c 22 2c 5c | 22 32 34 5c 22 2c 5c 22 |\"23\",\|"24\",\"|
|00005ae0| 32 35 5c 22 2c 5c 22 32 | 36 5c 22 2c 5c 22 32 37 |25\",\"2|6\",\"27|
|00005af0| 5c 22 2c 5c 22 32 38 5c | 22 2c 5c 22 32 39 5c 22 |\",\"28\|",\"29\"|
|00005b00| 2c 5c 22 33 30 5c 22 2c | 20 5c 0a 58 20 20 20 5c |,\"30\",| \.X \|
|00005b10| 22 33 31 5c 22 22 0a 58 | 0a 58 23 64 65 66 69 6e |"31\"".X|.X#defin|
|00005b20| 65 20 4f 46 46 20 28 30 | 29 0a 58 23 64 65 66 69 |e OFF (0|).X#defi|
|00005b30| 6e 65 20 4f 4e 20 28 31 | 29 0a 58 0a 58 23 64 65 |ne ON (1|).X.X#de|
|00005b40| 66 69 6e 65 20 57 49 4e | 44 4f 57 5f 48 45 49 47 |fine WIN|DOW_HEIG|
|00005b50| 48 54 28 63 65 6c 6c 5f | 68 65 69 67 68 74 29 20 |HT(cell_|height) |
|00005b60| 28 28 69 6e 74 29 28 28 | 63 65 6c 6c 5f 68 65 69 |((int)((|cell_hei|
|00005b70| 67 68 74 29 2a 52 4f 57 | 53 29 29 0a 58 23 64 65 |ght)*ROW|S)).X#de|
|00005b80| 66 69 6e 65 20 57 49 4e | 44 4f 57 5f 57 49 44 54 |fine WIN|DOW_WIDT|
|00005b90| 48 28 63 65 6c 6c 5f 77 | 69 64 74 68 29 20 20 20 |H(cell_w|idth) |
|00005ba0| 28 28 69 6e 74 29 28 28 | 63 65 6c 6c 5f 77 69 64 |((int)((|cell_wid|
|00005bb0| 74 68 20 29 2a 43 4f 4c | 53 29 29 0a 58 0a 58 23 |th )*COL|S)).X.X#|
|00005bc0| 64 65 66 69 6e 65 20 4d | 49 4e 5f 4c 49 4e 45 5f |define M|IN_LINE_|
|00005bd0| 57 49 44 54 48 20 28 31 | 29 0a 58 23 64 65 66 69 |WIDTH (1|).X#defi|
|00005be0| 6e 65 20 4d 41 58 5f 4c | 49 4e 45 5f 57 49 44 54 |ne MAX_L|INE_WIDT|
|00005bf0| 48 20 28 31 30 29 0a 58 | 23 64 65 66 69 6e 65 20 |H (10).X|#define |
|00005c00| 44 45 46 41 55 4c 54 5f | 4c 49 4e 45 5f 57 49 44 |DEFAULT_|LINE_WID|
|00005c10| 54 48 20 28 31 29 0a 58 | 0a 58 23 64 65 66 69 6e |TH (1).X|.X#defin|
|00005c20| 65 20 49 4e 56 45 52 54 | 5f 42 4f 52 44 45 52 20 |e INVERT|_BORDER |
|00005c30| 28 31 29 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 4d |(1).X.X#|define M|
|00005c40| 49 4e 28 61 2c 62 29 20 | 28 28 61 29 20 3c 20 28 |IN(a,b) |((a) < (|
|00005c50| 62 29 20 3f 20 28 61 29 | 20 3a 20 28 62 29 29 0a |b) ? (a)| : (b)).|
|00005c60| 58 23 64 65 66 69 6e 65 | 20 4d 41 58 28 61 2c 62 |X#define| MAX(a,b|
|00005c70| 29 20 28 28 61 29 20 3e | 20 28 62 29 20 3f 20 28 |) ((a) >| (b) ? (|
|00005c80| 61 29 20 3a 20 28 62 29 | 29 0a 58 23 64 65 66 69 |a) : (b)|).X#defi|
|00005c90| 6e 65 20 4d 41 58 33 28 | 61 2c 62 2c 63 29 20 28 |ne MAX3(|a,b,c) (|
|00005ca0| 4d 41 58 28 4d 41 58 28 | 28 61 29 2c 28 62 29 29 |MAX(MAX(|(a),(b))|
|00005cb0| 2c 28 63 29 29 29 0a 58 | 0a 58 23 64 65 66 69 6e |,(c))).X|.X#defin|
|00005cc0| 65 20 4d 41 58 5f 54 49 | 54 4c 45 5f 4c 45 4e 20 |e MAX_TI|TLE_LEN |
|00005cd0| 28 31 30 30 29 0a 58 0a | 58 2f 2a 20 54 68 69 73 |(100).X.|X/* This|
|00005ce0| 20 61 73 73 75 6d 65 73 | 20 69 6e 74 65 67 65 72 | assumes| integer|
|00005cf0| 20 64 61 74 61 20 74 79 | 70 65 73 20 2a 2f 0a 58 | data ty|pes */.X|
|00005d00| 23 64 65 66 69 6e 65 20 | 72 61 6e 67 65 5f 63 68 |#define |range_ch|
|00005d10| 65 63 6b 28 6e 61 6d 65 | 2c 20 76 61 6c 2c 20 6d |eck(name|, val, m|
|00005d20| 69 6e 2c 20 6d 61 78 29 | 20 5c 0a 58 7b 20 5c 0a |in, max)| \.X{ \.|
|00005d30| 58 20 20 20 69 66 20 28 | 28 69 6e 74 29 28 76 61 |X if (|(int)(va|
|00005d40| 6c 29 20 3c 20 28 69 6e | 74 29 28 6d 69 6e 29 29 |l) < (in|t)(min))|
|00005d50| 20 7b 20 5c 0a 58 20 20 | 20 20 20 20 66 70 72 69 | { \.X | fpri|
|00005d60| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 57 61 72 |ntf(stde|rr, "War|
|00005d70| 6e 69 6e 67 3a 20 25 73 | 3d 25 64 20 74 6f 6f 20 |ning: %s|=%d too |
|00005d80| 73 6d 61 6c 6c 20 28 75 | 73 69 6e 67 20 25 64 29 |small (u|sing %d)|
|00005d90| 5c 6e 22 2c 20 6e 61 6d | 65 2c 20 76 61 6c 2c 20 |\n", nam|e, val, |
|00005da0| 6d 69 6e 29 3b 20 5c 0a | 58 20 20 20 20 20 20 28 |min); \.|X (|
|00005db0| 76 61 6c 29 20 3d 20 28 | 6d 69 6e 29 3b 20 5c 0a |val) = (|min); \.|
|00005dc0| 58 20 20 20 7d 20 65 6c | 73 65 20 69 66 20 28 28 |X } el|se if ((|
|00005dd0| 69 6e 74 29 28 76 61 6c | 29 20 3e 20 28 69 6e 74 |int)(val|) > (int|
|00005de0| 29 28 6d 61 78 29 29 20 | 7b 20 5c 0a 58 20 20 20 |)(max)) |{ \.X |
|00005df0| 20 20 20 66 70 72 69 6e | 74 66 28 73 74 64 65 72 | fprin|tf(stder|
|00005e00| 72 2c 20 22 57 61 72 6e | 69 6e 67 3a 20 25 73 3d |r, "Warn|ing: %s=|
|00005e10| 25 64 20 74 6f 6f 20 6c | 61 72 67 65 20 28 75 73 |%d too l|arge (us|
|00005e20| 69 6e 67 20 25 64 29 5c | 6e 22 2c 20 6e 61 6d 65 |ing %d)\|n", name|
|00005e30| 2c 20 76 61 6c 2c 20 6d | 61 78 29 3b 20 5c 0a 58 |, val, m|ax); \.X|
|00005e40| 20 20 20 20 20 20 28 76 | 61 6c 29 20 3d 20 28 6d | (v|al) = (m|
|00005e50| 61 78 29 3b 20 5c 0a 58 | 20 20 20 7d 20 5c 0a 58 |ax); \.X| } \.X|
|00005e60| 7d 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 62 6f 75 |}.X.X#de|fine bou|
|00005e70| 6e 64 28 76 61 6c 2c 20 | 6d 69 6e 2c 20 6d 61 78 |nd(val, |min, max|
|00005e80| 29 20 5c 0a 58 20 20 20 | 28 28 76 61 6c 29 20 3c |) \.X |((val) <|
|00005e90| 20 28 6d 69 6e 29 20 3f | 20 28 6d 69 6e 29 20 3a | (min) ?| (min) :|
|00005ea0| 20 28 28 76 61 6c 29 20 | 3e 20 28 6d 61 78 29 20 | ((val) |> (max) |
|00005eb0| 3f 20 28 6d 61 78 29 20 | 3a 20 28 76 61 6c 29 29 |? (max) |: (val))|
|00005ec0| 29 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 6c 6f 77 |).X.X#de|fine low|
|00005ed0| 5f 62 6f 75 6e 64 28 76 | 61 6c 2c 20 6d 69 6e 29 |_bound(v|al, min)|
|00005ee0| 20 5c 0a 58 20 20 20 28 | 28 76 61 6c 29 20 3c 20 | \.X (|(val) < |
|00005ef0| 28 6d 69 6e 29 20 3f 20 | 28 6d 69 6e 29 20 3a 20 |(min) ? |(min) : |
|00005f00| 28 76 61 6c 29 29 0a 58 | 0a 58 23 64 65 66 69 6e |(val)).X|.X#defin|
|00005f10| 65 20 68 69 67 68 5f 62 | 6f 75 6e 64 28 76 61 6c |e high_b|ound(val|
|00005f20| 2c 20 6d 61 78 29 20 5c | 0a 58 20 20 20 28 28 76 |, max) \|.X ((v|
|00005f30| 61 6c 29 20 3e 20 28 6d | 61 78 29 20 3f 20 28 6d |al) > (m|ax) ? (m|
|00005f40| 61 78 29 20 3a 20 28 76 | 61 6c 29 29 0a 58 0a 58 |ax) : (v|al)).X.X|
|00005f50| 0a 58 23 64 65 66 69 6e | 65 20 43 45 4c 4c 58 59 |.X#defin|e CELLXY|
|00005f60| 74 6f 43 45 4c 4c 4e 55 | 4d 28 78 2c 79 29 20 28 |toCELLNU|M(x,y) (|
|00005f70| 28 28 79 29 2d 32 29 2a | 43 4f 4c 53 2b 28 78 29 |((y)-2)*|COLS+(x)|
|00005f80| 29 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 43 45 4c |).X.X#de|fine CEL|
|00005f90| 4c 4e 55 4d 74 6f 43 45 | 4c 4c 58 59 28 6e 2c 78 |LNUMtoCE|LLXY(n,x|
|00005fa0| 2c 79 29 20 5c 0a 58 20 | 20 20 28 20 5c 0a 58 20 |,y) \.X | ( \.X |
|00005fb0| 20 20 20 20 28 78 29 20 | 3d 20 28 6e 29 25 37 2c | (x) |= (n)%7,|
|00005fc0| 20 5c 0a 58 20 20 20 20 | 20 28 79 29 20 3d 20 28 | \.X | (y) = (|
|00005fd0| 28 6e 29 2f 37 29 2b 32 | 20 5c 0a 58 20 20 20 29 |(n)/7)+2| \.X )|
|00005fe0| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 43 45 4c 4c |.X.X#def|ine CELL|
|00005ff0| 4e 55 4d 74 6f 44 41 59 | 4e 55 4d 28 63 6e 29 20 |NUMtoDAY|NUM(cn) |
|00006000| 5c 0a 58 20 20 20 28 20 | 5c 0a 58 20 20 20 20 20 |\.X ( |\.X |
|00006010| 20 28 20 28 63 6e 29 20 | 3c 20 77 69 64 67 65 74 | ( (cn) |< widget|
|00006020| 2d 3e 63 61 6c 65 6e 64 | 61 72 2e 6d 6f 6e 74 68 |->calend|ar.month|
|00006030| 5f 73 74 61 72 74 5f 63 | 65 6c 6c 6e 75 6d 20 7c |_start_c|ellnum ||
|00006040| 7c 20 5c 0a 58 20 20 20 | 20 20 20 20 20 28 63 6e || \.X | (cn|
|00006050| 29 20 3e 20 77 69 64 67 | 65 74 2d 3e 63 61 6c 65 |) > widg|et->cale|
|00006060| 6e 64 61 72 2e 6d 6f 6e | 74 68 5f 65 6e 64 5f 63 |ndar.mon|th_end_c|
|00006070| 65 6c 6c 6e 75 6d 20 29 | 20 5c 0a 58 20 20 20 20 |ellnum )| \.X |
|00006080| 20 20 3f 20 30 20 5c 0a | 58 20 20 20 20 20 20 3a | ? 0 \.|X :|
|00006090| 20 28 63 6e 29 20 2d 20 | 77 69 64 67 65 74 2d 3e | (cn) - |widget->|
|000060a0| 63 61 6c 65 6e 64 61 72 | 2e 6d 6f 6e 74 68 5f 73 |calendar|.month_s|
|000060b0| 74 61 72 74 5f 63 65 6c | 6c 6e 75 6d 20 2b 20 31 |tart_cel|lnum + 1|
|000060c0| 20 5c 0a 58 20 20 20 29 | 0a 58 0a 58 23 64 65 66 | \.X )|.X.X#def|
|000060d0| 69 6e 65 20 43 45 4c 4c | 58 59 74 6f 44 41 59 4e |ine CELL|XYtoDAYN|
|000060e0| 55 4d 28 78 2c 79 29 20 | 28 43 45 4c 4c 4e 55 4d |UM(x,y) |(CELLNUM|
|000060f0| 74 6f 44 41 59 4e 55 4d | 28 43 45 4c 4c 58 59 74 |toDAYNUM|(CELLXYt|
|00006100| 6f 43 45 4c 4c 4e 55 4d | 28 28 78 29 2c 28 79 29 |oCELLNUM|((x),(y)|
|00006110| 29 29 29 0a 58 20 20 20 | 0a 58 23 64 65 66 69 6e |))).X |.X#defin|
|00006120| 65 20 4a 41 4e 55 41 52 | 59 20 30 0a 58 23 64 65 |e JANUAR|Y 0.X#de|
|00006130| 66 69 6e 65 20 46 45 42 | 52 55 41 52 59 20 31 0a |fine FEB|RUARY 1.|
|00006140| 58 23 64 65 66 69 6e 65 | 20 4d 41 52 43 48 20 32 |X#define| MARCH 2|
|00006150| 0a 58 23 64 65 66 69 6e | 65 20 41 50 52 49 4c 20 |.X#defin|e APRIL |
|00006160| 33 0a 58 23 64 65 66 69 | 6e 65 20 4d 41 59 20 34 |3.X#defi|ne MAY 4|
|00006170| 0a 58 23 64 65 66 69 6e | 65 20 4a 55 4e 45 20 35 |.X#defin|e JUNE 5|
|00006180| 0a 58 23 64 65 66 69 6e | 65 20 4a 55 4c 59 20 36 |.X#defin|e JULY 6|
|00006190| 0a 58 23 64 65 66 69 6e | 65 20 41 55 47 55 53 54 |.X#defin|e AUGUST|
|000061a0| 20 37 0a 58 23 64 65 66 | 69 6e 65 20 53 45 50 54 | 7.X#def|ine SEPT|
|000061b0| 45 4d 42 45 52 20 38 0a | 58 23 64 65 66 69 6e 65 |EMBER 8.|X#define|
|000061c0| 20 4f 43 54 4f 42 45 52 | 20 39 20 0a 58 23 64 65 | OCTOBER| 9 .X#de|
|000061d0| 66 69 6e 65 20 4e 4f 56 | 45 4d 42 45 52 20 31 30 |fine NOV|EMBER 10|
|000061e0| 0a 58 23 64 65 66 69 6e | 65 20 44 45 43 45 4d 42 |.X#defin|e DECEMB|
|000061f0| 45 52 20 31 31 0a 58 0a | 58 23 64 65 66 69 6e 65 |ER 11.X.|X#define|
|00006200| 20 41 5f 4c 45 41 50 5f | 59 45 41 52 28 79 65 61 | A_LEAP_|YEAR(yea|
|00006210| 72 29 20 28 79 65 61 72 | 25 34 20 3d 3d 20 30 20 |r) (year|%4 == 0 |
|00006220| 26 26 20 21 28 79 65 61 | 72 25 31 30 30 20 3d 3d |&& !(yea|r%100 ==|
|00006230| 20 30 20 26 26 20 79 65 | 61 72 25 34 30 30 20 21 | 0 && ye|ar%400 !|
|00006240| 3d 20 30 29 29 0a 58 0a | 58 2f 2a 20 30 3d 53 75 |= 0)).X.|X/* 0=Su|
|00006250| 6e 64 61 79 2c 20 36 3d | 53 61 74 75 72 64 61 79 |nday, 6=|Saturday|
|00006260| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 44 41 59 | */.X#de|fine DAY|
|00006270| 53 74 6f 57 45 45 4b 44 | 41 59 28 64 61 79 73 29 |StoWEEKD|AY(days)|
|00006280| 20 28 28 28 28 64 61 79 | 73 29 25 37 29 2b 36 29 | ((((day|s)%7)+6)|
|00006290| 25 37 29 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 52 |%7).X.X#|define R|
|000062a0| 4f 54 41 54 45 28 77 69 | 64 67 65 74 2c 20 77 65 |OTATE(wi|dget, we|
|000062b0| 65 6b 64 61 79 29 20 5c | 0a 58 20 20 20 28 20 28 |ekday) \|.X ( (|
|000062c0| 28 77 65 65 6b 64 61 79 | 29 20 2b 20 28 37 20 2d |(weekday|) + (7 -|
|000062d0| 20 28 77 69 64 67 65 74 | 29 2d 3e 63 61 6c 65 6e | (widget|)->calen|
|000062e0| 64 61 72 2e 73 74 61 72 | 74 69 6e 67 5f 77 65 65 |dar.star|ting_wee|
|000062f0| 6b 64 61 79 29 29 20 25 | 20 37 20 29 0a 58 0a 58 |kday)) %| 7 ).X.X|
|00006300| 23 64 65 66 69 6e 65 20 | 44 41 59 53 5f 49 4e 5f |#define |DAYS_IN_|
|00006310| 4d 4f 4e 54 48 28 77 69 | 64 67 65 74 29 20 5c 0a |MONTH(wi|dget) \.|
|00006320| 58 20 20 20 28 20 28 77 | 69 64 67 65 74 29 2d 3e |X ( (w|idget)->|
|00006330| 63 61 6c 65 6e 64 61 72 | 2e 64 61 74 65 2e 6d 6f |calendar|.date.mo|
|00006340| 6e 74 68 20 3d 3d 20 46 | 45 42 52 55 41 52 59 2b |nth == F|EBRUARY+|
|00006350| 31 20 5c 0a 58 20 20 20 | 20 20 3f 20 28 77 69 64 |1 \.X | ? (wid|
|00006360| 67 65 74 29 2d 3e 63 61 | 6c 65 6e 64 61 72 2e 64 |get)->ca|lendar.d|
|00006370| 61 79 73 5f 69 6e 5f 66 | 65 62 72 75 61 72 79 20 |ays_in_f|ebruary |
|00006380| 5c 0a 58 20 20 20 20 20 | 3a 20 64 61 79 73 5f 69 |\.X |: days_i|
|00006390| 6e 5f 6d 6f 6e 74 68 5b | 28 77 69 64 67 65 74 29 |n_month[|(widget)|
|000063a0| 2d 3e 63 61 6c 65 6e 64 | 61 72 2e 64 61 74 65 2e |->calend|ar.date.|
|000063b0| 6d 6f 6e 74 68 20 2d 20 | 31 5d 20 5c 0a 58 20 20 |month - |1] \.X |
|000063c0| 20 29 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 44 41 | ).X.X#d|efine DA|
|000063d0| 59 53 5f 49 4e 5f 48 49 | 47 48 4c 49 47 48 54 5f |YS_IN_HI|GHLIGHT_|
|000063e0| 4d 4f 4e 54 48 28 77 69 | 64 67 65 74 29 20 5c 0a |MONTH(wi|dget) \.|
|000063f0| 58 20 20 20 28 20 28 77 | 69 64 67 65 74 29 2d 3e |X ( (w|idget)->|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.