Skip to content

Commit

Permalink
a few more forward declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 9, 2018
1 parent f27a504 commit 7c0a2a1
Show file tree
Hide file tree
Showing 26 changed files with 58 additions and 48 deletions.
1 change: 1 addition & 0 deletions python/gui/auto_generated/qgspluginmanagerinterface.sip.in
Expand Up @@ -8,6 +8,7 @@




class QgsPluginManagerInterface : QObject
{

Expand Down
15 changes: 9 additions & 6 deletions src/app/3d/qgs3dmapcanvasdockwidget.cpp
Expand Up @@ -15,25 +15,28 @@

#include "qgs3dmapcanvasdockwidget.h"

#include <QBoxLayout>
#include <QDialog>
#include <QDialogButtonBox>
#include <QProgressBar>
#include <QToolBar>
#include <QUrl>

#include "qgisapp.h"
#include "qgs3dmapcanvas.h"
#include "qgs3dmapconfigwidget.h"
#include "qgs3dmapscene.h"
#include "qgscameracontroller.h"
#include "qgsmapcanvas.h"
#include "qgsmessagebar.h"

#include "qgs3danimationsettings.h"
#include "qgs3danimationwidget.h"
#include "qgs3dmapsettings.h"
#include "qgs3dmaptoolidentify.h"
#include "qgs3dutils.h"

#include <QBoxLayout>
#include <QDialog>
#include <QDialogButtonBox>
#include <QProgressBar>
#include <QToolBar>
#include <QUrl>


Qgs3DMapCanvasDockWidget::Qgs3DMapCanvasDockWidget( QWidget *parent )
: QgsDockWidget( parent )
Expand Down
2 changes: 2 additions & 0 deletions src/app/dwg/qgsdwgimportdialog.cpp
Expand Up @@ -47,6 +47,8 @@
#include "qgslayertree.h"
#include "qgsguiutils.h"
#include "qgsfilewidget.h"
#include "qgsmessagebar.h"


QgsDwgImportDialog::QgsDwgImportDialog( QWidget *parent, Qt::WindowFlags f )
: QDialog( parent, f )
Expand Down
1 change: 1 addition & 0 deletions src/app/layout/qgslayoutdesignerdialog.cpp
Expand Up @@ -39,6 +39,7 @@
#include "qgslayoutitemmap.h"
#include "qgsprintlayout.h"
#include "qgsmapcanvas.h"
#include "qgsmessagebar.h"
#include "qgsmessageviewer.h"
#include "qgsgui.h"
#include "qgsfeedback.h"
Expand Down
1 change: 1 addition & 0 deletions src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -35,6 +35,7 @@
#include "qgisapp.h"
#include "qgsapplication.h"
#include "qgsconfig.h"
#include "qgsmessagebar.h"
#include "qgsproviderregistry.h"
#include "qgspluginregistry.h"
#include "qgspluginsortfilterproxymodel.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginmanager.h
Expand Up @@ -27,10 +27,10 @@
#include "qgsoptionsdialogbase.h"
#include "qgsguiutils.h"
#include "qgshelp.h"
#include "qgsmessagebar.h"

class QgsPluginSortFilterProxyModel;
class QgsPythonUtils;
class QgsMessageBar;

const int PLUGMAN_TAB_ALL = 0;
const int PLUGMAN_TAB_INSTALLED = 1;
Expand Down
9 changes: 1 addition & 8 deletions src/app/qgisapp.h
Expand Up @@ -101,9 +101,7 @@ class QgsVectorLayerTools;
class QgsWelcomePage;
class QgsOptionsWidgetFactory;
class QgsStatusBar;

class QgsUserProfileManagerWidgetFactory;

class Qgs3DMapCanvasDockWidget;

class QDomDocument;
Expand All @@ -116,15 +114,12 @@ class QgsAdvancedDigitizingDockWidget;
class QgsGpsInformationWidget;
class QgsStatisticalSummaryDockWidget;
class QgsMapCanvasTracer;

class QgsDecorationItem;

class QgsMessageLogViewer;
class QgsMessageBar;

class QgsMessageBarItem;
class QgsDataItem;
class QgsTileScaleWidget;

class QgsLabelingWidget;
class QgsLayerStylingWidget;
class QgsDiagramProperties;
Expand All @@ -145,9 +140,7 @@ class QgsProxyProgressTask;

#include "qgsauthmanager.h"
#include "qgsconfig.h"
#include "qgsfeature.h"
#include "qgspointxy.h"
#include "qgsmessagebar.h"
#include "qgsmimedatautils.h"
#include "qgswelcomepageitemsmodel.h"
#include "qgsraster.h"
Expand Down
21 changes: 12 additions & 9 deletions src/app/qgsmapsavedialog.cpp
Expand Up @@ -15,8 +15,18 @@
* *
***************************************************************************/

#include "qgsmapsavedialog.h"

#include <QClipboard>
#include <QCheckBox>
#include <QFileDialog>
#include <QImage>
#include <QList>
#include <QPainter>
#include <QPrinter>
#include <QSpinBox>

#include "qgsmapsavedialog.h"
#include "qgsguiutils.h"
#include "qgis.h"
#include "qgisapp.h"
#include "qgsscalecalculator.h"
Expand All @@ -29,15 +39,8 @@
#include "qgsproject.h"
#include "qgssettings.h"
#include "qgsmapcanvas.h"
#include "qgsmessagebar.h"

#include <QClipboard>
#include <QCheckBox>
#include <QFileDialog>
#include <QImage>
#include <QList>
#include <QPainter>
#include <QPrinter>
#include <QSpinBox>

Q_GUI_EXPORT extern int qt_defaultDpiX();

Expand Down
1 change: 1 addition & 0 deletions src/app/qgsmaptoolcircle2tangentspoint.cpp
Expand Up @@ -28,6 +28,7 @@
#include "qgsgeometryutils.h"
#include <memory>
#include "qgsmapmouseevent.h"
#include "qgsmessagebar.h"

QgsMapToolCircle2TangentsPoint::QgsMapToolCircle2TangentsPoint( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
1 change: 1 addition & 0 deletions src/app/qgsmaptoolcircle3tangents.cpp
Expand Up @@ -23,6 +23,7 @@
#include "qgspoint.h"
#include "qgisapp.h"
#include "qgsmapmouseevent.h"
#include "qgsmessagebar.h"


QgsMapToolCircle3Tangents::QgsMapToolCircle3Tangents( QgsMapToolCapture *parentTool,
Expand Down
1 change: 1 addition & 0 deletions src/app/qgspluginregistry.cpp
Expand Up @@ -31,6 +31,7 @@
#include "qgisapp.h"
#include "qgslogger.h"
#include "qgsmessagelog.h"
#include "qgsmessagebar.h"

#ifdef WITH_BINDINGS
#include "qgspythonutils.h"
Expand Down
4 changes: 3 additions & 1 deletion src/app/qgsselectbyformdialog.cpp
Expand Up @@ -13,12 +13,14 @@
* *
***************************************************************************/

#include <QLayout>

#include "qgsselectbyformdialog.h"
#include "qgsattributeform.h"
#include "qgsmapcanvas.h"
#include "qgssettings.h"
#include "qgsmessagebar.h"

#include <QLayout>

QgsSelectByFormDialog::QgsSelectByFormDialog( QgsVectorLayer *layer, const QgsAttributeEditorContext &context, QWidget *parent, Qt::WindowFlags fl )
: QDialog( parent, fl )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsvectorlayerloadstyledialog.cpp
Expand Up @@ -22,7 +22,7 @@
#include "qgssettings.h"
#include "qgsvectorlayerproperties.h"
#include "qgsmaplayerstylecategoriesmodel.h"

#include "qgsmessagebar.h"


QgsVectorLayerLoadStyleDialog::QgsVectorLayerLoadStyleDialog( QgsVectorLayer *layer, QWidget *parent )
Expand Down
1 change: 1 addition & 0 deletions src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -63,6 +63,7 @@
#include "qgsgeometryoptions.h"
#include "qgsvectorlayersavestyledialog.h"
#include "qgsvectorlayerloadstyledialog.h"
#include "qgsmessagebar.h"

#include "layertree/qgslayertreelayer.h"
#include "qgslayertree.h"
Expand Down
25 changes: 11 additions & 14 deletions src/core/symbology/qgssymbol.cpp
Expand Up @@ -13,6 +13,16 @@
* *
***************************************************************************/

#include <QColor>
#include <QImage>
#include <QPainter>
#include <QSize>
#include <QSvgGenerator>

#include <cmath>
#include <map>
#include <random>

#include "qgssymbol.h"
#include "qgssymbollayer.h"

Expand All @@ -21,17 +31,14 @@
#include "qgsfillsymbollayer.h"
#include "qgsgeometrygeneratorsymbollayer.h"
#include "qgsmaptopixelgeometrysimplifier.h"

#include "qgslogger.h"
#include "qgsrendercontext.h" // for bigSymbolPreview

#include "qgsproject.h"
#include "qgsstyle.h"
#include "qgspainteffect.h"
#include "qgseffectstack.h"

#include "qgsvectorlayer.h"

#include "qgsfeature.h"
#include "qgsgeometry.h"
#include "qgsmultipoint.h"
#include "qgsgeometrycollection.h"
Expand All @@ -41,16 +48,6 @@
#include "qgsproperty.h"
#include "qgscolorschemeregistry.h"

#include <QColor>
#include <QImage>
#include <QPainter>
#include <QSize>
#include <QSvgGenerator>

#include <cmath>
#include <map>
#include <random>

inline
QgsProperty rotateWholeSymbol( double additionalRotation, const QgsProperty &property )
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgssymbol.h
Expand Up @@ -21,7 +21,6 @@
#include <QList>
#include <QMap>
#include "qgsmapunitscale.h"
#include "qgsfeature.h"
#include "qgsfields.h"
#include "qgsrendercontext.h"
#include "qgsproperty.h"
Expand All @@ -44,6 +43,7 @@ class QgsMarkerSymbolLayer;
class QgsLineSymbolLayer;
class QgsFillSymbolLayer;
class QgsSymbolRenderContext;
class QgsFeature;
class QgsFeatureRenderer;
class QgsCurve;
class QgsPolygon;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/layertree/qgslayertreeviewdefaultactions.cpp
Expand Up @@ -14,7 +14,7 @@
***************************************************************************/

#include "qgslayertreeviewdefaultactions.h"

#include "qgsguiutils.h"
#include "qgsapplication.h"
#include "qgslayertree.h"
#include "qgslayertreemodel.h"
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsexpressionselectiondialog.h
Expand Up @@ -18,13 +18,13 @@

#include "ui_qgsexpressionselectiondialogbase.h"
#include "qgis.h"
#include "qgsmessagebar.h"
#include "qgshelp.h"

#include <QDialog>
#include "qgis_gui.h"

class QgsMapCanvas;
class QgsMessageBar;

/**
* \ingroup gui
Expand Down
1 change: 0 additions & 1 deletion src/gui/qgsmapcanvas.h
Expand Up @@ -22,7 +22,6 @@
#include "qgis_sip.h"

#include "qgsexpressioncontext.h"
#include "qgsmessagebar.h"
#include "qgsrectangle.h"
#include "qgsfeatureid.h"
#include "qgsgeometry.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/qgsmaptool.h
Expand Up @@ -18,7 +18,6 @@

#include "qgsconfig.h"
#include "qgis.h"
#include "qgsmessagebar.h"

#include <QCursor>
#include <QString>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmessagebaritem.h
Expand Up @@ -19,14 +19,14 @@

#include "qgsmessagebaritem.h"
#include "qgis.h"
#include "qgsmessagebar.h"

#include <QWidget>
#include <QIcon>
#include <QHBoxLayout>
#include "qgis_gui.h"

class QTextBrowser;
class QLabel;

/**
* \ingroup gui
Expand Down
3 changes: 2 additions & 1 deletion src/gui/qgspluginmanagerinterface.h
Expand Up @@ -20,8 +20,9 @@
#include <QObject>
#include <QString>
#include <QMap>
#include "qgsmessagebar.h"
#include "qgis_gui.h"
#include "qgis.h"


/**
* \ingroup gui
Expand Down
1 change: 1 addition & 0 deletions src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -26,6 +26,7 @@
#include "qgsgrassselect.h"
#include "qgsgrasstools.h"
#include "qgsgrassutils.h"
#include "qgsmessagebar.h"

// includes
#include "qgisinterface.h"
Expand Down
1 change: 1 addition & 0 deletions tests/src/app/testqgsmaptoolselect.cpp
Expand Up @@ -25,6 +25,7 @@
#include "qgsunittypes.h"
#include "qgsmaptoolselect.h"
#include "qgsmaptoolselectutils.h"
#include "qgsmapmouseevent.h"

#include "cpl_conv.h"

Expand Down
2 changes: 2 additions & 0 deletions tests/src/app/testqgsmaptoolutils.h
Expand Up @@ -20,6 +20,8 @@
#include "qgisapp.h"
#include "qgsgeometry.h"
#include "qgsmapcanvas.h"
#include "qgsmapmouseevent.h"


/**
* \ingroup UnitTests
Expand Down
2 changes: 1 addition & 1 deletion tests/src/app/testqgsvertextool.cpp
Expand Up @@ -21,7 +21,7 @@
#include "qgsmapcanvassnappingutils.h"
#include "qgsproject.h"
#include "qgsvectorlayer.h"

#include "qgsmapmouseevent.h"
#include "vertextool/qgsvertextool.h"

bool operator==( const QgsGeometry &g1, const QgsGeometry &g2 )
Expand Down

0 comments on commit 7c0a2a1

Please sign in to comment.