1 /* 2 Copyright 2006-2019 The QElectroTech Team 3 This file is part of QElectroTech. 4 5 QElectroTech is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 2 of the License, or 8 (at your option) any later version. 9 10 QElectroTech is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 #ifndef NOMENCLATURE_H 19 #define NOMENCLATURE_H 20 21 #include <QtWidgets> 22 23 #include "qetproject.h" 24 #include "diagram.h" 25 #include "qetgraphicsitem/element.h" 26 #include "diagramcontent.h" 27 #include "diagramposition.h" 28 29 class QETProject; 30 class Diagram; 31 class Element; 32 33 /** 34 This class represents a nomenclature... 35 */ 36 class nomenclature 37 { 38 private: 39 QETProject *m_project; 40 QList<Diagram *> m_list_diagram; 41 QWidget *m_parent; 42 43 // constructors, destructor 44 public: 45 nomenclature(QETProject *project, QWidget *parent =nullptr); 46 virtual ~nomenclature(); 47 48 // attributes 49 public: 50 51 // methods 52 public: 53 bool saveToCSVFile(); 54 55 56 private: 57 QString getNomenclature (); 58 QString getElementInfo (Element *elmt); 59 60 }; 61 62 #endif 63 64