![]() |
ufe 6.2
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
|
Append an item to the argument selection. More...
#include <selectionUndoableCommands.h>
Public Member Functions | |
SelectionAppendItem (const GlobalSelection::Ptr &sn, const SceneItem::Ptr &item) | |
Constructor. More... | |
void | undo () override |
Undo the append (i.e. remove). More... | |
void | redo () override |
Redo the append. More... | |
![]() | |
virtual | ~UndoableCommand () |
Destructor. More... | |
virtual std::string | commandString () const |
Get a user friendly string representation of the command. More... | |
virtual void | execute () |
virtual void | undo ()=0 |
virtual void | redo ()=0 |
Static Public Member Functions | |
static Ptr | createAndExecute (const GlobalSelection::Ptr &sn, const SceneItem::Ptr &item) |
Private Attributes | |
const GlobalSelection::Ptr | fSn |
const Path | fPath |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< UndoableCommand > | Ptr |
![]() | |
UndoableCommand () | |
Constructor. More... | |
UndoableCommand (const UndoableCommand &)=delete | |
Deleting copy constructor. More... | |
Append an item to the argument selection.
This class appends an item from the argument selection on execution, and removes it on undo.
Definition at line 27 of file selectionUndoableCommands.h.
Ufe::SelectionAppendItem::SelectionAppendItem | ( | const GlobalSelection::Ptr & | sn, |
const SceneItem::Ptr & | item | ||
) |
Constructor.
|
static |
Convenience method to create the undoable command and execute it.
|
overridevirtual |
Redo the append.
Implements Ufe::UndoableCommand.
|
overridevirtual |
Undo the append (i.e. remove).
Implements Ufe::UndoableCommand.
|
private |
Definition at line 55 of file selectionUndoableCommands.h.
|
private |
Definition at line 51 of file selectionUndoableCommands.h.