Ajout d'un bouton pour editer un element sans devoir le retrouver dans le panel d'elements.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@717 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
cfdev
2009-07-08 09:41:20 +00:00
parent 5847967f06
commit 9abcca9aef
6 changed files with 32 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#include "projectview.h"
#include "recentfiles.h"
#include "qeticons.h"
#include "qetelementeditor.h"
/**
constructeur
@@ -1236,7 +1237,10 @@ void QETDiagramEditor::addProjectView(ProjectView *project_view) {
// gere les demandes consistant a retrouver un element dans le panel
connect(project_view, SIGNAL(findElementRequired(const ElementsLocation &)), this, SLOT(findElementInPanel(const ElementsLocation &)));
// gere les demandes pour l'edition d'un element
connect(project_view, SIGNAL(editElementRequired(const ElementsLocation &)), this, SLOT(editElementInEditor(const ElementsLocation &)));
// affiche la fenetre
if (maximise) project_view -> showMaximized();
else project_view -> show();
@@ -1700,6 +1704,18 @@ void QETDiagramEditor::findElementInPanel(const ElementsLocation &location) {
}
}
/**
Lance l'editeur d'element pour l'element filename
@param location Emplacement de l'element a editer
*/
void QETDiagramEditor::editElementInEditor(const ElementsLocation &location) {
QETElementEditor *editor = new QETElementEditor();
editor -> fromLocation(location);
editor -> show();
}
/**
@return Les proprietes par defaut pour le cartouche d'un schema
*/