mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Nomenclature export(all fields exported to csv) and Comment field(displayed on editor) handle position and folio variables
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4521 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -121,7 +121,7 @@ QString nomenclature::getNomenclature()
|
||||
* @param elmt : the element to getinfo
|
||||
* @return : QString with information about element formated to csv file
|
||||
*/
|
||||
QString nomenclature::getElementInfo(const Element *elmt) {
|
||||
QString nomenclature::getElementInfo(Element *elmt) {
|
||||
QString info;
|
||||
|
||||
Diagram *diagram = elmt -> diagram();
|
||||
@@ -132,16 +132,15 @@ QString nomenclature::getElementInfo(const Element *elmt) {
|
||||
info += diagram -> border_and_titleblock.folio() + ";";
|
||||
info += elmt -> name() + ";";
|
||||
info += elmt-> diagram()-> convertPosition(elmt -> scenePos()).toString() + ";";
|
||||
info += elmt_info["label"].toString() + ";";
|
||||
info += elmt_info["designation"].toString() + ";";
|
||||
info += elmt_info["comment"].toString() + ";";
|
||||
info += elmt_info["manufacturer"].toString() + ";";
|
||||
info += elmt_info["manufacturer-reference"].toString() + ";";
|
||||
info += elmt_info["auxiliary1"].toString() + ";";
|
||||
info += elmt_info["auxiliary2"].toString() + ";";
|
||||
info += elmt_info["machine-manufacturer-reference"].toString() + ";";
|
||||
info += elmt_info["location"].toString() + ";";
|
||||
info += elmt_info["function"].toString() + "\n";
|
||||
|
||||
info += elmt->assignVariables(elmt_info["label"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["designation"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["comment"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["manufacturer"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["manufacturer-reference"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["auxiliary1"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["auxiliary2"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["machine-manufacturer-reference"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["location"].toString(), elmt) + ";";
|
||||
info += elmt->assignVariables(elmt_info["function"].toString(), elmt) + "\n";
|
||||
return info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user