mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
element information : add info 'designation'
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3527 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -81,7 +81,7 @@ 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("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;
|
if(m_list_diagram.isEmpty()) return data;
|
||||||
|
|
||||||
@@ -115,6 +115,7 @@ QString nomenclature::getElementInfo(const Element *elmt) {
|
|||||||
info += diagram -> title() + ";";
|
info += diagram -> title() + ";";
|
||||||
info += elmt -> name() + ";";
|
info += elmt -> name() + ";";
|
||||||
info += elmt_info["label"].toString() + ";";
|
info += elmt_info["label"].toString() + ";";
|
||||||
|
info += elmt_info["designation"].toString() + ";";
|
||||||
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() + ";";
|
||||||
|
|||||||
@@ -346,6 +346,7 @@ QStringList QETApp::elementInfoKeys() {
|
|||||||
QStringList info_list;
|
QStringList info_list;
|
||||||
info_list << "label"
|
info_list << "label"
|
||||||
<< "comment"
|
<< "comment"
|
||||||
|
<< "designation"
|
||||||
<< "manufacturer"
|
<< "manufacturer"
|
||||||
<< "manufacturer-reference"
|
<< "manufacturer-reference"
|
||||||
<< "machine-manufacturer-reference";
|
<< "machine-manufacturer-reference";
|
||||||
@@ -362,6 +363,7 @@ QStringList QETApp::elementInfoKeys() {
|
|||||||
QString QETApp::elementTranslatedInfoKey(QString &info) {
|
QString QETApp::elementTranslatedInfoKey(QString &info) {
|
||||||
if (info == "label") return tr("Label");
|
if (info == "label") return tr("Label");
|
||||||
else if (info == "comment") return tr("Commentaire");
|
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") return tr("Fabriquant");
|
||||||
else if (info == "manufacturer-reference") return tr("R\351f\351rence 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");
|
else if (info == "machine-manufacturer-reference") return tr("R\351f\351rence fabriquant machine");
|
||||||
|
|||||||
Reference in New Issue
Block a user