Revampe nomenclature

Nomenclature is now totally revamped, user can define information to
export and the order of theme.
This commit is contained in:
joshua
2019-11-03 13:27:46 +01:00
parent 7d9b3d8c36
commit ff7eb4d11c
6 changed files with 1158 additions and 4 deletions

View File

@@ -55,6 +55,7 @@
#include <KAutoSaveFile>
#include "elementscollectionmodel.h"
#include "bomexportdialog.h"
/**
@@ -392,12 +393,11 @@ void QETDiagramEditor::setUpActions()
current_project->addNewDiagramFolioList();
}
});
//Export nomenclature to CSV
m_project_nomenclature = new QAction(QET::Icons::DocumentSpreadsheet, tr("Exporter une nomenclature"), this);
connect(m_project_nomenclature, &QAction::triggered, [this]() {
nomenclature nomencl(currentProjectView()->project(), this);
nomencl.saveToCSVFile();
BOMExportDialog bom(currentProjectView()->project(), this);
bom.exec();
});
//Lauch the plugin of terminal generator