Workspace 6.21.5
|
Command class for moving operation widgets. More...
#include <Workspace/Presentation/UndoCommands/moveselection.h>
Public Types | |
typedef QList< QUuid > | IdList |
Public Member Functions | |
MoveSelection (DataExecution::Workspace &workspace, const IdList &selectedOpIds, const IdList &selectedAnchorIds, const IdList &selectedNoteItemIds, const IdList &selectedMiniOpRackIds, const QPointF &delta, bool skipFirstRedo=false) | |
int | id () const override |
bool | mergeWith (const QUndoCommand *other) override |
void | redo () override |
void | undo () override |
Note that this command class doesn't require the selected operations to actually be selected. It's just that this class was originally created for the purpose of moving selected operations but it does not use or change the selection state of the operations in any way.
typedef QList<QUuid> IdList |
MoveSelection | ( | DataExecution::Workspace & | workspace, |
const IdList & | selectedOpIds, | ||
const IdList & | selectedAnchorIds, | ||
const IdList & | selectedNoteItemIds, | ||
const IdList & | selectedMiniOpRackIds, | ||
const QPointF & | delta, | ||
bool | skipFirstRedo = false |
||
) |
workspace | The workspace in which the selected operations and anchors are to be moved. |
selectedOpIds | Array of operation ID's specifying the operations to be moved. |
selectedAnchorIds | Array of anchor ID's specifying the connection anchors to be moved. |
selectedNoteItemIds | Array of note item ID's specifying the note items to be moved. |
selectedMiniOpRackIds | Array of mini operation rack ID's specifying the racks to be moved. |
delta | The relative amount to move the specified operations and anchors. |
skipFirstRedo | If this is true, then the first call to redo() will not apply the move. This is useful when the undoable command is being created but the change has already been applied. |
This constructor is useful when you want to move a set of operations and anchors, typically from a user selection.
|
override |
|
override |
|
override |
|
override |