Represents a window for editing a Vuo Composition.
One instance per composition.
Definition at line 46 of file VuoEditorWindow.hh.
Public Slots | |
void | updateLatestDragTime () |
Call this to indicate that a drag is in progress or has just completed. More... | |
void | updateUI () |
Updates the UI elements (e.g., enables/disables buttons) based on the application's state. More... | |
void | itemsMoved (set< VuoRendererNode * > nodes, set< VuoRendererComment * > comments, qreal dx, qreal dy, bool movedByDragging) |
Moves input nodes and comments dx points horizontally and dy points vertically, meanwhile pushing the action onto the undo stack. More... | |
void | commentResized (VuoRendererComment *comment, qreal dx, qreal dy) |
Resizes the input comment by dx points horizontally and dy points vertically, meanwhile pushing the action onto the undo stack. More... | |
void | connectionCompleted (VuoRendererCable *cableInProgress, VuoRendererPort *targetPort, pair< VuoRendererCable *, VuoRendererCable * > cableArgs, VuoRendererNode *typecastNodeToDelete, pair< string, string > typeArgs, pair< VuoRendererPort *, VuoRendererPort * > portArgs) |
Completes the connection for the input cableInProgress to port targetPort . More... | |
void | setTriggerThrottling (VuoPort *triggerPort, enum VuoPortClass::EventThrottling eventThrottling) |
Updates the trigger port's event-throttling behavior. More... | |
void | adjustInputPortCountForNode (VuoRendererNode *node, int inputPortCountDelta, bool adjustmentRequestedByDragging) |
Adjusts the input port count for the provided node by inputPortCountDelta , provided the node is of a class (e.g., "Make List") eligible for such an operation. More... | |
void | swapNodes (VuoRendererNode *node, string newNodeClass) |
Replaces the provided composition node with another node of the specified class, preserving whatever connections possible. More... | |
VuoRendererNode * | specializePortNetwork (VuoRendererPort *port, string specializedTypeName) |
Specializes the provided port by replacing all networked ports of its generic type with ports of type specializedTypeName , meanwhile pushing the action onto the undo stack. More... | |
VuoRendererNode * | specializePortNetwork (VuoRendererPort *port, string specializedTypeName, bool encapsulateInMacro) |
Specializes the provided port by replacing all networked ports of its generic type with ports of type specializedTypeName , meanwhile pushing the action onto the undo stack. More... | |
VuoRendererNode * | unspecializePortNetwork (VuoRendererPort *port) |
Reverts the provided port and all ports within its connected network to their original generic origins, meanwhile pushing the action onto the Undo stack. More... | |
VuoRendererNode * | unspecializePortNetwork (VuoRendererPort *port, bool encapsulateInMacro) |
Reverts the provided port and all ports within its connected network to their original generic origins, meanwhile pushing the action onto the Undo stack. More... | |
VuoRendererNode * | respecializePortNetwork (VuoRendererPort *port, string specializedTypeName) |
Re-specializes the provided port by replacing all networked ports of its re-specialized type with ports of type specializedTypeName . More... | |
VuoRendererNode * | respecializePortNetwork (VuoRendererPort *port, string specializedTypeName, bool encapsulateInMacro) |
Re-specializes the provided port by replacing all networked ports of its re-specialized type with ports of type specializedTypeName . More... | |
void | tintSelectedItems (VuoNode::TintColor tintColor) |
Sets the tint color of the selected nodes and comments to tintColor , meanwhile pushing the action onto the undo stack. More... | |
void | internalExternalPortPairPublished (VuoPort *internalPort, VuoPublishedPort *externalPort, bool forceEventOnlyPublication, VuoPort *portToSpecialize=NULL, string specializedTypeName="", string typecastToInsert="", bool useUndoStackMacro=true) |
Publishes the provided internalPort in association with the provided externalPort , meanwhile pushing the action onto the undo stack. More... | |
void | internalPortPublishedViaDropBox (VuoPort *port, bool forceEventOnlyPublication, bool useUndoStackMacro) |
Publishes the provided port , meanwhile pushing the action onto the undo stack. More... | |
void | internalPortPublished (VuoPort *port, bool forceEventOnlyPublication, string name="", bool merge=false, VuoPort *portToSpecialize=NULL, string specializedTypeName="", string typecastToInsert="", bool useUndoStackMacro=true) |
Publishes the provided port , meanwhile pushing the action onto the undo stack. More... | |
void | externalPortUnpublished (VuoRendererPublishedPort *port) |
Unpublishes the provided externally visible published port , meanwhile pushing the action onto the undo stack. More... | |
void | internalPortUnpublished (VuoPort *port) |
Unpublishes the provided internally visible published port , meanwhile pushing the action onto the undo stack. More... | |
void | makeProtocolPortChanges (map< VuoPublishedPort *, string > publishedPortsToRename, set< VuoPublishedPort * > publishedPortsToRemove, vector< VuoPublishedPort * > publishedPortsToAdd, bool beginUndoStackMacro, bool endUndoStackMacro) |
Renames, removes, and adds the provided sets of published ports, in that order, pushing each operation onto the Undo stack. More... | |
void | componentsRemoved (QList< QGraphicsItem * > components, string commandDescription) |
Removes the input components from the scene, meanwhile pushing the action onto the undo stack. More... | |
void | componentsAdded (QList< QGraphicsItem * > components, VuoEditorComposition *target) |
Adds the input components to the scene, meanwhile pushing the action onto the undo stack. More... | |
void | cutSelectedCompositionComponents () |
Copies currenly selected comments, nodes, and any cables connecting those nodes internally; deletes all currently selected comments, nodes, and cables. More... | |
void | copySelectedCompositionComponents () |
Copies the currently selected content. More... | |
void | disambiguatePasteRequest () |
Attempts to determine whether or not the clipboard contains .vuo composition source text. More... | |
void | duplicateSelectedCompositionComponentsByDrag () |
Duplicates the currently selected comments, nodes, and any cables connecting those nodes internally. More... | |
void | cleanUpCancelledDuplication () |
Cleans up the 'Undo' stack after a cancelled duplication. More... | |
void | conformToGlobalNodeLibraryVisibility (VuoNodeLibrary::nodeLibraryState visibility, VuoNodeLibrary *floater, bool previousFloaterDestroyed) |
Update the display mode of the node class library to conform with global settings. More... | |
void | displayAppropriateDocumentation () |
Displays the composition metadata in the node library documentation panel, if appropriate. More... | |
QAction * | getRaiseDocumentAction () const |
Returns the action associated with raising the current editor window to the foreground. More... | |
QAction * | getShowEventsAction () const |
Returns the Show Events action. More... | |
QAction * | getZoomOutAction () const |
Returns a zoom action. More... | |
QAction * | getZoom11Action () const |
Returns a zoom action. More... | |
QAction * | getZoomToFitAction () const |
Returns a zoom action. More... | |
QAction * | getZoomInAction () const |
Returns a zoom action. More... | |
void | on_zoomToFit_triggered () |
Unconditionally zooms to fit the composition. More... | |
void | setAsActiveWindow () |
Raises the current editor window to the foreground and activates it. More... | |
void | on_runComposition_triggered () |
Implements the Run action to run the composition. More... | |
void | on_stopComposition_triggered () |
Implements the Stop action to stop the composition. More... | |
void | on_restartComposition_triggered () |
Implements the Restart action to restart the running composition. More... | |
void | on_refireEvent_triggered () |
Re-fires the most recently manually fired trigger port. More... | |
void | on_showNodeLibrary_triggered () |
Shows the Node Class Library browser for this editor window and focuses its text filter. More... | |
void | on_selectNone_triggered () |
De-selects all composition components and resets the documentation panel content. More... | |
void | on_find_triggered () |
Finds and selects nodes that contain the user-entered search term within their display names or node class names. More... | |
void | on_findNext_triggered () |
Advances to the next search result. More... | |
void | on_findPrevious_triggered () |
Returns to the previous search result. More... | |
void | coalesceSnapshots (string oldCompositionSnapshot, string newCompositionSnapshot, VuoCompilerCompositionDiff *diffInfo=nullptr) |
Coalesces the provided composition modifications with previously recorded modifications. More... | |
void | coalesceInternalPortConstantsToSync (string portID) |
Adds the provided port to the previously recorded list of internal ports to be synced in the running composition. More... | |
void | coalescePublishedPortConstantsToSync (string portID) |
Adds the provided port to the previously recorded list of published ports to be synced in the running composition. More... | |
void | coalesceNodesToUnlink (string nodeID) |
Adds the provided node to the previously recorded list of nodes to unlink. More... | |
void | coalesceNodesToRelink (string nodeID) |
Adds the provided node to the previously recorded list of nodes to relink. More... | |
void | beginUndoStackMacro (QString commandName) |
Initiates an Undo stack macro with the provided commandName . More... | |
void | endUndoStackMacro () |
Concludes the Undo stack macro currently being composed. More... | |
static string | deriveBaseNodeClassNameFromDisplayName (string displayName) |
Derives a base node class name from the provided node display name, for use in installing user-named subcomposition nodes. More... | |
Signals | |
void | windowActivated () |
Emitted when the window has been activated. More... | |
void | windowDeactivated () |
Emitted when the window has been de-activated. More... | |
Public Member Functions | |
VuoEditorWindow (QString documentIdentifier="", QString compositionPath="", const string &compositionAsString="", VuoNodeLibrary::nodeLibraryDisplayMode nodeLibraryDisplayMode=VuoNodeLibrary::displayByClass, VuoNodeLibrary::nodeLibraryState nodeLibraryState=VuoNodeLibrary::nodeLibraryHidden, VuoNodeLibrary *floater=NULL, VuoProtocol *activeProtocol=NULL, string nodeClassToHighlight="") | |
Creates a new window for editing a Vuo Composition. More... | |
bool | isScrollInProgress () |
Returns true if a scroll gesture is currently being performed. More... | |
bool | isItemDragInProgress () |
Returns true if items are currently being dragged around the canvas. More... | |
double | getLatestDragTime () |
Returns the timestamp of the most recent drag event. More... | |
void | highlightNodeClass (string nodeClass) |
Calls attention to nodes of class nodeClass within the composition by selecting them and centering the view on them. More... | |
VuoNodeLibrary * | getOwnedNodeLibrary () |
Returns a pointer to the node class library owned by this editor window. More... | |
VuoNodeLibrary * | getCurrentNodeLibrary () |
Returns a pointer to the node class library currently in use by this editor window. More... | |
void | assignSurrogateNodeLibrary (VuoNodeLibrary *library) |
Assigns a surrogate node class library to be used instead of the library owned by this window, e.g., when in global floating-node-library mode and the library owned by this window is hidden. More... | |
void | releaseSurrogateNodeLibrary (bool previousFloaterDestroyed) |
Releases any surrogate node class library currently assigned to this window. More... | |
QMenu * | getFileMenu () |
Returns the "File" menu associated with this editor window. More... | |
VuoRecentFileMenu * | getRecentFileMenu () |
Returns the "File > Open Recent" menu associated with this editor window. More... | |
void | setIncludeInRecentFileMenu (bool include) |
Sets the boolean indicating whether this file should be added to the "File > Open Recent" list when saved. More... | |
VuoEditorComposition * | getComposition () |
Returns the composition associated with this editor window. More... | |
QPointF | getCursorScenePos () |
Returns the current position of the cursor in scene coordinates. More... | |
VuoCompositionMetadataPanel * | getMetadataPanel () |
Returns the metadata panel for this composition. More... | |
QPointF | getFittedScenePos (QPointF origPos, int leftMargin=50, int topMargin=50, int rightMargin=175, int bottomMargin=75) |
Clamps the provided scene coordinates to the viewport bounds and avoids returning coordinates that exactly match the position of any existing node, for use, e.g., in positioning new nodes near the cursor but within the viewport. More... | |
void | showPublishedPortSidebars () |
Shows the Published Ports side panels for this editor window if they are not already visible. More... | |
void | resetCompositionWithSnapshot (string snapshot) |
Clears the composition of its current components and re-populates it from the provided snapshot. More... | |
void | zoomOutToFit () |
Zooms to fit if the composition is too large to be displayed in full within the current viewport. More... | |
Public Member Functions inherited from VuoMainWindow | |
QString | getWindowTitleWithoutPlaceholder () |
Returns the window title, minus the [*] window-modified placeholder. More... | |
Static Public Member Functions | |
static VuoEditorWindow * | existingWindowWithNewFile () |
Returns an existing window displaying an unsaved composition that was contentless when initialized and unmodified currently, if one exists. More... | |
static bool | containsLikelyVuoComposition (QString text) |
Performs a quick check to determine whether the clipboard contains the text of a likely .vuo composition. More... | |
static VuoEditorWindow * | getMostRecentActiveEditorWindow () |
Returns the most recent active editor window. More... | |
static QString | getNodeClassNameForDisplayNameAndCategory (QString compositionName, QString category, QString defaultCompositionName, QString defaultCategory) |
Returns the node class name derived from the provided composition name and category (subcomposition prefix), or defaults if either derivation is empty. More... | |
Static Public Attributes | |
static QString | untitledComposition |
The display name to use for an untitled composition. More... | |
static VuoEditorWindow * | mostRecentActiveEditorWindow = NULL |
The most recent active VuoEditorWindow . More... | |
Protected Member Functions | |
bool | event (QEvent *event) VuoWarnUnusedResult |
Handles events for the editor window. More... | |
bool | eventFilter (QObject *object, QEvent *event) VuoWarnUnusedResult |
Filters events on watched objects. More... | |
void | keyPressEvent (QKeyEvent *event) |
Handle keypress events. More... | |
void | keyReleaseEvent (QKeyEvent *event) |
Handle key release events. More... | |
void | mouseMoveEvent (QMouseEvent *event) |
Handle mouse move events. More... | |
void | closeEvent (QCloseEvent *event) |
Implement the Close action to close the composition. More... | |
void | moveEvent (QMoveEvent *event) |
Receive widget move events passed in the event parameter. More... | |
void | resizeEvent (QResizeEvent *event) |
Receive widget resize events passed in the event parameter. More... | |
Friends | |
class | TestVuoEditor |
class | TestEditorCommands |
|
explicit |
Creates a new window for editing a Vuo Composition.
If compositionAsString is not empty, that composition is loaded into the window.
The title of the composition is based on documentIdentifier, which can be either the path of the composition or something like "Untitled Composition".
The compiler is configured with compositionPath, which can be the full path of the composition, the path of the directory containing the composition, or empty if no path is known yet.
Definition at line 111 of file VuoEditorWindow.cc.
VuoEditorWindow::~VuoEditorWindow | ( | ) |
Definition at line 673 of file VuoEditorWindow.cc.
|
slot |
Adjusts the input port count for the provided node
by inputPortCountDelta
, provided the node is of a class (e.g., "Make List") eligible for such an operation.
Definition at line 2119 of file VuoEditorWindow.cc.
void VuoEditorWindow::assignSurrogateNodeLibrary | ( | VuoNodeLibrary * | library | ) |
Assigns a surrogate node class library to be used instead of the library owned by this window, e.g., when in global floating-node-library mode and the library owned by this window is hidden.
Definition at line 6232 of file VuoEditorWindow.cc.
|
slot |
Initiates an Undo stack macro with the provided commandName
.
Definition at line 6653 of file VuoEditorWindow.cc.
|
slot |
Cleans up the 'Undo' stack after a cancelled duplication.
Definition at line 1462 of file VuoEditorWindow.cc.
|
protected |
Implement the Close action to close the composition.
Definition at line 4909 of file VuoEditorWindow.cc.
|
slot |
Adds the provided port to the previously recorded list of internal ports to be synced in the running composition.
Definition at line 6532 of file VuoEditorWindow.cc.
|
slot |
Adds the provided node to the previously recorded list of nodes to relink.
Definition at line 6556 of file VuoEditorWindow.cc.
|
slot |
Adds the provided node to the previously recorded list of nodes to unlink.
Definition at line 6548 of file VuoEditorWindow.cc.
|
slot |
Adds the provided port to the previously recorded list of published ports to be synced in the running composition.
Definition at line 6540 of file VuoEditorWindow.cc.
|
slot |
Coalesces the provided composition modifications with previously recorded modifications.
Definition at line 6516 of file VuoEditorWindow.cc.
|
slot |
Resizes the input comment
by dx
points horizontally and dy
points vertically, meanwhile pushing the action onto the undo stack.
Definition at line 1095 of file VuoEditorWindow.cc.
|
slot |
Adds the input components
to the scene, meanwhile pushing the action onto the undo stack.
Definition at line 1107 of file VuoEditorWindow.cc.
|
slot |
Removes the input components
from the scene, meanwhile pushing the action onto the undo stack.
Definition at line 2100 of file VuoEditorWindow.cc.
|
slot |
Update the display mode of the node class library to conform with global settings.
Definition at line 4826 of file VuoEditorWindow.cc.
|
slot |
Completes the connection for the input cableInProgress
to port targetPort
.
This operation may also involve:
portToSpecialize
(if non-NULL) by assigning it a type of specializedTypeName
;dataCableToDisplace
(if non-NULL);cableToReplace
(if non-NULL);typecastNodeToDelete
(if non-NULL);portToUnpublish
(if non-NULL); andtypecastToInsert
(if non-empty).The cableArgs
pair is expected to contain (dataCableToDisplace, cableToReplace). The typeArgs
pair is expected to contain (typecastToInsert, specializedTypeName). The portArgs
pair is expected to contain (portToUnpublish, portToSpecialize).
Pushes the sequence of operations onto the Undo stack, without coalescing them into a macro. To do so, call beginUndoStackMacro() and endUndoStackMacro() before and after calling this function.
Definition at line 1859 of file VuoEditorWindow.cc.
|
static |
Performs a quick check to determine whether the clipboard contains the text of a likely .vuo composition.
Definition at line 5171 of file VuoEditorWindow.cc.
|
slot |
Copies the currently selected content.
If the node library documentation pane currently has selected text (only possible if it is the active widget), copies that text. Otherwise, copies the currently selected comments, nodes, and any cables connecting those nodes internally.
Definition at line 1311 of file VuoEditorWindow.cc.
|
slot |
Copies currenly selected comments, nodes, and any cables connecting those nodes internally; deletes all currently selected comments, nodes, and cables.
Definition at line 1834 of file VuoEditorWindow.cc.
|
staticslot |
Derives a base node class name from the provided node display name, for use in installing user-named subcomposition nodes.
Similar to VuoStringUtilities::transcodeToIdentifier, but we can't use that as-is since it permits non-RDNS-compatible characters (e.g., underscores), removes dots, and doesn't apply camelCase.
Definition at line 4044 of file VuoEditorWindow.cc.
|
slot |
Attempts to determine whether or not the clipboard contains .vuo composition source text.
If so, pastes it onto the canvas; if not, activates the node library text filter and pastes the clipboard contents there.
Definition at line 1333 of file VuoEditorWindow.cc.
|
slot |
Displays the composition metadata in the node library documentation panel, if appropriate.
Otherwise, displays the documentation for the node class currently selected within the node library.
Definition at line 4885 of file VuoEditorWindow.cc.
|
slot |
Duplicates the currently selected comments, nodes, and any cables connecting those nodes internally.
Should be called when the duplication is to be performed as part of a mouse drag, and the operations should be aggregated on the Undo stack.
Definition at line 1395 of file VuoEditorWindow.cc.
|
slot |
Concludes the Undo stack macro currently being composed.
Definition at line 6661 of file VuoEditorWindow.cc.
|
protected |
Handles events for the editor window.
Definition at line 2880 of file VuoEditorWindow.cc.
|
protected |
Filters events on watched objects.
Definition at line 3000 of file VuoEditorWindow.cc.
|
static |
Returns an existing window displaying an unsaved composition that was contentless when initialized and unmodified currently, if one exists.
Otherwise returns NULL.
Compositions that contain only the default "Fire on Start" node are considered contentless; compositions initialized from a protocol or window template are not.
Definition at line 1047 of file VuoEditorWindow.cc.
|
slot |
Unpublishes the provided externally visible published port
, meanwhile pushing the action onto the undo stack.
Definition at line 2745 of file VuoEditorWindow.cc.
VuoEditorComposition * VuoEditorWindow::getComposition | ( | ) |
Returns the composition associated with this editor window.
Definition at line 6267 of file VuoEditorWindow.cc.
VuoNodeLibrary * VuoEditorWindow::getCurrentNodeLibrary | ( | ) |
Returns a pointer to the node class library currently in use by this editor window.
This may be the library docked into the window or the single floating library.
Definition at line 6222 of file VuoEditorWindow.cc.
QPointF VuoEditorWindow::getCursorScenePos | ( | ) |
Returns the current position of the cursor in scene coordinates.
Definition at line 6591 of file VuoEditorWindow.cc.
QMenu * VuoEditorWindow::getFileMenu | ( | ) |
Returns the "File" menu associated with this editor window.
Definition at line 6251 of file VuoEditorWindow.cc.
QPointF VuoEditorWindow::getFittedScenePos | ( | QPointF | origPos, |
int | leftMargin = 50 , |
||
int | topMargin = 50 , |
||
int | rightMargin = 175 , |
||
int | bottomMargin = 75 |
||
) |
Clamps the provided scene coordinates to the viewport bounds and avoids returning coordinates that exactly match the position of any existing node, for use, e.g., in positioning new nodes near the cursor but within the viewport.
Enforces the provided margins around the edges of the viewport. Current defaults are approximations in an effort to make nodes fully visible within the viewport.
Definition at line 6613 of file VuoEditorWindow.cc.
double VuoEditorWindow::getLatestDragTime | ( | ) |
Returns the timestamp of the most recent drag event.
Definition at line 3328 of file VuoEditorWindow.cc.
VuoCompositionMetadataPanel * VuoEditorWindow::getMetadataPanel | ( | ) |
Returns the metadata panel for this composition.
Definition at line 6599 of file VuoEditorWindow.cc.
|
static |
Returns the most recent active editor window.
Definition at line 6205 of file VuoEditorWindow.cc.
|
static |
Returns the node class name derived from the provided composition name and category (subcomposition prefix), or defaults if either derivation is empty.
Definition at line 4020 of file VuoEditorWindow.cc.
VuoNodeLibrary * VuoEditorWindow::getOwnedNodeLibrary | ( | ) |
Returns a pointer to the node class library owned by this editor window.
Definition at line 6213 of file VuoEditorWindow.cc.
|
slot |
Returns the action associated with raising the current editor window to the foreground.
Definition at line 6143 of file VuoEditorWindow.cc.
VuoRecentFileMenu * VuoEditorWindow::getRecentFileMenu | ( | void | ) |
Returns the "File > Open Recent" menu associated with this editor window.
Definition at line 6259 of file VuoEditorWindow.cc.
|
slot |
Returns the Show Events action.
Definition at line 6151 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6167 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6183 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6159 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6175 of file VuoEditorWindow.cc.
void VuoEditorWindow::highlightNodeClass | ( | string | nodeClass | ) |
Calls attention to nodes of class nodeClass
within the composition by selecting them and centering the view on them.
Definition at line 1417 of file VuoEditorWindow.cc.
|
slot |
Publishes the provided internalPort
in association with the provided externalPort
, meanwhile pushing the action onto the undo stack.
Definition at line 2544 of file VuoEditorWindow.cc.
|
slot |
Publishes the provided port
, meanwhile pushing the action onto the undo stack.
Definition at line 2560 of file VuoEditorWindow.cc.
|
slot |
Publishes the provided port
, meanwhile pushing the action onto the undo stack.
Definition at line 2552 of file VuoEditorWindow.cc.
|
slot |
Unpublishes the provided internally visible published port
, meanwhile pushing the action onto the undo stack.
Definition at line 2777 of file VuoEditorWindow.cc.
bool VuoEditorWindow::isItemDragInProgress | ( | ) |
Returns true if items are currently being dragged around the canvas.
Definition at line 3312 of file VuoEditorWindow.cc.
bool VuoEditorWindow::isScrollInProgress | ( | ) |
Returns true if a scroll gesture is currently being performed.
Definition at line 3304 of file VuoEditorWindow.cc.
|
slot |
Moves input nodes
and comments
dx
points horizontally and dy
points vertically, meanwhile pushing the action onto the undo stack.
Definition at line 1062 of file VuoEditorWindow.cc.
|
protected |
Handle keypress events.
Definition at line 3391 of file VuoEditorWindow.cc.
|
protected |
Handle key release events.
Definition at line 3469 of file VuoEditorWindow.cc.
|
slot |
Renames, removes, and adds the provided sets of published ports, in that order, pushing each operation onto the Undo stack.
Definition at line 2800 of file VuoEditorWindow.cc.
|
protected |
Handle mouse move events.
Definition at line 3489 of file VuoEditorWindow.cc.
|
protected |
Receive widget move events passed in the event
parameter.
When the widget receives this event, it is already at the new position.
Definition at line 6344 of file VuoEditorWindow.cc.
|
slot |
Finds and selects nodes that contain the user-entered search term within their display names or node class names.
Definition at line 4126 of file VuoEditorWindow.cc.
|
slot |
Advances to the next search result.
Definition at line 4137 of file VuoEditorWindow.cc.
|
slot |
Returns to the previous search result.
Definition at line 4146 of file VuoEditorWindow.cc.
|
slot |
Re-fires the most recently manually fired trigger port.
Definition at line 4551 of file VuoEditorWindow.cc.
|
slot |
Implements the Restart action to restart the running composition.
Definition at line 4542 of file VuoEditorWindow.cc.
|
slot |
Implements the Run action to run the composition.
Definition at line 4514 of file VuoEditorWindow.cc.
|
slot |
De-selects all composition components and resets the documentation panel content.
Definition at line 3568 of file VuoEditorWindow.cc.
|
slot |
Shows the Node Class Library browser for this editor window and focuses its text filter.
Definition at line 4618 of file VuoEditorWindow.cc.
|
slot |
Implements the Stop action to stop the composition.
Definition at line 4529 of file VuoEditorWindow.cc.
|
slot |
Unconditionally zooms to fit the composition.
Definition at line 3629 of file VuoEditorWindow.cc.
void VuoEditorWindow::releaseSurrogateNodeLibrary | ( | bool | previousFloaterDestroyed | ) |
Releases any surrogate node class library currently assigned to this window.
Definition at line 6242 of file VuoEditorWindow.cc.
void VuoEditorWindow::resetCompositionWithSnapshot | ( | string | snapshot | ) |
Clears the composition of its current components and re-populates it from the provided snapshot.
Definition at line 1474 of file VuoEditorWindow.cc.
|
protected |
Receive widget resize events passed in the event
parameter.
When the widget receives this event, it already has its new geometry.
Definition at line 6362 of file VuoEditorWindow.cc.
|
slot |
Re-specializes the provided port
by replacing all networked ports of its re-specialized type with ports of type specializedTypeName
.
Coalesces all port re-specializations into a single Undo stack macro.
Returns a pointer to the new parent node of the given port
after re-specialization.
Definition at line 2381 of file VuoEditorWindow.cc.
|
slot |
Re-specializes the provided port
by replacing all networked ports of its re-specialized type with ports of type specializedTypeName
.
If encapsulateInMacro
is true, coalesces all port re-specializations into a single Undo stack macro.
Returns a pointer to the new parent node of the given port
after re-specialization.
Definition at line 2395 of file VuoEditorWindow.cc.
|
slot |
Raises the current editor window to the foreground and activates it.
Definition at line 6191 of file VuoEditorWindow.cc.
void VuoEditorWindow::setIncludeInRecentFileMenu | ( | bool | include | ) |
Sets the boolean indicating whether this file should be added to the "File > Open Recent" list when saved.
Definition at line 5656 of file VuoEditorWindow.cc.
|
slot |
Updates the trigger port's event-throttling behavior.
Definition at line 2109 of file VuoEditorWindow.cc.
void VuoEditorWindow::showPublishedPortSidebars | ( | void | ) |
Shows the Published Ports side panels for this editor window if they are not already visible.
Returns a boolean indicating whether they did in fact need to be shown (were previously hidden).
Definition at line 4639 of file VuoEditorWindow.cc.
|
slot |
Specializes the provided port
by replacing all networked ports of its generic type with ports of type specializedTypeName
, meanwhile pushing the action onto the undo stack.
Coalesces all port specializations into a single Undo stack macro.
Returns a pointer to the new parent node of the given port
after specialization.
Definition at line 2183 of file VuoEditorWindow.cc.
|
slot |
Specializes the provided port
by replacing all networked ports of its generic type with ports of type specializedTypeName
, meanwhile pushing the action onto the undo stack.
If encapsulateInMacro
is true, coalesces all port specializations into a single Undo stack macro.
Returns a pointer to the new parent node of the given port
after specialization.
Definition at line 2196 of file VuoEditorWindow.cc.
|
slot |
Replaces the provided composition node with another node of the specified class, preserving whatever connections possible.
Definition at line 2165 of file VuoEditorWindow.cc.
|
slot |
Sets the tint color of the selected nodes and comments to tintColor
, meanwhile pushing the action onto the undo stack.
Definition at line 2442 of file VuoEditorWindow.cc.
|
slot |
Reverts the provided port
and all ports within its connected network to their original generic origins, meanwhile pushing the action onto the Undo stack.
Coalesces all port specializations into a single Undo stack macro.
Returns a pointer to the new parent node of the given port
after unspecialization.
Definition at line 2301 of file VuoEditorWindow.cc.
|
slot |
Reverts the provided port
and all ports within its connected network to their original generic origins, meanwhile pushing the action onto the Undo stack.
If encapsulateInMacro
is true, coalesces all port specializations into a single Undo stack macro.
Returns a pointer to the new parent node of the given port
after unspecialization.
Definition at line 2314 of file VuoEditorWindow.cc.
|
slot |
Call this to indicate that a drag is in progress or has just completed.
Definition at line 3320 of file VuoEditorWindow.cc.
|
slot |
Updates the UI elements (e.g., enables/disables buttons) based on the application's state.
Definition at line 833 of file VuoEditorWindow.cc.
|
signal |
Emitted when the window has been activated.
|
signal |
Emitted when the window has been de-activated.
void VuoEditorWindow::zoomOutToFit | ( | ) |
Zooms to fit if the composition is too large to be displayed in full within the current viewport.
Definition at line 3646 of file VuoEditorWindow.cc.
|
friend |
Definition at line 232 of file VuoEditorWindow.hh.
|
friend |
Definition at line 231 of file VuoEditorWindow.hh.
|
static |
The most recent active VuoEditorWindow
.
Definition at line 84 of file VuoEditorWindow.hh.
|
static |
The display name to use for an untitled composition.
Definition at line 83 of file VuoEditorWindow.hh.