Commit 0cab41cc authored by Martin Schultz's avatar Martin Schultz

reduced includes by means of static code analysis

parent 1fa58df5
...@@ -49,15 +49,12 @@ ...@@ -49,15 +49,12 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton> #include <QPushButton>
#include <QDialog> #include <QDialog>
#include <QTextEdit> #include <QTextEdit>
#include <QFileDialog> #include <QFileDialog>
#include <QMenu> #include <QMenu>
#include <QAction>
#include <QMenuBar> #include <QMenuBar>
#include <QIcon>
#include <QMessageBox> #include <QMessageBox>
#include <QApplication> #include <QApplication>
...@@ -65,11 +62,9 @@ ...@@ -65,11 +62,9 @@
#include <QScriptEngine> #include <QScriptEngine>
#include <QDomDocument> #include <QDomDocument>
#include <QDomElement>
#include <QXmlQuery> #include <QXmlQuery>
#include <QXmlResultItems> #include <QXmlResultItems>
#include <QRegExp>
#include <OpenFlipper/common/GlobalOptions.hh> #include <OpenFlipper/common/GlobalOptions.hh>
...@@ -78,7 +73,6 @@ ...@@ -78,7 +73,6 @@
#include "scene/sceneElement.hh" #include "scene/sceneElement.hh"
#include "parser/context.hh" #include "parser/context.hh"
#include "parser/element.hh"
//== NAMESPACES =============================================================== //== NAMESPACES ===============================================================
namespace VSI { namespace VSI {
......
...@@ -50,8 +50,6 @@ ...@@ -50,8 +50,6 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QPushButton> #include <QPushButton>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QScrollArea> #include <QScrollArea>
#include <QLineEdit> #include <QLineEdit>
#include <QLabel> #include <QLabel>
......
...@@ -49,12 +49,10 @@ ...@@ -49,12 +49,10 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QHBoxLayout>
#include <QFrame> #include <QFrame>
#include "../scene/elementInput.hh" #include "../scene/elementInput.hh"
#include "../parser/type.hh" #include "../parser/type.hh"
#include "../parser/inout.hh"
#include "../parser/element.hh" #include "../parser/element.hh"
#include "../parser/context.hh" #include "../parser/context.hh"
......
...@@ -50,8 +50,6 @@ ...@@ -50,8 +50,6 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QPushButton> #include <QPushButton>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QScrollArea> #include <QScrollArea>
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#include "../scene/elementInput.hh" #include "../scene/elementInput.hh"
#include "../parser/type.hh" #include "../parser/type.hh"
#include "../parser/inout.hh"
#include "../parser/element.hh" #include "../parser/element.hh"
#include "../parser/context.hh" #include "../parser/context.hh"
......
...@@ -49,12 +49,8 @@ ...@@ -49,12 +49,8 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QBuffer> #include <QBuffer>
#include <QStringList>
#include <QXmlQuery> #include <QXmlQuery>
#include <QXmlResultItems> #include <QXmlResultItems>
#include <QRegExp>
#include <iostream>
#include "context.hh" #include "context.hh"
#include "input.hh" #include "input.hh"
......
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#include "function.hh" #include "function.hh"
#include "element.hh" #include "element.hh"
#include "input.hh" #include "input.hh"
#include "output.hh"
//== NAMESPACES =============================================================== //== NAMESPACES ===============================================================
namespace VSI { namespace VSI {
......
...@@ -48,12 +48,10 @@ ...@@ -48,12 +48,10 @@
\*===========================================================================*/ \*===========================================================================*/
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <cmath>
#include <QPainterPath> #include <QPainterPath>
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneWheelEvent>
#include <OpenFlipper/common/GlobalOptions.hh> #include <OpenFlipper/common/GlobalOptions.hh>
......
...@@ -48,14 +48,12 @@ ...@@ -48,14 +48,12 @@
\*===========================================================================*/ \*===========================================================================*/
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <cmath>
#include <QPolygonF> #include <QPolygonF>
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QFontMetrics> #include <QFontMetrics>
#include <QPen> #include <QPen>
#include <QPainter> #include <QPainter>
#include <QPainterPath>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include "button.hh" #include "button.hh"
......
...@@ -51,8 +51,6 @@ ...@@ -51,8 +51,6 @@
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QGraphicsScene> #include <QGraphicsScene>
#include <QPen>
#include "elementInOut.hh" #include "elementInOut.hh"
#include "elementInput.hh" #include "elementInput.hh"
#include "elementOutput.hh" #include "elementOutput.hh"
...@@ -62,8 +60,6 @@ ...@@ -62,8 +60,6 @@
#include "elementArea.hh" #include "elementArea.hh"
#include "wayfind.hh" #include "wayfind.hh"
#include "../parser/inout.hh"
//== NAMESPACES =============================================================== //== NAMESPACES ===============================================================
namespace VSI { namespace VSI {
......
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneWheelEvent>
#include "../parser/element.hh" #include "../parser/element.hh"
#include "elementArea.hh" #include "elementArea.hh"
......
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
#include "connection.hh" #include "connection.hh"
#include "graphicsScene.hh" #include "graphicsScene.hh"
#include "text.hh" #include "text.hh"
#include "../parser/input.hh"
#include "../parser/element.hh" #include "../parser/element.hh"
#include "../parser/context.hh" #include "../parser/context.hh"
#include "../parser/type.hh" #include "../parser/type.hh"
......
...@@ -49,10 +49,7 @@ ...@@ -49,10 +49,7 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QWidget> #include <QWidget>
#include <QPushButton>
#include <QPainter> #include <QPainter>
#include <QPainterPath>
#include <QPalette>
#include <QGraphicsLinearLayout> #include <QGraphicsLinearLayout>
#include <QGraphicsProxyWidget> #include <QGraphicsProxyWidget>
#include <QGraphicsGridLayout> #include <QGraphicsGridLayout>
...@@ -60,7 +57,6 @@ ...@@ -60,7 +57,6 @@
#include "baseWidget.hh" #include "baseWidget.hh"
#include "functionDisplay.hh" #include "functionDisplay.hh"
#include "graphicsScene.hh"
#include "elementFunction.hh" #include "elementFunction.hh"
#include "text.hh" #include "text.hh"
#include "button.hh" #include "button.hh"
......
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
#include "elementInput.hh" #include "elementInput.hh"
#include "elementOutput.hh" #include "elementOutput.hh"
#include "elementInOut.hh"
#include "elementFunction.hh" #include "elementFunction.hh"
#include "connection.hh" #include "connection.hh"
#include "connectionPoint.hh" #include "connectionPoint.hh"
...@@ -66,21 +65,12 @@ ...@@ -66,21 +65,12 @@
#include "baseWidget.hh" #include "baseWidget.hh"
#include <QApplication> #include <QApplication>
#include <QPainter>
#include <QPainterPath>
#include <QPaintEngine> #include <QPaintEngine>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneDragDropEvent>
#include <QMimeData> #include <QMimeData>
#include <QGraphicsRectItem>
#include <QSet>
#include <QXmlQuery>
#include <QXmlResultItems> #include <QXmlResultItems>
#include <QRegExp>
#include "../parser/context.hh" #include "../parser/context.hh"
#include "../parser/inout.hh"
#include "../parser/output.hh" #include "../parser/output.hh"
#include "../parser/function.hh" #include "../parser/function.hh"
......
...@@ -51,16 +51,13 @@ ...@@ -51,16 +51,13 @@
#include <QWidget> #include <QWidget>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QLabel> #include <QLabel>
#include <QPushButton>
#include <QMessageBox> #include <QMessageBox>
#include <QPainter> #include <QPainter>
#include <QPalette>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QGraphicsLinearLayout> #include <QGraphicsLinearLayout>
#include <QGraphicsProxyWidget> #include <QGraphicsProxyWidget>
#include <QGraphicsGridLayout> #include <QGraphicsGridLayout>
#include <QGraphicsView> #include <QGraphicsView>
#include <QRegExp>
#include <QDomText> #include <QDomText>
#include <QXmlResultItems> #include <QXmlResultItems>
...@@ -80,8 +77,6 @@ ...@@ -80,8 +77,6 @@
#include "config/configDialog.hh" #include "config/configDialog.hh"
#include "../parser/element.hh" #include "../parser/element.hh"
#include "../parser/input.hh"
#include "../parser/type.hh"
#include "../parser/context.hh" #include "../parser/context.hh"
#include "../parser/function.hh" #include "../parser/function.hh"
......
...@@ -50,10 +50,7 @@ ...@@ -50,10 +50,7 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QWidget> #include <QWidget>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QPainter> #include <QPainter>
#include <QPalette>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QGraphicsGridLayout> #include <QGraphicsGridLayout>
#include <QGraphicsLinearLayout> #include <QGraphicsLinearLayout>
......
...@@ -48,14 +48,12 @@ ...@@ -48,14 +48,12 @@
\*===========================================================================*/ \*===========================================================================*/
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <cmath>
#include <QPolygonF> #include <QPolygonF>
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QFontMetrics> #include <QFontMetrics>
#include <QPen> #include <QPen>
#include <QPainter> #include <QPainter>
#include <QPainterPath>
#include "text.hh" #include "text.hh"
......
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#include <QPixmap> #include <QPixmap>
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneWheelEvent>
#include <OpenFlipper/common/GlobalOptions.hh> #include <OpenFlipper/common/GlobalOptions.hh>
......
...@@ -49,8 +49,6 @@ ...@@ -49,8 +49,6 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QRectF> #include <QRectF>
#include <QRect>
#include <QPointF>
#include <QVector> #include <QVector>
#include <QHash> #include <QHash>
#include <QLinkedList> #include <QLinkedList>
......
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#include <QPixmap> #include <QPixmap>
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneWheelEvent>
#include <OpenFlipper/common/GlobalOptions.hh> #include <OpenFlipper/common/GlobalOptions.hh>
......
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
#include <QMimeData> #include <QMimeData>
#include <QDrag> #include <QDrag>
#include <QMouseEvent> #include <QMouseEvent>
#include <QPalette>
#include "toolBoxElement.hh" #include "toolBoxElement.hh"
#include "parser/element.hh" #include "parser/element.hh"
......
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QRadioButton> #include <QRadioButton>
#include <QPushButton>
#include "boolWidget.hh" #include "boolWidget.hh"
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
\*===========================================================================*/ \*===========================================================================*/
#include <OpenFlipper/common/Types.hh> #include <OpenFlipper/common/Types.hh>
#include <OpenFlipper/common/BaseObjectData.hh>
#include "SelectionObjectMarker.hh" #include "SelectionObjectMarker.hh"
//****************************************************************************** //******************************************************************************
......
...@@ -51,15 +51,10 @@ ...@@ -51,15 +51,10 @@
#include "TreeModel.hh" #include "TreeModel.hh"
#include <iostream>
#include <OpenFlipper/common/Types.hh>
#include <OpenFlipper/BasePlugin/PluginFunctions.hh> #include <OpenFlipper/BasePlugin/PluginFunctions.hh>
#include <QBrush> #if QT_VERSION >= 0x050000
#if QT_VERSION >= 0x050000
#include <QtWidgets> #include <QtWidgets>
#else #else
#include <QtGui> #include <QtGui>
......
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
#include "objectIdWidget.hh" #include "objectIdWidget.hh"
#include "objectPickDialog.hh" #include "objectPickDialog.hh"
#include "TreeModel.hh"
//== NAMESPACES =============================================================== //== NAMESPACES ===============================================================
namespace VSI { namespace VSI {
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPushButton> #include <QPushButton>
#include <QTreeView> #include <QTreeView>
#include <QMouseEvent> #include <QMouseEvent>
...@@ -60,7 +59,6 @@ ...@@ -60,7 +59,6 @@
#include "objectPickDialog.hh" #include "objectPickDialog.hh"
#include "TreeModel.hh" #include "TreeModel.hh"
#include "TreeItem.hh"
//== NAMESPACES =============================================================== //== NAMESPACES ===============================================================
namespace VSI { namespace VSI {
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QGridLayout>
#include <QLineEdit> #include <QLineEdit>
#include <QPushButton> #include <QPushButton>
#include <QCheckBox> #include <QCheckBox>
......
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QAction> #include <QAction>
#include <QIcon>
#include <QScriptEngine> #include <QScriptEngine>
#include <QMessageBox> #include <QMessageBox>
...@@ -68,7 +67,6 @@ ...@@ -68,7 +67,6 @@
#include "baseWidget.hh" #include "baseWidget.hh"
#include "parser/context.hh" #include "parser/context.hh"
#include "parser/element.hh"
#include "parser/input.hh" #include "parser/input.hh"
#include "config/dynamicDialog.hh" #include "config/dynamicDialog.hh"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment