[qet] qet/qet: [5590] Add label formula of element in export partlist to csv

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5590
Author:   scorpio810
Date:     2018-11-14 14:19:01 +0100 (Wed, 14 Nov 2018)
Log Message:
-----------
Add label formula of element in export partlist to csv

Modified Paths:
--------------
    trunk/sources/nomenclature.cpp

Modified: trunk/sources/nomenclature.cpp
===================================================================
--- trunk/sources/nomenclature.cpp	2018-11-12 16:07:52 UTC (rev 5589)
+++ trunk/sources/nomenclature.cpp	2018-11-14 13:19:01 UTC (rev 5590)
@@ -90,6 +90,7 @@
     ""+ 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 @@
 	""+ 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 @@
 	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) + ";";


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/