[ENH] [eToys] TileTimesRepeat-dgd

DiegoGomezDeck at ConsultAr.com DiegoGomezDeck at ConsultAr.com
Sun Jan 18 16:15:08 UTC 2004


from preamble:

"Change Set:		TileTimesRepeat-dgd
Date:			18 January 2004
Author:			Diego Gomez Deck <DiegoGomezDeck at ConsultAr.com>

This changeset includes a new type of tile to create #timesRepeat: type
of loops in eToys scripts.  The motivation behind this work is to
recycle good books covering the use of Logo to teach maths and geometry.

The new tile respect the philosophy behind TestYesNo tile to make the
life easier for existing eToy users. That means:
- A new icon is included in the ScriptEditorMorph to tear off the
TimesRepeat tile.
- The tile use a different color than 'normal' tiles to warn the user a
non-trivial flow control structure is present.
- The tile use a different color than the TestYesNo tile to enforce the
visual recognition of parts in the script.

In http://swiki.agro.uba.ar/small_land/uploads/13/ScriptEditor.jpeg you
can see a colorful script showing the new tile in action.

Note for Harvesters: The 2 conflicts with 3.7a are checked and they
don't represent problems.

TODO:
- There are a *lot* of duplicated code between CompoundTileMorph and
TimesRepeatTileMorph.  The hierarchy is screamming for a common
superclass. One time the changes from squeakland get included in 3.7,
I'll refactor the hierarchy to remove such awful duplication.

"

ScriptingSystem
	saveForm: ((ScriptingSystem formAtKey: 'AddTest') deepCopy
replaceColor: Color lightYellow withColor: Color magenta muchLighter)
	atKey: 'AddTimesRepeat' .
!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TileTimesRepeat-dgd.cs.gz
Type: application/octet-stream
Size: 7123 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040118/a2d58d47/TileTimesRepeat-dgd.cs.obj


More information about the Squeak-dev mailing list