[qet] [3527] element information : add info 'designation'

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


Revision: 3527
Author:   blacksun
Date:     2014-11-30 12:53:23 +0100 (Sun, 30 Nov 2014)
Log Message:
-----------
element information : add info 'designation'

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

Modified: trunk/sources/nomenclature.cpp
===================================================================
--- trunk/sources/nomenclature.cpp	2014-11-28 21:41:16 UTC (rev 3526)
+++ trunk/sources/nomenclature.cpp	2014-11-30 11:53:23 UTC (rev 3527)
@@ -81,7 +81,7 @@
 QString nomenclature::getNomenclature() {
 	//Process...
 	QString data = tr("NOMENCLATURE : ") + m_project -> title() + "\n\n";
-	data += tr("Folio") +";"+ tr("Sch\351ma") +";"+ tr("D\351signation")+";"+ tr("Label") +";"+ tr("Commentaire") +";"+ tr("Fabriquant") +";"+ tr("Reference") +";"+ tr("Machine-reference")+"\n";
+	data += tr("Folio") +";"+ tr("Sch\351ma") +";"+ tr("D\351signation qet")+";"+ tr("Label") +";"+ tr("D\351signation")+";"+ tr("Commentaire") +";"+ tr("Fabriquant") +";"+ tr("Reference") +";"+ tr("Machine-reference")+"\n";
 
 	if(m_list_diagram.isEmpty()) return data;
 
@@ -115,6 +115,7 @@
 	info += diagram -> title() + ";";
 	info += elmt -> name() + ";";
 	info += elmt_info["label"].toString() + ";";
+	info += elmt_info["designation"].toString() + ";";
 	info += elmt_info["comment"].toString() + ";";
 	info += elmt_info["manufacturer"].toString() + ";";
 	info += elmt_info["manufacturer-reference"].toString() + ";";

Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp	2014-11-28 21:41:16 UTC (rev 3526)
+++ trunk/sources/qetapp.cpp	2014-11-30 11:53:23 UTC (rev 3527)
@@ -346,6 +346,7 @@
 	QStringList info_list;
 	info_list << "label"
 			  << "comment"
+			  << "designation"
 			  << "manufacturer"
 			  << "manufacturer-reference"
 			  << "machine-manufacturer-reference";
@@ -362,6 +363,7 @@
 QString QETApp::elementTranslatedInfoKey(QString &info) {
 	if (info == "label") return tr("Label");
 	else if (info == "comment") return tr("Commentaire");
+	else if (info == "designation") return tr("D\351signation");
 	else if (info == "manufacturer") return tr("Fabriquant");
 	else if (info == "manufacturer-reference") return tr("R\351f\351rence fabriquant");
 	else if (info == "machine-manufacturer-reference") return tr("R\351f\351rence fabriquant machine");


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