2011/8/8 Stéphane Ducasse <[email protected]>

>
> On Aug 7, 2011, at 9:53 PM, Denis Kudriashov wrote:
>
> >
> > 2011/8/7 Stéphane Ducasse <[email protected]>
> > Question:
> > Do you have a way to generate the code for the prototype one you have
> created one by direct manipulation?
> > A prototype is like a specification of certain attributes?
> >
> > No. Prototype is just basic morph. When guide requested to show presenter
> it search saved prototype for presenter and execute "prototype veryDeepCopy"
> to create view instance.
> > So there is no need to support specification objects. It is all basic
> morphs.
>
> I think that it would be nice to be able to turn a prototype into a class
> definition. Because as igor said been able to edit code is often a good way
> to reuse.
>
>
Maybe you right. But with current solution you can just open explorer on
morph which you want to change and modify it state programmatically as you
want. At the end of modifications you just save it as prototype. Also you
can easilly get prototype instance and modify it directly. There is "inspect
build context" item in halo menu.
Also there is menu items for copy prototype from one presenter and paste it
to another.

But sometimes our clients ask me for xml with skin properties to change x,y
of some interface element. I just show him halo menu and they happy.

Reply via email to