Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/commands/KoShapeAlignCommand.h
Show All 39 Lines | 37 | enum Align { | |||
---|---|---|---|---|---|
40 | HorizontalRightAlignment, ///< Align Right | 40 | HorizontalRightAlignment, ///< Align Right | ||
41 | VerticalBottomAlignment, ///< Align bottom | 41 | VerticalBottomAlignment, ///< Align bottom | ||
42 | VerticalCenterAlignment, ///< Align centered vertically | 42 | VerticalCenterAlignment, ///< Align centered vertically | ||
43 | VerticalTopAlignment ///< Align top | 43 | VerticalTopAlignment ///< Align top | ||
44 | }; | 44 | }; | ||
45 | /** | 45 | /** | ||
46 | * Command to align a set of shapes in a rect | 46 | * Command to align a set of shapes in a rect | ||
47 | * @param shapes a set of all the shapes that should be aligned | 47 | * @param shapes a set of all the shapes that should be aligned | ||
48 | * @param align the aligment type | 48 | * @param align the alignment type | ||
49 | * @param boundingRect the rect the shape will be aligned in | 49 | * @param boundingRect the rect the shape will be aligned in | ||
50 | * @param parent the parent command used for macro commands | 50 | * @param parent the parent command used for macro commands | ||
51 | */ | 51 | */ | ||
52 | KoShapeAlignCommand(const QList<KoShape*> &shapes, Align align, const QRectF &boundingRect, KUndo2Command *parent = 0); | 52 | KoShapeAlignCommand(const QList<KoShape*> &shapes, Align align, const QRectF &boundingRect, KUndo2Command *parent = 0); | ||
53 | ~KoShapeAlignCommand() override; | 53 | ~KoShapeAlignCommand() override; | ||
54 | /// redo the command | 54 | /// redo the command | ||
55 | void redo() override; | 55 | void redo() override; | ||
56 | /// revert the actions done in redo | 56 | /// revert the actions done in redo | ||
57 | void undo() override; | 57 | void undo() override; | ||
58 | private: | 58 | private: | ||
59 | class Private; | 59 | class Private; | ||
60 | Private * const d; | 60 | Private * const d; | ||
61 | }; | 61 | }; | ||
62 | 62 | | |||
63 | #endif | 63 | #endif |