From d6294ac2fccab7e7ffdfbf1ef63a059bba46c777 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 1 Feb 2019 23:16:49 +0100 Subject: Reorganized Fluid Template feature (STR #3336). --- documentation/src/fluid.dox | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'documentation') diff --git a/documentation/src/fluid.dox b/documentation/src/fluid.dox index 922b9d443..b6218974d 100644 --- a/documentation/src/fluid.dox +++ b/documentation/src/fluid.dox @@ -16,6 +16,7 @@ Subchapters: \li \ref fluid_compiling_fl_files \li \ref fluid_tutorial \li \ref fluid_references +\li \ref fluid_templates \li \ref fluid_i18n \li \ref fluid_limitations @@ -1445,6 +1446,33 @@ RGB or grayscale data to the source file. PNG images can provide a full alpha channel for partial transparency, and FLTK supports this as best as possible on each platform. +\section fluid_templates FLUID Templates + +\par +Fluid can store a number of project templates. Project templates +are great for storing often used boilerplate code for fast access. +A common use would be projects with readily prepared copyright +messages. + +\par +A sample template for FLTK projects is included with Fluid. + +\par +Choose "File > New From Template..." to create a new project +based on a template file. In the template dialog, select one of +the existing templates. All occurrences of the word +"@INSTANCE@" in the template are replaced with the text in +the "Instance" field. To create the new project click "New". + +\par +To add your current project as a new template, choose +"File > Save As Template...", fill in a name, and click "Save". + +\par +To delete a template, open the template dialog using +"New from Template" or "Save As Template", the select any +existing template, and click "Delete Template". + \section fluid_i18n Internationalization with FLUID FLUID supports internationalization (I18N for short) of label -- cgit v1.2.3