mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user