mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Nomenclature add field "Location"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3887 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -81,7 +81,8 @@ bool nomenclature::saveToCSVFile() {
|
|||||||
QString nomenclature::getNomenclature() {
|
QString nomenclature::getNomenclature() {
|
||||||
//Process...
|
//Process...
|
||||||
QString data = tr("NOMENCLATURE : ") + m_project -> title() + "\n\n";
|
QString data = tr("NOMENCLATURE : ") + m_project -> title() + "\n\n";
|
||||||
data += tr("N° de folio") +";"+ tr("Titre de folio") +";"+ tr("Désignation qet")+";"+ tr("Label") +";"+ tr("Désignation")+";"+ tr("Commentaire") +";"+ tr("Fabricant") +";"+ tr("Reference") +";"+ tr("Machine-reference")+"\n";
|
data += tr("N° de folio") +";"+ tr("Titre de folio") +";"+ tr("Désignation qet")+";"+ tr("Label") +";"+ tr("Désignation")+";"+ tr("Commentaire") +";"+ tr("Fabricant") +";"+ tr("Reference") +";"+ tr("Machine-reference") +";"+tr("Localisation")+"\n";
|
||||||
|
|
||||||
|
|
||||||
if(m_list_diagram.isEmpty()) return data;
|
if(m_list_diagram.isEmpty()) return data;
|
||||||
|
|
||||||
@@ -119,7 +120,8 @@ QString nomenclature::getElementInfo(const Element *elmt) {
|
|||||||
info += elmt_info["comment"].toString() + ";";
|
info += elmt_info["comment"].toString() + ";";
|
||||||
info += elmt_info["manufacturer"].toString() + ";";
|
info += elmt_info["manufacturer"].toString() + ";";
|
||||||
info += elmt_info["manufacturer-reference"].toString() + ";";
|
info += elmt_info["manufacturer-reference"].toString() + ";";
|
||||||
info += elmt_info["machine-manufacturer-reference"].toString() + "\n";
|
info += elmt_info["machine-manufacturer-reference"].toString() + ";";
|
||||||
|
info += elmt_info["location"].toString() + "\n";
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -349,7 +349,8 @@ QStringList QETApp::elementInfoKeys() {
|
|||||||
<< "designation"
|
<< "designation"
|
||||||
<< "manufacturer"
|
<< "manufacturer"
|
||||||
<< "manufacturer-reference"
|
<< "manufacturer-reference"
|
||||||
<< "machine-manufacturer-reference";
|
<< "machine-manufacturer-reference"
|
||||||
|
<< "location";
|
||||||
return info_list;
|
return info_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -367,6 +368,7 @@ QString QETApp::elementTranslatedInfoKey(QString &info) {
|
|||||||
else if (info == "manufacturer") return tr("Fabricant");
|
else if (info == "manufacturer") return tr("Fabricant");
|
||||||
else if (info == "manufacturer-reference") return tr("Référence fabricant");
|
else if (info == "manufacturer-reference") return tr("Référence fabricant");
|
||||||
else if (info == "machine-manufacturer-reference") return tr("Référence fabricant machine");
|
else if (info == "machine-manufacturer-reference") return tr("Référence fabricant machine");
|
||||||
|
else if (info == "location") return tr("Localisation");
|
||||||
return (info);
|
return (info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user