Mod Cmake en preprocessor

This commit is contained in:
Simon De Backer
2020-12-09 15:28:43 +01:00
parent 4de9c1d922
commit d0c129478e
78 changed files with 589 additions and 327 deletions

View File

@@ -16,10 +16,11 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "arceditor.h"
#include "styleeditor.h"
#include "partarc.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "elementscene.h"
#include "partarc.h"
#include "styleeditor.h"
/**
Constructeur

View File

@@ -17,11 +17,11 @@
*/
#ifndef EDITOR_COMMANDS_H
#define EDITOR_COMMANDS_H
#include "../qgimanager.h"
#include "customelementpart.h"
#include "elementview.h"
#include "elementscene.h"
#include "elementcontent.h"
#include "qgimanager.h"
#include "elementscene.h"
#include "elementview.h"
/**
@brief The ElementEditionCommand class

View File

@@ -16,15 +16,17 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "elementprimitivedecorator.h"
#include "elementscene.h"
#include "../QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "../qet.h"
#include "customelementpart.h"
#include "editorcommands.h"
#include "qet.h"
#include <QPainter>
#include <QGraphicsSceneHoverEvent>
#include <QStyleOptionGraphicsItem>
#include "elementscene.h"
#include <QGraphicsScene>
#include "QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include <QGraphicsSceneHoverEvent>
#include <QPainter>
#include <QStyleOptionGraphicsItem>
/**
Constructor

View File

@@ -18,8 +18,9 @@
#ifndef ELEMENTPRIMITIVEDECORATOR_H
#define ELEMENTPRIMITIVEDECORATOR_H
#include "../qet.h"
#include <QGraphicsObject>
#include "qet.h"
class ElementEditionCommand;
class ElementScene;

View File

@@ -16,9 +16,10 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "elementview.h"
#include "qetelementeditor.h"
#include "qetapp.h"
#include "../qetapp.h"
#include "pastepartscommand.h"
#include "qetelementeditor.h"
/**
Constructeur
@param scene ElementScene visualisee par cette ElementView

View File

@@ -16,8 +16,9 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "customelementgraphicpart.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "elementscene.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include <QRegularExpression>

View File

@@ -18,7 +18,7 @@
#ifndef CUSTOM_ELEMENT_PART_H
#define CUSTOM_ELEMENT_PART_H
#include "qet.h"
#include "../qet.h"
class CustomElement;
class ElementPrimitiveDecorator;

View File

@@ -16,11 +16,11 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "partarc.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "elementscene.h"
#include "QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "QetGraphicsItemModeler/qetgraphicshandlerutility.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "../QetGraphicsItemModeler/qetgraphicshandlerutility.h"
#include "elementscene.h"
/**
@brief PartArc::PartArc

View File

@@ -16,13 +16,14 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "partdynamictextfield.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "qetapp.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../qetapp.h"
#include "elementscene.h"
#include <QGraphicsSceneMouseEvent>
#include <QFont>
#include <QColor>
#include <QFont>
#include <QGraphicsSceneMouseEvent>
PartDynamicTextField::PartDynamicTextField(QETElementEditor *editor, QGraphicsItem *parent) :
QGraphicsTextItem(parent),

View File

@@ -16,10 +16,11 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "partellipse.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "../QetGraphicsItemModeler/qetgraphicshandlerutility.h"
#include "elementscene.h"
#include "QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "QetGraphicsItemModeler/qetgraphicshandlerutility.h"
/**
@brief PartEllipse::PartEllipse

View File

@@ -16,11 +16,12 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "partline.h"
#include <cmath>
#include "elementscene.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "elementscene.h"
#include <cmath>
/**
@brief PartLine::PartLine

View File

@@ -18,8 +18,8 @@
#ifndef PART_LINE_H
#define PART_LINE_H
#include "../qet.h"
#include "customelementgraphicpart.h"
#include "qet.h"
class QPropertyUndoCommand;
class QetGraphicsHandlerItem;

View File

@@ -16,13 +16,13 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "partpolygon.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "elementscene.h"
#include "QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "qetelementeditor.h"
#include "qeticons.h"
#include "QetGraphicsItemModeler/qetgraphicshandlerutility.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "../QetGraphicsItemModeler/qetgraphicshandlerutility.h"
#include "../qeticons.h"
#include "elementscene.h"
#include "qetelementeditor.h"
/**
@brief PartPolygon::PartPolygon

View File

@@ -16,10 +16,11 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "partrectangle.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "../QetGraphicsItemModeler/qetgraphicshandlerutility.h"
#include "elementscene.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "QetGraphicsItemModeler/qetgraphicshandleritem.h"
#include "QetGraphicsItemModeler/qetgraphicshandlerutility.h"
/**
@brief PartRectangle::PartRectangle

View File

@@ -16,11 +16,12 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "parttext.h"
#include "texteditor.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../qetapp.h"
#include "elementprimitivedecorator.h"
#include "elementscene.h"
#include "qetapp.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "texteditor.h"
/**
Constructeur

View File

@@ -17,9 +17,10 @@
*/
#ifndef PART_TEXT_H
#define PART_TEXT_H
#include <QtWidgets>
#include "../qetapp.h"
#include "customelementpart.h"
#include "qetapp.h"
#include <QtWidgets>
class TextEditor;
class ElementPrimitiveDecorator;

