Title block template editor: added "Open from file" and "Save to file" actions.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1457 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-01-12 07:04:09 +00:00
parent a9e4d972b8
commit fa11ec59ad
4 changed files with 142 additions and 11 deletions

View File

@@ -994,10 +994,7 @@ void QETApp::openElementLocations(const QList<ElementsLocation> &locations_list)
/**
Launch a new title block template editor to edit the given template
@param project Parent project of the template to edit
@param template_name Name of the template to edit within its parent project
If no template name is supplied, the method assumes the editor has to be
launched for a template creation.
@param location location of the title block template to be edited
*/
void QETApp::openTitleBlockTemplate(const TitleBlockTemplateLocation &location) {
QETTitleBlockTemplateEditor *qet_template_editor = new QETTitleBlockTemplateEditor();
@@ -1005,6 +1002,16 @@ void QETApp::openTitleBlockTemplate(const TitleBlockTemplateLocation &location)
qet_template_editor -> showMaximized();
}
/**
Launch a new title block template editor to edit the given template
@param filepath Path of the .titleblock file to be opened
*/
void QETApp::openTitleBlockTemplate(const QString &filepath) {
QETTitleBlockTemplateEditor *qet_template_editor = new QETTitleBlockTemplateEditor();
qet_template_editor -> edit(filepath);
qet_template_editor -> showMaximized();
}
/**
Permet a l'utilisateur de configurer QET en lancant un dialogue approprie.
@see ConfigDialog