Vuo  0.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Friends | List of all members
VuoEditorWindow Class Reference

Description

Represents a window for editing a Vuo Composition.

One instance per composition.

Public Slots

void nodesMoved (set< VuoRendererNode * > nodes, qreal dx, qreal dy, bool movedByDragging)
 Moves input nodes dx points horizontally and dy points vertically, meanwhile pushing the action onto the undo stack.
 
void connectionCompleted (VuoRendererCable *cableInProgress, VuoRendererPort *targetPort, VuoRendererCable *previousConnectedCable)
 Completes the connection for the input cableInProgress to port *targetPort, displacing the previousConnectedCable, if any, meanwhile pushing the action onto the undo stack.
 
void portConstantSet (VuoCompilerInputEventPort *port, QString value)
 Sets the value of the input port to value, meanwhile pushing the action onto the undo stack.
 
void componentsRemoved (QList< QGraphicsItem * > components, string commandDescription)
 Removes the input components from the scene, meanwhile pushing the action onto the undo stack.
 
void componentsAdded (QList< QGraphicsItem * > components)
 Adds the input components to the scene, meanwhile pushing the action onto the undo stack.
 
void cutSelectedGraphComponents ()
 Copies currenly selected nodes and any cables connecting them internally; deletes all currently selected nodes and cables.
 
void copySelectedGraphComponents ()
 Copies currently selected nodes and any cables connecting them.
 
void pasteGraphComponents (bool pasteWithOffset=true, string commandDescription="Paste")
 Pastes graph components from the clipboard.
 

Public Member Functions

 VuoEditorWindow (VuoCompiler *compiler=NULL, QString filename="", bool existingComposition=false)
 Creates a new window for editing a Vuo Composition.
 
VuoRendererNodecreateNode (QString nodeClassName, string displayName, double x, double y, bool offsetFromViewportCenter=true)
 Optionally offsets input coordinates x and y from the viewport center and initiates instantiation of a node of class nodeClass in the associated graph.
 

Static Public Member Functions

static VuoEditorWindowexistingWindowWithFile (const QString &filename)
 Returns an existing window editing filename, if it exists.
 

Static Public Attributes

static const QString untitledComposition = QObject::tr("untitled composition")
 

Protected Member Functions

bool event (QEvent *event)
 Handles events for the editor window.
 
bool eventFilter (QObject *object, QEvent *event)
 Filters events on watched objects.
 
void keyPressEvent (QKeyEvent *event)
 Handle keypress events.
 
void closeEvent (QCloseEvent *event)
 Implement the Close action to close the graph.
 

Friends

class TestVuoEditor
 

Constructor & Destructor Documentation

VuoEditorWindow::VuoEditorWindow ( VuoCompiler compiler = NULL,
QString  filename = "",
bool  existingComposition = false 
)
explicit

Creates a new window for editing a Vuo Composition.

If filename is not an empty string, that composition is loaded into the window.

Member Function Documentation

VuoEditorWindow * VuoEditorWindow::existingWindowWithFile ( const QString &  filename)
static

Returns an existing window editing filename, if it exists.

Otherwise returns NULL.


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