Le 26 févr. 2011 à 08:08, Christopher Armstrong a écrit :

> On 26/02/2011, at 02:53 AM, Quentin Mathé wrote:
> 
> I only meant making an entire copy of an object so that you could alter it 
> independently and use it like a template (sort of like the Prototype design 
> pattern).
>> 
>> Do you mean how the UI would provide a visual hint starting that an object 
>> is a copy or how you mark/use an object as a template?
>> 
>> For using objects as templates…
>> What I had in mind it to have "aspect repositories" in which you can put 
>> arbitrary objects into it organized by categories/kinds (Colors, Layouts, 
>> Images, Shapes etc.). Because a repository would accept arbitrary objects 
>> (by allowing new categories to be added), you could use it to organize 
>> templates or styles. By using such a repository as a model object with 
>> EtoileUI, you could easily materialize various UI stereotypes (that would me 
>> made available as reusable EtoileUI layouts):
>> - an object palette
>> - a style picker/palette
>> - a template chooser
>> 
>> To give some concrete examples… a wiget palette in a UI builder, a 
>> color/pattern palette in a graphics editor, a document template chooser etc. 
>> would fit into these UI stereotypes.
>> 
>> Also each aspect repository would be a core object, so the changes to them 
>> would be recorded.
>> 
>> But I haven't give much thinking to how the documentation creation should 
>> work step-by-step when you decide to start from a template rather than a 
>> "blank page"…
>> 
>> Each project could include a default aspect/template repository when 
>> created. May be some inheritance mechanism could be needed?… For example, if 
>> you copy a project (in the sense you use it as template), then the new 
>> project could have its default repository set to inherit from the default 
>> repository of the original project. In fact, it could be easier/simpler to 
>> just copy the templates from the original project into the new project.
>> 
>> I'll commit this aspect repository thing to EtoileFoundation next month.
>> 
>> What's your on take on that?
> 
> I'm not sure - I don't quite grasp the concept :-(. If I were to interpret 
> what you saying, a project is to be created with a set of templates (your 
> aspect repository) that dictate the default template for new documents in 
> that project. You create these aspect repositories by putting copies of 
> documents you've created into them.

Yes, that's correct. 

>>> Hopefully I'll get round to writing some more of these ideas soon.
> 
> I've written my last set out into a new copy of the documentation, sitting as 
> a LaTeX file in SVN under trunk/Documentation somewhere.

ok. I'll take a look…

Cheers,
Quentin.
_______________________________________________
Etoile-dev mailing list
Etoile-dev@gna.org
https://mail.gna.org/listinfo/etoile-dev

Reply via email to