[ENH][MCP] MCP-0001-initialize-dgd.cs ([cd][sl][er][et]) (er gm) 

German Morales germanmorales at delta-sys.com
Wed Apr 9 01:24:56 UTC 2003


now with the attachment:

____________________________________________________________

First refactoring from MCP.

It's not perfect but its complemented in following change sets.

The other option would be carfully merging different MCP change sets
(0001, 0012, 0036 and 0038) into one perfect 0001, but that will take a
lot of effort and dependency checking, and I don't have that free time.

The problems are only two or three Morphs with different border color, so
I decided it's ok for an alpha version.

from preamble:
"
Change Set:		MCP-0001-initialize-dgd
Date:			14 February 2003
Author:			Diego Gomez Deck <DiegoGomezDeck at ConsultAr.com>

First refactoring. PLEASE TEST.

- refactor of #initialize methods
- added methods
-- Morph>>defaultBounds
-- BorderedMorph>>defaultBorderColor
-- BorderedMorph>>defaultBorderWidth
- implementation of #defaultColor where corresponds
- some small methods categorization
- remove of most direct asignation for color, bounds, borderColor,
borderWidth
"

or as Daniel better described:
"
Enforce existing "template method" pattern for Morph>>initialize and
Morph>>basicInitialize.
Extend it to initialize bounds and border properties in addition to
color.
In the process, removes most direct accesses to the relevant variables,
setting the stage for protecting those variables completely.
"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: MCP-0001-initialize-dgd.cs.gz
Type: application/x-gzip
Size: 35244 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030408/a81ba2ef/MCP-0001-initialize-dgd.cs.bin


More information about the Squeak-dev mailing list