home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / io / Headers / Prefs.h < prev    next >
MacBinary  |  1999-08-29  |  1.9 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: Prefs.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Aug 29 01:28:42 1999, modified Sun Aug 29 01:28:42 1999, creator 'CWIE', type ASCII, 1167 bytes "Prefs.h" , at 0x50f 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 50 72 65 66 73 2e | 68 00 00 00 00 00 00 00 |..Prefs.|h.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 04 8f 00 | 00 01 9a b3 ee 75 8a b3 |........|.....u..|
|00000060| ee 75 8a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.u......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 32 cf 00 00 |........|....2...|
|00000080| 23 70 72 61 67 6d 61 20 | 6f 6e 63 65 0d 0d 23 69 |#pragma |once..#i|
|00000090| 6e 63 6c 75 64 65 20 22 | 43 45 67 46 69 6c 65 53 |nclude "|CEgFileS|
|000000a0| 70 65 63 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |pec.h".#|include |
|000000b0| 22 41 72 67 4c 69 73 74 | 2e 68 22 0d 0d 63 6c 61 |"ArgList|.h"..cla|
|000000c0| 73 73 20 50 72 65 66 73 | 20 7b 0d 0d 0d 09 70 75 |ss Prefs| {....pu|
|000000d0| 62 6c 69 63 3a 0d 09 0d | 09 09 2f 2f 20 69 6e 53 |blic:...|..// inS|
|000000e0| 79 73 53 74 6f 72 65 64 | 20 3d 3d 20 74 72 75 65 |ysStored| == true|
|000000f0| 20 6d 65 61 6e 73 20 74 | 68 65 20 74 68 69 73 20 | means t|he this |
|00000100| 70 72 65 66 20 66 69 6c | 65 20 73 74 6f 72 65 64 |pref fil|e stored|
|00000110| 20 77 69 74 68 69 6e 20 | 74 68 65 20 73 79 73 74 | within |the syst|
|00000120| 65 6d 20 28 6d 61 63 20 | 2d 3e 20 70 72 65 66 20 |em (mac |-> pref |
|00000130| 66 6f 6c 64 65 72 2c 20 | 70 63 20 2d 3e 20 72 65 |folder, |pc -> re|
|00000140| 67 69 73 74 72 79 29 2c | 0d 09 09 2f 2f 20 20 20 |gistry),|...// |
|00000150| 20 6f 74 68 65 72 77 69 | 73 65 2c 20 69 74 27 73 | otherwi|se, it's|
|00000160| 20 73 74 6f 72 65 64 20 | 69 6e 20 74 68 65 20 63 | stored |in the c|
|00000170| 75 72 72 65 6e 74 20 66 | 6f 6c 64 65 72 2e 20 0d |urrent f|older. .|
|00000180| 09 09 2f 2f 20 2a 2a 20 | 4e 4f 54 45 3a 20 72 65 |..// ** |NOTE: re|
|00000190| 67 69 73 74 72 79 20 73 | 74 6f 72 65 20 69 73 20 |gistry s|tore is |
|000001a0| 75 6e 69 6d 70 6c 65 6d | 65 6e 74 65 64 20 28 69 |unimplem|ented (i|
|000001b0| 6e 20 77 69 6e 33 32 29 | 2c 20 73 6f 20 69 74 20 |n win32)|, so it |
|000001c0| 6a 75 73 74 20 73 74 6f | 72 65 73 20 6f 6e 20 74 |just sto|res on t|
|000001d0| 68 65 20 63 75 72 20 66 | 6f 6c 64 65 72 0d 09 09 |he cur f|older...|
|000001e0| 09 09 09 09 50 72 65 66 | 73 28 20 63 6f 6e 73 74 |....Pref|s( const|
|000001f0| 20 63 68 61 72 2a 20 69 | 6e 50 72 65 66 73 4e 61 | char* i|nPrefsNa|
|00000200| 6d 65 2c 20 62 6f 6f 6c | 20 69 6e 53 79 73 53 74 |me, bool| inSysSt|
|00000210| 6f 72 65 64 20 29 3b 0d | 09 09 09 09 09 09 0d 09 |ored );.|........|
|00000220| 09 2f 2f 20 48 6f 77 20 | 61 20 50 72 65 66 73 20 |.// How |a Prefs |
|00000230| 66 69 6c 65 20 61 63 63 | 65 73 73 65 73 20 74 68 |file acc|esses th|
|00000240| 65 20 64 69 73 6b 2e 20 | 20 54 6f 20 75 73 65 20 |e disk. | To use |
|00000250| 61 20 70 72 65 66 20 66 | 69 6c 65 2c 20 4c 6f 61 |a pref f|ile, Loa|
|00000260| 64 28 29 20 69 74 20 66 | 69 72 73 74 2c 20 61 6e |d() it f|irst, an|
|00000270| 64 20 74 6f 20 73 61 76 | 65 0d 09 09 2f 2f 20 20 |d to sav|e...// |
|00000280| 20 20 61 6e 79 20 63 68 | 61 6e 67 65 73 20 6f 66 | any ch|anges of|
|00000290| 20 69 74 20 74 6f 20 64 | 69 73 6b 2c 20 63 61 6c | it to d|isk, cal|
|000002a0| 6c 20 53 74 6f 72 65 28 | 29 2e 09 09 09 0d 09 09 |l Store(|).......|
|000002b0| 43 45 67 45 72 72 09 09 | 09 4c 6f 61 64 28 29 3b |CEgErr..|.Load();|
|000002c0| 0d 09 09 43 45 67 45 72 | 72 09 09 09 53 74 6f 72 |...CEgEr|r...Stor|
|000002d0| 65 28 29 3b 0d 09 09 0d | 09 09 2f 2f 09 52 65 74 |e();....|..//.Ret|
|000002e0| 75 72 6e 73 20 74 72 75 | 65 20 69 66 20 74 68 65 |urns tru|e if the|
|000002f0| 20 70 72 65 66 20 49 44 | 20 77 61 73 20 66 6f 75 | pref ID| was fou|
|00000300| 6e 64 0d 09 09 62 6f 6f | 6c 09 09 09 47 65 74 50 |nd...boo|l...GetP|
|00000310| 72 65 66 28 20 6c 6f 6e | 67 20 69 6e 49 44 2c 20 |ref( lon|g inID, |
|00000320| 55 74 69 6c 53 74 72 26 | 20 6f 75 74 44 61 74 61 |UtilStr&| outData|
|00000330| 20 29 09 09 09 09 7b 20 | 72 65 74 75 72 6e 20 6d | )....{ |return m|
|00000340| 50 72 65 66 73 2e 47 65 | 74 41 72 67 28 20 69 6e |Prefs.Ge|tArg( in|
|00000350| 49 44 2c 20 6f 75 74 44 | 61 74 61 20 29 3b 09 7d |ID, outD|ata );.}|
|00000360| 0d 09 09 6c 6f 6e 67 09 | 09 09 47 65 74 50 72 65 |...long.|..GetPre|
|00000370| 66 28 20 6c 6f 6e 67 20 | 69 6e 49 44 20 29 09 09 |f( long |inID )..|
|00000380| 09 09 09 09 09 09 7b 20 | 72 65 74 75 72 6e 20 6d |......{ |return m|
|00000390| 50 72 65 66 73 2e 47 65 | 74 41 72 67 28 20 69 6e |Prefs.Ge|tArg( in|
|000003a0| 49 44 20 29 3b 09 09 09 | 09 7d 0d 09 09 66 6c 6f |ID );...|.}...flo|
|000003b0| 61 74 09 09 09 47 65 74 | 46 6c 6f 61 74 50 72 65 |at...Get|FloatPre|
|000003c0| 66 28 20 6c 6f 6e 67 20 | 69 6e 49 44 20 29 09 09 |f( long |inID )..|
|000003d0| 09 09 09 09 09 7b 20 72 | 65 74 75 72 6e 20 6d 50 |.....{ r|eturn mP|
|000003e0| 72 65 66 73 2e 47 65 74 | 46 6c 6f 61 74 28 20 69 |refs.Get|Float( i|
|000003f0| 6e 49 44 20 29 3b 09 09 | 09 7d 0d 09 09 0d 09 09 |nID );..|.}......|
|00000400| 2f 2f 20 09 53 65 74 73 | 20 74 68 65 20 67 69 76 |// .Sets| the giv|
|00000410| 65 6e 20 70 72 65 66 20 | 74 6f 20 74 68 65 20 67 |en pref |to the g|
|00000420| 69 76 65 6e 20 64 61 74 | 61 2e 0d 09 09 76 6f 69 |iven dat|a....voi|
|00000430| 64 09 09 09 53 65 74 50 | 72 65 66 28 20 6c 6f 6e |d...SetP|ref( lon|
|00000440| 67 20 69 6e 49 44 2c 20 | 63 6f 6e 73 74 20 55 74 |g inID, |const Ut|
|00000450| 69 6c 53 74 72 26 20 69 | 6e 44 61 74 61 20 29 3b |ilStr& i|nData );|
|00000460| 0d 09 09 76 6f 69 64 09 | 09 09 53 65 74 50 72 65 |...void.|..SetPre|
|00000470| 66 28 20 6c 6f 6e 67 20 | 69 6e 49 44 2c 20 6c 6f |f( long |inID, lo|
|00000480| 6e 67 20 69 6e 44 61 74 | 61 20 29 3b 0d 09 09 0d |ng inDat|a );....|
|00000490| 09 09 0d 09 70 72 6f 74 | 65 63 74 65 64 3a 0d 09 |....prot|ected:..|
|000004a0| 09 55 74 69 6c 53 74 72 | 09 09 09 6d 50 72 65 66 |.UtilStr|...mPref|
|000004b0| 4e 61 6d 65 3b 0d 09 09 | 62 6f 6f 6c 09 09 09 6d |Name;...|bool...m|
|000004c0| 53 79 73 53 74 6f 72 65 | 64 3b 0d 09 09 62 6f 6f |SysStore|d;...boo|
|000004d0| 6c 09 09 09 6d 44 69 72 | 74 79 3b 0d 09 09 43 45 |l...mDir|ty;...CE|
|000004e0| 67 46 69 6c 65 53 70 65 | 63 09 09 6d 46 69 6c 65 |gFileSpe|c..mFile|
|000004f0| 53 70 65 63 3b 0d 09 09 | 41 72 67 4c 69 73 74 09 |Spec;...|ArgList.|
|00000500| 09 09 6d 50 72 65 66 73 | 3b 0d 7d 3b 0d 0d 0d 00 |..mPrefs|;.};....|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000590| 29 20 3d 20 6d 42 61 63 | 6b 43 6f 6c 6f 72 3b 0d |) = mBac|kColor;.|
|000005a0| 09 09 09 62 61 73 65 20 | 2b 3d 20 50 5f 53 5a 3b |...base |+= P_SZ;|
|000005b0| 0d 09 09 7d 0d 09 09 62 | 61 73 65 20 2b 3d 20 6d |...}...b|ase += m|
|000005c0| 42 79 74 65 73 50 65 72 | 52 6f 77 20 2d 20 50 5f |BytesPer|Row - P_|
|000005d0| 53 5a 20 2a 20 28 77 69 | 64 74 68 20 2b 20 31 29 |SZ * (wi|dth + 1)|
|000005e0| 3b 0d 09 7d 0d 7d 0d 0d | 0d 0d 76 6f 69 64 20 50 |;..}.}..|..void P|
|000005f0| 69 78 50 6f 72 74 3a 3a | 5f 43 72 6f 73 73 42 6c |ixPort::|_CrossBl|
|00000600| 75 72 28 20 63 68 61 72 | 2a 20 69 6e 53 72 63 65 |ur( char|* inSrce|
|00000610| 2c 20 69 6e 74 20 69 6e | 57 69 64 74 68 2c 20 69 |, int in|Width, i|
|00000620| 6e 74 20 69 6e 48 65 69 | 67 68 74 2c 20 69 6e 74 |nt inHei|ght, int|
|00000630| 20 69 6e 42 79 74 65 73 | 50 65 72 52 6f 77 2c 20 | inBytes|PerRow, |
|00000640| 75 6e 73 69 67 6e 65 64 | 20 63 68 61 72 2a 20 69 |unsigned| char* i|
|00000650| 6e 52 6f 77 42 75 66 20 | 29 20 7b 0d 09 6c 6f 6e |nRowBuf |) {..lon|
|00000660| 67 20 6c 65 66 74 52 2c | 20 6c 65 66 74 47 2c 20 |g leftR,| leftG, |
|00000670| 6c 65 66 74 42 2c 20 63 | 65 6e 52 2c 20 63 65 6e |leftB, c|enR, cen|
|00000680| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 03 | 00 04 00 30 00 0e 02 3a |........|...0...:|
|000006b0| 02 be 00 30 00 0e 02 3a | 02 be b3 ee 2f 3a 00 00 |...0...:|..../:..|
|000006c0| 03 35 00 00 03 41 00 00 | 00 00 01 00 00 00 00 04 |.5...A..|........|
|000006d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000006e0| 00 00 00 46 05 c6 2c e0 | 1a 72 00 00 00 1c 00 46 |...F..,.|.r.....F|
|000006f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000700| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000710| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+