Nomenclature add field Auxiliary_x-contact-bloc

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4196 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2015-09-10 16:29:39 +00:00
parent 6b17088116
commit 0786d0cd24
2 changed files with 96 additions and 88 deletions

View File

@@ -90,6 +90,8 @@ QString nomenclature::getNomenclature() {
""+ tr("Commentaire") +";" ""+ tr("Commentaire") +";"
""+ tr("Fabricant") +";" ""+ tr("Fabricant") +";"
""+ tr("Reference") +";" ""+ tr("Reference") +";"
""+ tr("Bloc auxilliaire 1") +";"
""+ tr("Bloc auxilliaire 2") +";"
""+ tr("Machine-reference") +";" ""+ tr("Machine-reference") +";"
""+ tr("Localisation") +";" ""+ tr("Localisation") +";"
""+ tr("Fonction") +"\n"; ""+ tr("Fonction") +"\n";
@@ -132,6 +134,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["Auxiliary_1-contact-bloc"].toString() + ";";
info += elmt_info["Auxiliary_2-contact-bloc"].toString() + ";";
info += elmt_info["machine-manufacturer-reference"].toString() + ";"; info += elmt_info["machine-manufacturer-reference"].toString() + ";";
info += elmt_info["location"].toString() + ";"; info += elmt_info["location"].toString() + ";";
info += elmt_info["function"].toString() + "\n"; info += elmt_info["function"].toString() + "\n";

View File

@@ -118,7 +118,7 @@ QETApp::QETApp(int &argc, char **argv) :
// on ouvre soit les fichiers passes en parametre soit un nouvel editeur de projet // on ouvre soit les fichiers passes en parametre soit un nouvel editeur de projet
if (qet_arguments_.files().isEmpty()) { if (qet_arguments_.files().isEmpty()) {
setSplashScreenStep(tr("Chargement... Éditeur de schéma", "splash screen caption")); setSplashScreenStep(tr("Chargement... Éditeur de schéma", "splash screen caption"));
new QETDiagramEditor(); new QETDiagramEditor();
} else { } else {
setSplashScreenStep(tr("Chargement... Ouverture des fichiers", "splash screen caption")); setSplashScreenStep(tr("Chargement... Ouverture des fichiers", "splash screen caption"));
@@ -349,6 +349,8 @@ QStringList QETApp::elementInfoKeys() {
<< "designation" << "designation"
<< "manufacturer" << "manufacturer"
<< "manufacturer-reference" << "manufacturer-reference"
<< "Auxiliary_1-contact-bloc"
<< "Auxiliary_2-contact-bloc"
<< "machine-manufacturer-reference" << "machine-manufacturer-reference"
<< "location" << "location"
<< "function"; << "function";
@@ -368,6 +370,8 @@ QString QETApp::elementTranslatedInfoKey(QString &info) {
else if (info == "designation") return tr("Désignation"); else if (info == "designation") return tr("Désignation");
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 == "Auxiliary_1-contact-bloc") return tr("Bloc auxilliaire 1");
else if (info == "Auxiliary_2-contact-bloc") return tr("Bloc auxilliaire 2");
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"); else if (info == "location") return tr("Localisation");
else if (info == "function") return tr("Fonction"); else if (info == "function") return tr("Fonction");