View File

@@ -16,18 +16,19 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "qetelementeditor.h"
#include "qet.h"
#include "qetapp.h"
#include "../elementdialog.h"
#include "../newelementwizard.h"
#include "../qet.h"
#include "../qetapp.h"
#include "../qeticons.h"
#include "../qetmessagebox.h"
#include "../recentfiles.h"
#include "customelementpart.h"
#include "editorcommands.h"
#include "elementitemeditor.h"
#include "elementscene.h"
#include "elementview.h"
#include "customelementpart.h"
#include "newelementwizard.h"
#include "elementitemeditor.h"
#include "elementdialog.h"
#include "recentfiles.h"
#include "qeticons.h"
#include "qetmessagebox.h"
#include "editorcommands.h"
// editeurs de primitives
#include "arceditor.h"

View File

@@ -16,13 +16,15 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "styleeditor.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../qeticons.h"
#include "customelementgraphicpart.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "qeticons.h"
#include <QComboBox>
#include <QCheckBox>
#include <QVBoxLayout>
#include <QComboBox>
#include <QLabel>
#include <QVBoxLayout>
/**
Constructeur

View File

@@ -16,14 +16,16 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "terminaleditor.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../qeticons.h"
#include "partterminal.h"
#include "qeticons.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include <QDoubleSpinBox>
#include <QComboBox>
#include <QVBoxLayout>
#include <QDoubleSpinBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QVBoxLayout>
/**
@brief TerminalEditor::TerminalEditor

View File

@@ -16,20 +16,21 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "dynamictextfieldeditor.h"
#include "ui_dynamictextfieldeditor.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../qetapp.h"
#include "../qetinformation.h"
#include "alignmenttextdialog.h"
#include "compositetexteditdialog.h"
#include "customelementpart.h"
#include "partdynamictextfield.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "qetelementeditor.h"
#include "qetapp.h"
#include "compositetexteditdialog.h"
#include "alignmenttextdialog.h"
#include "qetinformation.h"
#include <assert.h>
#include "ui_dynamictextfieldeditor.h"
#include <QPointer>
#include <QGraphicsItem>
#include <QColorDialog>
#include <QGraphicsItem>
#include <QPointer>
#include <assert.h>
DynamicTextFieldEditor::DynamicTextFieldEditor(
QETElementEditor *editor, PartDynamicTextField *text_field, QWidget *parent) :

View File

@@ -16,9 +16,10 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "elementpropertieseditorwidget.h"
#include "../qetapp.h"
#include "../qetinformation.h"
#include "ui_elementpropertieseditorwidget.h"
#include "qetapp.h"
#include "qetinformation.h"
#include <QItemDelegate>

View File

@@ -18,9 +18,10 @@
#ifndef ELEMENTPROPERTIESEDITORWIDGET_H
#define ELEMENTPROPERTIESEDITORWIDGET_H
#include <QDialog>
#include "../diagramcontext.h"
#include <QAbstractButton>
#include "diagramcontext.h"
#include <QDialog>
namespace Ui {
class ElementPropertiesEditorWidget;

View File

@@ -16,11 +16,12 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "ellipseeditor.h"
#include "ui_ellipseeditor.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "elementscene.h"
#include "partellipse.h"
#include "styleeditor.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "elementscene.h"
#include "ui_ellipseeditor.h"
/**
* @brief EllipseEditor::EllipseEditor

View File

@@ -16,13 +16,14 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "lineeditor.h"
#include "ui_lineeditor.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../qeticons.h"
#include "elementitemeditor.h"
#include "styleeditor.h"
#include "partline.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "elementscene.h"
#include "qeticons.h"
#include "partline.h"
#include "styleeditor.h"
#include "ui_lineeditor.h"
/**
@brief LineEditor::LineEditor

View File

@@ -16,12 +16,13 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "polygoneditor.h"
#include "ui_polygoneditor.h"
#include "partpolygon.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../qetmessagebox.h"
#include "elementscene.h"
#include "qetmessagebox.h"
#include "partpolygon.h"
#include "styleeditor.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "ui_polygoneditor.h"
/**
@brief PolygonEditor::PolygonEditor

View File

@@ -16,12 +16,13 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "rectangleeditor.h"
#include "ui_rectangleeditor.h"
#include "styleeditor.h"
#include "partrectangle.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../qeticons.h"
#include "elementscene.h"
#include "qeticons.h"
#include "partrectangle.h"
#include "styleeditor.h"
#include "ui_rectangleeditor.h"
/**
@brief RectangleEditor::RectangleEditor

View File

@@ -16,9 +16,11 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "texteditor.h"
#include "ui_texteditor.h"
#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "parttext.h"
#include "QPropertyUndoCommand/qpropertyundocommand.h"
#include "ui_texteditor.h"
#include <cassert>
/**