Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Remove some more unneeded includes in libs/flake

REVIEW: 120384

Thanks boud for quick review
parent 18cfc7ac
......@@ -19,6 +19,7 @@
*/
#include "KoParameterToPathCommand.h"
#include "KoPathPoint.h"
#include "KoParameterShape.h"
#include <klocale.h>
......
......@@ -23,8 +23,6 @@
#include <kundo2command.h>
#include <QList>
#include "KoPathShape.h"
#include "KoPathPoint.h"
#include "flake_export.h"
......
......@@ -19,6 +19,8 @@
*/
#include "KoPathBreakAtPointCommand.h"
#include "KoPathPoint.h"
#include <klocale.h>
/*
......
......@@ -23,9 +23,10 @@
#include <kundo2command.h>
#include <QList>
#include "KoPathPoint.h"
#include "KoPathPointData.h"
class KoPathPoint;
/// Command to break a subpath at points.
class KoPathBreakAtPointCommand : public KUndo2Command
{
......
......@@ -23,7 +23,6 @@
#include <kundo2command.h>
#include <QPointF>
#include "KoPathShape.h"
#include "KoPathPointData.h"
#include "KoPathPoint.h"
#include "flake_export.h"
......
......@@ -20,6 +20,7 @@
#include "KoPathPointInsertCommand.h"
#include "KoPathPoint.h"
#include <KoPathSegment.h>
#include <klocale.h>
......
......@@ -23,12 +23,11 @@
#include <kundo2command.h>
#include <QList>
#include <QPointF>
#include "KoPathPoint.h"
#include "KoPathPointData.h"
#include "flake_export.h"
class KoPathPointInsertCommandPrivate;
class KoPathPoint;
/// The undo / redo command for inserting path points
class FLAKE_EXPORT KoPathPointInsertCommand : public KUndo2Command
......
......@@ -25,12 +25,11 @@
#include "flake_export.h"
#include <kundo2command.h>
#include <QPointF>
#include "KoPathShape.h"
#include "KoPathPointData.h"
class KoPathPointMoveCommandPrivate;
class QPointF;
/// The undo / redo command for path point moving.
class FLAKE_EXPORT KoPathPointMoveCommand : public KUndo2Command
......
......@@ -20,8 +20,8 @@
#include "KoPathPointRemoveCommand.h"
#include "KoSubpathRemoveCommand.h"
#include "KoShapeBasedDocumentBase.h"
#include "KoShapeController.h"
#include "KoPathPoint.h"
#include <klocale.h>
class KoPathPointRemoveCommandPrivate
......
......@@ -23,7 +23,6 @@
#include <kundo2command.h>
#include <QList>
#include "KoPathPoint.h"
#include "KoPathPointData.h"
#include "flake_export.h"
......
......@@ -19,6 +19,7 @@
*/
#include "KoPathSegmentBreakCommand.h"
#include "KoPathPoint.h"
#include <klocale.h>
#include <math.h>
......
......@@ -22,7 +22,7 @@
#define KOPATHSEGMENTBREAKCOMMAND_H
#include <kundo2command.h>
#include "KoPathPoint.h"
#include "KoPathShape.h"
#include "KoPathPointData.h"
/// The undo / redo command for breaking a subpath by removing the segment
......
......@@ -20,8 +20,7 @@
#include "KoPathShapeMarkerCommand.h"
#include "KoMarker.h"
#include "flake_export.h"
#include "KoPathShape.h"
#include <klocale.h>
......
......@@ -23,12 +23,11 @@
#include "flake_export.h"
#include "KoPathShape.h"
#include "KoMarkerData.h"
#include <kundo2command.h>
#include <QList>
class KoPathShape;
class KoMarker;
/// The undo / redo command for setting the shape marker
......
......@@ -23,11 +23,11 @@
#include "flake_export.h"
#include <QRectF>
#include <kundo2command.h>
#include <QList>
class KoShape;
class QRectF;
/// The undo / redo command for aligning shapes
class FLAKE_EXPORT KoShapeAlignCommand : public KUndo2Command
......
......@@ -25,7 +25,6 @@
#include <kundo2command.h>
#include <QList>
#include <QBrush>
#include <QSharedPointer>
class KoShape;
......
......@@ -20,6 +20,8 @@
#include "KoShapeDistributeCommand.h"
#include "commands/KoShapeMoveCommand.h"
#include "KoShape.h"
#include <QMap>
#include <klocale.h>
......
......@@ -22,13 +22,13 @@
#define KOSHAPEDISTRIBUTECOMMAND_H
#include "commands/KoShapeMoveCommand.h"
#include "flake_export.h"
#include <kundo2command.h>
#include <QList>
class KoShape;
/// The undo / redo command for distributing shapes
class FLAKE_EXPORT KoShapeDistributeCommand : public KUndo2Command
{
......
......@@ -20,8 +20,13 @@
#ifndef KoShapeGroupCommandPrivate_H
#define KoShapeGroupCommandPrivate_H
#include <QTransform>
#include <QPair>
#include <QList>
class KoShape;
class KoShapeContainer;
class KUndo2Command;
class QRectF;
class KoShapeGroupCommandPrivate
{
......
......@@ -20,6 +20,7 @@
#include "KoShapeMoveCommand.h"
#include <KoShape.h>
#include <klocale.h>
class KoShapeMoveCommand::Private
......
......@@ -21,8 +21,6 @@
#ifndef KOSHAPEMOVECOMMAND_H
#define KOSHAPEMOVECOMMAND_H
#include "KoSelection.h"
#include "flake_export.h"
#include <kundo2command.h>
......
......@@ -20,8 +20,6 @@
#ifndef KOSHAPEREORDERCOMMAND_H
#define KOSHAPEREORDERCOMMAND_H
#include "KoSelection.h"
#include "flake_export.h"
#include <kundo2command.h>
......
......@@ -20,6 +20,7 @@
#include "KoShapeSizeCommand.h"
#include <KoShape.h>
#include <klocale.h>
class KoShapeSizeCommand::Private
......
......@@ -21,8 +21,6 @@
#ifndef KOSHAPESIZECOMMAND_H
#define KOSHAPESIZECOMMAND_H
#include "KoSelection.h"
#include "flake_export.h"
#include <kundo2command.h>
......
......@@ -19,7 +19,6 @@
#include "KoShapeTransparencyCommand.h"
#include "KoShape.h"
#include "KoShapeBackground.h"
#include <klocale.h>
......
......@@ -24,10 +24,8 @@
#include <kundo2command.h>
#include <QList>
#include <QBrush>
class KoShape;
class KoShapeBackground;
/// The undo / redo command for setting the shape transparency
class FLAKE_EXPORT KoShapeTransparencyCommand : public KUndo2Command
......
......@@ -24,12 +24,9 @@
#include "KoPathShape.h"
#include "KoShapeBasedDocumentBase.h"
#include "KoShapeRegistry.h"
#include "KoCanvasController.h"
#include "KoToolManager.h"
#include "KoShapeLoadingContext.h"
#include "KoShapeOdfSaveHelper.h"
#include "KoDrag.h"
#include "KoCanvasBase.h"
#include <KoOdfPaste.h>
#include <KoOdfLoadingContext.h>
#include <KoOdfReadStore.h>
......
......@@ -26,7 +26,6 @@
#include "flake_export.h"
#include <kundo2command.h>
#include <QPair>
/// The undo / redo command for ungrouping shapes
class FLAKE_EXPORT KoShapeUngroupCommand : public KoShapeGroupCommand
......
......@@ -19,6 +19,9 @@
*/
#include "KoSubpathRemoveCommand.h"
#include "KoPathPointData.h"
#include "KoPathPoint.h"
#include <klocale.h>
KoSubpathRemoveCommand::KoSubpathRemoveCommand(KoPathShape *pathShape, int subpathIndex, KUndo2Command *parent)
......
......@@ -23,9 +23,7 @@
#include <kundo2command.h>
#include "flake_export.h"
#include "KoPathPointData.h"
#include "KoPathPoint.h"
#include "KoPathShape.h"
/// The undo / redo command for removing a subpath
class FLAKE_TEST_EXPORT KoSubpathRemoveCommand : public KUndo2Command
......
......@@ -21,7 +21,6 @@
#define SVGCLIPPATHHELPER_H
#include <KoXmlReader.h>
#include <QRectF>
class SvgClipPathHelper
{
......
......@@ -21,7 +21,6 @@
#include <KoXmlReader.h>
#include <kdebug.h>
#include <QPair>
#include <QStack>
/// Token types used for tokenizing complex selectors
enum CssTokenType {
......
......@@ -21,7 +21,9 @@
#define SVGFILTERHELPER_H
#include <KoXmlReader.h>
#include <QRectF>
#include <QSizeF>
class QRectF;
class SvgFilterHelper
{
......
......@@ -20,6 +20,10 @@
#include "SvgGradientHelper.h"
#include <QConicalGradient>
#include <QLinearGradient>
#include <QRadialGradient>
#include <cmath>
#include <KoFlake.h>
......
......@@ -21,13 +21,12 @@
#ifndef SVGGRADIENTHELPER_H
#define SVGGRADIENTHELPER_H
#include <QGradient>
#include <QConicalGradient>
#include <QLinearGradient>
#include <QRadialGradient>
#include <kdebug.h>
#include <QTransform>
class QGradient;
class SvgGradientHelper
{
public:
......
......@@ -29,7 +29,6 @@
#include <QStack>
#include <QFileInfo>
#include <QDir>
class SvgLoadingContext::Private
{
......
......@@ -26,19 +26,16 @@
#include "SvgParser.h"
#include "SvgUtil.h"
#include "SvgShape.h"
#include "SvgGraphicContext.h"
#include <KoShape.h>
#include <KoShapeRegistry.h>
#include <KoShapeFactoryBase.h>
#include <KoShapeLayer.h>
#include <KoShapeContainer.h>
#include <KoShapeGroup.h>
#include <KoPathShape.h>
#include <KoDocumentResourceManager.h>
#include <KoPathShapeLoader.h>
#include <commands/KoShapeGroupCommand.h>
#include <commands/KoShapeUngroupCommand.h>
#include <KoImageData.h>
#include <KoImageCollection.h>
#include <KoColorBackground.h>
#include <KoGradientBackground.h>
......
......@@ -28,19 +28,15 @@
#include "SvgFilterHelper.h"
#include "SvgClipPathHelper.h"
#include "SvgLoadingContext.h"
#include "SvgGraphicContext.h"
#include "SvgStyleParser.h"
#include <KoXmlReader.h>
#include <QGradient>
#include <QMap>
class KoShape;
class KoShapeContainer;
class KoShapeGroup;
class KoDocumentResourceManager;
class SvgTextHelper;
class FLAKE_EXPORT SvgParser
{
......
......@@ -18,8 +18,7 @@
*/
#include "SvgShape.h"
#include "SvgSavingContext.h"
#include "SvgStyleWriter.h"
SvgShape::~SvgShape()
{
......
......@@ -24,7 +24,6 @@
class SvgSavingContext;
class SvgLoadingContext;
class KoShape;
class KoXmlElement;
/// An interface providing svg loading and saving routines
......
......@@ -30,13 +30,14 @@
#define SVGSTYLEWRITER_H
#include "flake_export.h"
#include <QGradient>
#include <QGradientStops>
#include <QSharedPointer>
class SvgSavingContext;
class KoShape;
class KoPatternBackground;
class QTransform;
class QGradient;
/// Helper class to save svg styles
class FLAKE_EXPORT SvgStyleWriter
......
......@@ -21,13 +21,11 @@
#define SVGUTIL_H
#include "flake_export.h"
#include <QPointF>
#include <QSizeF>
#include <QTransform>
#include <QRectF>
class QString;
class QRectF;
class SvgGraphicsContext;
class QTransform;
class FLAKE_EXPORT SvgUtil
{
......
......@@ -34,6 +34,7 @@
*/
#include "SvgWriter.h"
#include "SvgUtil.h"
#include "SvgSavingContext.h"
#include "SvgShape.h"
......
......@@ -38,9 +38,7 @@ class KoShapeLayer;
class KoShapeGroup;
class KoShape;
class KoPathShape;
class QTextStream;
class QIODevice;
class QFont;
class QString;
/// Implements exporting shapes to SVG
......
......@@ -30,6 +30,7 @@
#include <KoSnapGuide.h>
#include <KoPointerEvent.h>
#include <KoToolBase.h>
#include <KoSelection.h>
#include <klocale.h>
ShapeMoveStrategy::ShapeMoveStrategy(KoToolBase *tool, const QPointF &clicked)
......
......@@ -28,6 +28,7 @@
#include <commands/KoShapeTransformCommand.h>
#include <KoSnapGuide.h>
#include <KoToolBase.h>
#include <KoSelection.h>
#include <klocale.h>
#include <limits>
......
......@@ -31,6 +31,7 @@
#include <commands/KoShapeMoveCommand.h>
#include <commands/KoShapeTransformCommand.h>
#include <KoSelection.h>
#include <QPointF>
#include <math.h>
......
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