typos
svn: r66 original commit: daa18fcba07a11e13b136e6978a2c3e82db379df
This commit is contained in:
parent
2785bf9aa8
commit
e90c91c1ef
|
@ -6,7 +6,7 @@
|
|||
|
||||
The embedded gui collection provides a class hierarchy for
|
||||
creating graphical boxes within mred's editors with geometry
|
||||
managment that mirrors that of vertical-panel% and
|
||||
management that mirrors that of vertical-panel% and
|
||||
horizontal-panel%
|
||||
|
||||
============================================================
|
||||
|
@ -125,7 +125,7 @@ Whether or not the snip can be stretched in the Y dimension
|
|||
============================================================
|
||||
|
||||
_dllist<%>_ is an interface which makes a class a
|
||||
doublly-linked list and requires the following methods
|
||||
doubly-linked list and requires the following methods
|
||||
|
||||
> (send a-dlllist next) -> (is-a?/c dllist<%>)
|
||||
|
||||
|
@ -159,7 +159,7 @@ of the dllist.
|
|||
============================================================
|
||||
|
||||
_vertical-alignment%_ and _horizontal-alignment%_ are
|
||||
geometry managment classes of the embedded-gui toolkit. They
|
||||
geometry management classes of the embedded-gui toolkit. They
|
||||
implement alignment<%> and alignment-parent<%> and are
|
||||
instantiated as follows
|
||||
|
||||
|
@ -248,7 +248,7 @@ wide as is required to display the longest string in labels.
|
|||
_vline%_ and _hline%_ are two graphical elements of the
|
||||
alignment<%> hierarchy that display a vertical or horizontal
|
||||
line across the region they are inserted into. They implement
|
||||
alingment<%>.
|
||||
alignment<%>.
|
||||
|
||||
> (new vline% (parent _))
|
||||
parent : (is-a?/c alignment-parent<%>)
|
||||
|
@ -286,7 +286,7 @@ The thunk to execute when tabbing back
|
|||
============================================================
|
||||
|
||||
_tabbable-text-mixin_ gives a text% the tabbable-text<%>
|
||||
interface and gives it keybindings to tab ahead and back.
|
||||
interface and gives it key bindings to tab ahead and back.
|
||||
|
||||
============================================================
|
||||
|
||||
|
@ -308,13 +308,13 @@ and must be locked separately.
|
|||
============================================================
|
||||
|
||||
The _single-line-text-mixin_ restricts a text to one line by
|
||||
overriding its keybidings to do nothing on enter.
|
||||
overriding its key bindings to do nothing on enter.
|
||||
|
||||
============================================================
|
||||
|
||||
The _cue-text-mixin_ gives a text% an instantiation argument
|
||||
of a string that is displayed in the text% initially in grey.
|
||||
This text dissappears when the text gets focus. This is
|
||||
This text disappears when the text gets focus. This is
|
||||
useful for labeling texts without needing to take up space.
|
||||
|
||||
_cue-text%_ is (cue-text-mixin text%)
|
||||
|
@ -359,7 +359,7 @@ The pasteboard that contains the snip
|
|||
snip : (is-a?/c snip%)
|
||||
|
||||
The application of f on all snips from snip to the end in a
|
||||
foldl foldr mannor
|
||||
foldl foldr manner
|
||||
|
||||
> (for-each-snip f first-snip init-lists ...) -> void
|
||||
f : ((is-a?/c snip%) . -> . void)
|
||||
|
@ -378,9 +378,9 @@ A list of f applied to each snip
|
|||
> (stretchable-width? snip) -> boolean?
|
||||
snip : (is-a?/c snip%)
|
||||
|
||||
True if the snip can be resized in the x dimention
|
||||
True if the snip can be resized in the x dimension
|
||||
|
||||
> (stretchable-height? snip) -> boolean?
|
||||
snip : (is-a?/c snip%)
|
||||
|
||||
True if the snip can be resized in the y dimention
|
||||
True if the snip can be resized in the y dimension
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Overview
|
||||
--------
|
||||
|
||||
This canvas test frame is for checking the behvaiour of the
|
||||
This canvas test frame is for checking the behavior of the
|
||||
scrollbars. Canvas scrollbars work in one of two modes:
|
||||
1) Managing: the scrollbar determines the size and offset of
|
||||
the canvas's drawing area.
|
||||
|
@ -13,9 +13,9 @@ In the test frame, the top canvas is initially unmanaged, and the
|
|||
bottom is managed.
|
||||
|
||||
An HVCanvas has both horizontal and vertical scrollbars, but the
|
||||
scrollbars are initially disabled. Clikcing the "Enable Vertical"
|
||||
scrollbars are initially disabled. Clicking the "Enable Vertical"
|
||||
checkbox enables the vertical scroll. A VCanvas has only a vertical
|
||||
scrollbar; clicking "ENable Horizontal" in this case has no effect.
|
||||
scrollbar; clicking "Enable Horizontal" in this case has no effect.
|
||||
When a canvas is managed by its scrollbars and a scrollbar is missing
|
||||
in a particular direction, it should act the same as an unmanaged
|
||||
canvas in that direction.
|
||||
|
@ -37,7 +37,7 @@ On each canvas, the following are painted at 0,0:
|
|||
bottom canvas's boundaries are probably beyond the visible region.)
|
||||
When the canvas is managed with a vertical scrollbar, the bottom
|
||||
boundary line might not be visible, i.e., it might be clipped - but
|
||||
it must be clipped eactly in that case.
|
||||
it must be clipped exactly in that case.
|
||||
|
||||
As the scroll is changed for the managed canvas, the information will
|
||||
move, because the scrolls automatically adjust the offset of the
|
||||
|
|
|
@ -10,7 +10,7 @@ If there are no items:
|
|||
* Click on the choice box. Make sure that nothing prints to the
|
||||
console as a result.
|
||||
|
||||
* Click "Append"; "Extra 1" should appear in the list of tiems.
|
||||
* Click "Append"; "Extra 1" should appear in the list of items.
|
||||
For a choice, it should be immediately selected.
|
||||
|
||||
* Click "Append" again. The selection should not change.
|
||||
|
@ -28,7 +28,7 @@ If there are no items:
|
|||
For a multi-selection list, jump down to "Multiple Selections".
|
||||
|
||||
If there are items, select each once in order (single-click for
|
||||
lists). After each solection, "Changed N" should appear in the
|
||||
lists). After each selection, "Changed N" should appear in the
|
||||
console (where N is the position of the item, counting from 0) for a
|
||||
choice item, "Change (N)" for a list box; in either case, the
|
||||
"Changed" line is followed by "Callback Ok". This should be printed
|
||||
|
@ -40,14 +40,14 @@ For a choice, click to pop-up the menu, but don't select anything. for
|
|||
both cases, the selection should not change and nothing should print
|
||||
in the console.
|
||||
|
||||
Click the "Append" button. The seletion should not change, but a new
|
||||
Click the "Append" button. The selection should not change, but a new
|
||||
item "Extra 1" should appear.
|
||||
|
||||
Click the "Append" button again.
|
||||
|
||||
Select the first newly added item.
|
||||
|
||||
Click on the "check" button. In the console, "content: " whould be
|
||||
Click on the "check" button. In the console, "content: " would be
|
||||
printed along with a list of strings. That list should match the
|
||||
items in the choice/list.
|
||||
|
||||
|
@ -89,7 +89,7 @@ Click on all parts of the control. The callback should never be
|
|||
|
||||
Click on all the "Select" buttons. For the top buttons and "by
|
||||
Simulate" buttons (but not the "bad" ones), an exception should be
|
||||
reported. Nothing should happend for the "by Name" buttons.
|
||||
reported. Nothing should happened for the "by Name" buttons.
|
||||
|
||||
Click on "Check". The empty item list should be reported in the
|
||||
console.
|
||||
|
@ -126,7 +126,7 @@ Scroll to the top and select the first item. Click "Visible
|
|||
item. If an item is only partly visible, it should not be counted.
|
||||
|
||||
Scroll down exactly one item's height without changing the
|
||||
selection. Click "Visible Incices" again. The top should change to 1
|
||||
selection. Click "Visible Indices" again. The top should change to 1
|
||||
but the count should be the same.
|
||||
|
||||
On some platforms, you can scroll to partially show the first item.
|
||||
|
@ -139,7 +139,7 @@ Make the window taller to show at least one more item. Try "Visible
|
|||
Click "Select Last". The list should scroll to the end. Try "Visible
|
||||
Indices" again.
|
||||
|
||||
Make the list box taller than all its items. (It may be necssary to
|
||||
Make the list box taller than all its items. (It may be necessary to
|
||||
delete some items by selecting them and hitting the "Delete" button.)
|
||||
Click "Visible Indices" and make sure that the visible count is still
|
||||
more than the number of items.
|
||||
|
@ -149,7 +149,7 @@ Deleting >> Lists Only <<
|
|||
|
||||
Select an item in the middle of the list.
|
||||
|
||||
Hit "Delete". The item should disappear, and nothing shold be
|
||||
Hit "Delete". The item should disappear, and nothing should be
|
||||
selected.
|
||||
|
||||
Append a new item.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
The drawing area should have the following features:
|
||||
|
||||
At the top-left, when the window is opened for the first time, you
|
||||
shoudl see a hollow box with a line sticking out to the bottom
|
||||
should see a hollow box with a line sticking out to the bottom
|
||||
left. Repainting the canvas should produce instead a solid box and
|
||||
no line. Repainting with Pixmap or Bitmap should always produce
|
||||
the hollow box and line.
|
||||
|
@ -30,18 +30,18 @@ The drawing area should have the following features:
|
|||
|
||||
Toward the right should be three columns of boxes, with a fourth
|
||||
column that starts with a box. All boxes should have a red border.
|
||||
In the first thre columns, the boxes shold contain lines on a
|
||||
In the first three columns, the boxes should contain lines on a
|
||||
background that matches the normal background (i.e., either white
|
||||
or cyan). The lines should be black for the left colum, and green
|
||||
or cyan). The lines should be black for the left column, and green
|
||||
for the second and third columns. In the fourth column, the shapes
|
||||
should be filled with the platform-specific panel background
|
||||
pattern; the third shape should be a semi-circle with no outline
|
||||
on the bottm edge.
|
||||
on the bottom edge.
|
||||
|
||||
Further right (to the the right of the columns) should appear an
|
||||
X, a cross, and an narrow X tilted NW. Each should be drawn in
|
||||
green (5 pixels wide) with a thin black line centered along each
|
||||
green line. Scaling the piture should make the green line thicker,
|
||||
green line. Scaling the picture should make the green line thicker,
|
||||
but not the black line, and the black line should stay centered.
|
||||
|
||||
Under the columns of boxes, a black box should be filled with an 25%
|
||||
|
@ -97,7 +97,7 @@ The drawing area should have the following features:
|
|||
|
||||
Arcs: The leftmost should be the top half of an ellipse (it's
|
||||
formed via two arcs); the rightmost should be a filled wedge
|
||||
from 90 degrees to 180 degress. The arcs are part of an
|
||||
from 90 degrees to 180 degrees. The arcs are part of an
|
||||
ellipse 40 tall and 30 wide (i.e., stretched slightly in the
|
||||
vertical direction from a circle).
|
||||
|
||||
|
@ -108,13 +108,13 @@ The drawing area should have the following features:
|
|||
Also, it's drawn in xor mode, so it should flip black to
|
||||
white wherever the octagon line runs over the shapes of the
|
||||
middle section. The bitmaps of the bottom region are drawn
|
||||
afterwards, and wil therefore hide parts of the octagon
|
||||
afterwards, and will therefore hide parts of the octagon
|
||||
line, although the MrEd logo is also drawn in XOR mode so it
|
||||
shouldn't obscure the octagon line.
|
||||
|
||||
Bottom section:
|
||||
|
||||
Images: MrEd logo (b & w), drawn in XOR mode, so the octagin line
|
||||
Images: MrEd logo (b & w), drawn in XOR mode, so the octagon line
|
||||
should be toggled where the black part of the MrEd logo
|
||||
intersects with the line. This changes with the
|
||||
"MrEd XOR" choice control (see below).
|
||||
|
@ -135,7 +135,7 @@ The drawing area should have the following features:
|
|||
Stippled boxes, in a blue box w/black border, four black-outlined
|
||||
shapes:
|
||||
Sqaure - green down-arrows on blue field
|
||||
Cirle - green down-arrows on background (cyan or white) field
|
||||
Circle - green down-arrows on background (cyan or white) field
|
||||
Square - bb logo
|
||||
Square - green cross-hatch on blue
|
||||
|
||||
|
@ -161,7 +161,7 @@ The drawing area should have the following features:
|
|||
as paths.
|
||||
|
||||
Four lines (to right of red shapes): in 'unsmoothed or 'aligned
|
||||
mode, the lines should appear euqally spaced at scale 1, but
|
||||
mode, the lines should appear equally spaced at scale 1, but
|
||||
scale 2 should show the middle lines closer by two pixels; the
|
||||
'smoothed mode should approximate this at scale 1. At scale 2,
|
||||
'unsmoothed and 'aligned should look the same.
|
||||
|
@ -172,8 +172,8 @@ The drawing area should have the following features:
|
|||
'smoothed mode, but in 'smoothed mode or at scale 2, they should
|
||||
touch.
|
||||
|
||||
Four suqares with overbar (bottom of drawing): the suqares,
|
||||
which are strteched bitmaps, should touch, and the four squares
|
||||
Four squares with overbar (bottom of drawing): the squares,
|
||||
which are stretched bitmaps, should touch, and the four squares
|
||||
should have the same span as the overbar line.
|
||||
|
||||
The image should look the same regardless of the top radio button
|
||||
|
@ -201,14 +201,14 @@ Clipping should slip the drawing to a particular shape:
|
|||
rectangle - a 10-pixel strip 100 pixels from the left
|
||||
|
||||
octagon - the content of the big outlined octagon; some
|
||||
part of the octagone outline is clipped
|
||||
part of the octagon outline is clipped
|
||||
|
||||
circle - a circle inscribed in the octagon's bounding
|
||||
box
|
||||
|
||||
wedge - pi/4 to 3pi/4 of circle
|
||||
|
||||
round rectangle - a rounded rect inscrobed in the the blue box for
|
||||
round rectangle - a rounded rect inscribed in the the blue box for
|
||||
testing stipples
|
||||
|
||||
unions, intersects, subtracts - hopefully obvious
|
||||
|
@ -243,9 +243,9 @@ The "Clock" button tests a range of wedges. Each wedge has a 1-pixel
|
|||
the wedge part and empty part (so the wedge starts small and grows
|
||||
larger this time around).
|
||||
The orange wedge is drawn just before the bitmaps, so they appear on
|
||||
top of the orange wedge, but the wegde paints over other things. If
|
||||
top of the orange wedge, but the wedge paints over other things. If
|
||||
the "Pixmap" box is checked and the "Polka" clipping region is
|
||||
selected, the result is an animtation where you can only see the
|
||||
selected, the result is an animation where you can only see the
|
||||
wedge grow and move through the polka-dot holes in the purple field.
|
||||
|
||||
The "Clip Clock" button is similar to "Clock", except that all drawing
|
||||
|
@ -293,7 +293,7 @@ The "MrEd XOR" menu selects a icon:
|
|||
|
||||
Finally, print these instructions by hitting the "Print" button at the
|
||||
top of the "What Should I See?" window. The following lines are for
|
||||
the printing test; they should wrap aroundneatly on the printed
|
||||
the printing test; they should wrap around neatly on the printed
|
||||
page. (Don't add any newlines.) Check to make sure no lines are
|
||||
skipped or duplicated across page breaks. Try different page
|
||||
orientations.
|
||||
|
|
|
@ -74,7 +74,7 @@ Window Resizing
|
|||
Stretch the window vertically. Stretch it horizontally. Unless the
|
||||
frame was created with "all stechy" on, then messages, buttons, check
|
||||
boxes, and radio boxes should not stretch. Choice and text items
|
||||
should only strech horizontally. Sliders and gauges should only
|
||||
should only stretch horizontally. Sliders and gauges should only
|
||||
resize in the major direction.
|
||||
|
||||
If "all stretchy" was on, then everything in the left column should
|
||||
|
@ -131,9 +131,9 @@ disabled.
|
|||
* enable/disable all the controls through each panel
|
||||
checkbox
|
||||
|
||||
* click each checkbox to disble an item; click on the
|
||||
* click each checkbox to disable an item; click on the
|
||||
item to make sure it's disabled; recheck the checkbox;
|
||||
make sure the item is re-enebaled
|
||||
make sure the item is re-enabled
|
||||
|
||||
* disable all the controls; disable and re-enable the
|
||||
whole panel; make sure the controls are still disabled
|
||||
|
@ -142,14 +142,14 @@ disabled.
|
|||
make sure the controls are still not enabled; re-enable
|
||||
the panel and check that the controls are enabled
|
||||
|
||||
* disbale the panel; diable all the controls; enable the
|
||||
* disable the panel; disable all the controls; enable the
|
||||
panel and make sure the controls are still disabled;
|
||||
enable all the controls
|
||||
|
||||
* repeat the three steps above with the other panel checkbox
|
||||
|
||||
* repeat the three steps for radioboxes and radio items,
|
||||
sintead of panels and controls
|
||||
instead of panels and controls
|
||||
|
||||
Relabeling
|
||||
----------
|
||||
|
@ -162,9 +162,9 @@ it depends:
|
|||
|
||||
- message: <down-right arrow>
|
||||
- button: <down-left arrow>
|
||||
- checbox: <BB icon>
|
||||
- checkbox: <BB icon>
|
||||
|
||||
Note that radio items can't be relabelled.
|
||||
Note that radio items can't be relabeled.
|
||||
|
||||
Be sure to click each button twice, to make sure that the original
|
||||
label is restored.
|
||||
|
@ -216,7 +216,7 @@ same panel as the "New Deleted" control, but each subwindow<%> is
|
|||
created with the 'deleted style, which means that the subwindow<%> is
|
||||
initially hidden and deleted. The "*Activate Last*" item activates
|
||||
the last-created subwindow<%>, i.e., it shows the subwindow<%> and
|
||||
adjusts the panel size to accomodate the activated window<%>. The key
|
||||
adjusts the panel size to accommodate the activated window<%>. The key
|
||||
part of this test is that no deleted subwindow<%> is shown, and no
|
||||
deleted subwindow<%> affects the panel's geometry.
|
||||
|
||||
|
@ -262,20 +262,20 @@ under windows, the key info is immediately replaced with mouse info.)
|
|||
Event Filtering
|
||||
---------------
|
||||
|
||||
When "Drop Mouse Events" is checked at the bottom of the thrid column,
|
||||
When "Drop Mouse Events" is checked at the bottom of the third column,
|
||||
all other controls (except "Drop Mouse Events" and "Drop Key Events")
|
||||
shold cease to respond to mouse events. The event indicator will still
|
||||
should cease to respond to mouse events. The event indicator will still
|
||||
work. Keyboard events should not be affected (though it may be hard to
|
||||
get the focus somewhere interesting).
|
||||
|
||||
Try every control with mouse events dropped.
|
||||
|
||||
"Drop Key Events" does the obvious thing. Try every keybord-responding
|
||||
"Drop Key Events" does the obvious thing. Try every keyboard-responding
|
||||
control with events dropped. Try dialog navigation keys on other
|
||||
controls, such as TAB or left-arrow.
|
||||
|
||||
Different Configuations
|
||||
-----------------------
|
||||
Different Configurations
|
||||
------------------------
|
||||
|
||||
Each Frame can be created in several different configurations (32 or
|
||||
64 of them!).
|
||||
|
|
|
@ -8,7 +8,7 @@ Change the slider value in each way allowed by the control (dragging,
|
|||
intermediate callbacks may be reported.
|
||||
|
||||
Click "Up" until the slider is at the top; a mismatch exception should
|
||||
be reported. Click "Down" once aand verify that the slider is at 10.
|
||||
be reported. Click "Down" once and verify that the slider is at 10.
|
||||
|
||||
Repeat the above step for "Down" (checking for an exception when the
|
||||
slider is already at its minimum value).
|
||||
|
|
Loading…
Reference in New Issue
Block a user