mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-08 17:39:58 +02:00
Nomenclature
Added elementInformations: label, comment, manufacturer, manufacturer-reference, machine-manufacturer-reference to list git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3342 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -50,7 +50,7 @@ bool nomenclature::saveToCSVFile() {
|
|||||||
|
|
||||||
//Process...
|
//Process...
|
||||||
QString data = tr("NOMENCLATURE : ") + m_project -> title() + "\n\n";
|
QString data = tr("NOMENCLATURE : ") + m_project -> title() + "\n\n";
|
||||||
data += tr("Ref") +";"+ tr("Folio") +";"+ tr("Sch\351ma") +";"+ tr("D\351signation\n");
|
data += tr("Ref") +";"+ tr("Folio") +";"+ tr("Sch\351ma") +";"+ tr("D\351signation")+";"+ tr("Label") +";"+ tr("Commententaire") +";"+ tr("Fabriquant") +";"+ tr("Reference") +";"+ tr("Machine-reference\n");
|
||||||
QStringList rows;
|
QStringList rows;
|
||||||
for(int i=0; i<m_list_diagram.count(); i++){
|
for(int i=0; i<m_list_diagram.count(); i++){
|
||||||
rows = getRows(m_list_diagram.at(i));
|
rows = getRows(m_list_diagram.at(i));
|
||||||
@@ -100,7 +100,12 @@ QStringList nomenclature::getRows(Diagram *schema) {
|
|||||||
row += QString::number(0) + ";";
|
row += QString::number(0) + ";";
|
||||||
row += QString::number(0) + ";";
|
row += QString::number(0) + ";";
|
||||||
row += schema->title() + ";";
|
row += schema->title() + ";";
|
||||||
row += elements_list.at(j)->name() + "\n";
|
row += elements_list.at(j)->name() + ";";
|
||||||
|
row += elements_list.at(j)->elementInformations()["label"].toString() + ";";
|
||||||
|
row += elements_list.at(j)->elementInformations()["comment"].toString() + ";";
|
||||||
|
row += elements_list.at(j)->elementInformations()["manufacturer"].toString() + ";";
|
||||||
|
row += elements_list.at(j)->elementInformations()["manufacturer-reference"].toString() + ";";
|
||||||
|
row += elements_list.at(j)->elementInformations()["machine-manufacturer-reference"].toString() + "\n";
|
||||||
list << row;
|
list << row;
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
|
|||||||
Reference in New Issue
Block a user