Home » Archimedes archive » Archimedes World » archimedes_world_volume_15_issue_1_scp.adf » !ProFiler_ProFiler » !ProFiler/Dox/ViewFile

!ProFiler/Dox/ViewFile

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Archimedes World » archimedes_world_volume_15_issue_1_scp.adf » !ProFiler_ProFiler
Filename: !ProFiler/Dox/ViewFile
Read OK:
File size: 05D9 bytes
Load address: 0000
Exec address: 0000
File contents
<html><head><title>Local viewer file</title></head>

<body>
<h1><center><u>Local choices file</u></center></h1>

<p>This hidden file (usually called '�View�') is stored in a directory, and controls how the viewer looks when opened. 
<p>The type of the file (currently &050 or &051) also means something. Normal 'ViewDef' files affect only the directory they are stored in. 'HyperDef' files affect the directory, and also all subsequent subdirectories, i.e. the whole tree.
<p>The contents of a HyperDef/ViewDef file will override a HyperDef file further up the tree.
<p>The general rule is that any data in the file will override the default
viewer style.

The file consists of series of a 1-byte type followed by a number of data bytes.

<pre>
Type	Data bytes	Meaning
-----------------------------------------------------------------------------
0	1		File does not conform to this format
1	1		Style		0=Large
					1=Small
					2=Full info
2	1		Sort		0=Name
					1=Type
					2=Size
					3=Date
3	1		Switches	bit0=Hide hidden
					bit1=Show stats
					bit2=Don't boot
