Vuo  2.3.2
Signals | Public Member Functions | Public Attributes | List of all members
VuoCodeEditorStages Class Reference

Description

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...
 
VuoCodeEditorsomeEditor ()
 Returns any non-NULL code editor. More...
 
void updatePosition ()
 Updates the left margin to ensure it lines up with the gutter. More...
 
VuoCodeEditorcurrentEditor ()
 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

VuoCodeEditorvertex
 The vertex shader widget. More...
 
VuoCodeEditorgeometry
 The geometry shader widget. More...
 
VuoCodeEditorfragment
 The fragment shader widget. More...
 

Constructor & Destructor Documentation

◆ VuoCodeEditorStages()

VuoCodeEditorStages::VuoCodeEditorStages ( QWidget *  parent,
VuoShaderFile shaderFile 
)
explicit

Creates a stages widget.

Definition at line 20 of file VuoCodeEditorStages.cc.

Member Function Documentation

◆ currentEditor()

VuoCodeEditor * VuoCodeEditorStages::currentEditor ( )

Returns the currently-visible code editor.

Definition at line 239 of file VuoCodeEditorStages.cc.

◆ currentStage()

VuoShaderFile::Stage VuoCodeEditorStages::currentStage ( )

Returns the currently-visible stage.

Definition at line 247 of file VuoCodeEditorStages.cc.

◆ modificationMayHaveChanged

void VuoCodeEditorStages::modificationMayHaveChanged ( void  )
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).

◆ modified()

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.

◆ setUnmodified()

void VuoCodeEditorStages::setUnmodified ( )

Marks each code editor as not having been modified by the user.

Definition at line 93 of file VuoCodeEditorStages.cc.

◆ someEditor()

VuoCodeEditor * VuoCodeEditorStages::someEditor ( )

Returns any non-NULL code editor.

Useful if you just need colors.

Definition at line 75 of file VuoCodeEditorStages.cc.

◆ switchToStage()

void VuoCodeEditorStages::switchToStage ( VuoShaderFile::Stage  stage)

Makes the specified stage visible.

Definition at line 260 of file VuoCodeEditorStages.cc.

◆ updatePosition()

void VuoCodeEditorStages::updatePosition ( )

Updates the left margin to ensure it lines up with the gutter.

Definition at line 229 of file VuoCodeEditorStages.cc.

◆ zoom11()

void VuoCodeEditorStages::zoom11 ( )

Restores the default text size (100% aka 1:1).

Definition at line 106 of file VuoCodeEditorStages.cc.

◆ zoomIn()

void VuoCodeEditorStages::zoomIn ( )

Makes the text larger.

Definition at line 119 of file VuoCodeEditorStages.cc.

◆ zoomOut()

void VuoCodeEditorStages::zoomOut ( )

Makes the text smaller.

Definition at line 132 of file VuoCodeEditorStages.cc.

Member Data Documentation

◆ fragment

VuoCodeEditor* VuoCodeEditorStages::fragment

The fragment shader widget.

Definition at line 42 of file VuoCodeEditorStages.hh.

◆ geometry

VuoCodeEditor* VuoCodeEditorStages::geometry

The geometry shader widget.

Definition at line 41 of file VuoCodeEditorStages.hh.

◆ vertex

VuoCodeEditor* VuoCodeEditorStages::vertex

The vertex shader widget.

Definition at line 40 of file VuoCodeEditorStages.hh.


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