24 #define PR(x) qDebug() << #x " = " << x; 52 if (!name.endsWith(
".csv")) {
57 if( !filename.isEmpty() ) {
58 if(QFile::exists ( filename )){
60 if(!QFile::remove ( filename ) ){
62 QObject::tr(
"Impossible de remplacer le fichier!\n\n")+
63 "Destination : "+filename+
"\n");
67 if (file.open(QIODevice::WriteOnly | QIODevice::Text)){
68 QTextStream stream(&file);
137 QList <Element *> list_elements;
139 if (settings.value(
"nomenclature/terminal-exportlist",
true).toBool()){
150 foreach (
Element *elmt, list_elements) {
166 Diagram *diagram = elmt -> diagram();
170 info += QString::number(diagram -> folioIndex()+1) +
";";
171 info += diagram -> title() +
";";
173 info += elmt -> name() +
";";
174 info += elmt-> diagram()-> convertPosition(elmt -> scenePos()).toString() +
";";
QList< Element * > find(const int filter) const
ElementProvider::find Search and return the asked element corresponding with the given filter...
QList< Diagram * > m_list_diagram
static QString formulaToLabel(QString formula, sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
AssignVariables::formulaToLabel Return the with variable assigned (ready to be displayed) ...
QString getNomenclature()
nomenclature::getNomenclature Create and formated a nomenclature to csv file.
Diagram * diagram() const
QetGraphicsItem::diagram return the diagram of this item.
autonum::sequentialNumbers & rSequenceStruct()
nomenclature(QETProject *project, QWidget *parent=nullptr)
QList< Element * > freeElement(const int filter) const
ElementProvider::FreeElement Search and return the asked element corresponding with the given filter ...
QString getElementInfo(Element *elmt)
nomenclature::getElementInfo
BorderTitleBlock border_and_titleblock
Diagram dimensions and title block.
QMessageBox::StandardButton critical(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)