Vuo  2.0.0
Public Slots | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
VuoCodeWindow Class Reference

Description

A window for editing text code.

Definition at line 35 of file VuoCodeWindow.hh.

Public Slots

void on_runComposition_triggered ()
 Runs the wrapper composition. More...
 
void on_stopComposition_triggered ()
 Stops the wrapper composition. More...
 
void on_restartComposition_triggered ()
 Restarts the wrapper composition. More...
 

Public Member Functions

 VuoCodeWindow (const string &sourcePath)
 Creates a window for editing the fragment shader at sourcePath. More...
 
void setIssues (VuoCompilerIssues *compilerIssues)
 Shows a list of warnings/errors (line number and text description). More...
 
string getNodeClassName (void)
 Returns the node class name being edited by this window. More...
 
void setAsActiveWindow ()
 Raises the current code window to the foreground and activates it. More...
 
void updateReloadAction ()
 Enables the Reload action if this shader or a composition containing it is running; disables it otherwise. More...
 
QMenu * getFileMenu ()
 Returns the "File" menu associated with this code window. More...
 
VuoRecentFileMenugetRecentFileMenu ()
 Returns the "File > Open Recent" menu associated with this code 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...
 
QAction * getRaiseDocumentAction () const
 Returns the action associated with raising the current code window to the foreground. More...
 
QAction * getZoom11Action () const
 Returns the action associated with zooming to actual size. More...
 
QAction * getZoomInAction () const
 Returns the action associated with zooming in. More...
 
QAction * getZoomOutAction () const
 Returns the action associated with zooming out. More...
 
- Public Member Functions inherited from VuoMainWindow
QString getWindowTitleWithoutPlaceholder ()
 Returns the window title, minus the [*] window-modified placeholder. More...
 

Static Public Member Functions

static void newShaderWithTemplate (QAction *sender)
 Creates a code editor window with the code template indicated by the sender. More...
 

Public Attributes

VuoCodeEditorStagesstages
 The code editor widgets for this window. More...
 
VuoCodeIssueListissueList
 The widget that renders this window's issues. More...
 
VuoShaderIssuesissues
 The issues for this window's shader. More...
 

Constructor & Destructor Documentation

◆ VuoCodeWindow()

VuoCodeWindow::VuoCodeWindow ( const string &  sourcePath)
explicit

Creates a window for editing the fragment shader at sourcePath.

When this function returns, the window is ready to be shown.

Definition at line 50 of file VuoCodeWindow.cc.

Member Function Documentation

◆ getFileMenu()

QMenu * VuoCodeWindow::getFileMenu ( )

Returns the "File" menu associated with this code window.

Definition at line 1029 of file VuoCodeWindow.cc.

◆ getNodeClassName()

string VuoCodeWindow::getNodeClassName ( void  )

Returns the node class name being edited by this window.

Definition at line 895 of file VuoCodeWindow.cc.

◆ getRaiseDocumentAction()

QAction * VuoCodeWindow::getRaiseDocumentAction ( ) const

Returns the action associated with raising the current code window to the foreground.

Definition at line 997 of file VuoCodeWindow.cc.

◆ getRecentFileMenu()

VuoRecentFileMenu * VuoCodeWindow::getRecentFileMenu ( )

Returns the "File > Open Recent" menu associated with this code window.

Definition at line 1037 of file VuoCodeWindow.cc.

◆ getZoom11Action()

QAction * VuoCodeWindow::getZoom11Action ( ) const

Returns the action associated with zooming to actual size.

Definition at line 1005 of file VuoCodeWindow.cc.

◆ getZoomInAction()

QAction * VuoCodeWindow::getZoomInAction ( ) const

Returns the action associated with zooming in.

Definition at line 1013 of file VuoCodeWindow.cc.

◆ getZoomOutAction()

QAction * VuoCodeWindow::getZoomOutAction ( ) const

Returns the action associated with zooming out.

Definition at line 1021 of file VuoCodeWindow.cc.

◆ newShaderWithTemplate()

void VuoCodeWindow::newShaderWithTemplate ( QAction *  sender)
static

Creates a code editor window with the code template indicated by the sender.

Definition at line 344 of file VuoCodeWindow.cc.

◆ on_restartComposition_triggered

void VuoCodeWindow::on_restartComposition_triggered ( )
slot

Restarts the wrapper composition.

Definition at line 595 of file VuoCodeWindow.cc.

◆ on_runComposition_triggered

void VuoCodeWindow::on_runComposition_triggered ( )
slot

Runs the wrapper composition.

Definition at line 567 of file VuoCodeWindow.cc.

◆ on_stopComposition_triggered

void VuoCodeWindow::on_stopComposition_triggered ( )
slot

Stops the wrapper composition.

Definition at line 583 of file VuoCodeWindow.cc.

◆ setAsActiveWindow()

void VuoCodeWindow::setAsActiveWindow ( )

Raises the current code window to the foreground and activates it.

Definition at line 1045 of file VuoCodeWindow.cc.

◆ setIncludeInRecentFileMenu()

void VuoCodeWindow::setIncludeInRecentFileMenu ( bool  include)

Sets the boolean indicating whether this file should be added to the "File > Open Recent" list when saved.

Definition at line 480 of file VuoCodeWindow.cc.

◆ setIssues()

void VuoCodeWindow::setIssues ( VuoCompilerIssues compilerIssues)

Shows a list of warnings/errors (line number and text description).

Definition at line 874 of file VuoCodeWindow.cc.

◆ updateReloadAction()

void VuoCodeWindow::updateReloadAction ( )

Enables the Reload action if this shader or a composition containing it is running; disables it otherwise.

Definition at line 1068 of file VuoCodeWindow.cc.

Member Data Documentation

◆ issueList

VuoCodeIssueList* VuoCodeWindow::issueList

The widget that renders this window's issues.

Definition at line 60 of file VuoCodeWindow.hh.

◆ issues

VuoShaderIssues* VuoCodeWindow::issues

The issues for this window's shader.

Definition at line 61 of file VuoCodeWindow.hh.

◆ stages

VuoCodeEditorStages* VuoCodeWindow::stages

The code editor widgets for this window.

Definition at line 59 of file VuoCodeWindow.hh.


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