File indexing completed on 2025-02-02 04:14:50

0001 /* This file is part of the KDE project
0002  * SPDX-FileCopyrightText: 2008 Thorsten Zachmann <zachmann@kde.org>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef KOSHAPERUNAROUNDCOMMAND_H
0008 #define KOSHAPERUNAROUNDCOMMAND_H
0009 
0010 #include "kritaflake_export.h"
0011 #include <kundo2command.h>
0012 
0013 #include "KoShape.h"
0014 
0015 /// API docs go here
0016 class KRITAFLAKE_EXPORT KoShapeRunAroundCommand : public KUndo2Command
0017 {
0018 public:
0019     KoShapeRunAroundCommand(KoShape *shape, KoShape::TextRunAroundSide side, int runThrough, qreal distanceLeft, qreal distanceTop, qreal distanceRight, qreal distanceBottom, qreal threshold, KoShape::TextRunAroundContour contour, KUndo2Command *parent = 0);
0020     ~KoShapeRunAroundCommand() override;
0021 
0022     /// redo the command
0023     void redo() override;
0024     /// revert the actions done in redo
0025     void undo() override;
0026 
0027 private:
0028     class Private;
0029     Private * const d;
0030 };
0031 
0032 #endif /* KOSHAPERUNAROUNDCOMMAND_H */