Article View: comp.windows.interviews
Article #884"Hierarchical" iconic drawing editor in Unidraw
From: Jimmy the X-man
Date: Thu, 11 Apr 1991 17:01
Date: Thu, 11 Apr 1991 17:01
36 lines
2141 bytes
2141 bytes
InterViews version: 2.6
I am trying to implement a hierarchical iconic (= element) drawing
editor. In my project, a drawing starts with an atomic icon. There are
8 kinds of icons representing 8 kinds of processes, the atomic icon
being one of these 8 and the other 7 being non-atomic.
One can do the following operations to any icon:
1. Coerce it to become a different type of icon.
(This has been implemented.)
2. Decompose (or "Open") any non-atomic icon into the appropriate
number of atomic icons (decompose a non-atomic icon into its
"children"). A non-atomic icon has an attribute which determines
the number of children (or atomic icons) it may be decomposed
into.
Thus, all non-atomic icons have children which are atoms at the
beginning but the user may coerce any of these (atomic) children into
non-atomic icons. The user may also "close" any child item; this
replaces the child and all of its siblings by their (single) parent.
As an example, you may start with an atomic icon and change it into a
non-atomic icon with 3 children (step 1). Now, you "open" this icon and
you see 3 atomic icons(step #2). You pick one of these 3 and change it
to a non-atomic icon of your choice. Thus, you may go down to an
indefinite depth.
Any comments on what would be the best methodology for implementing
step #2 ? Comments welcome from InterViews/Unidraw experts.
Thanks,
Jimmy
Internet: jimmy@cs.UAlberta.CA USING VERSION 2.6
uucp: jimmy@alberta.uucp
uunet: ...!uunet!alberta!jimmy
Technical Details
Message-ID:
<1991Apr11.170136.5654@cs.UAlberta.CA>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!sdd.hp.com!think.com!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!sdd.hp.com!think.com!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!news From: jimmy@cs.UAlberta.CA (Jimmy the X-man) Newsgroups: comp.windows.interviews Subject: "Hierarchical" iconic drawing editor in Unidraw Message-ID: <1991Apr11.170136.5654@cs.UAlberta.CA> Date: 11 Apr 91 17:01:36 GMT Sender: news@cs.UAlberta.CA (News Administrator) Organization: The Trembling Tundra Tigers Club Lines: 35