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... | |
VuoRecentFileMenu * | getRecentFileMenu () |
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 | |
VuoCodeEditorStages * | stages |
The code editor widgets for this window. More... | |
VuoCodeIssueList * | issueList |
The widget that renders this window's issues. More... | |
VuoShaderIssues * | issues |
The issues for this window's shader. More... | |
|
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.
QMenu * VuoCodeWindow::getFileMenu | ( | ) |
Returns the "File" menu associated with this code window.
Definition at line 1029 of file VuoCodeWindow.cc.
string VuoCodeWindow::getNodeClassName | ( | void | ) |
Returns the node class name being edited by this window.
Definition at line 895 of file VuoCodeWindow.cc.
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.
VuoRecentFileMenu * VuoCodeWindow::getRecentFileMenu | ( | ) |
Returns the "File > Open Recent" menu associated with this code window.
Definition at line 1037 of file VuoCodeWindow.cc.
QAction * VuoCodeWindow::getZoom11Action | ( | ) | const |
Returns the action associated with zooming to actual size.
Definition at line 1005 of file VuoCodeWindow.cc.
QAction * VuoCodeWindow::getZoomInAction | ( | ) | const |
Returns the action associated with zooming in.
Definition at line 1013 of file VuoCodeWindow.cc.
QAction * VuoCodeWindow::getZoomOutAction | ( | ) | const |
Returns the action associated with zooming out.
Definition at line 1021 of file VuoCodeWindow.cc.
|
static |
Creates a code editor window with the code template indicated by the sender.
Definition at line 344 of file VuoCodeWindow.cc.
|
slot |
Restarts the wrapper composition.
Definition at line 595 of file VuoCodeWindow.cc.
|
slot |
Runs the wrapper composition.
Definition at line 567 of file VuoCodeWindow.cc.
|
slot |
Stops the wrapper composition.
Definition at line 583 of file VuoCodeWindow.cc.
void VuoCodeWindow::setAsActiveWindow | ( | ) |
Raises the current code window to the foreground and activates it.
Definition at line 1045 of file VuoCodeWindow.cc.
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.
void VuoCodeWindow::setIssues | ( | VuoCompilerIssues * | compilerIssues | ) |
Shows a list of warnings/errors (line number and text description).
Definition at line 874 of file VuoCodeWindow.cc.
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.
VuoCodeIssueList* VuoCodeWindow::issueList |
The widget that renders this window's issues.
Definition at line 60 of file VuoCodeWindow.hh.
VuoShaderIssues* VuoCodeWindow::issues |
The issues for this window's shader.
Definition at line 61 of file VuoCodeWindow.hh.
VuoCodeEditorStages* VuoCodeWindow::stages |
The code editor widgets for this window.
Definition at line 59 of file VuoCodeWindow.hh.