4	1		Window background (255=tiled)
5	1		Access buttons present
6-31	1		*reserved*
32	2		Min X
33	2		Min Y
34	2		Max X
35	2		Max Y
36	2		Max width of SC sprites
37-63	2		*reserved*
64	4		Icon normal flags
65	4		Icon select flags
66	4		Full info selected column sequence
67-127	4		*reserved*
128	24		Large icon placement
129	24		Small icon placement
130	24		Full info icon placement
131-255	?		*reserved*, ignore rest of file
</pre>
00000000  3c 68 74 6d 6c 3e 3c 68  65 61 64 3e 3c 74 69 74  |<html><head><tit|
00000010  6c 65 3e 4c 6f 63 61 6c  20 76 69 65 77 65 72 20  |le>Local viewer |
00000020  66 69 6c 65 3c 2f 74 69  74 6c 65 3e 3c 2f 68 65  |file</title></he|
00000030  61 64 3e 0a 0a 3c 62 6f  64 79 3e 0a 3c 68 31 3e  |ad>..<body>.<h1>|
00000040  3c 63 65 6e 74 65 72 3e  3c 75 3e 4c 6f 63 61 6c  |<center><u>Local|
00000050  20 63 68 6f 69 63 65 73  20 66 69 6c 65 3c 2f 75  | choices file</u|
00000060  3e 3c 2f 63 65 6e 74 65  72 3e 3c 2f 68 31 3e 0a  |></center></h1>.|
00000070  0a 3c 70 3e 54 68 69 73  20 68 69 64 64 65 6e 20  |.<p>This hidden |
00000080  66 69 6c 65 20 28 75 73  75 61 6c 6c 79 20 63 61  |file (usually ca|
00000090  6c 6c 65 64 20 27 a6 56  69 65 77 a6 27 29 20 69  |lled '.View.') i|
000000a0  73 20 73 74 6f 72 65 64  20 69 6e 20 61 20 64 69  |s stored in a di|
000000b0  72 65 63 74 6f 72 79 2c  20 61 6e 64 20 63 6f 6e  |rectory, and con|
000000c0  74 72 6f 6c 73 20 68 6f  77 20 74 68 65 20 76 69  |trols how the vi|
000000d0  65 77 65 72 20 6c 6f 6f  6b 73 20 77 68 65 6e 20  |ewer looks when |
000000e0  6f 70 65 6e 65 64 2e 20  0a 3c 70 3e 54 68 65 20  |opened. .<p>The |
000000f0  74 79 70 65 20 6f 66 20  74 68 65 20 66 69 6c 65  |type of the file|
00000100  20 28 63 75 72 72 65 6e  74 6c 79 20 26 30 35 30  | (currently &050|
00000110  20 6f 72 20 26 30 35 31  29 20 61 6c 73 6f 20 6d  | or &051) also m|
00000120  65 61 6e 73 20 73 6f 6d  65 74 68 69 6e 67 2e 20  |eans something. |
00000130  4e 6f 72 6d 61 6c 20 27  56 69 65 77 44 65 66 27  |Normal 'ViewDef'|
00000140  20 66 69 6c 65 73 20 61  66 66 65 63 74 20 6f 6e  | files affect on|
00000150  6c 79 20 74 68 65 20 64  69 72 65 63 74 6f 72 79  |ly the directory|
00000160  20 74 68 65 79 20 61 72  65 20 73 74 6f 72 65 64  | they are stored|
00000170  20 69 6e 2e 20 27 48 79  70 65 72 44 65 66 27 20  | in. 'HyperDef' |
00000180  66 69 6c 65 73 20 61 66  66 65 63 74 20 74 68 65  |files affect the|
00000190  20 64 69 72 65 63 74 6f  72 79 2c 20 61 6e 64 20  | directory, and |
000001a0  61 6c 73 6f 20 61 6c 6c  20 73 75 62 73 65 71 75  |also all subsequ|
000001b0  65 6e 74 20 73 75 62 64  69 72 65 63 74 6f 72 69  |ent subdirectori|
000001c0  65 73 2c 20 69 2e 65 2e  20 74 68 65 20 77 68 6f  |es, i.e. the who|
000001d0  6c 65 20 74 72 65 65 2e  0a 3c 70 3e 54 68 65 20  |le tree..<p>The |
000001e0  63 6f 6e 74 65 6e 74 73  20 6f 66 20 61 20 48 79  |contents of a Hy|
000001f0  70 65 72 44 65 66 2f 56  69 65 77 44 65 66 20 66  |perDef/ViewDef f|
00000200  69 6c 65 20 77 69 6c 6c  20 6f 76 65 72 72 69 64  |ile will overrid|
00000210  65 20 61 20 48 79 70 65  72 44 65 66 20 66 69 6c  |e a HyperDef fil|
00000220  65 20 66 75 72 74 68 65  72 20 75 70 20 74 68 65  |e further up the|
00000230  20 74 72 65 65 2e 0a 3c  70 3e 54 68 65 20 67 65  | tree..<p>The ge|
00000240  6e 65 72 61 6c 20 72 75  6c 65 20 69 73 20 74 68  |neral rule is th|
00000250  61 74 20 61 6e 79 20 64  61 74 61 20 69 6e 20 74  |at any data in t|
00000260  68 65 20 66 69 6c 65 20  77 69 6c 6c 20 6f 76 65  |he file will ove|
00000270  72 72 69 64 65 20 74 68  65 20 64 65 66 61 75 6c  |rride the defaul|
00000280  74 0a 76 69 65 77 65 72  20 73 74 79 6c 65 2e 0a  |t.viewer style..|
00000290  0a 54 68 65 20 66 69 6c  65 20 63 6f 6e 73 69 73  |.The file consis|
000002a0  74 73 20 6f 66 20 73 65  72 69 65 73 20 6f 66 20  |ts of series of |
000002b0  61 20 31 2d 62 79 74 65  20 74 79 70 65 20 66 6f  |a 1-byte type fo|
000002c0  6c 6c 6f 77 65 64 20 62  79 20 61 20 6e 75 6d 62  |llowed by a numb|
000002d0  65 72 20 6f 66 20 64 61  74 61 20 62 79 74 65 73  |er of data bytes|
000002e0  2e 0a 0a 3c 70 72 65 3e  0a 54 79 70 65 09 44 61  |...<pre>.Type.Da|
000002f0  74 61 20 62 79 74 65 73  09 4d 65 61 6e 69 6e 67  |ta bytes.Meaning|
00000300  0a 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |.---------------|
00000310  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000340  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 0a 30  |--------------.0|
00000350  09 31 09 09 46 69 6c 65  20 64 6f 65 73 20 6e 6f  |.1..File does no|
00000360  74 20 63 6f 6e 66 6f 72  6d 20 74 6f 20 74 68 69  |t conform to thi|
00000370  73 20 66 6f 72 6d 61 74  0a 31 09 31 09 09 53 74  |s format.1.1..St|
00000380  79 6c 65 09 09 30 3d 4c  61 72 67 65 0a 09 09 09  |yle..0=Large....|
00000390  09 09 31 3d 53 6d 61 6c  6c 0a 09 09 09 09 09 32  |..1=Small......2|
000003a0  3d 46 75 6c 6c 20 69 6e  66 6f 0a 32 09 31 09 09  |=Full info.2.1..|
000003b0  53 6f 72 74 09 09 30 3d  4e 61 6d 65 0a 09 09 09  |Sort..0=Name....|
000003c0  09 09 31 3d 54 79 70 65  0a 09 09 09 09 09 32 3d  |..1=Type......2=|
000003d0  53 69 7a 65 0a 09 09 09  09 09 33 3d 44 61 74 65  |Size......3=Date|
000003e0  0a 33 09 31 09 09 53 77  69 74 63 68 65 73 09 62  |.3.1..Switches.b|
000003f0  69 74 30 3d 48 69 64 65  20 68 69 64 64 65 6e 0a  |it0=Hide hidden.|
00000400  09 09 09 09 09 62 69 74  31 3d 53 68 6f 77 20 73  |.....bit1=Show s|
00000410  74 61 74 73 0a 09 09 09  09 09 62 69 74 32 3d 44  |tats......bit2=D|
00000420  6f 6e 27 74 20 62 6f 6f  74 0a 34 09 31 09 09 57  |on't boot.4.1..W|
00000430  69 6e 64 6f 77 20 62 61  63 6b 67 72 6f 75 6e 64  |indow background|
00000440  20 28 32 35 35 3d 74 69  6c 65 64 29 0a 35 09 31  | (255=tiled).5.1|
00000450  09 09 41 63 63 65 73 73  20 62 75 74 74 6f 6e 73  |..Access buttons|
00000460  20 70 72 65 73 65 6e 74  0a 36 2d 33 31 09 31 09  | present.6-31.1.|
00000470  09 2a 72 65 73 65 72 76  65 64 2a 0a 33 32 09 32  |.*reserved*.32.2|
00000480  09 09 4d 69 6e 20 58 0a  33 33 09 32 09 09 4d 69  |..Min X.33.2..Mi|
00000490  6e 20 59 0a 33 34 09 32  09 09 4d 61 78 20 58 0a  |n Y.34.2..Max X.|
000004a0  33 35 09 32 09 09 4d 61  78 20 59 0a 33 36 09 32  |35.2..Max Y.36.2|
000004b0  09 09 4d 61 78 20 77 69  64 74 68 20 6f 66 20 53  |..Max width of S|
000004c0  43 20 73 70 72 69 74 65  73 0a 33 37 2d 36 33 09  |C sprites.37-63.|
000004d0  32 09 09 2a 72 65 73 65  72 76 65 64 2a 0a 36 34  |2..*reserved*.64|
000004e0  09 34 09 09 49 63 6f 6e  20 6e 6f 72 6d 61 6c 20  |.4..Icon normal |
000004f0  66 6c 61 67 73 0a 36 35  09 34 09 09 49 63 6f 6e  |flags.65.4..Icon|
00000500  20 73 65 6c 65 63 74 20  66 6c 61 67 73 0a 36 36  | select flags.66|
00000510  09 34 09 09 46 75 6c 6c  20 69 6e 66 6f 20 73 65  |.4..Full info se|
00000520  6c 65 63 74 65 64 20 63  6f 6c 75 6d 6e 20 73 65  |lected column se|
00000530  71 75 65 6e 63 65 0a 36  37 2d 31 32 37 09 34 09  |quence.67-127.4.|
00000540  09 2a 72 65 73 65 72 76  65 64 2a 0a 31 32 38 09  |.*reserved*.128.|
00000550  32 34 09 09 4c 61 72 67  65 20 69 63 6f 6e 20 70  |24..Large icon p|
00000560  6c 61 63 65 6d 65 6e 74  0a 31 32 39 09 32 34 09  |lacement.129.24.|
00000570  09 53 6d 61 6c 6c 20 69  63 6f 6e 20 70 6c 61 63  |.Small icon plac|
00000580  65 6d 65 6e 74 0a 31 33  30 09 32 34 09 09 46 75  |ement.130.24..Fu|
00000590  6c 6c 20 69 6e 66 6f 20  69 63 6f 6e 20 70 6c 61  |ll info icon pla|
000005a0  63 65 6d 65 6e 74 0a 31  33 31 2d 32 35 35 09 3f  |cement.131-255.?|
000005b0  09 09 2a 72 65 73 65 72  76 65 64 2a 2c 20 69 67  |..*reserved*, ig|
000005c0  6e 6f 72 65 20 72 65 73  74 20 6f 66 20 66 69 6c  |nore rest of fil|
000005d0  65 0a 3c 2f 70 72 65 3e  0a                       |e.</pre>.|
000005d9