mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Nomenclature add field "Function"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3923 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -81,7 +81,17 @@ bool nomenclature::saveToCSVFile() {
|
||||
QString nomenclature::getNomenclature() {
|
||||
//Process...
|
||||
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") +";"+tr("Localisation")+"\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") +";"
|
||||
""+ tr("Fonction") +"\n";
|
||||
|
||||
|
||||
if(m_list_diagram.isEmpty()) return data;
|
||||
@@ -121,7 +131,8 @@ QString nomenclature::getElementInfo(const Element *elmt) {
|
||||
info += elmt_info["manufacturer"].toString() + ";";
|
||||
info += elmt_info["manufacturer-reference"].toString() + ";";
|
||||
info += elmt_info["machine-manufacturer-reference"].toString() + ";";
|
||||
info += elmt_info["location"].toString() + "\n";
|
||||
info += elmt_info["location"].toString() + ";";
|
||||
info += elmt_info["function"].toString() + "\n";
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
@@ -350,7 +350,8 @@ QStringList QETApp::elementInfoKeys() {
|
||||
<< "manufacturer"
|
||||
<< "manufacturer-reference"
|
||||
<< "machine-manufacturer-reference"
|
||||
<< "location";
|
||||
<< "location"
|
||||
<< "function";
|
||||
return info_list;
|
||||
}
|
||||
|
||||
@@ -369,6 +370,7 @@ QString QETApp::elementTranslatedInfoKey(QString &info) {
|
||||
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 == "location") return tr("Localisation");
|
||||
else if (info == "function") return tr("Fonction");
|
||||
return (info);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user