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:
scorpio810
2015-04-29 14:27:31 +00:00
parent 8a39d1b038
commit f62e3cb994
2 changed files with 16 additions and 3 deletions

View File

@@ -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;
}