From 10bef5d203f419141367db88c86b7f71955a3878 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Wed, 14 Nov 2018 13:19:01 +0000 Subject: [PATCH] Add label formula of element in export partlist to csv git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5590 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/nomenclature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/nomenclature.cpp b/sources/nomenclature.cpp index f57507fce..84361e71e 100644 --- a/sources/nomenclature.cpp +++ b/sources/nomenclature.cpp @@ -90,6 +90,7 @@ QString nomenclature::getNomenclature() ""+ QObject::tr("D001") +";" //:Don't translate this text! //ID for qet designation ""+ QObject::tr("E001") +";" //:Don't translate this text! //ID for position of element on the folio ""+ QObject::tr("F001") +";" //:Don't translate this text! //ID for label of element + ""+ QObject::tr("F002") +";" //:Don't translate this text! //ID for label formula of element ""+ QObject::tr("G001") +";" //:Don't translate this text! //ID for order number ""+ QObject::tr("H001") +";" //:Don't translate this text! //ID for article description ""+ QObject::tr("I001") +";" //:Don't translate this text! //ID for comment @@ -107,6 +108,7 @@ QString nomenclature::getNomenclature() ""+ QObject::tr("Désignation qet") +";" ""+ QObject::tr("Position") +";" ""+ QObject::tr("Label") +";" + ""+ QObject::tr("Formule du label") +";" ""+ QObject::tr("Désignation") +";" ""+ QObject::tr("Description") +";" ""+ QObject::tr("Commentaire") +";" @@ -165,6 +167,7 @@ QString nomenclature::getElementInfo(Element *elmt) { info += elmt -> name() + ";"; info += elmt-> diagram()-> convertPosition(elmt -> scenePos()).toString() + ";"; info += autonum::AssignVariables::formulaToLabel(elmt_info["label"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt) + ";"; + info += autonum::AssignVariables::formulaToLabel(elmt_info["formula"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt) + ";"; info += autonum::AssignVariables::formulaToLabel(elmt_info["designation"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt) + ";"; info += autonum::AssignVariables::formulaToLabel(elmt_info["description"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt) + ";"; info += autonum::AssignVariables::formulaToLabel(elmt_info["comment"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt) + ";";