Vuo 2.4.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VuoCommandSetNodeTitle Class Reference

Description

An undoable action for setting the title of a node.

Definition at line 20 of file VuoCommandSetNodeTitle.hh.

Public Member Functions

 VuoCommandSetNodeTitle (VuoCompilerNode *node, string title, VuoEditorWindow *window)
 Creates a command for setting the title of a node.
 
int id () const
 Returns the ID of this command.
 
void undo ()
 Restores the node to its old title.
 
void redo ()
 Sets the node to its new title.
 
- Public Member Functions inherited from VuoCommandCommon
 VuoCommandCommon (VuoEditorWindow *window)
 Creates a new undoable command.
 
 ~VuoCommandCommon ()
 Destructor.
 
void setDescription (const char *formatString,...) __attribute__((format(printf
 Formats and stores a description, to be shown by VuoCommandCommon_redo and VuoCommandCommon_undo.
 

Additional Inherited Members

- Static Public Member Functions inherited from VuoCommandCommon
static void addCable (VuoRendererCable *rc, VuoPort *fromPortAfterAdding, VuoPort *toPortAfterAdding, VuoEditorComposition *composition)
 Helper function for VuoCommandAdd::redo() and VuoCommandRemove::undo().
 
static void removeCable (VuoRendererCable *rc, VuoEditorComposition *composition)
 Helper function for VuoCommandRemove::redo() and VuoCommandAdd::undo().
 
static void updateCable (VuoRendererCable *rc, VuoPort *updatedFromPort, VuoPort *updatedToPort, VuoEditorComposition *composition, bool preserveDanglingCables=false)
 Helper function for VuoCommandConnect::redo(), VuoCommandConnect::undo(), VuoCommandRemove::redo(), and VuoCommandRemove::undo().
 
static VuoPublishedPortpublishInternalPort (VuoPort *internalPort, bool forceEventOnlyPublication, string publishedPortName, VuoEditorComposition *composition, bool attemptMerge)
 Publishes the internalPort under externally visible name publishedPortName, or under a derived name if an externally visible published port with that name already exists and attemptMerge is set to false.
 
static VuoPublishedPortpublishInternalExternalPortCombination (VuoPort *internalPort, VuoPublishedPort *externalPort, bool forceEventOnlyPublication, VuoEditorComposition *composition)
 Publishes the internalPort in association with pre-existing externally visible published port externalPort, if possible.
 
static void unpublishInternalExternalPortCombination (VuoPort *internalPort, VuoPublishedPort *externalPort, VuoEditorComposition *composition, bool unpublishIsolatedExternalPorts)
 Unpublishes the given internalPort in association with externally visible published port externalPort.
 
static VuoCompilerCompositionDiffaddNodeReplacementToDiff (VuoCompilerCompositionDiff *diffInfo, VuoRendererNode *oldNode, VuoRendererNode *newNode, map< VuoPort *, VuoPort * > updatedPortForOriginalPort, VuoEditorComposition *composition)
 Adds information about a single node replacement and associated port mappings to a VuoCompositionDiff.
 
- Static Public Attributes inherited from VuoCommandCommon
static const int moveCommandID = 1
 ID for VuoCommandMove.
 
static const int addCommandID = 2
 ID for VuoCommandAdd.
 
static const int removeCommandID = 3
 ID for VuoCommandRemove.
 
static const int connectCommandID = 4
 ID for VuoCommandConnect.
 
static const int setPortConstantCommandID = 5
 ID for VuoCommandSetPortConstant.
 
static const int setNodeTitleCommandID = 6
 ID for VuoCommandSetNodeTitle.
 
static const int setPublishedPortNameCommandID = 7
 ID for VuoCommandSetPublishedPortName.
 
static const int publishPortCommandID = 8
 ID for VuoCommandPublishPort.
 
static const int unpublishPortCommandID = 9
 ID for VuoCommandUnpublishPort.
 
static const int setItemTintCommandID = 10
 ID for VuoCommandSetItemTint.
 
static const int replaceNodeCommandID = 11
 ID for VuoCommandReplaceNode.
 
static const int setTriggerThrottlingCommandID = 12
 ID for VuoCommandSetTriggerThrottling.
 
static const int setPublishedPortDetailsCommandID = 13
 ID for VuoCommandSetPublishedPortDetails.
 
static const int setCableHiddenCommandID = 14
 ID for VuoCommandSetCableHidden.
 
static const int addPublishedPortCommandID = 15
 ID for VuoCommandAddPublishedPort.
 
static const int removeProtocolPortCommandID = 16
 ID for VuoCommandRemoveProtocolPort.
 
static const int reorderPublishedPortsCommandID = 17
 ID for VuoCommandReorderPublishedPorts.
 
static const int setMetadataCommandID = 18
 ID for VuoCommandSetMetadata.
 
static const int setCommentTextCommandID = 19
 ID for VuoCommandSetCommentText.
 
static const int resizeCommentCommandID = 20
 ID for VuoCommandResizeComment.
 
static const int changeNodeCommandID = 21
 ID for VuoCommandChangeNode.
 
- Protected Attributes inherited from VuoCommandCommon
VuoEditorWindowwindow
 The window this command occurred in.
 
char * description
 See setDescription.
 

Constructor & Destructor Documentation

◆ VuoCommandSetNodeTitle()

VuoCommandSetNodeTitle::VuoCommandSetNodeTitle ( VuoCompilerNode node,
string  title,
VuoEditorWindow window 
)

Creates a command for setting the title of a node.

Definition at line 18 of file VuoCommandSetNodeTitle.cc.

Member Function Documentation

◆ id()

int VuoCommandSetNodeTitle::id ( ) const

Returns the ID of this command.

Definition at line 41 of file VuoCommandSetNodeTitle.cc.

◆ redo()

void VuoCommandSetNodeTitle::redo ( )

Sets the node to its new title.

Definition at line 60 of file VuoCommandSetNodeTitle.cc.

◆ undo()

void VuoCommandSetNodeTitle::undo ( )

Restores the node to its old title.

Definition at line 49 of file VuoCommandSetNodeTitle.cc.


The documentation for this class was generated from the following files: