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