Undoable commands.
More...
|
| class | AddLayerCmd |
| | Command for adding layers. More...
|
| |
| class | AddShapeCmd |
| | Command for adding shapes. The command needs to manage shapes' lifecycle, but doesn't need to manage layers' lifecycle. More...
|
| |
| class | BaseCmd |
| | A class template for undoable commands, along with undo() / redo() implementation. More...
|
| |
| class | JoinedCmd |
| | A group of commands that can be considered as a single step in undo/redo. More...
|
| |
| class | RemoveLayerCmd |
| | Command for removing layers. More...
|
| |
| class | RemoveShapeCmd |
| | Command for removing shapes. The command needs to manage shapes' lifecycle, but doesn't need to manage layers' lifecycle. More...
|
| |
| class | SelectCmd |
| | Command for selection changes in document. More...
|
| |
| class | SetCmd |
| | Command for changing objects' property, and the property can be "passed by value". More...
|
| |
| class | SetRefCmd |
| | Command for changing objects' property, and the property is usually "passed by reference". More...
|
| |
|
| CmdPtr | AddLayer (const LayerPtr &layer) |
| |
| CmdPtr | AddShape (Layer *layer, const ShapePtr &shape) |
| |
| CmdPtr | AddShapes (Layer *layer, const QList< ShapePtr > &shapes) |
| |
| JoinedPtr | Joined () |
| |
| JoinedPtr | operator+ (const CmdPtr &a, const CmdPtr &b) |
| |
| JoinedPtr & | operator<< (JoinedPtr &a, BaseCmd *b) |
| |
| JoinedPtr & | operator<< (JoinedPtr &a, const CmdPtr &b) |
| |
| CmdPtr | RemoveLayer (const LayerPtr &layer) |
| |
| CmdPtr | RemoveSelections (Document *doc) |
| |
| CmdPtr | RemoveShape (const ShapePtr &shape) |
| |
| CmdPtr | RemoveShape (Layer *layer, const ShapePtr &shape) |
| |
| CmdPtr | RemoveShapes (const QList< ShapePtr > &shapes) |
| |
| CmdPtr | Select (Document *doc, const QList< ShapePtr > &new_selections) |
| |
| template<typename T , typename PropType , PropType(T::*)() const PropGetter, void(T::*)(PropType) PropSetter> |
| CmdPtr | Set (T *target, PropType new_value) |
| |
| template<typename T , typename PropType , const PropType &(T::*)() const PropGetter, void(T::*)(const PropType &) PropSetter> |
| CmdPtr | SetRef (T *target, PropType new_value) |
| |
◆ CmdPtr
◆ JoinedPtr
◆ AddLayer()
◆ AddShape()
◆ AddShapes()
◆ Joined()
◆ operator+()
◆ operator<<() [1/2]
◆ operator<<() [2/2]
◆ RemoveLayer()
◆ RemoveSelections()
◆ RemoveShape() [1/2]
◆ RemoveShape() [2/2]
◆ RemoveShapes()
◆ Select()
◆ Set()
template<typename T , typename PropType , PropType(T::*)() const PropGetter, void(T::*)(PropType) PropSetter>
| CmdPtr Commands::Set |
( |
T * |
target, |
|
|
PropType |
new_value |
|
) |
| |
◆ SetRef()
template<typename T , typename PropType , const PropType &(T::*)() const PropGetter, void(T::*)(const PropType &) PropSetter>
| CmdPtr Commands::SetRef |
( |
T * |
target, |
|
|
PropType |
new_value |
|
) |
| |
◆ SetFont
Initial value:=
&SetRef<TextShape, QFont, &TextShape::font, &TextShape::setFont>
◆ SetLayer
Initial value:=
&Set<Shape, Layer *, &Shape::layer, &Shape::setLayer>
◆ SetLineHeight
Initial value:=
&Set<TextShape, float, &TextShape::lineHeight, &TextShape::setLineHeight>
◆ SetParent
Initial value:=
&Set<Shape, Shape *, &Shape::parent, &Shape::setParent>
◆ SetRotation
Initial value:=
&Set<Shape, qreal, &TextShape::rotation, &TextShape::setRotation>
◆ SetTransform
| constexpr CmdPtr(* Commands::SetTransform) (Shape *, QTransform) |
( |
Shape * |
, |
|
|
QTransform |
|
|
) |
| |
|
constexpr |
Initial value:=
&SetRef<Shape, QTransform, &Shape::transform, &Shape::setTransform>