Represents a window for editing a Vuo Composition.
One instance per composition.
Definition at line 45 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 | displayExportErrorBox (QString error) |
If the provided error message is non-empty, displays a message box announcing the export failure. 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... | |
void | movieExportParametersSet (int width, int height, double time, double duration, double framerate, int spatialSupersample, int temporalSuperSample, float shutterAngle, QString imageFormat, double quality) |
Emitted when the user has configured the movie export parameters. 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... | |
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... | |
void | displayExportCompleteBox (QString typeKey, QString typeNamePlural, QString description, VuoEditorComposition::ExportStatus status=VuoEditorComposition::exportSuccess) |
Shows a dialog explaining that the export has completed successfully, with the option to hide it from now on. 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 | getNodeClassNameForDisplayName (QString compositionName) |
Returns the node class name derived from the provided composition name and the username associated with the current editor session. 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 115 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 2089 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 6308 of file VuoEditorWindow.cc.
|
slot |
Initiates an Undo stack macro with the provided commandName
.
Definition at line 6673 of file VuoEditorWindow.cc.
|
slot |
Cleans up the 'Undo' stack after a cancelled duplication.
Definition at line 1445 of file VuoEditorWindow.cc.
|
protected |
Implement the Close action to close the composition.
Definition at line 5047 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 1105 of file VuoEditorWindow.cc.
|
slot |
Adds the input components
to the scene, meanwhile pushing the action onto the undo stack.
Definition at line 1117 of file VuoEditorWindow.cc.
|
slot |
Removes the input components
from the scene, meanwhile pushing the action onto the undo stack.
Definition at line 2070 of file VuoEditorWindow.cc.
|
slot |
Update the display mode of the node class library to conform with global settings.
Definition at line 4964 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 1839 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 1312 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 1814 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.
Definition at line 3882 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 1334 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 5023 of file VuoEditorWindow.cc.
void VuoEditorWindow::displayExportCompleteBox | ( | QString | typeKey, |
QString | typeNamePlural, | ||
QString | description, | ||
VuoEditorComposition::ExportStatus | status = VuoEditorComposition::exportSuccess |
||
) |
Shows a dialog explaining that the export has completed successfully, with the option to hide it from now on.
Definition at line 4080 of file VuoEditorWindow.cc.
|
slot |
If the provided error
message is non-empty, displays a message box announcing the export failure.
Definition at line 4732 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 1378 of file VuoEditorWindow.cc.
|
slot |
Concludes the Undo stack macro currently being composed.
Definition at line 6681 of file VuoEditorWindow.cc.
|
protected |
Handles events for the editor window.
Definition at line 2820 of file VuoEditorWindow.cc.
|
protected |
Filters events on watched objects.
Definition at line 2940 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 1057 of file VuoEditorWindow.cc.
|
slot |
Unpublishes the provided externally visible published port
, meanwhile pushing the action onto the undo stack.
Definition at line 2685 of file VuoEditorWindow.cc.
VuoEditorComposition * VuoEditorWindow::getComposition | ( | ) |
Returns the composition associated with this editor window.
Definition at line 6343 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 6298 of file VuoEditorWindow.cc.
QPointF VuoEditorWindow::getCursorScenePos | ( | ) |
Returns the current position of the cursor in scene coordinates.
Definition at line 6611 of file VuoEditorWindow.cc.
QMenu * VuoEditorWindow::getFileMenu | ( | ) |
Returns the "File" menu associated with this editor window.
Definition at line 6327 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 6633 of file VuoEditorWindow.cc.
double VuoEditorWindow::getLatestDragTime | ( | ) |
Returns the timestamp of the most recent drag event.
Definition at line 3256 of file VuoEditorWindow.cc.
VuoCompositionMetadataPanel * VuoEditorWindow::getMetadataPanel | ( | ) |
Returns the metadata panel for this composition.
Definition at line 6619 of file VuoEditorWindow.cc.
|
static |
Returns the most recent active editor window.
Definition at line 6281 of file VuoEditorWindow.cc.
|
static |
Returns the node class name derived from the provided composition name and the username associated with the current editor session.
Definition at line 3870 of file VuoEditorWindow.cc.
VuoNodeLibrary * VuoEditorWindow::getOwnedNodeLibrary | ( | ) |
Returns a pointer to the node class library owned by this editor window.
Definition at line 6289 of file VuoEditorWindow.cc.
|
slot |
Returns the action associated with raising the current editor window to the foreground.
Definition at line 6219 of file VuoEditorWindow.cc.
VuoRecentFileMenu * VuoEditorWindow::getRecentFileMenu | ( | ) |
Returns the "File > Open Recent" menu associated with this editor window.
Definition at line 6335 of file VuoEditorWindow.cc.
|
slot |
Returns the Show Events action.
Definition at line 6227 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6243 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6259 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6235 of file VuoEditorWindow.cc.
|
slot |
Returns a zoom action.
Definition at line 6251 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 1400 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 2491 of file VuoEditorWindow.cc.
|
slot |
Publishes the provided port
, meanwhile pushing the action onto the undo stack.
Definition at line 2507 of file VuoEditorWindow.cc.
|
slot |
Publishes the provided port
, meanwhile pushing the action onto the undo stack.
Definition at line 2499 of file VuoEditorWindow.cc.
|
slot |
Unpublishes the provided internally visible published port
, meanwhile pushing the action onto the undo stack.
Definition at line 2717 of file VuoEditorWindow.cc.
bool VuoEditorWindow::isItemDragInProgress | ( | ) |
Returns true if items are currently being dragged around the canvas.
Definition at line 3240 of file VuoEditorWindow.cc.
bool VuoEditorWindow::isScrollInProgress | ( | ) |
Returns true if a scroll gesture is currently being performed.
Definition at line 3232 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 1072 of file VuoEditorWindow.cc.
|
protected |
Handle keypress events.
Definition at line 3319 of file VuoEditorWindow.cc.
|
protected |
Handle key release events.
Definition at line 3386 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 2740 of file VuoEditorWindow.cc.
|
protected |
Handle mouse move events.
Definition at line 3406 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 6420 of file VuoEditorWindow.cc.
|
signal |
Emitted when the user has configured the movie export parameters.
|
slot |
Finds and selects nodes that contain the user-entered search term within their display names or node class names.
Definition at line 4297 of file VuoEditorWindow.cc.
|
slot |
Advances to the next search result.
Definition at line 4308 of file VuoEditorWindow.cc.
|
slot |
Returns to the previous search result.
Definition at line 4317 of file VuoEditorWindow.cc.
|
slot |
Re-fires the most recently manually fired trigger port.
Definition at line 4692 of file VuoEditorWindow.cc.
|
slot |
Implements the Restart action to restart the running composition.
Definition at line 4683 of file VuoEditorWindow.cc.
|
slot |
Implements the Run action to run the composition.
Definition at line 4659 of file VuoEditorWindow.cc.
|
slot |
De-selects all composition components and resets the documentation panel content.
Definition at line 3484 of file VuoEditorWindow.cc.
|
slot |
Shows the Node Class Library browser for this editor window and focuses its text filter.
Definition at line 4766 of file VuoEditorWindow.cc.
|
slot |
Implements the Stop action to stop the composition.
Definition at line 4672 of file VuoEditorWindow.cc.
|
slot |
Unconditionally zooms to fit the composition.
Definition at line 3532 of file VuoEditorWindow.cc.
void VuoEditorWindow::releaseSurrogateNodeLibrary | ( | bool | previousFloaterDestroyed | ) |
Releases any surrogate node class library currently assigned to this window.
Definition at line 6318 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 1457 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 6432 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 2332 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 2346 of file VuoEditorWindow.cc.
|
slot |
Raises the current editor window to the foreground and activates it.
Definition at line 6267 of file VuoEditorWindow.cc.
|
slot |
Updates the trigger port's event-throttling behavior.
Definition at line 2079 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 4788 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 2152 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 2165 of file VuoEditorWindow.cc.
|
slot |
Replaces the provided composition node with another node of the specified class, preserving whatever connections possible.
Definition at line 2135 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 2389 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 2258 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 2271 of file VuoEditorWindow.cc.
|
slot |
Call this to indicate that a drag is in progress or has just completed.
Definition at line 3248 of file VuoEditorWindow.cc.
|
slot |
Updates the UI elements (e.g.
enables/disables buttons) based on the application's state.
Definition at line 825 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 3549 of file VuoEditorWindow.cc.
|
static |
The most recently-active VuoEditorWindow
.
Definition at line 82 of file VuoEditorWindow.hh.
|
static |
The display name to use for an untitled composition.
Definition at line 81 of file VuoEditorWindow.hh.