Embedded Wizard Studio offers the possibility to customize the Gallery for your own template classes or objects. This article describes the way, how to add an own template to a separate folder within the Gallery window.
When clicking with the right mouse button into the "Templates" view of the Gallery, 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 private folders within the Templates view are mapped to a subdirectory of the folder "Templates20" (because your project is based on Mosaic20) in the following directory:
{UserDocumentFolder}\AppData\Local\EmbeddedWizard\Templates20
For each private folder a separate subdirctory is created, e.g. \MyTemplates.ewgf
All templates are stored as readable Chora code files within these subdirectories, e.g. \MyClass.ewg
If you want to transfer some of your template folders to another PC, you have to copy these subdirectories into the corresponding directory 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.
Please avoid any mixture of templates from different versions of the Mosaic class library.