Creating customized templates in the gallery

Description:

EmWi offers the possibility to customize the gallery to have quick access to your own template classes or objects. This article describes the way, how to add an own template to the Templates gallery.

 

Solution:

When clicking with the right mouse button into the "Templates" view, a context popup menu appears which provides the commands to create, delete and rename folders and templates.

 

First select "Create new folder" from the popup menu. Then click again with the right mouse button on the new folder in the Templates gallery and select "Rename" to change the name e.g. to "MyTemplates".

 

Now you can add a class from a unit or a member object from any class or even a whole unit from the project to your gallery folder. To add a new template select the brick or object in the composer, press the key <CTRL> and then drag and drop it to your template folder in the gallery. Then click again with the right mouse button on the new template and select "Rename template" to change the name e.g. to "MyClass".

 

All folders within the Templates view are mapped to a subdirectory of the folder "Templates" in the Embedded Wizard installation directory e.g.:

 

C:\Programme\Tara\EmbeddedWizard\Templates\MyTemplates.ewgf

 

All templates are stored as readable Chora code files within these subdirectories e.g.:

 

\Templates\MyTemplates.ewgf\MyClass.ewg

 

If you want to transfer some of your template folders to another PC, you have to copy the subdirectories into the other Embedded Wizard installation and to restart Embedded Wizard. To avoid the deletion of a template by mistake, you can set your template folder and files to write protected.

 

See also:

[Embedded Wizard User Manual]

 

Keywords:

IDE, customize, gallery, template, objects, classes

 

Last update on 2010-08-19 by Mario Stefanutti.

Go back