I've now added the documentation files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
BIN
utils/dialoged/docs/alignb.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/alignb.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: alignb.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 298 389 314 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
298 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 ffff00
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
07010700
|
||||
070181000204020000
|
||||
070181000204020000
|
||||
070181000204020000
|
||||
070181000204020000
|
||||
070181000204020000
|
||||
8101000300010181000204020000
|
||||
8201000201028100018201000204020000
|
||||
8201000201028100018201000204020000
|
||||
8201000201028100018201000204020000
|
||||
8201000201028100018201000204020000
|
||||
810100030001010700
|
||||
0f01
|
||||
0f01
|
||||
|
||||
%
|
||||
% Compression made this file 3.12% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/alignb.gif
Normal file
After Width: | Height: | Size: 132 B |
BIN
utils/dialoged/docs/alignl.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/alignl.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: alignl.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 ffff00
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
020105000601
|
||||
020181000202028100010501
|
||||
020181000202028100010501
|
||||
020181000202028100010501
|
||||
020105000601
|
||||
0f01
|
||||
0f01
|
||||
02010a000101
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
02010a000101
|
||||
0f01
|
||||
|
||||
%
|
||||
% Compression made this file 16.11% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/alignl.gif
Normal file
After Width: | Height: | Size: 124 B |
BIN
utils/dialoged/docs/alignr.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/alignr.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: alignr.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 ffff00
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
070105000101
|
||||
070181000202028100010001
|
||||
070181000202028100010001
|
||||
070181000202028100010001
|
||||
070105000101
|
||||
0f01
|
||||
0f01
|
||||
02010a000101
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
02010a000101
|
||||
0f01
|
||||
|
||||
%
|
||||
% Compression made this file 16.11% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/alignr.gif
Normal file
After Width: | Height: | Size: 126 B |
BIN
utils/dialoged/docs/alignt.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/alignt.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: alignt.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 ffff00
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
810100030001010700
|
||||
8201000201028100018201000204020000
|
||||
8201000201028100018201000204020000
|
||||
8201000201028100018201000204020000
|
||||
8201000201028100018201000204020000
|
||||
8101000300010181000204020000
|
||||
070181000204020000
|
||||
070181000204020000
|
||||
070181000204020000
|
||||
070181000204020000
|
||||
070181000204020000
|
||||
07010700
|
||||
0f01
|
||||
0f01
|
||||
|
||||
%
|
||||
% Compression made this file 20.28% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/alignt.gif
Normal file
After Width: | Height: | Size: 131 B |
BIN
utils/dialoged/docs/arrow.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/arrow.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: arrow.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
8102001900
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030106018100010c0101020000
|
||||
82000301060101000c0101020000
|
||||
82000301060102000b0101020000
|
||||
82000301060103000a0101020000
|
||||
8200030106010400090101020000
|
||||
8200030106010500080101020000
|
||||
8200030106010600070101020000
|
||||
8200030106010700060101020000
|
||||
8200030106010400090101020000
|
||||
8200030106010100810100810001080101020000
|
||||
82000301060181000101010100080101020000
|
||||
820003010a010100080101020000
|
||||
820003010b010100070101020000
|
||||
820003010b010100070101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
1b00
|
||||
|
||||
%
|
||||
% Compression made this file 13.95% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/arrow.gif
Normal file
After Width: | Height: | Size: 193 B |
BIN
utils/dialoged/docs/back.gif
Normal file
After Width: | Height: | Size: 225 B |
BIN
utils/dialoged/docs/bmpbuttn.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/bmpbuttn.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: bmpbuttn.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030103010c00040101020000
|
||||
8200030102018100010b01810001020101020000
|
||||
82000301020181000101018100010201010002010100020101020000
|
||||
8200030102018100010101810001010181000182010001810100810001010101020000
|
||||
82000301020185000100010001010181000182010001810100810001010101020000
|
||||
8200030102018400010001008100010101010002010100020101020000
|
||||
82000301020183000100018201000106010100020101020000
|
||||
82000301020182000100820001000900020101020000
|
||||
820003010201810001010181000107010100020101020000
|
||||
82000301020181000101018100010101010003010100020101020000
|
||||
8200030103010e00020101020000
|
||||
8200030104010c00030101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 18.45% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/bmpbuttn.gif
Normal file
After Width: | Height: | Size: 216 B |
197
utils/dialoged/docs/body.tex
Normal file
@@ -0,0 +1,197 @@
|
||||
\chapter{Introduction}\label{introduction}
|
||||
\pagenumbering{arabic}%
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
|
||||
The wxWindows Dialog Editor is a tool for creating dialog resource files, in {\tt .wxr} format.
|
||||
It differs from wxBuilder in the following respectes:
|
||||
|
||||
\begin{enumerate}\itemsep=0pt
|
||||
\item Scope. It is written for dialog editing only, and is therefore more convenient than wxBuilder for this purpose.
|
||||
\item File format. Dialog editor reads and writes wxWindows resource files (extension {\tt .wxr}) and has
|
||||
no independent file format.
|
||||
\item Robustness. It is written in a more principled way than wxBuilder, and is less ambitious.
|
||||
\item Ease of use. Windows are edited using the mouse or via consistent {\it property editors}, which
|
||||
provide immediate visual feedback of changed properties.
|
||||
\end{enumerate}
|
||||
|
||||
Dialog Editor should be compiled and used with wxWindows 1.65 or later.
|
||||
|
||||
\section{Current status}
|
||||
|
||||
Dialog Editor currently runs under MS Windows. It has yet to
|
||||
be tested under Motif and XView: see \helpref{Technical notes}{technotes} for a discussion
|
||||
of what needs to be done.
|
||||
|
||||
\section{Future developments}
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item XView and Motif versions.
|
||||
\item It would be nice to have a dialog browser, showing thumbnails of
|
||||
all dialogs in a particular directory.
|
||||
\item Maybe add a menubar editor (from wxBuilder).
|
||||
\item Maybe convert Windows .rc files.
|
||||
\end{itemize}
|
||||
|
||||
\chapter{Commands}\label{commands}
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
|
||||
\section{Dialog editor menu bar}
|
||||
|
||||
\subsection{File menu}
|
||||
|
||||
\begin{twocollist}\itemsep=0pt
|
||||
\twocolitem{New project}{Creates a new project (clears index and resets project name).}
|
||||
\twocolitem{New dialog}{Creates a new dialog resource.}
|
||||
\twocolitem{Open}{Opens an existing resource file.}
|
||||
\twocolitem{Save}{Saves the current resources.}
|
||||
\twocolitem{Save as}{Saves the current resources in a named file.}
|
||||
\twocolitem{Clear}{Clears the current resources.}
|
||||
\twocolitem{Exit}{Exit the program.}
|
||||
\end{twocollist}
|
||||
|
||||
\subsection{Edit menu}
|
||||
|
||||
\begin{twocollist}\itemsep=0pt
|
||||
\twocolitem{Recreate}{Recreates the currently selected panel item from the underlying resource. This may be necessary
|
||||
to regenerate items that cannot be changed dynamically, and which have got out of sync with the displayed
|
||||
item.}
|
||||
\twocolitem{Delete}{Deletes the currently selected resource.}
|
||||
\twocolitem{Toggle edit/test mode}{Toggles from edit to test mode, and vice versa. Edit mode is used for editing
|
||||
dialogs, test mode allows panel items to be manipulated as they will appear to the user.}
|
||||
\end{twocollist}
|
||||
|
||||
\subsection{Help menu}
|
||||
|
||||
\begin{twocollist}\itemsep=0pt
|
||||
\twocolitem{Help topics}{Displays on-line help at the contents page.}
|
||||
\twocolitem{About}{Displays an dialog showing the Dialog Editor version and author.}
|
||||
\end{twocollist}
|
||||
|
||||
\latexonly{\newpage}
|
||||
\section{Command toolbar}
|
||||
|
||||
The command toolbar consists of the following tools:
|
||||
|
||||
\begin{twocollist}%\itemsep=0pt
|
||||
\twocolitem{\icon{new.eps}{New}}{Clears the project.}
|
||||
\twocolitem{\icon{open.eps}{Open}}{Opens an existing resource file.}
|
||||
\twocolitem{\icon{save.eps}{Save}}{Saves the current resources.}
|
||||
\twocolitem{\icon{vert.eps}{Horizontal align}}{Aligns the centre of the selected items horizontally.}
|
||||
\twocolitem{\icon{alignt.eps}{Horizontal top-align}}{Aligns the top sides of the selected items horizontally.}
|
||||
\twocolitem{\icon{alignb.eps}{Horizontal bottom-align}}{Aligns the bottom sides of the selected items horizontally.}
|
||||
\twocolitem{\icon{horiz.eps}{Vertical align}}{Aligns the centre of the selected items vertically.}
|
||||
\twocolitem{\icon{alignl.eps}{Vertical left-align}}{Aligns the left sides of the selected items vertically.}
|
||||
\twocolitem{\icon{alignr.eps}{Vertical right-align}}{Aligns the right sides of the selected items vertically.}
|
||||
\twocolitem{\icon{copysize.eps}{Copy size}}{Copies the size of the first selected item to the subsequently selected item(s).}
|
||||
\twocolitem{\icon{tofront.eps}{To front}}{Puts the selected item(s) to the front of the display list.}
|
||||
\twocolitem{\icon{toback.eps}{To back}}{Puts the selected item(s) to the back of the display list.}
|
||||
\twocolitem{\icon{help.eps}{Help}}{Invokes Dialog Editor help.}
|
||||
\end{twocollist}
|
||||
|
||||
\latexonly{\newpage}
|
||||
\section{Tool palette}
|
||||
|
||||
The tool palette is used to select a type of panel item to create on the dialog.
|
||||
To create a new panel item, select a tool with left-click, then left-click on the dialog to
|
||||
window. Select the pointer tool to use left-click for selecting and deselecting
|
||||
items.
|
||||
|
||||
The tool palette consists of the following tools.
|
||||
|
||||
\begin{twocollist}%\itemsep=0pt
|
||||
\twocolitem{\icon{arrow.eps}{Pointer}}{Click this to select/deselect items on a dialog.}
|
||||
\twocolitem{\icon{message.eps}{Message}}{Text message item.}
|
||||
\twocolitem{\icon{picture.eps}{Bitmap message}}{Bitmap message item.}
|
||||
\twocolitem{\icon{button.eps}{Button}}{Text button item.}
|
||||
\twocolitem{\icon{bmpbuttn.eps}{Bitmap button}}{Bitmap button item.}
|
||||
\twocolitem{\icon{check.eps}{Checkbox}}{Checkbox item.}
|
||||
\twocolitem{\icon{radio.eps}{Radiobox}}{Radiobox item.}
|
||||
\twocolitem{\icon{listbox.eps}{Listbox}}{Listbox item.}
|
||||
\twocolitem{\icon{choice.eps}{Choice}}{Choice item.}
|
||||
\twocolitem{\icon{text.eps}{Text}}{Single-line text item.}
|
||||
\twocolitem{\icon{mtext.eps}{Multitext}}{Multi-line text item.}
|
||||
\twocolitem{\icon{slider.eps}{Slider}}{Slider item.}
|
||||
\twocolitem{\icon{group.eps}{Groupbpx}}{Groupbox item.}
|
||||
\twocolitem{\icon{gauge.eps}{Gauge}}{Gauge item.}
|
||||
\twocolitem{\icon{scroll.eps}{Scrollbar}}{Scrollbar item.}
|
||||
\end{twocollist}
|
||||
|
||||
\section{Resource list}
|
||||
|
||||
The resource list shows a list of the dialogs, panel items and bitmaps currently loaded
|
||||
in Dialog Editor. Double-clicking on a dialog item shows the associated dialog box.
|
||||
|
||||
\chapter{Procedures}\label{procedures}
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
|
||||
\section{Running Dialog Editor}
|
||||
|
||||
To run Dialog Editor under Windows, click on the Program Manager or Explorer icon.
|
||||
Under UNIX, run from the command line.
|
||||
|
||||
The main window shows a menu bar, command toolbar, tool palette, resource list, and
|
||||
status line.
|
||||
|
||||
\section{Creating a dialog}
|
||||
|
||||
To create a new dialog, click on the {\bf File: New} menu item, or equivalent
|
||||
toolbar button. A dialog will appear. To put a panel item on the dialog, left-click
|
||||
on the appropriate palette icon and then left-click on the dialog. A new item
|
||||
will appear at the place you clicked.
|
||||
|
||||
You can edit any panel item or dialog by control-left clicking. A property editor
|
||||
will appear, allowing any property to be selected and edited (see \helpref{Using property editors}{propeditors}).
|
||||
You can also edit items by right-clicking to show a menu, and then selecting {\it Edit properties}.
|
||||
|
||||
To move a panel item, drag the item with the left mouse button, or edit
|
||||
the position values in the property editor. To resize a panel item, you
|
||||
can either select it by left-clicking and then dragging on a selection
|
||||
handle, or edit the size values in the property editor.
|
||||
|
||||
You can delete items from the right-click menu, or by selecting the item and
|
||||
choosing {\bf Edit: Delete} from the menu bar.
|
||||
|
||||
\section{Using property editors}\label{propeditors}
|
||||
|
||||
Property editors consist of a list of properties and current values, plus controls at the top of
|
||||
the editor. If the property is of an appropriate type, you can edit the value directly in the
|
||||
text field, and confirm or cancel the value using the two buttons to the left of it.
|
||||
If the property has a predefined range of values, such as labelFontFamily, you can
|
||||
see a list of permissable values by clicking on the button labelled with an ellipsis symbol ({\bf ...}).
|
||||
This will show a listbox with possible values and current selection. You may also be able
|
||||
to cycle through values by double-clicking the value in the listbox.
|
||||
|
||||
Properties may have special editors appropriate to the type. Filename properties invoke
|
||||
the file selector, and properties containing list of user-definable strings use a
|
||||
string editor.
|
||||
|
||||
When you change a property value, this value is immediately reflected in
|
||||
the dialog or panel item. If the item allows this value to be changed
|
||||
dynamically, the relevant wxWindows function will be called internally
|
||||
to effect the change. If the value cannot be changed dynamically, the
|
||||
item will be destroyed and re-created, which means that there will be
|
||||
more flickering associated with some kinds of property changes than
|
||||
others.
|
||||
|
||||
\section{Saving and loading files}
|
||||
|
||||
Use {\it File: Save} and {\it File: Save as} or the equivalent toolbar button
|
||||
to save the current dialog(s) in a wxWindows resource file (extension {\tt .wxr}).
|
||||
|
||||
The {\tt .wxr} file can be used directly in a wxWindows program, if
|
||||
wxWindows resources have been enabled when building the wxWindows library.
|
||||
These files can be loaded dynamically, or included directly into program source
|
||||
with a \verb$#include$ directive. See the wxWindows user manual for further details.
|
||||
|
||||
\section{Multi-platform development}
|
||||
|
||||
{\tt .wxr} files generated on one environment (e.g. Windows) can be used in another (e.g. Motif).
|
||||
However, because the same panel item can have different sizes on different GUIs,
|
||||
the user should be cautious in assuming that one resource file will work for all
|
||||
platforms. It may be better to plan to conditionally include or load different
|
||||
resource files for different platforms, with spacing modified to suit each
|
||||
environment.
|
||||
|
BIN
utils/dialoged/docs/books.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
utils/dialoged/docs/books.gif
Normal file
After Width: | Height: | Size: 438 B |
15
utils/dialoged/docs/bugs.tex
Normal file
@@ -0,0 +1,15 @@
|
||||
\chapter{Bugs}\label{bugs}
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
|
||||
Version 1.0
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item No XView or Motif versions yet.
|
||||
\item In Watcom-compiled 32-bit Windows version, bitmap buttons and messages
|
||||
don't work properly.
|
||||
\item Some panel item properties missing, e.g. wxPASSWORD, wxREADONLY.
|
||||
\item When dragging a selected item, other selected items should follow (to be
|
||||
consistent with convention), but don't.
|
||||
\item wxSlider sizing a bit broken: a wxWindows problem.
|
||||
\end{itemize}
|
BIN
utils/dialoged/docs/bullet.bmp
Normal file
After Width: | Height: | Size: 138 B |
BIN
utils/dialoged/docs/button.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/button.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: button.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030103010c00040101020000
|
||||
8200030102018100010b01810001020101020000
|
||||
8200030102018100010b010100020101020000
|
||||
8200030102018100010b010100020101020000
|
||||
8200030102018100010b010100020101020000
|
||||
8200030102018100010b010100020101020000
|
||||
8200030102018100010b010100020101020000
|
||||
8200030102018100010b010100020101020000
|
||||
8200030102018100010b010100020101020000
|
||||
8200030102018100010b010100020101020000
|
||||
8200030103010e00020101020000
|
||||
8200030104010c00030101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 15.35% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/button.gif
Normal file
After Width: | Height: | Size: 201 B |
63
utils/dialoged/docs/changes.tex
Normal file
@@ -0,0 +1,63 @@
|
||||
\chapter{Change log}\label{changes}
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
|
||||
March 15th 1997, Version 1.7
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item Added fix to wx\_rprop.cpp to avoid Fafa bitmap buttons growing every time the
|
||||
button edited.
|
||||
\item Added fix to wx\_resed.cpp, case wxID\_EXIT, to clean up properly on exit, avoiding double deletion of wxBitmap.
|
||||
\end{itemize}
|
||||
|
||||
May 6th 1996, Version 1.6
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item Added panel editing in addition to dialog box editing.
|
||||
\item Cured some bugs with changing window styles such as wxUSER\_COLOURS and label position.
|
||||
\item Now preserves syntax of bitmap resources in wxr files.
|
||||
\end{itemize}
|
||||
|
||||
March 1996, Version 1.5
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item Changed behaviour of New tool, and changed File menu to include New project and New dialog items.
|
||||
Behaviour should be more standard now.
|
||||
\end{itemize}
|
||||
|
||||
March 1st 1996, Version 1.4
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item Items (but not dialogs) can now have duplicate names.
|
||||
\item Can pass a filename to the program from the command line.
|
||||
\item Cured bizarre error caused by a Windows combobox sending
|
||||
a fake left-mouse-up error when losing the focus (switching to another
|
||||
window). This fix will be in wxWindows 1.66.
|
||||
\item Rewritten code to use only the new type system, and to take account of
|
||||
of new window style partitioning (flags for different items may have the same value).
|
||||
Again, wxWindows 1.66 will have the new style values, to make room for more window
|
||||
styles.
|
||||
\end{itemize}
|
||||
|
||||
January 28th 1996, Version 1.2
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item Now starts off in non-user-colour mode under Windows
|
||||
\item Dragging item drags other selected items
|
||||
\item wxMessage saves size correctly, if used in conjunction with wxWin 1.66
|
||||
\end{itemize}
|
||||
|
||||
January 19th 1996, Version 1.1
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item Cured crash bug when quitting dialog window
|
||||
\item Added Clear menu item
|
||||
\item Added window type name to property window
|
||||
\end{itemize}
|
||||
|
||||
December 19th 1995, Version 1.0
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item First release.
|
||||
\end{itemize}
|
||||
|
BIN
utils/dialoged/docs/check.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/check.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: check.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030103010c00040101020000
|
||||
820003010301010008010100040101020000
|
||||
820003010301830001000105018300010001030101020000
|
||||
82000301030181000182010001030181000182010001030101020000
|
||||
820003010301810001010181000101018100010101810001030101020000
|
||||
820003010301810001020183000100010201810001030101020000
|
||||
82000301030181000103018100010301810001030101020000
|
||||
820003010301810001020183000100010201810001030101020000
|
||||
820003010301810001010181000101018100010101810001030101020000
|
||||
82000301030181000182010001030181000182010001030101020000
|
||||
820003010301830001000105018300010001030101020000
|
||||
820003010301010008010100040101020000
|
||||
8200030103010c00040101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 18.88% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/check.gif
Normal file
After Width: | Height: | Size: 215 B |
BIN
utils/dialoged/docs/choice.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/choice.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: choice.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
820003018101001200810102810200
|
||||
82000301820100010a01010002010100810102810200
|
||||
82000301820100010a0102008101000100810102810200
|
||||
82000301820100010a010600810102810200
|
||||
820003018101001200810102810200
|
||||
8200030101018100010901810001030182000102810200
|
||||
8200030101018100010901810001820100018301000102810200
|
||||
82000301010182000100050002018200010001008301000102810200
|
||||
8200030101018100010901810001030182000102810200
|
||||
8200030101018100010901810001030182000102810200
|
||||
8200030101018200010007008101000500810102810200
|
||||
8200030101018100010901810001030182000102810200
|
||||
8200030101018100010901810001030182000102810200
|
||||
82000301010182000100060001018200010001008301000102810200
|
||||
8200030101018100010901810001820100018301000102810200
|
||||
8200030101018100010901810001030182000102810200
|
||||
8200030101011200810102810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 20.11% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/choice.gif
Normal file
After Width: | Height: | Size: 217 B |
1759
utils/dialoged/docs/classes.tex
Normal file
BIN
utils/dialoged/docs/contents.gif
Normal file
After Width: | Height: | Size: 231 B |
BIN
utils/dialoged/docs/copysize.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/copysize.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: copysize.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 ffff00
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
090081010001000101
|
||||
810002060281000101018100010001
|
||||
810002060281000101018100010001
|
||||
8100020602820001000300
|
||||
810002060281000181010001000001
|
||||
090002018100010001
|
||||
0f01
|
||||
03018b000100010001000100010001
|
||||
0f01
|
||||
0301810001810100040082010001
|
||||
060181000202028100010101
|
||||
0301810001810100040082010001
|
||||
0f01
|
||||
03018b000100010001000100010001
|
||||
|
||||
%
|
||||
% Compression made this file 21.11% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/copysize.gif
Normal file
After Width: | Height: | Size: 132 B |
BIN
utils/dialoged/docs/dialog.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/dialog.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: dialog.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 15 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 bf0000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81030018000003
|
||||
8100041704810300
|
||||
82000402150201030000
|
||||
820004028102011101010201030000
|
||||
8200040294020100010001000100010001000100010001000102810203810300
|
||||
820004028102011001810002810203810300
|
||||
82000402820200020f02810002810203810300
|
||||
82000402820200020f02810002810203810300
|
||||
82000402820200028102000b000102810002810203810300
|
||||
820004028202000282020004090481000282020002810203810300
|
||||
820004028202000282020004090481000282020002810203810300
|
||||
820004028202000282020004090481000282020002810203810300
|
||||
82000402820200028102000b000102810002810203810300
|
||||
82000402820200020f02810002810203810300
|
||||
82000402820200020f02810002810203810300
|
||||
82000402820200020f02810002810203810300
|
||||
8200040283020002000500810200050082020002810203810300
|
||||
820004028402000200030303830002000303038300020002810203810300
|
||||
820004028402000200030303830002000303038300020002810203810300
|
||||
8200040283020002000500810200050082020002810203810300
|
||||
82000402820200020f02810002810203810300
|
||||
820004028102001100010201030000
|
||||
82000402150201030000
|
||||
82000402150201030000
|
||||
82000402150201030000
|
||||
8200040317030000
|
||||
81000318030000
|
||||
81030018000003
|
||||
|
||||
%
|
||||
% Compression made this file 21.77% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/dialog.gif
Normal file
After Width: | Height: | Size: 233 B |
17
utils/dialoged/docs/dialoged.hpj
Normal file
@@ -0,0 +1,17 @@
|
||||
[OPTIONS]
|
||||
BMROOT=d:\wx2\utils\dialoged\docs ; Assume that bitmaps are where the source is
|
||||
TITLE=Dialog Editor Manual
|
||||
CONTENTS=Contents
|
||||
COMPRESS=HIGH
|
||||
|
||||
[FILES]
|
||||
dialoged.rtf
|
||||
|
||||
[CONFIG]
|
||||
CreateButton("Up", "&Up", "JumpId(`dialoged.hlp', `Contents')")
|
||||
BrowseButtons()
|
||||
|
||||
[MAP]
|
||||
|
||||
[BITMAPS]
|
||||
|
61
utils/dialoged/docs/dialoged.tex
Normal file
@@ -0,0 +1,61 @@
|
||||
\documentstyle[a4,makeidx,verbatim,texhelp,fancyhea,mysober,mytitle]{report}
|
||||
\latexonly{\newcommand{\icon}[2]{\image{1cm;0cm}{#1}}}
|
||||
\input psbox.tex
|
||||
% Remove this for processing with dvi2ps instead of dvips
|
||||
%\special{!/@scaleunit 1 def}
|
||||
\parskip=10pt
|
||||
\parindent=0pt
|
||||
\title{User Manual for wxWindows Dialog Editor Version 1.7}
|
||||
\winhelponly{\author{by Julian Smart, A.I. Applications Institute, University of Edinburgh\\}}
|
||||
\winhelpignore{\author{Julian Smart\\Artificial Intelligence Applications Institute\\
|
||||
University of Edinburgh\\EH1 1HN}
|
||||
\date{March 1997}
|
||||
}
|
||||
\makeindex
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\pagestyle{fancyplain}
|
||||
\bibliographystyle{plain}
|
||||
\setheader{{\it CONTENTS}}{}{}{}{}{{\it CONTENTS}}
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
\pagenumbering{roman}
|
||||
\tableofcontents
|
||||
|
||||
\chapter*{Copyright notice}
|
||||
\setheader{{\it COPYRIGHT}}{}{}{}{}{{\it COPYRIGHT}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
|
||||
\begin{center}
|
||||
Copyright (c) 1996 Artificial Intelligence Applications Institute,
|
||||
The University of Edinburgh\\
|
||||
\end{center}
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose is hereby granted without fee, provided that the
|
||||
above copyright notice, author statement and this permission notice appear in
|
||||
all copies of this software and related documentation.
|
||||
|
||||
THE SOFTWARE IS PROVIDED ``AS-IS'' AND WITHOUT WARRANTY OF ANY KIND, EXPRESS,
|
||||
IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
|
||||
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
IN NO EVENT SHALL THE ARTIFICIAL INTELLIGENCE APPLICATIONS INSTITUTE OR THE
|
||||
UNIVERSITY OF EDINBURGH BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR
|
||||
CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF
|
||||
DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH
|
||||
THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
\input{body.tex}
|
||||
\input{classes.tex}
|
||||
\input{changes.tex}
|
||||
\input{bugs.tex}
|
||||
\input{tech.tex}
|
||||
|
||||
\newpage
|
||||
|
||||
\addcontentsline{toc}{chapter}{Index}
|
||||
\setheader{{\it INDEX}}{}{}{}{}{{\it INDEX}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
\printindex
|
||||
\end{document}
|
BIN
utils/dialoged/docs/forward.gif
Normal file
After Width: | Height: | Size: 164 B |
BIN
utils/dialoged/docs/gauge.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/gauge.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: gauge.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 15 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 bf0000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81030018000003
|
||||
8100041704810300
|
||||
82000402150201030000
|
||||
82000402150201030000
|
||||
8200040204020a00050201030000
|
||||
8200040204028100020702810002040201030000
|
||||
8200040204028100020702810002040201030000
|
||||
8200040204028100020702810002040201030000
|
||||
8200040204028100020702810002040201030000
|
||||
8200040204028100020702810002040201030000
|
||||
8200040204028100020702810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204028100010701810002040201030000
|
||||
8200040204020a00050201030000
|
||||
82000402150201030000
|
||||
82000402150201030000
|
||||
8200040317030000
|
||||
81000318030000
|
||||
81030018000003
|
||||
|
||||
%
|
||||
% Compression made this file 18.92% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/gauge.gif
Normal file
After Width: | Height: | Size: 212 B |
BIN
utils/dialoged/docs/group.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/group.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: group.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 292 382 320 410
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
292 382 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
820003010301880001000100010001000100060101020000
|
||||
82000301040181000184010001000182010001060101020000
|
||||
820003018101008100018201000101018100018201000101010300010101020000
|
||||
82000301820100018401000100018201000181010001000301810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010f01810001810102810200
|
||||
820003018101001100010101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 20.15% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/group.gif
Normal file
After Width: | Height: | Size: 212 B |
BIN
utils/dialoged/docs/help.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/help.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: help.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 008080 c0c0c0
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f02
|
||||
040205000402
|
||||
0302810001030101000302
|
||||
02028100018101000100010101000202
|
||||
02028200010081000283020001008100020102
|
||||
02028200010083000200018101008100020102
|
||||
03020100820200018101008100020202
|
||||
05028100018101008100020302
|
||||
0502820001008100020402
|
||||
0502820001008100020402
|
||||
0502820001008100020402
|
||||
060201000602
|
||||
05028100018101008100020302
|
||||
05028100018101008100020302
|
||||
060202000502
|
||||
|
||||
%
|
||||
% Compression made this file 24.03% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/help.gif
Normal file
After Width: | Height: | Size: 129 B |
BIN
utils/dialoged/docs/horiz.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/horiz.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: horiz.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 ffff00
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
050104000401
|
||||
050181000201028100010301
|
||||
050181000201028100010301
|
||||
050181000201028100010301
|
||||
050104000401
|
||||
0f01
|
||||
0f01
|
||||
02010a000101
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
02010a000101
|
||||
0f01
|
||||
|
||||
%
|
||||
% Compression made this file 16.11% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/horiz.gif
Normal file
After Width: | Height: | Size: 126 B |
BIN
utils/dialoged/docs/listbox.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/listbox.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: listbox.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 292 382 320 410
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
292 382 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
820003018101001100010101020000
|
||||
820003018201000109018100010301810001810102810200
|
||||
820003018201000109018100018201000182010001810102810200
|
||||
8200030183010001000500020182000100010082010001810102810200
|
||||
820003018201000109018100010301810001810102810200
|
||||
820003018201000109018100010301810001810102810200
|
||||
82000301830100010007008101000500010101020000
|
||||
820003018201000109018100010301810001810102810200
|
||||
820003018201000109018100010301810001810102810200
|
||||
8200030183010001000600010182000100010082010001810102810200
|
||||
820003018201000109018100018201000182010001810102810200
|
||||
820003018201000109018100010301810001810102810200
|
||||
820003018101001100010101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 5.09% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/listbox.gif
Normal file
After Width: | Height: | Size: 213 B |
BIN
utils/dialoged/docs/load.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/load.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: load.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 15 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 808000 c0c0c0 ffff00 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f02
|
||||
090202000202
|
||||
0802810002010282000200
|
||||
0d020100
|
||||
0102020007020200
|
||||
8502000304030005000302
|
||||
8c020004030403040304030400020202
|
||||
8c020003040304030403040300020202
|
||||
86020004030403000800
|
||||
860200030403000107010000
|
||||
82020004820400010701810002
|
||||
84020003000107018100020002
|
||||
81020081000107018100020102
|
||||
81020009000302
|
||||
0f02
|
||||
|
||||
%
|
||||
% Compression made this file 20.00% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/load.gif
Normal file
After Width: | Height: | Size: 139 B |
BIN
utils/dialoged/docs/message.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/message.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: message.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
820003010901810001090101020000
|
||||
8200030108010200090101020000
|
||||
8200030108010200090101020000
|
||||
820003010701820001000100080101020000
|
||||
820003010701820001000100080101020000
|
||||
82000301060181000101010200070101020000
|
||||
82000301060181000101010200070101020000
|
||||
82000301050181000103010200060101020000
|
||||
8200030105010800060101020000
|
||||
82000301040181000105010200050101020000
|
||||
82000301040181000105010200050101020000
|
||||
82000301030181000107010200040101020000
|
||||
820003010201010008010300030101020000
|
||||
820003010101030006010500020101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 15.73% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/message.gif
Normal file
After Width: | Height: | Size: 208 B |
BIN
utils/dialoged/docs/mtext.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/mtext.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: mtext.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
820003018101001200810102810200
|
||||
820003018201000105018100010601010382000102810200
|
||||
82000301820100010101010001018100010601010382000102810200
|
||||
8200030182010001020181000181010002000401010282000102810200
|
||||
820003018201000181010001000101810001820100010301010282000102810200
|
||||
820003018201000184010001000182010001820100010301010282000102810200
|
||||
8200030182010001810100010081010003000401010282000102810200
|
||||
82000301820100010e01010282000102810200
|
||||
820003018201000108018100010301010282000102810200
|
||||
820003018201000108018100010301010282000102810200
|
||||
82000301820100018101000100010103000401010282000102810200
|
||||
8200030182010001820100010201810001820100010301010282000102810200
|
||||
8200030182010001820100010201810001820100010301010282000102810200
|
||||
82000301820100018101000100010104000301010382000102810200
|
||||
82000301820100010e01010382000102810200
|
||||
820003018101001200810102810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 22.07% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/mtext.gif
Normal file
After Width: | Height: | Size: 229 B |
BIN
utils/dialoged/docs/new.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/new.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: new.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
020107000401
|
||||
0201810002040201000301
|
||||
0201810002040283000200010101
|
||||
0201810002040203000101
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
020181000207028100010001
|
||||
02010a000101
|
||||
0f01
|
||||
|
||||
%
|
||||
% Compression made this file 20.56% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/new.gif
Normal file
After Width: | Height: | Size: 131 B |
16
utils/dialoged/docs/notes.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
To do
|
||||
-----
|
||||
|
||||
Nov 26th 1995
|
||||
|
||||
- Add wxPropertyView::OnPropertyChange(wxProperty *property) member
|
||||
so that when a property is changed, this can be immediately
|
||||
reflected in the object. Derive a new wxPropertyListView
|
||||
in dialoged.
|
||||
|
||||
- Make the property list a modeless dialog or (preferably) resizeable
|
||||
frame. Allow many property lists to be up at once. Associate
|
||||
real window, resource and property list. When window is deleted,
|
||||
delete property list.
|
||||
|
BIN
utils/dialoged/docs/open.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/open.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: open.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
090102000201
|
||||
0801810001010182000100
|
||||
0d010100
|
||||
0101020007010200
|
||||
82010003010306000301
|
||||
8201000307038100010201
|
||||
8201000307038100010201
|
||||
8201000302030900
|
||||
82010003010381000207020000
|
||||
82010003820300020702810001
|
||||
84010003000281020081000203028100010001
|
||||
81010081000207028100010101
|
||||
81010009000301
|
||||
0f01
|
||||
|
||||
%
|
||||
% Compression made this file 19.17% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/open.gif
Normal file
After Width: | Height: | Size: 137 B |
BIN
utils/dialoged/docs/picture.bmp
Normal file
After Width: | Height: | Size: 566 B |
176
utils/dialoged/docs/picture.eps
Normal file
@@ -0,0 +1,176 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: picture.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
820003018101001100010101020000
|
||||
82000301820100010f01810001810102810200
|
||||
82000301820100010201810001040102000201810001810102810200
|
||||
8200030182010001010183000100010201810001010181000182010001810102810200
|
||||
820003018201000181010083000100010201810001010181000182010001810102810200
|
||||
|
||||
82000301880100010001000100010201810001010181000182010001810102810200
|
||||
82000301870100010001000100810001020102000201810001810102810200
|
||||
820003018a01000100010001000100010701810001810102810200
|
||||
8200030182010001820100018401000100010701810001810102810200
|
||||
8200030181010002000101820001000900010101020000
|
||||
82000301820100010101810001820100010801810001810102810200
|
||||
820003018201000101018300010001810100810001810100810001010181000181010281
|
||||
0200
|
||||
8200030182010001010185000100010001820100010401810001810102810200
|
||||
8200030182010001810100020081010003000101010082010001810102810200
|
||||
82000301830100010001000c01810001810102810200
|
||||
820003018101001100010101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 23.43% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/picture.gif
Normal file
After Width: | Height: | Size: 224 B |
BIN
utils/dialoged/docs/radio.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/radio.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: radio.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030107010400080101020000
|
||||
820003010501010004010100060101020000
|
||||
8200030104018100010701810001040101020000
|
||||
8200030103018100010901810001030101020000
|
||||
820003010301810001020102000301810001030101020000
|
||||
820003010201810001020104000301810001020101020000
|
||||
820003010201810001010106000201810001020101020000
|
||||
820003010201810001010106000201810001020101020000
|
||||
820003010201810001010106000201810001020101020000
|
||||
820003010201810001020104000301810001020101020000
|
||||
820003010301810001020102000301810001030101020000
|
||||
8200030103018100010901810001030101020000
|
||||
8200030104018100010701810001040101020000
|
||||
820003010501010004010100060101020000
|
||||
8200030107010400080101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 18.24% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/radio.gif
Normal file
After Width: | Height: | Size: 215 B |
39
utils/dialoged/docs/readme.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
Prototype dialog editor and property sheet classes
|
||||
--------------------------------------------------
|
||||
|
||||
Julian Smart, October 4th 1995
|
||||
------------------------------
|
||||
|
||||
Here's what I've done so far on a lightweight dialog editor. The 16-bit
|
||||
Windows binaries in the bin directory are dialoged.exe (the dialog
|
||||
editor) and test.exe (a small property sheet demo).
|
||||
|
||||
Main points:
|
||||
|
||||
- You can create a new dialog box and add items to it.
|
||||
- You can move items around, and right-click
|
||||
to edit a few properties (very incomplete).
|
||||
- Can't write out .wxr files yet. Loading code is in
|
||||
wxWindows, but writing code is absent: should be put
|
||||
into wxWindows.
|
||||
- No attempt at resources other than dialogs yet.
|
||||
Should have menu editor too.
|
||||
- Should *somehow* have a protocol to allow
|
||||
existing resources e.g. in wxCLIPS/wxPython
|
||||
to be edited in situ.
|
||||
This should be made simpler by the existance of
|
||||
the plug-in event handler mechanism, which means you
|
||||
can temporarily handle all the events yourself.
|
||||
- See dialoged.cc: the main program is tiny because
|
||||
it's meant to be embeddable.
|
||||
- The wxPropertySheet (set of) classes are very
|
||||
general and should be put into wxWin and documented.
|
||||
|
||||
Comments, chivvying and help all appreciated. Maybe if
|
||||
I documented what I had, it would be easier for others
|
||||
to do some work on it.
|
||||
|
||||
Regards,
|
||||
|
||||
Julian
|
BIN
utils/dialoged/docs/save.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/save.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: save.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 9 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
0f01
|
||||
8101000c000001
|
||||
84010002000106018300010001
|
||||
840100020001060102000001
|
||||
84010002000106018300020001
|
||||
84010002000106018300020001
|
||||
84010002000106018300020001
|
||||
84010002000106018300020001
|
||||
8201000281020006000102810001
|
||||
820100020a02810001
|
||||
82010002810200070082020001
|
||||
82010002810200040001018300020001
|
||||
82010002810200040001018300020001
|
||||
82010002810200040001018300020001
|
||||
01010c000001
|
||||
|
||||
%
|
||||
% Compression made this file 24.44% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/save.gif
Normal file
After Width: | Height: | Size: 137 B |
BIN
utils/dialoged/docs/scroll.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/scroll.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: scroll.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
83000301001300810102810200
|
||||
8400030100010701810001070182000102810200
|
||||
8400030100010701810001070182000102810200
|
||||
840003010001020181000102018100010201810001020182000102810200
|
||||
8400030100010101030001018100018101000200020182000102810200
|
||||
840003010001810100030001018100018101000300010182000102810200
|
||||
8400030100010101030001018100018101000200020182000102810200
|
||||
840003010001020181000102018100010201810001020182000102810200
|
||||
8400030100010701810001070182000102810200
|
||||
8400030100010701810001070182000102810200
|
||||
83000301001300810102810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 17.47% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/scroll.gif
Normal file
After Width: | Height: | Size: 212 B |
BIN
utils/dialoged/docs/slider.bmp
Normal file
After Width: | Height: | Size: 566 B |
174
utils/dialoged/docs/slider.eps
Normal file
@@ -0,0 +1,174 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: slider.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
83000301008100010b0101008101000100810102810200
|
||||
82000301820100010c018600010001000102810200
|
||||
82000301820100010c018600010001000102810200
|
||||
830003010001000b010500810102810200
|
||||
82000301150101020000
|
||||
83000301001300810102810200
|
||||
840003010001020101020c0181000201020000
|
||||
840003010001020101000c0181000201020000
|
||||
840003010001020101000c0181000201020000
|
||||
840003010001020101020c0181000201020000
|
||||
8300030100130002020000
|
||||
8200030181010215020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 14.88% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/slider.gif
Normal file
After Width: | Height: | Size: 204 B |
97
utils/dialoged/docs/tech.tex
Normal file
@@ -0,0 +1,97 @@
|
||||
\chapter{Technical notes}\label{technotes}
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
|
||||
\section{Overview}
|
||||
|
||||
The dialog editor is written as a library, to be invoked by other programs. As you can see,
|
||||
dialoged.cc is a very small program which invokes the main window via a wxResourceManager
|
||||
object. The wxResourceManager object controls the user interface and other aspects
|
||||
of the dialog editor.
|
||||
|
||||
There is wxResourceTable object in wxResourceManager: this contains a list of
|
||||
all the wxItemResources currently being edited. wxResourceTable and wxItemResource
|
||||
are classes already in wxWindows, defined in wx\_res.h. In order to edit a new
|
||||
dialog box, the dialog is created, and the existing event handler is temporarily replaced
|
||||
with a new one which defines editing functionality. This allows existing dialogs - even
|
||||
instances of subclasses of wxDialogBox - to be edited, the application-specific functionality
|
||||
being temporarily taken over by the dialog editor.
|
||||
|
||||
In order to edit the properties of a dialog box or item, a property list editor is invoked.
|
||||
This uses the property classes from utils/wxprop. In order to map between properties and the
|
||||
actual window API, such as SetSize and GetSize, a `proxy' class called wxPropertyInfo
|
||||
has been defined, with a subclass for each class of wxWindows window to be edited.
|
||||
This class defines the main members SetProperty, GetProperty, GetPropertyNames,
|
||||
which transform the normal API into `property' terms.
|
||||
|
||||
Properties are mostly extracted directly from the window being edited. This is
|
||||
in contrast with wxBuilder, where everything is stored in a set of parallel
|
||||
data structures, and windows `properties' only only set. However, there
|
||||
are exceptions to this rule in the dialog editor. There {\it is} in fact a set of
|
||||
parallel objects, the wxItemResource objects which can be seen listed in
|
||||
the main Dialog Editor window as a dialog is built up. These usually parallel
|
||||
the properties in the windows, but occasionally this is not possible. For example,
|
||||
all dialog boxes being edited must be modeless: or the user would not be
|
||||
able to access other windows. However, the user must be able to specify that
|
||||
when used in an application, that dialog box will be modal. In this case,
|
||||
the value in the wxItemResource will not match that in the actual dialog box.
|
||||
|
||||
There is a major problem with taking values directly from the windows: this
|
||||
information sometimes does not match what went in. In Motif and XView,
|
||||
size values returned are not the same as those given. This causes speedy
|
||||
`degeneration' of window properties. Under Windows, properties are almost
|
||||
always consistent. The other platforms will need to be catered for by
|
||||
relying more on the wxItemResource objects, and not taking size
|
||||
information directly from windows.
|
||||
|
||||
\subsection{Dynamic setting versus recreation}
|
||||
|
||||
The property editor scheme relies on being able to set window properties
|
||||
dynamically: the user changes a value, and the window changes immediately
|
||||
to reflect the new value. Unfortunately, not all properties can be
|
||||
changed dynamically in wxWindows; for example, in Motif, the label position
|
||||
must be given at panel item creation time, because the way the widgets
|
||||
are laid out depend on the label position. The label position cannot then
|
||||
be changed without deleting and recreating the item.
|
||||
|
||||
Hence the dialog editor takes two approaches: where values are dynamically
|
||||
settable, this is done. Where they are not, the item is deleted and recreated,
|
||||
after all existing values have been transferred into the parallel wxItemResource
|
||||
object. Therefore in wx\_rprop.cc, some of the SetProperty implementations have one or
|
||||
more call to RecreateWindowFromResource.
|
||||
|
||||
\section{Resource associations}
|
||||
|
||||
wxItemResource objects (containing information about panel items and dialogs) are not visual
|
||||
objects. However, they need to be associated with the visual objects when the latter
|
||||
are created for editing purposes. Therefore there is a hash table called resourceAssociations
|
||||
in wxResourceManager. When a window is created, the resource pointer and window pointer
|
||||
are associated via the hash table. When the window is deleted, the association is removed.
|
||||
Children of a dialog are associated with child wxItemResource objects by calling
|
||||
wxFindWindowByName with the wxItemResource name.
|
||||
|
||||
\section{What needs to be done for XView and Motif}
|
||||
|
||||
The following areas need attention before Dialog Editor will run properly on these platforms.
|
||||
|
||||
\begin{enumerate}\itemsep=0pt
|
||||
\item For XView, the property editor needs to be made a modeless, not modal dialog, which has
|
||||
implications for flow of control in wxPropertyInfo::Edit.
|
||||
\item Properties which do not return the same value they are set to, such as width and height,
|
||||
need to be stored directly in wxItemResource and {\it not} transferred from window to wxItemResource
|
||||
in wxWindowPropertyInfo::InstantiateResource.
|
||||
\item Properties which cannot be dynamically set in XView or Motif need to have the item recreated (e.g. labelOrientation).
|
||||
\end{enumerate}
|
||||
|
||||
\section{Files}
|
||||
|
||||
The Dialog Editor source files are as follows:
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item wx\_rprop.h, wx\_rprop.cc: handle property setting and getting through the `proxy' wxPropertyInfo
|
||||
classes and using the property list editor from utils/wxprop.
|
||||
\item wx\_resed.h, wx\_resed.cc: the main implementation, in particular the wxResourceManager class.
|
||||
\item wx\_reswr.cc: resource writing code.
|
||||
\item wx\_repal.cc: the dialog editor palette implementation.
|
||||
\item dialoged.h, dialoged.cc: small `stub' for invoking the user interface via a wxResourceManager object.
|
||||
\end{itemize}
|
21
utils/dialoged/docs/tex2rtf.ini
Normal file
@@ -0,0 +1,21 @@
|
||||
runTwice = yes
|
||||
titleFontSize = 12
|
||||
authorFontSize = 10
|
||||
chapterFontSize = 12
|
||||
sectionFontSize = 12
|
||||
subsectionFontSize = 12
|
||||
headerRule = yes
|
||||
footerRule = yes
|
||||
useHeadingStyles = yes
|
||||
listItemIndent=40
|
||||
generateHPJ = yes
|
||||
htmlBrowseButtons = bitmap
|
||||
winHelpVersion = 3
|
||||
winHelpContents = yes
|
||||
winHelpTitle = "Dialog Editor Manual"
|
||||
truncateFilenames = yes
|
||||
\overview [2] { \sethotspotcolour{off}\sethotspotunderline{on}\winhelponly{\image{}{books.bmp}}
|
||||
\htmlonly{\image{}{books.gif}}\helpref{#1}{#2}
|
||||
\sethotspotcolour{on}\sethotspotunderline{on}}
|
||||
\icon [2] {\xlpignore{\image{2cm;0cm}{#1}}\xlponly{#2}}
|
||||
|
BIN
utils/dialoged/docs/text.bmp
Normal file
After Width: | Height: | Size: 566 B |
178
utils/dialoged/docs/text.eps
Normal file
@@ -0,0 +1,178 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: text.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 375 282 403
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 375 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
28 28 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffffff
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
28 28 8 % dimensions of data
|
||||
[28 0 0 -28 0 28] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81020018000002
|
||||
8100031703810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
820003018101001200810102810200
|
||||
8200030182010001100182000102810200
|
||||
82000301820100010e01840001000102810200
|
||||
8200030182010001060101000501840001000102810200
|
||||
8200030182010001060101000501840001000102810200
|
||||
8200030182010001060101000501840001000102810200
|
||||
82000301820100018101000200010104000201840001000102810200
|
||||
820003018301000100810001810100820001008100018101008100018501000100010281
|
||||
0200
|
||||
82000301820100010101030081010081000181010081000185010001000102810200
|
||||
820003018201000181010082000100820001008100018101008100018501000100010281
|
||||
0200
|
||||
820003018301000100810001810100820001008100018101008100018501000100010281
|
||||
0200
|
||||
820003018301000100810001810100820001008100018101008100018501000100010281
|
||||
0200
|
||||
8200030182010001810100030081010003000201840001000102810200
|
||||
82000301820100010e01840001000102810200
|
||||
8200030182010001100182000102810200
|
||||
820003018101001200810102810200
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
82000301150101020000
|
||||
8200030217020000
|
||||
81000218020000
|
||||
81020018000002
|
||||
|
||||
%
|
||||
% Compression made this file 22.15% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/text.gif
Normal file
After Width: | Height: | Size: 226 B |
BIN
utils/dialoged/docs/toback.bmp
Normal file
After Width: | Height: | Size: 238 B |
161
utils/dialoged/docs/toback.eps
Normal file
@@ -0,0 +1,161 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: toback.eps
|
||||
%%Creator: XV Version 2.20 Rev: 4/24/92 - by John Bradley
|
||||
%%BoundingBox: 254 389 270 404
|
||||
%%Pages: 1
|
||||
%%DocumentFonts:
|
||||
%%EndComments
|
||||
%%EndProlog
|
||||
|
||||
%%Page: 1 1
|
||||
|
||||
% remember original state
|
||||
/origstate save def
|
||||
|
||||
% build a temporary dictionary
|
||||
20 dict begin
|
||||
|
||||
% lower left corner
|
||||
254 389 translate
|
||||
|
||||
% size of image (on paper, in 1/72inch coords)
|
||||
16 15 scale
|
||||
|
||||
% define 'colorimage' if it isn't defined
|
||||
% ('colortogray' and 'mergeprocs' come from xwd2ps
|
||||
% via xgrab)
|
||||
/colorimage where % do we know about 'colorimage'?
|
||||
{ pop } % yes: pop off the 'dict' returned
|
||||
{ % no: define one
|
||||
/colortogray { % define an RGB->I function
|
||||
/rgbdata exch store % call input 'rgbdata'
|
||||
rgbdata length 3 idiv
|
||||
/npixls exch store
|
||||
/rgbindx 0 store
|
||||
/grays npixls string store % str to hold the result
|
||||
0 1 npixls 1 sub {
|
||||
grays exch
|
||||
rgbdata rgbindx get 20 mul % Red
|
||||
rgbdata rgbindx 1 add get 32 mul % Green
|
||||
rgbdata rgbindx 2 add get 12 mul % Blue
|
||||
add add 64 idiv % I = .5G + .31R + .18B
|
||||
put
|
||||
/rgbindx rgbindx 3 add store
|
||||
} for
|
||||
grays
|
||||
} bind def
|
||||
|
||||
% Utility procedure for colorimage operator.
|
||||
% This procedure takes two procedures off the
|
||||
% stack and merges them into a single procedure.
|
||||
|
||||
/mergeprocs { % def
|
||||
dup length
|
||||
3 -1 roll
|
||||
dup
|
||||
length
|
||||
dup
|
||||
5 1 roll
|
||||
3 -1 roll
|
||||
add
|
||||
array cvx
|
||||
dup
|
||||
3 -1 roll
|
||||
0 exch
|
||||
putinterval
|
||||
dup
|
||||
4 2 roll
|
||||
putinterval
|
||||
} bind def
|
||||
|
||||
/colorimage { % def
|
||||
pop pop % remove 'false 3' operands
|
||||
{colortogray} mergeprocs
|
||||
image
|
||||
} bind def
|
||||
} ifelse % end of 'false' case
|
||||
|
||||
|
||||
|
||||
% define the colormap
|
||||
/cmap 12 string def
|
||||
|
||||
|
||||
% load up the colormap
|
||||
currentfile cmap readhexstring
|
||||
000000 c0c0c0 808080 ffff00
|
||||
pop pop % lose return values from readhexstring
|
||||
|
||||
|
||||
% rlecmapimage expects to have 'w h bits matrix' on stack
|
||||
/rlecmapimage {
|
||||
/buffer 1 string def
|
||||
/rgbval 3 string def
|
||||
/block 384 string def
|
||||
|
||||
% proc to read a block from file, and return RGB data
|
||||
{ currentfile buffer readhexstring pop
|
||||
/bcount exch 0 get store
|
||||
bcount 128 ge
|
||||
{ % it's a non-run block
|
||||
0 1 bcount 128 sub
|
||||
{ currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in color map
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
% and put it in position i*3 in block
|
||||
block exch 3 mul rgbval putinterval
|
||||
} for
|
||||
block 0 bcount 127 sub 3 mul getinterval
|
||||
}
|
||||
|
||||
{ % else it's a run block
|
||||
currentfile buffer readhexstring pop pop
|
||||
|
||||
% look up value in colormap
|
||||
/rgbval cmap buffer 0 get 3 mul 3 getinterval store
|
||||
|
||||
0 1 bcount { block exch 3 mul rgbval putinterval } for
|
||||
|
||||
block 0 bcount 1 add 3 mul getinterval
|
||||
} ifelse
|
||||
} % end of proc
|
||||
false 3 colorimage
|
||||
} bind def
|
||||
|
||||
|
||||
16 15 8 % dimensions of data
|
||||
[16 0 0 -15 0 15] % mapping matrix
|
||||
rlecmapimage
|
||||
|
||||
81010005000701
|
||||
8201000203028100010601
|
||||
82010002030205000201
|
||||
82010002030281000302038100010101
|
||||
82010002030281000302038100010101
|
||||
82010002030281000302038100010101
|
||||
810100050003038100010101
|
||||
030181000302030600
|
||||
0301810003020381000203020000
|
||||
0301810003020381000203020000
|
||||
0301050004020000
|
||||
080181000203020000
|
||||
080181000203020000
|
||||
08010600
|
||||
0f01
|
||||
|
||||
%
|
||||
% Compression made this file 21.81% of the uncompressed size.
|
||||
%
|
||||
|
||||
|
||||
showpage
|
||||
|
||||
% stop using temporary dictionary
|
||||
end
|
||||
|
||||
% restore original state
|
||||
origstate restore
|
||||
|
||||
%%Trailer
|
BIN
utils/dialoged/docs/toback.gif
Normal file
After Width: | Height: | Size: 137 B |