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. 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 nodes and any cables connecting them internally; deletes all currently selected 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 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 const QString | untitledComposition = QObject::tr("Untitled Composition") |
The display name to use for an untitled composition. More... | |
static VuoEditorWindow * | mostRecentActiveEditorWindow = NULL |
The most recently-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 |
|
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 112 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 2044 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 6102 of file VuoEditorWindow.cc.
|
slot |
Initiates an Undo stack macro with the provided commandName
.
Definition at line 6551 of file VuoEditorWindow.cc.
|
slot |
Cleans up the 'Undo' stack after a cancelled duplication.
Definition at line 1390 of file VuoEditorWindow.cc.
|
protected |
Implement the Close action to close the composition.
Definition at line 4786 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 6430 of file VuoEditorWindow.cc.
|
slot |
Adds the provided node to the previously recorded list of nodes to relink.
Definition at line 6454 of file VuoEditorWindow.cc.
|
slot |
Adds the provided node to the previously recorded list of nodes to unlink.
Definition at line 6446 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 6438 of file VuoEditorWindow.cc.
|
slot |
Coalesces the provided composition modifications with previously recorded modifications.
Definition at line 6414 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 1050 of file VuoEditorWindow.cc.
|
slot |
Adds the input components
to the scene, meanwhile pushing the action onto the undo stack.
Definition at line 1062 of file VuoEditorWindow.cc.
|
slot |
Removes the input components
from the scene, meanwhile pushing the action onto the undo stack.
Definition at line 2025 of file VuoEditorWindow.cc.
|
slot |
Update the display mode of the node class library to conform with global settings.
Definition at line 4703 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 1784 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 nodes and any cables connecting them internally.
Definition at line 1257 of file VuoEditorWindow.cc.
|
slot |
Copies currenly selected nodes and any cables connecting them internally; deletes all currently selected nodes and cables.
Definition at line 1759 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 3923 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 1279 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 4762 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 1323 of file VuoEditorWindow.cc.
|
slot |
Concludes the Undo stack macro currently being composed.
Definition at line 6559 of file VuoEditorWindow.cc.
|
protected |
Handles events for the editor window.
Definition at line 2787 of file VuoEditorWindow.cc.
|
protected |
Filters events on watched objects.
Definition at line 2907 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 1002 of file VuoEditorWindow.cc.
|
slot |
Unpublishes the provided externally visible published port
, meanwhile pushing the action onto the undo stack.
Definition at line 2652 of file VuoEditorWindow.cc.
VuoEditorComposition * VuoEditorWindow::getComposition | ( | ) |
Returns the composition associated with this editor window.
Definition at line 6137 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 6092 of file VuoEditorWindow.cc.
QPointF VuoEditorWindow::getCursorScenePos | ( | ) |
Returns the current position of the cursor in scene coordinates.
Definition at line 6489 of file VuoEditorWindow.cc.
QMenu * VuoEditorWindow::getFileMenu | ( | ) |
Returns the "File" menu associated with this editor window.
Definition at line 6121 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 6511 of file VuoEditorWindow.cc.
double VuoEditorWindow::getLatestDragTime | ( | ) |
Returns the timestamp of the most recent drag event.
Definition at line 3223 of file VuoEditorWindow.cc.
VuoCompositionMetadataPanel * VuoEditorWindow::getMetadataPanel | ( | ) |
Returns the metadata panel for this composition.
Definition at line 6497 of file VuoEditorWindow.cc.
|
static |
Returns the most recent active editor window.
Definition at line 6075 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 3902 of file VuoEditorWindow.cc.
VuoNodeLibrary * VuoEditorWindow::getOwnedNodeLibrary | ( | ) |
Returns a pointer to the node class library owned by this editor window.
Definition at line 6083 of file VuoEditorWindow.cc.
|
slot |
Returns the action associated with raising the current editor window to the foreground.
Definition at line 6013 of file VuoEditorWindow.cc.
VuoRecentFileMenu * VuoEditorWindow::getRecentFileMenu | ( | ) |
Returns the "File > Open Recent" menu associated with this editor window.
Definition at line 6129 of file VuoEditorWindow.cc.
|
slot |
Returns the Show Events action.
Definition at line 6021 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6037 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6053 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6029 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6045 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 1345 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 2451 of file VuoEditorWindow.cc.
|
slot |
Publishes the provided port
, meanwhile pushing the action onto the undo stack.
Definition at line 2467 of file VuoEditorWindow.cc.
|
slot |
Publishes the provided port
, meanwhile pushing the action onto the undo stack.
Definition at line 2459 of file VuoEditorWindow.cc.
|
slot |
Unpublishes the provided internally visible published port
, meanwhile pushing the action onto the undo stack.
Definition at line 2684 of file VuoEditorWindow.cc.
bool VuoEditorWindow::isItemDragInProgress | ( | ) |
Returns true if items are currently being dragged around the canvas.
Definition at line 3207 of file VuoEditorWindow.cc.
bool VuoEditorWindow::isScrollInProgress | ( | ) |
Returns true if a scroll gesture is currently being performed.
Definition at line 3199 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 1017 of file VuoEditorWindow.cc.
|
protected |
Handle keypress events.
Definition at line 3286 of file VuoEditorWindow.cc.
|
protected |
Handle key release events.
Definition at line 3362 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 2707 of file VuoEditorWindow.cc.
|
protected |
Handle mouse move events.
Definition at line 3382 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 6214 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 4012 of file VuoEditorWindow.cc.
|
slot |
Advances to the next search result.
Definition at line 4023 of file VuoEditorWindow.cc.
|
slot |
Returns to the previous search result.
Definition at line 4032 of file VuoEditorWindow.cc.
|
slot |
Re-fires the most recently manually fired trigger port.
Definition at line 4436 of file VuoEditorWindow.cc.
|
slot |
Implements the Restart action to restart the running composition.
Definition at line 4427 of file VuoEditorWindow.cc.
|
slot |
Implements the Run action to run the composition.
Definition at line 4399 of file VuoEditorWindow.cc.
|
slot |
De-selects all composition components and resets the documentation panel content.
Definition at line 3460 of file VuoEditorWindow.cc.
|
slot |
Shows the Node Class Library browser for this editor window and focuses its text filter.
Definition at line 4495 of file VuoEditorWindow.cc.
|
slot |
Implements the Stop action to stop the composition.
Definition at line 4414 of file VuoEditorWindow.cc.
|
slot |
Unconditionally zooms to fit the composition.
Definition at line 3508 of file VuoEditorWindow.cc.
void VuoEditorWindow::releaseSurrogateNodeLibrary | ( | bool | previousFloaterDestroyed | ) |
Releases any surrogate node class library currently assigned to this window.
Definition at line 6112 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 1402 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 6226 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 2288 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 2302 of file VuoEditorWindow.cc.
|
slot |
Raises the current editor window to the foreground and activates it.
Definition at line 6061 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 5539 of file VuoEditorWindow.cc.
|
slot |
Updates the trigger port's event-throttling behavior.
Definition at line 2034 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 4516 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 2108 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 2121 of file VuoEditorWindow.cc.
|
slot |
Replaces the provided composition node with another node of the specified class, preserving whatever connections possible.
Definition at line 2090 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 2349 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 2214 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 2227 of file VuoEditorWindow.cc.
|
slot |
Call this to indicate that a drag is in progress or has just completed.
Definition at line 3215 of file VuoEditorWindow.cc.
|
slot |
Updates the UI elements (e.g.
enables/disables buttons) based on the application's state.
Definition at line 827 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 3525 of file VuoEditorWindow.cc.
|
static |
The most recently-active VuoEditorWindow
.
Definition at line 83 of file VuoEditorWindow.hh.
|
static |
The display name to use for an untitled composition.
Definition at line 82 of file VuoEditorWindow.hh.