Module implementing a template viewer and associated classes.
None |
TemplateEntry | Class immplementing a template entry. |
TemplateGroup | Class implementing a template group. |
TemplateViewer | Class implementing the template viewer. |
None |
Class immplementing a template entry.
None |
None |
TemplateEntry | Constructor |
__displayText | Private method to generate the display text. |
__expandFormattedVariable | Private method to expand a template variable with special formatting. |
__extractVariables | Private method to retrieve the list of variables. |
getDescription | Public method to get the description of the entry. |
getExpandedText | Public method to get the template text with all variables expanded. |
getGroupName | Public method to get the name of the group this entry belongs to. |
getName | Public method to get the name of the entry. |
getTemplateText | Public method to get the template text. |
getVariables | Public method to get the list of variables. |
setDescription | Public method to update the description of the entry. |
setName | Public method to update the name of the entry. |
setTemplateText | Public method to update the template text. |
None |
Constructor
Private method to generate the display text.
Private method to expand a template variable with special formatting.
Private method to retrieve the list of variables.
Public method to get the description of the entry.
Public method to get the template text with all variables expanded.
Public method to get the name of the group this entry belongs to.
Public method to get the name of the entry.
Public method to get the template text.
Public method to get the list of variables.
Public method to update the description of the entry.
Public method to update the name of the entry.
Public method to update the template text.
Class implementing a template group.
None |
None |
TemplateGroup | Constructor |
addEntry | Public method to add a template entry to this group. |
getAllEntries | Public method to retrieve all entries. |
getEntry | Public method to get an entry. |
getEntryNames | Public method to get the names of all entries, who's name starts with the given string. |
getLanguage | Public method to get the name of the group. |
getName | Public method to get the name of the group. |
hasEntry | Public method to check, if the group has an entry with the given name. |
removeAllEntries | Public method to remove all template entries of this group. |
removeEntry | Public method to remove a template entry from this group. |
setLanguage | Public method to update the name of the group. |
setName | Public method to update the name of the group. |
None |
Constructor
Public method to add a template entry to this group.
Public method to retrieve all entries.
Public method to get an entry.
Public method to get the names of all entries, who's name starts with the given string.
Public method to get the name of the group.
Public method to get the name of the group.
Public method to check, if the group has an entry with the given name.
Public method to remove all template entries of this group.
Public method to remove a template entry from this group.
Public method to update the name of the group.
Public method to update the name of the group.
Class implementing the template viewer.
None |
None |
TemplateViewer | Constructor |
__addEntry | Private slot to handle the Add Entry context menu action. |
__addGroup | Private slot to handle the Add Group context menu action. |
__configure | Private method to open the configuration dialog. |
__edit | Private slot to handle the Edit context menu action. |
__export | Private slot to handle the Export context menu action. |
__getPredefinedVars | Private method to return predefined variables. |
__import | Private slot to handle the Import context menu action. |
__reload | Private slot to reload the templates. |
__remove | Private slot to handle the Remove context menu action. |
__resort | Private method to resort the tree. |
__showContextMenu | Private slot to show the context menu of the list. |
__showHelp | Private method to show some help. |
__templateItemActivated | Private slot to handle the activation of an item. |
addEntry | Public method to add a template entry. |
addGroup | Public method to add a group. |
applyNamedTemplate | Public method to apply a template given a template name. |
applyTemplate | Public method to apply the template. |
changeEntry | Public method to change a template entry. |
changeGroup | Public method to rename a group. |
getAllGroups | Public method to get all groups. |
getGroupNames | Public method to get all group names. |
getTemplateNames | Public method to get the names of templates starting with the given string. |
hasGroup | Public method to check, if a group with the given name exists. |
hasTemplate | Public method to check, if an entry of the given name exists. |
readTemplates | Public method to read in the templates file (.e4c). |
removeEntry | Public method to remove a template entry. |
removeGroup | Public method to remove a group. |
save | Public slot to save the templates. |
writeTemplates | Public method to write the templates data to an XML file (.e4c). |
None |
Constructor
Private slot to handle the Add Entry context menu action.
Private slot to handle the Add Group context menu action.
Private method to open the configuration dialog.
Private slot to handle the Edit context menu action.
Private slot to handle the Export context menu action.
Private method to return predefined variables.
Private slot to handle the Import context menu action.
Private slot to reload the templates.
Private slot to handle the Remove context menu action.
Private method to resort the tree.
Private slot to show the context menu of the list.
Private method to show some help.
Private slot to handle the activation of an item.
Public method to add a template entry.
Public method to add a group.
Public method to apply a template given a template name.
Public method to apply the template.
Public method to change a template entry.
Public method to rename a group.
Public method to get all groups.
Public method to get all group names.
Public method to get the names of templates starting with the given string.
Public method to check, if a group with the given name exists.
Public method to check, if an entry of the given name exists.
Public method to read in the templates file (.e4c).
Public method to remove a template entry.
Public method to remove a group.
Public slot to save the templates.
Public method to write the templates data to an XML file (.e4c).