rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.ui.text_field.TextField Class Reference
+ Inheritance diagram for rfm2.ui.text_field.TextField:
+ Collaboration diagram for rfm2.ui.text_field.TextField:

Public Member Functions

def __init__
 
def __del__
 
def showSubstitutedString
 
def setText
 
def getText
 
def on_attr_changed
 
def setNodeAttr
 
def updateExpressionButton
 
def setDirty
 
def setClean
 
def setAttr
 
def eventFilter
 
def focusOutEvent
 
def focusInEvent
 
def keyPressEvent
 
def scrollContentsBy
 
def contextMenuEvent
 
def set_change_cmd
 

Public Attributes

 nattr
 
 dirty
 
 blockDirty
 
 expr
 
 scriptJob
 
 fileName
 
 label
 
 labelWidth
 
 change_cmd
 
 previous_text
 
 syntax
 
 previewButton
 
 highlighter
 
 cursor_pos
 
 cursor_anchor
 
 focus_stolen
 
 mod_down
 
 ctlname
 

Static Public Attributes

string DEFAULT_SYNTAX = 'filepath'
 

Constructor & Destructor Documentation

def rfm2.ui.text_field.TextField.__init__ (   self,
  name = None,
  kwargs 
)
def rfm2.ui.text_field.TextField.__del__ (   self)

+ Here is the call graph for this function:

Member Function Documentation

def rfm2.ui.text_field.TextField.contextMenuEvent (   self,
  event 
)
def rfm2.ui.text_field.TextField.eventFilter (   self,
  obj,
  event 
)
The whole purpose of this event filter is to prevent focus stealing
when the widget is in the HyperShade.
See code for more infos.

+ Here is the call graph for this function:

def rfm2.ui.text_field.TextField.focusInEvent (   self,
  event 
)

+ Here is the call graph for this function:

def rfm2.ui.text_field.TextField.focusOutEvent (   self,
  event 
)
Re-implements QWidget.focusOutEvent(). Will be called when the widget
looses focus. This will be our signal to save a dirty buffer.

NOTE: we have to save the cursor position on focusOut, as the focus is
lost when the contectual menu is displayed and somehow the cursor
position is incorrectly reset to 0. To avoid this, we save it here and
re-position it in contextMenuEvent().

+ Here is the call graph for this function:

def rfm2.ui.text_field.TextField.getText (   self)
Return the contents of the editor

+ Here is the caller graph for this function:

def rfm2.ui.text_field.TextField.keyPressEvent (   self,
  event 
)

+ Here is the call graph for this function:

def rfm2.ui.text_field.TextField.on_attr_changed (   self)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.ui.text_field.TextField.scrollContentsBy (   self,
  dx,
  dy 
)
def rfm2.ui.text_field.TextField.set_change_cmd (   self,
  closure 
)
def rfm2.ui.text_field.TextField.setAttr (   self)

+ Here is the caller graph for this function:

def rfm2.ui.text_field.TextField.setClean (   self)
Clear the dirty flag and re-instate the clean palette.

+ Here is the caller graph for this function:

def rfm2.ui.text_field.TextField.setDirty (   self)
Marks the contents of the editor as dirty so we know it should be
saved next time it looses focus.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.ui.text_field.TextField.setNodeAttr (   self,
  nattr,
  retry = False 
)
Associate the editor with a specific node attr and sets the editor
value to the attribute's current value.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.ui.text_field.TextField.setText (   self,
  text 
)
sets the content of the editor to text. If the editor is associated
to a node attribute, the contents will not be saved to the attribute.

+ Here is the caller graph for this function:

def rfm2.ui.text_field.TextField.showSubstitutedString (   self)
Toggle between the original string and the substituted version,
based on the preview button's state.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.ui.text_field.TextField.updateExpressionButton (   self)

+ Here is the caller graph for this function:

Member Data Documentation

rfm2.ui.text_field.TextField.blockDirty
rfm2.ui.text_field.TextField.change_cmd
rfm2.ui.text_field.TextField.ctlname
rfm2.ui.text_field.TextField.cursor_anchor
rfm2.ui.text_field.TextField.cursor_pos
string rfm2.ui.text_field.TextField.DEFAULT_SYNTAX = 'filepath'
static
rfm2.ui.text_field.TextField.dirty
rfm2.ui.text_field.TextField.expr
rfm2.ui.text_field.TextField.fileName
rfm2.ui.text_field.TextField.focus_stolen
rfm2.ui.text_field.TextField.highlighter
rfm2.ui.text_field.TextField.label
rfm2.ui.text_field.TextField.labelWidth
rfm2.ui.text_field.TextField.mod_down
rfm2.ui.text_field.TextField.nattr
rfm2.ui.text_field.TextField.previewButton
rfm2.ui.text_field.TextField.previous_text
rfm2.ui.text_field.TextField.scriptJob
rfm2.ui.text_field.TextField.syntax

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