def rfm2.ui.text_field.TextField.__init__ |
( |
|
self, |
|
|
|
name = None , |
|
|
|
kwargs |
|
) |
| |
def rfm2.ui.text_field.TextField.__del__ |
( |
|
self | ) |
|
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.
def rfm2.ui.text_field.TextField.focusInEvent |
( |
|
self, |
|
|
|
event |
|
) |
| |
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().
def rfm2.ui.text_field.TextField.getText |
( |
|
self | ) |
|
Return the contents of the editor
def rfm2.ui.text_field.TextField.keyPressEvent |
( |
|
self, |
|
|
|
event |
|
) |
| |
def rfm2.ui.text_field.TextField.on_attr_changed |
( |
|
self | ) |
|
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 | ) |
|
def rfm2.ui.text_field.TextField.setClean |
( |
|
self | ) |
|
Clear the dirty flag and re-instate the clean palette.
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.
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.
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.
def rfm2.ui.text_field.TextField.showSubstitutedString |
( |
|
self | ) |
|
Toggle between the original string and the substituted version,
based on the preview button's state.
def rfm2.ui.text_field.TextField.updateExpressionButton |
( |
|
self | ) |
|
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:
- /data/wlw/renderman_root/rat/apps/rfm/scripts/rfm2/ui/text_field.py