Module implementing a template viewer and associated classes.
TemplateEntry | Class immplementing a template entry. |
TemplateGroup | Class implementing a template group. |
TemplateToolTip | Class implementing a specialized tooltip. |
TemplateViewer | Class implementing the template viewer. |
None |
Class immplementing a template entry.
TemplateEntry | Constructor |
__extractVariables | Private method to retrieve the list of variables. |
expandFormattedVariable | Private method to expand a template variable with special formatting. |
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 group. |
getTemplateText | Public method to get the template text. |
getVariables | Public method to get the list of variables. |
setName | Public method to update the name of the group. |
setTemplateText | Public method to update the template text. |
Constructor
Private method to retrieve the list of variables.
Private method to expand a template variable with special formatting.
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 group.
Public method to get the template text.
Public method to get the list of variables.
Public method to update the name of the group.
Public method to update the template text.
Class implementing a template group.
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. |
getLanguage | Public method to get the name of the group. |
getName | Public method to get the name of the group. |
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. |
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 name of the group.
Public method to get the name of the group.
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 a specialized tooltip.
TemplateToolTip | Constructor |
maybeTip | Overridden protected slot to show the tooltip. |
Constructor
Overridden protected slot to show the tooltip.
Class implementing the template viewer.
TemplateViewer | Constructor |
addEntry | Public method to add a template entry. |
addGroup | Public method to add a group. |
applyTemplate | |
changeEntry | Public method to change a template entry. |
changeGroup | Public method to rename a group. |
contentsMouseDoubleClickEvent | Protected method of QListView. |
getAllGroups | Public method to get all groups. |
getGroupNames | Public method to get all group names. |
handleAddEntry | Private slot to handle the Add Entry context menu action. |
handleAddGroup | Private slot to handle the Add Group context menu action. |
handleContextMenu | Private slot to show the context menu of the listview. |
handleEdit | Private slot to handle the Edit context menu action. |
handleExport | Private slot to handle the Export context menu action. |
handleHelp | Private method to show some help. |
handleImport | Private slot to handle the Import context menu action. |
handleRemove | Private slot to handle the Remove context menu action. |
handleSave | Private slot to handle the Save context menu action. |
removeEntry | Public method to remove a template entry. |
removeGroup | Public method to remove a group. |
Constructor
Public method to add a template entry.
Public method to add a group.
Public method to change a template entry.
Public method to rename a group.
Protected method of QListView. Reimplemented to disable expanding/collapsing of items when double-clicking. Instead the selected template text is expanded and inserted at the cursor position of the active document.
Public method to get all groups.
Public method to get all group names.
Private slot to handle the Add Entry context menu action.
Private slot to handle the Add Group context menu action.
Private slot to show the context menu of the listview.
Private slot to handle the Edit context menu action.
Private slot to handle the Export context menu action.
Private method to show some help.
Private slot to handle the Import context menu action.
Private slot to handle the Remove context menu action.
Private slot to handle the Save context menu action.
Public method to remove a template entry.
Public method to remove a group.