mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-29 23:40:51 +01:00
Wip Fix preprocessor on Cmake
This commit is contained in:
@@ -16,11 +16,12 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "projectdbmodel.h"
|
||||
|
||||
#include "../../qetapp.h"
|
||||
#include "../../qetinformation.h"
|
||||
#include "../../qetproject.h"
|
||||
#include "../../qetxml.h"
|
||||
#include "projectdatabase.h"
|
||||
#include "qetproject.h"
|
||||
#include "qetxml.h"
|
||||
#include "qetapp.h"
|
||||
#include "qetinformation.h"
|
||||
|
||||
#include <QSqlError>
|
||||
#include <QSqlRecord>
|
||||
|
||||
@@ -16,10 +16,11 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "qetgraphicsheaderitem.h"
|
||||
|
||||
#include "../../createdxf.h"
|
||||
#include "../../qetxml.h"
|
||||
#include "../../utils/qetutils.h"
|
||||
#include "qabstractitemmodel.h"
|
||||
#include "qetxml.h"
|
||||
#include "qetutils.h"
|
||||
#include "createdxf.h"
|
||||
|
||||
#include <QFontMetrics>
|
||||
#include <QPainter>
|
||||
|
||||
@@ -16,20 +16,21 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "qetgraphicstableitem.h"
|
||||
#include "diagram.h"
|
||||
#include "qetgraphicsheaderitem.h"
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "qetxml.h"
|
||||
#include "elementprovider.h"
|
||||
#include "qetutils.h"
|
||||
#include "projectdbmodel.h"
|
||||
|
||||
#include "../../QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "../../diagram.h"
|
||||
#include "../../qetxml.h"
|
||||
#include "../../utils/qetutils.h"
|
||||
#include "createdxf.h"
|
||||
#include "elementprovider.h"
|
||||
#include "projectdbmodel.h"
|
||||
#include "qetgraphicsheaderitem.h"
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QFontMetrics>
|
||||
#include <QPainter>
|
||||
#include <QGraphicsScene>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QPainter>
|
||||
|
||||
static int no_model_height = 20;
|
||||
static int no_model_width = 40;
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
#ifndef QetGraphicsTableItem_H
|
||||
#define QetGraphicsTableItem_H
|
||||
|
||||
#include <QFont>
|
||||
#include "../../QetGraphicsItemModeler/qetgraphicshandleritem.h"
|
||||
#include "../../qetapp.h"
|
||||
#include "../../qetgraphicsitem/qetgraphicsitem.h"
|
||||
|
||||
#include "qetgraphicsitem.h"
|
||||
#include "qetapp.h"
|
||||
#include "QetGraphicsItemModeler/qetgraphicshandleritem.h"
|
||||
#include <QFont>
|
||||
|
||||
class QAbstractItemModel;
|
||||
class QetGraphicsHeaderItem;
|
||||
|
||||
@@ -16,15 +16,16 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "graphicstablepropertieseditor.h"
|
||||
#include "ui_graphicstablepropertieseditor.h"
|
||||
#include "qetgraphicstableitem.h"
|
||||
#include "qetgraphicsheaderitem.h"
|
||||
#include "diagram.h"
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
|
||||
#include "../../../QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "../../../diagram.h"
|
||||
#include "../../../elementprovider.h"
|
||||
#include "../../../utils/qetutils.h"
|
||||
#include "../qetgraphicsheaderitem.h"
|
||||
#include "../qetgraphicstableitem.h"
|
||||
#include "itemmodelcommand.h"
|
||||
#include "propertieseditorfactory.h"
|
||||
#include "elementprovider.h"
|
||||
#include "qetutils.h"
|
||||
#include "ui_graphicstablepropertieseditor.h"
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QFontDialog>
|
||||
|
||||
@@ -16,11 +16,12 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "projectdbmodelpropertieswidget.h"
|
||||
|
||||
#include "../../../dataBase/ui/elementquerywidget.h"
|
||||
#include "../../../dataBase/ui/summaryquerywidget.h"
|
||||
#include "../../../qetproject.h"
|
||||
#include "../projectdbmodel.h"
|
||||
#include "ui_projectdbmodelpropertieswidget.h"
|
||||
#include "projectdbmodel.h"
|
||||
#include "qetproject.h"
|
||||
#include "elementquerywidget.h"
|
||||
#include "summaryquerywidget.h"
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
|
||||
|
||||
@@ -15,22 +15,23 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <QtDebug>
|
||||
#include <QMultiHash>
|
||||
#include "../qetgraphicsitem/conductor.h"
|
||||
|
||||
#include "conductor.h"
|
||||
#include "../autoNum/numerotationcontextcommands.h"
|
||||
#include "../diagram.h"
|
||||
#include "../qetgraphicsitem/terminal.h"
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "conductorautonumerotation.h"
|
||||
#include "conductorpropertiesdialog.h"
|
||||
#include "conductorsegment.h"
|
||||
#include "conductorsegmentprofile.h"
|
||||
#include "conductortextitem.h"
|
||||
#include "element.h"
|
||||
#include "diagram.h"
|
||||
#include "diagramcommands.h"
|
||||
#include "element.h"
|
||||
#include "qetdiagrameditor.h"
|
||||
#include "terminal.h"
|
||||
#include "conductorautonumerotation.h"
|
||||
#include "conductorpropertiesdialog.h"
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "numerotationcontextcommands.h"
|
||||
|
||||
#include <QMultiHash>
|
||||
#include <QtDebug>
|
||||
|
||||
#define PR(x) qDebug() << #x " = " << x;
|
||||
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
*/
|
||||
#ifndef CONDUCTOR_H
|
||||
#define CONDUCTOR_H
|
||||
#include "../autoNum/assignvariables.h"
|
||||
#include "../conductorproperties.h"
|
||||
|
||||
#include "conductorproperties.h"
|
||||
#include <QGraphicsPathItem>
|
||||
#include "assignvariables.h"
|
||||
|
||||
class ConductorProfile;
|
||||
class ConductorSegmentProfile;
|
||||
|
||||
@@ -16,9 +16,10 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "conductortextitem.h"
|
||||
#include "conductor.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
#include "../qetgraphicsitem/conductor.h"
|
||||
#include "diagramcommands.h"
|
||||
#include "diagram.h"
|
||||
|
||||
/**
|
||||
Constructeur
|
||||
|
||||
@@ -16,14 +16,15 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "crossrefitem.h"
|
||||
#include "element.h"
|
||||
#include "qetapp.h"
|
||||
#include "diagramposition.h"
|
||||
#include "diagram.h"
|
||||
#include "qgraphicsitemutility.h"
|
||||
#include "assignvariables.h"
|
||||
|
||||
#include "../autoNum/assignvariables.h"
|
||||
#include "../diagram.h"
|
||||
#include "../diagramposition.h"
|
||||
#include "../qetapp.h"
|
||||
#include "dynamicelementtextitem.h"
|
||||
#include "element.h"
|
||||
#include "elementtextitemgroup.h"
|
||||
#include "qgraphicsitemutility.h"
|
||||
|
||||
//define the height of the header.
|
||||
static int header = 5;
|
||||
|
||||
@@ -16,8 +16,9 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "diagramimageitem.h"
|
||||
#include "diagram.h"
|
||||
#include "PropertiesEditor/propertieseditordialog.h"
|
||||
|
||||
#include "../PropertiesEditor/propertieseditordialog.h"
|
||||
#include "../diagram.h"
|
||||
#include "imagepropertieswidget.h"
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,10 +16,11 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "diagramtextitem.h"
|
||||
#include "diagramcommands.h"
|
||||
#include "qetapp.h"
|
||||
#include "richtext/richtexteditor_p.h"
|
||||
#include "diagram.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
#include "../diagramcommands.h"
|
||||
#include "../qetapp.h"
|
||||
#include "../richtext/richtexteditor_p.h"
|
||||
|
||||
/**
|
||||
@brief DiagramTextItem::DiagramTextItem
|
||||
|
||||
@@ -16,15 +16,16 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "dynamicelementtextitem.h"
|
||||
#include "element.h"
|
||||
#include "qetapp.h"
|
||||
#include "diagram.h"
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "terminal.h"
|
||||
#include "conductor.h"
|
||||
#include "elementtextitemgroup.h"
|
||||
|
||||
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "../diagram.h"
|
||||
#include "../qetapp.h"
|
||||
#include "../qetgraphicsitem/conductor.h"
|
||||
#include "../qetgraphicsitem/terminal.h"
|
||||
#include "../qetinformation.h"
|
||||
#include "crossrefitem.h"
|
||||
#include "qetinformation.h"
|
||||
#include "element.h"
|
||||
#include "elementtextitemgroup.h"
|
||||
|
||||
#include <QDomDocument>
|
||||
#include <QDomElement>
|
||||
|
||||
@@ -18,11 +18,12 @@
|
||||
#ifndef DYNAMICELEMENTTEXTITEM_H
|
||||
#define DYNAMICELEMENTTEXTITEM_H
|
||||
|
||||
#include "../properties/xrefproperties.h"
|
||||
#include "diagramtextitem.h"
|
||||
#include "xrefproperties.h"
|
||||
#include "element.h"
|
||||
#include <QUuid>
|
||||
|
||||
#include <QPointer>
|
||||
#include <QUuid>
|
||||
|
||||
class Element;
|
||||
class Conductor;
|
||||
|
||||
@@ -16,24 +16,26 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "element.h"
|
||||
#include "diagram.h"
|
||||
#include "conductor.h"
|
||||
#include "diagramcommands.h"
|
||||
#include <utility>
|
||||
#include "elementprovider.h"
|
||||
#include "diagramposition.h"
|
||||
#include "terminal.h"
|
||||
#include "terminaldata.h"
|
||||
#include "PropertiesEditor/propertieseditordialog.h"
|
||||
#include "elementpropertieswidget.h"
|
||||
#include "numerotationcontextcommands.h"
|
||||
#include "diagramcontext.h"
|
||||
#include "changeelementinformationcommand.h"
|
||||
|
||||
#include "../PropertiesEditor/propertieseditordialog.h"
|
||||
#include "../diagram.h"
|
||||
#include "../diagramcommands.h"
|
||||
#include "../diagramcontext.h"
|
||||
#include "../diagramposition.h"
|
||||
#include "../elementpicturefactory.h"
|
||||
#include "../elementpropertieswidget.h"
|
||||
#include "../elementprovider.h"
|
||||
#include "../numerotationcontextcommands.h"
|
||||
#include "../properties/terminaldata.h"
|
||||
#include "../qetgraphicsitem/conductor.h"
|
||||
#include "../qetgraphicsitem/terminal.h"
|
||||
#include "../undocommand/changeelementinformationcommand.h"
|
||||
#include "dynamicelementtextitem.h"
|
||||
#include "elementtextitemgroup.h"
|
||||
#include "elementpicturefactory.h"
|
||||
#include "iostream"
|
||||
|
||||
#include <QDomElement>
|
||||
#include <utility>
|
||||
|
||||
class ElementXmlRetroCompatibility
|
||||
{
|
||||
|
||||
@@ -18,16 +18,16 @@
|
||||
#ifndef ELEMENT_H
|
||||
#define ELEMENT_H
|
||||
|
||||
#include <algorithm>
|
||||
#include <QPicture>
|
||||
#include <QHash>
|
||||
|
||||
#include "qet.h"
|
||||
#include "../ElementsCollection/elementslocation.h"
|
||||
#include "../NameList/nameslist.h"
|
||||
#include "../autoNum/assignvariables.h"
|
||||
#include "../diagramcontext.h"
|
||||
#include "../qet.h"
|
||||
#include "qetgraphicsitem.h"
|
||||
#include "diagramcontext.h"
|
||||
#include "assignvariables.h"
|
||||
#include "elementslocation.h"
|
||||
#include "nameslist.h"
|
||||
|
||||
#include <QHash>
|
||||
#include <QPicture>
|
||||
#include <algorithm>
|
||||
|
||||
class QETProject;
|
||||
class Terminal;
|
||||
|
||||
@@ -16,18 +16,19 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "elementtextitemgroup.h"
|
||||
|
||||
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "../diagram.h"
|
||||
#include "../qetapp.h"
|
||||
#include "../undocommand/addelementtextcommand.h"
|
||||
#include "crossrefitem.h"
|
||||
#include "dynamicelementtextitem.h"
|
||||
#include "element.h"
|
||||
#include "diagram.h"
|
||||
#include "addelementtextcommand.h"
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "crossrefitem.h"
|
||||
#include "qetapp.h"
|
||||
#include "masterelement.h"
|
||||
#include "qgraphicsitemutility.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QPainter>
|
||||
#include <utility>
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,10 +16,11 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "independenttextitem.h"
|
||||
#include "qet.h"
|
||||
#include "diagram.h"
|
||||
#include "diagramcommands.h"
|
||||
#include "qetapp.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
#include "../diagramcommands.h"
|
||||
#include "../qet.h"
|
||||
#include "../qetapp.h"
|
||||
|
||||
#include <QDomElement>
|
||||
#include <QSettings>
|
||||
|
||||
@@ -16,9 +16,11 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "masterelement.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
#include "crossrefitem.h"
|
||||
#include "diagram.h"
|
||||
#include "dynamicelementtextitem.h"
|
||||
|
||||
#include <QRegularExpression>
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "qetgraphicsitem.h"
|
||||
#include "diagram.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
|
||||
/**
|
||||
@brief QetGraphicsItem::QetGraphicsItem
|
||||
|
||||
@@ -18,8 +18,9 @@
|
||||
#ifndef QETGRAPHICSITEM_H
|
||||
#define QETGRAPHICSITEM_H
|
||||
|
||||
#include "../qet.h"
|
||||
|
||||
#include <QGraphicsObject>
|
||||
#include "qet.h"
|
||||
|
||||
class Diagram;
|
||||
|
||||
|
||||
@@ -16,16 +16,17 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "qetshapeitem.h"
|
||||
#include "createdxf.h"
|
||||
#include "diagram.h"
|
||||
#include "qet.h"
|
||||
#include "shapegraphicsitempropertieswidget.h"
|
||||
#include "PropertiesEditor/propertieseditordialog.h"
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "QetGraphicsItemModeler/qetgraphicshandlerutility.h"
|
||||
#include "qetxml.h"
|
||||
#include "diagramview.h"
|
||||
#include "qeticons.h"
|
||||
|
||||
#include "../PropertiesEditor/propertieseditordialog.h"
|
||||
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "../QetGraphicsItemModeler/qetgraphicshandlerutility.h"
|
||||
#include "../createdxf.h"
|
||||
#include "../diagram.h"
|
||||
#include "../diagramview.h"
|
||||
#include "../qet.h"
|
||||
#include "../qeticons.h"
|
||||
#include "../qetxml.h"
|
||||
#include "../shapegraphicsitempropertieswidget.h"
|
||||
|
||||
/**
|
||||
@brief QetShapeItem::QetShapeItem
|
||||
|
||||
@@ -18,9 +18,10 @@
|
||||
#ifndef QETSHAPEITEM_H
|
||||
#define QETSHAPEITEM_H
|
||||
|
||||
#include <QPen>
|
||||
#include "../QetGraphicsItemModeler/qetgraphicshandleritem.h"
|
||||
#include "qetgraphicsitem.h"
|
||||
#include "QetGraphicsItemModeler/qetgraphicshandleritem.h"
|
||||
|
||||
#include <QPen>
|
||||
|
||||
class QDomElement;
|
||||
class QDomDocument;
|
||||
|
||||
@@ -16,10 +16,12 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "qgraphicsitemutility.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
#include "element.h"
|
||||
#include "diagram.h"
|
||||
#include <QGraphicsItem>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QGraphicsItem>
|
||||
|
||||
/**
|
||||
@brief centerToParentBottom
|
||||
|
||||
@@ -16,11 +16,12 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "reportelement.h"
|
||||
#include "diagramposition.h"
|
||||
#include "qetproject.h"
|
||||
#include "diagram.h"
|
||||
#include "terminal.h"
|
||||
#include "conductor.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
#include "../diagramposition.h"
|
||||
#include "../qetgraphicsitem/conductor.h"
|
||||
#include "../qetgraphicsitem/terminal.h"
|
||||
#include "../qetproject.h"
|
||||
#include "dynamicelementtextitem.h"
|
||||
|
||||
ReportElement::ReportElement(const ElementsLocation &location, const QString& link_type,QGraphicsItem *qgi, int *state) :
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "simpleelement.h"
|
||||
#include "diagram.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
|
||||
/**
|
||||
@brief SimpleElement::SimpleElement
|
||||
|
||||
@@ -16,9 +16,10 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "slaveelement.h"
|
||||
#include "diagramposition.h"
|
||||
#include "qetapp.h"
|
||||
#include "diagram.h"
|
||||
|
||||
#include "../diagram.h"
|
||||
#include "../diagramposition.h"
|
||||
#include "../qetapp.h"
|
||||
#include "dynamicelementtextitem.h"
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,17 +15,18 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "terminal.h"
|
||||
#include "../qetgraphicsitem/terminal.h"
|
||||
|
||||
#include <utility>
|
||||
#include "diagram.h"
|
||||
#include "qetgraphicsitem/element.h"
|
||||
#include "qetgraphicsitem/conductor.h"
|
||||
#include "diagramcommands.h"
|
||||
#include "conductorautonumerotation.h"
|
||||
#include "../conductorautonumerotation.h"
|
||||
#include "../diagram.h"
|
||||
#include "../diagramcommands.h"
|
||||
#include "../qetgraphicsitem/conductor.h"
|
||||
#include "../qetgraphicsitem/element.h"
|
||||
#include "conductortextitem.h"
|
||||
#include "terminaldata.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
QColor Terminal::neutralColor = QColor(Qt::blue);
|
||||
QColor Terminal::allowedColor = QColor(Qt::darkGreen);
|
||||
QColor Terminal::warningColor = QColor("#ff8000");
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
*/
|
||||
#ifndef TERMINAL_H
|
||||
#define TERMINAL_H
|
||||
#include "../qet.h"
|
||||
|
||||
#include <QtWidgets>
|
||||
#include <QtXml>
|
||||
#include "qet.h"
|
||||
class Conductor;
|
||||
class Diagram;
|
||||
class Element;
|
||||
|
||||
Reference in New Issue
Block a user