rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.ui.script_editor Namespace Reference

Classes

class  Highlighter
 
class  LineNumberArea
 
class  ScriptEditor
 

Functions

def get_syntax_dict (syntax)
 
def rfm_script_editor (name, **kwargs)
 
def register_prefs ()
 
def test ()
 

Variables

string OSL_SAMPLE
 
string SEEXPR_SAMPLE
 
tuple BACKGROUNDCOLOR = (37, 37, 37)
 
tuple LINEHIGHLIGHTCOLOR = (52, 52, 52)
 
tuple LINENUMBERCOLOR = (80, 80, 80)
 
tuple TEXTCOLOR = (248, 248, 248)
 
tuple COMMENTCOLOR = (128, 128, 128)
 
dictionary PTR_TABLE = {}
 
list FOCUS_STEALERS
 

Detailed Description

A widget to edit source code, with user-definable syntax highlighting.

Function Documentation

◆ get_syntax_dict()

def rfm2.ui.script_editor.get_syntax_dict (   syntax)
Return the syntax dict (if any was defined in syntaxHighlighting.json),
otherwise None.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ register_prefs()

def rfm2.ui.script_editor.register_prefs ( )
Register general prefs for the ScriptEditor widget: font face, size, etc.
+ Here is the call graph for this function:

◆ rfm_script_editor()

def rfm2.ui.script_editor.rfm_script_editor (   name,
**  kwargs 
)
Mimic a classic maya command interface for our scriptEditor widget.
+ Here is the caller graph for this function:

◆ test()

def rfm2.ui.script_editor.test ( )
Basic test harness
+ Here is the call graph for this function:

Variable Documentation

◆ BACKGROUNDCOLOR

tuple rfm2.ui.script_editor.BACKGROUNDCOLOR = (37, 37, 37)

◆ COMMENTCOLOR

tuple rfm2.ui.script_editor.COMMENTCOLOR = (128, 128, 128)

◆ FOCUS_STEALERS

list rfm2.ui.script_editor.FOCUS_STEALERS
Initial value:
1 = [qtc.Qt.Key_Shift, qtc.Qt.Key_Control, qtc.Qt.Key_Meta,
2  qtc.Qt.Key_Alt, qtc.Qt.Key_AltGr]

◆ LINEHIGHLIGHTCOLOR

tuple rfm2.ui.script_editor.LINEHIGHLIGHTCOLOR = (52, 52, 52)

◆ LINENUMBERCOLOR

tuple rfm2.ui.script_editor.LINENUMBERCOLOR = (80, 80, 80)

◆ OSL_SAMPLE

string rfm2.ui.script_editor.OSL_SAMPLE

◆ PTR_TABLE

dictionary rfm2.ui.script_editor.PTR_TABLE = {}

◆ SEEXPR_SAMPLE

string rfm2.ui.script_editor.SEEXPR_SAMPLE
Initial value:
1 = """val=voronoi(5*[u,v,.5],4,.6,.2);
2 color=ccurve(val,
3  0.000, [0.141, 0.059, 0.051], 4,
4  0.185, [0.302, 0.176, 0.122], 4,
5  0.301, [0.651, 0.447, 0.165], 4,
6  0.462, [0.976, 0.976, 0.976], 4);
7 color"""

◆ TEXTCOLOR

tuple rfm2.ui.script_editor.TEXTCOLOR = (248, 248, 248)