Templates Tab

Description

This view displays a tree of available templates, the templates toolbar, the 'Author' name, the 'Date' of creation, a description of template and a preview of the selected template.

Templates are grouped under 2 main folders: Local Templates and Public Templates. When you save a template, it can only be in the Local Templates section. Public Templates are shared templates made public from the community. You can use them to create full applications prototypes or to add components to your projects. Local prototypes that you want to want to make public can be exported. They will then be available for all in the Public Templates section.

There are 2 types of templates within each section: Prototypes and Components. Think of a Prototype template as a full-application whereas a Component template is a part only (for example, a menu bar, or a login panel with controls, etc...). There is synchronisation between the type of template to save or to add. In other words, trying to save a prototype under the Components folder won't work, neither is it possible to save a component under the Prototypes folder.

It is possible to save a whole prototype as a template but you cannot add a prototype template to a prototype. To use a prototype template, create a new prototype and select the template you previously saved as the model of your new prototype.


Context-Sensitivity

There is context-sensitivity similar to the one in Palette when trying to use a component template.

You can add any component template the same way you add items. The add template icon () is activated only when it makes sense to paste the component item at the selection in the Structure. For example, a menu item template can only be used when a menubar or a menu is selected in the Structure tree view.

Templates Toolbar

Icon Description Keyboard keys
Export Export a template so that everyone will share your work. Ctrl+U
Import Import a template that someone has created. Ctrl+D
New Folder Add a folder as a child of another folder. Ctrl+N
Rename Rename the folder or template depending on the selection in the Templates tree. Ctrl+R
Cut Cut the folder or template depending on the selection in the Templates tree. All the folders and templates under the 'Public Templates' node can not be cut. Select a folder or a template and press the cut button. This folder or template will be removed from the tree and will be available for pasting in a folder. Ctrl+X
Copy Copy the folder or template depending on the selection in the Templates tree. All the folders and templates under the 'Public Templates' node can not be copied. Select a folder or a template and press the copy button. A copy of this folder or template will be available for pasting in a folder. Ctrl+C
Paste Paste the folder or template that was previously cut or copied from the Templates tree in the selected folder. If a folder or templates exists with that name in the selected folder, the new folder or template will start with 'Copy of'. No folder or template can be pastes to folder under the 'Public Templates' node. Ctrl+V
Delete Delete the folder or template selected in the Templates tree. A confirmation dialog will be display and ask if you want to delete the folder or template. The top folder 'Local Templates', 'Prototypes' and 'Components' as well as the default templates that was install at the installation are read-only and can not be deleted. All the folders and templates under the 'Public Templates' node can not be deleted. Delete
Save Save as template a control or a prototype at the desired location in the Templates tree. Ctrl+S
Add Template Add the selected template to the Structure. (See the context-sensitivity) topic above. Ctrl+A

Export a template
Select the template in the 'Local Templates' tree that you want to share with others and press the Export (Export) icon on the toolbar
The Export Template Wizard dialog box displays. Follow the steps until you are done.
After review by ProtoLoop personnel, your template will be categorized and made available to all.

Import a template
Select a template under 'Public Templates' tree and press the Import (Import) icon on the toolbar
The Import Template Wizard dialog box displays. Follow the steps until you are done.
This template will then be imported into your Local templates to be used like any other template.

Add a folder
Select a folder in the 'Local Templates' tree and press the Add Folder () icon on the toolbar
A dialog box displays. Enter the name of the folder.
Select the OK button
The new result is

Rename a folder
Select the folder in the 'Local Templates' tree and press the Rename () icon on the toolbar
A dialog box displays. Enter the new name for the folder.
Select the OK button
The new result is

Rename a template
Select the template in the 'Local Templates' tree and press the Rename () icon on the toolbar
A dialog box displays. Enter the new name for the template and a description.
Select the OK button
The new result is

Save a control as a template
Select the control in the composer or the structure tree. Select a folder under the 'Components' in the 'Local Templates' tree and press the Save () icon on the toolbar
A dialog box displays. Enter the name for the template and a description.
Select the OK button
The new result is

Save a prototype as a template
Select the top root node called 'Prototype' in the structure tree.
Select a folder under 'Prototypes' in the 'Local Templates' tree and press the Save () icon on the toolbar
A dialog box displays. Enter the name for the template and a description.
Select the OK button
The new result is