mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Nomemclature: add field element position in the graphic scene to export .csv file
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4003 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -84,6 +84,7 @@ QString nomenclature::getNomenclature() {
|
|||||||
data += tr("N° de folio") +";"
|
data += tr("N° de folio") +";"
|
||||||
""+ tr("Titre de folio") +";"
|
""+ tr("Titre de folio") +";"
|
||||||
""+ tr("Désignation qet") +";"
|
""+ tr("Désignation qet") +";"
|
||||||
|
""+ tr("Position") +";"
|
||||||
""+ tr("Label") +";"
|
""+ tr("Label") +";"
|
||||||
""+ tr("Désignation") +";"
|
""+ tr("Désignation") +";"
|
||||||
""+ tr("Commentaire") +";"
|
""+ tr("Commentaire") +";"
|
||||||
@@ -125,6 +126,7 @@ QString nomenclature::getElementInfo(const Element *elmt) {
|
|||||||
info += QString::number(diagram -> folioIndex()+1) + ";";
|
info += QString::number(diagram -> folioIndex()+1) + ";";
|
||||||
info += diagram -> title() + ";";
|
info += diagram -> title() + ";";
|
||||||
info += elmt -> name() + ";";
|
info += elmt -> name() + ";";
|
||||||
|
info += elmt-> diagram()-> convertPosition(elmt -> scenePos()).toString() + ";";
|
||||||
info += elmt_info["label"].toString() + ";";
|
info += elmt_info["label"].toString() + ";";
|
||||||
info += elmt_info["designation"].toString() + ";";
|
info += elmt_info["designation"].toString() + ";";
|
||||||
info += elmt_info["comment"].toString() + ";";
|
info += elmt_info["comment"].toString() + ";";
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include "qetgraphicsitem/element.h"
|
#include "qetgraphicsitem/element.h"
|
||||||
#include "diagramcontent.h"
|
#include "diagramcontent.h"
|
||||||
#include "qetgraphicsitem/customelement.h"
|
#include "qetgraphicsitem/customelement.h"
|
||||||
|
#include "diagramposition.h"
|
||||||
|
|
||||||
class QETProject;
|
class QETProject;
|
||||||
class Diagram;
|
class Diagram;
|
||||||
|
|||||||
Reference in New Issue
Block a user