[qet] qet/qet: [5102] Revert previous commit and add an extra line in the csv exportation.

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


Revision: 5102
Author:   nuri
Date:     2017-11-16 22:13:32 +0100 (Thu, 16 Nov 2017)
Log Message:
-----------
Revert previous commit and add an extra line in the csv exportation.
The new line is a new header containing ID numbers in order to universally identify columns.

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

Modified: trunk/sources/nomenclature.cpp
===================================================================
--- trunk/sources/nomenclature.cpp	2017-11-16 18:57:16 UTC (rev 5101)
+++ trunk/sources/nomenclature.cpp	2017-11-16 21:13:32 UTC (rev 5102)
@@ -84,11 +84,27 @@
 {
 	//Process...
 	QString data = QObject::tr("NOMENCLATURE : ") + m_project -> title() + "\n\n";
-	data += QObject::tr("N° de folio") +";"
+    data += QObject::tr("A001") +";"  //:Don't translate this text!    //ID for folio number
+    ""+ QObject::tr("B001") +";"      //:Don't translate this text!    //ID for folio title
+    ""+ QObject::tr("C001") +";"      //:Don't translate this text!    //ID for folio label
+    ""+ 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("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
+    ""+ QObject::tr("J001") +";"      //:Don't translate this text!    //ID for manufacturer
+    ""+ QObject::tr("K001") +";"      //:Don't translate this text!    //ID for article number
+    ""+ QObject::tr("L001") +";"      //:Don't translate this text!    //ID for supplier
+    ""+ QObject::tr("M001") +";"      //:Don't translate this text!    //ID for auxiliary field 1
+    ""+ QObject::tr("M002") +";"      //:Don't translate this text!    //ID for auciliary field 2
+    ""+ QObject::tr("N001")+";"       //:Don't translate this text!    //ID for internal number
+    ""+ QObject::tr("O001")+";"       //:Don't translate this text!    //ID for location
+    ""+ QObject::tr("P001") +"\n";    //:Don't translate this text!    //ID for function
+    data += QObject::tr("N° de folio") +";"
 	""+ QObject::tr("Titre de folio") +";"
 	""+ QObject::tr("Label de folio") +";"
 	""+ QObject::tr("Désignation qet") +";"
-	""+ QObject::tr("UUID") +";"
 	""+ QObject::tr("Position") +";"
 	""+ QObject::tr("Label") +";"
 	""+ QObject::tr("Désignation") +";"
@@ -147,7 +163,6 @@
 	info += diagram -> title() + ";";
 	info += autonum::AssignVariables::formulaToLabel(diagram->border_and_titleblock.folio(), empty_seq, diagram) + ";";
 	info += elmt -> name() + ";";
-	info += QUuid::createUuid().toString() + ";";
 	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["designation"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt) + ";";


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