Presents a VuoCodeEditor in each tab, for each shader stage.
Definition at line 19 of file VuoCodeEditorStages.hh.
Signals | |
void | modificationMayHaveChanged (void) |
Emitted when the content of any code editor changes in a way that affects its "modified" status (though not necessarily the "modified" status of this widget as a whole). More... | |
Public Member Functions | |
VuoCodeEditorStages (QWidget *parent, VuoShaderFile *shaderFile) | |
Creates a stages widget. More... | |
VuoCodeEditor * | someEditor () |
Returns any non-NULL code editor. More... | |
void | updatePosition () |
Updates the left margin to ensure it lines up with the gutter. More... | |
VuoCodeEditor * | currentEditor () |
Returns the currently-visible code editor. More... | |
VuoShaderFile::Stage | currentStage () |
Returns the currently-visible stage. More... | |
void | switchToStage (VuoShaderFile::Stage stage) |
Makes the specified stage visible. More... | |
bool | modified () |
Returns true if any code editor's contents have been modified by the user. More... | |
void | setUnmodified () |
Marks each code editor as not having been modified by the user. More... | |
void | zoom11 () |
Restores the default text size (100% aka 1:1). More... | |
void | zoomIn () |
Makes the text larger. More... | |
void | zoomOut () |
Makes the text smaller. More... | |
Public Attributes | |
VuoCodeEditor * | vertex |
The vertex shader widget. More... | |
VuoCodeEditor * | geometry |
The geometry shader widget. More... | |
VuoCodeEditor * | fragment |
The fragment shader widget. More... | |
|
explicit |
Creates a stages widget.
Definition at line 20 of file VuoCodeEditorStages.cc.
VuoCodeEditor * VuoCodeEditorStages::currentEditor | ( | ) |
Returns the currently-visible code editor.
Definition at line 239 of file VuoCodeEditorStages.cc.
VuoShaderFile::Stage VuoCodeEditorStages::currentStage | ( | ) |
Returns the currently-visible stage.
Definition at line 247 of file VuoCodeEditorStages.cc.
|
signal |
Emitted when the content of any code editor changes in a way that affects its "modified" status (though not necessarily the "modified" status of this widget as a whole).
bool VuoCodeEditorStages::modified | ( | ) |
Returns true if any code editor's contents have been modified by the user.
Definition at line 83 of file VuoCodeEditorStages.cc.
void VuoCodeEditorStages::setUnmodified | ( | ) |
Marks each code editor as not having been modified by the user.
Definition at line 93 of file VuoCodeEditorStages.cc.
VuoCodeEditor * VuoCodeEditorStages::someEditor | ( | ) |
Returns any non-NULL code editor.
Useful if you just need colors.
Definition at line 75 of file VuoCodeEditorStages.cc.
void VuoCodeEditorStages::switchToStage | ( | VuoShaderFile::Stage | stage | ) |
Makes the specified stage visible.
Definition at line 260 of file VuoCodeEditorStages.cc.
void VuoCodeEditorStages::updatePosition | ( | ) |
Updates the left margin to ensure it lines up with the gutter.
Definition at line 229 of file VuoCodeEditorStages.cc.
void VuoCodeEditorStages::zoom11 | ( | ) |
Restores the default text size (100% aka 1:1).
Definition at line 106 of file VuoCodeEditorStages.cc.
void VuoCodeEditorStages::zoomIn | ( | ) |
Makes the text larger.
Definition at line 119 of file VuoCodeEditorStages.cc.
void VuoCodeEditorStages::zoomOut | ( | ) |
Makes the text smaller.
Definition at line 132 of file VuoCodeEditorStages.cc.
VuoCodeEditor* VuoCodeEditorStages::fragment |
The fragment shader widget.
Definition at line 42 of file VuoCodeEditorStages.hh.
VuoCodeEditor* VuoCodeEditorStages::geometry |
The geometry shader widget.
Definition at line 41 of file VuoCodeEditorStages.hh.
VuoCodeEditor* VuoCodeEditorStages::vertex |
The vertex shader widget.
Definition at line 40 of file VuoCodeEditorStages.hh.