rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.ui.script_editor Namespace Reference

Classes

class  Highlighter
 
class  LineNumberArea
 
class  ScriptEditor
 

Functions

def get_syntax_dict
 
def rfm_script_editor
 
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

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:

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:

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:

def rfm2.ui.script_editor.test ( )
Basic test harness

+ Here is the call graph for this function:

Variable Documentation

tuple rfm2.ui.script_editor.BACKGROUNDCOLOR = (37, 37, 37)
tuple rfm2.ui.script_editor.COMMENTCOLOR = (128, 128, 128)
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]
tuple rfm2.ui.script_editor.LINEHIGHLIGHTCOLOR = (52, 52, 52)
tuple rfm2.ui.script_editor.LINENUMBERCOLOR = (80, 80, 80)
string rfm2.ui.script_editor.OSL_SAMPLE
dictionary rfm2.ui.script_editor.PTR_TABLE = {}
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"""
tuple rfm2.ui.script_editor.TEXTCOLOR = (248, 248, 248)