Cortex
10.0.0-a4
|
In Maya 2011 and 2012, the collapsible frameLayout became rather ugly, and stopped indenting the arrow with the label. More...
Public Member Functions | |
def | __init__ (self, label="", labelVisible=True, labelIndent=0, labelFont="boldLabelFont", annotation="", collapsed=True, preExpandCommand=None, expandCommand=None, collapseCommand=None) |
def | frameLayout (self) |
The maya frameLayout whose collapsibility is controlled by this class. More... | |
def | setLabel (self, label) |
def | getLabel (self) |
def | setAnnotation (self, annotation) |
def | getAnnotation (self) |
def | getCollapsed (self) |
def | setCollapsed (self, collapsed) |
![]() | |
def | __init__ (self, topLevelUI) |
Derived classes must create a ui element which is the parent of the rest of their ui, and call this init function passing it as the topLevelUI parameter. More... | |
def | parent (self) |
Returns the UIElement which forms the parent for this one. More... | |
Additional Inherited Members | |
![]() | |
def | instances |
Returns a list of all the active instances derived from the specified type. More... | |
In Maya 2011 and 2012, the collapsible frameLayout became rather ugly, and stopped indenting the arrow with the label.
This made complex uis consisting of lots of ClassVectorParameters and ClassParameters somewhat unreadable. So we introduce this class to get back some control. Aside from spelling collapsible properly and being prettier, this class also has the advantage of supporting annotations which are displayed on the label. As with the maya frameLayout, the preExpandCommand, expandCommand and collapseCommand are only called as a result of user action, and never as a result of a call to setCollapsed or getCollapsed. There are separate implementations for maya before qt and maya after qt.
def IECoreMaya._CollapsibleMotif.frameLayout | ( | self | ) |
The maya frameLayout whose collapsibility is controlled by this class.
Add children by editing the contents of this layout.
References IECoreMaya._CollapsibleMotif.__annotation, IECoreMaya._CollapsibleQt.__collapseCommand, IECoreMaya._CollapsibleQt.__collapsibleIcon, IECoreMaya._CollapsibleQt.__expandCommand, IECoreMaya._CollapsibleMotif.__frameLayout, IECoreMaya.UIElement.__init__(), IECoreMaya._CollapsibleQt.__labelControl, IECoreMaya._CollapsibleQt.__labelText, IECoreMaya._CollapsibleQt.__preExpandCommand, IECoreMaya._CollapsibleQt.__toggle(), IECoreMaya.UIElement._topLevelUI(), IECoreMaya._CollapsibleMotif.frameLayout(), IECoreMaya.CompoundParameterUI.getCollapsed(), IECoreMaya.ClassVectorParameterUI.getCollapsed(), IECoreMaya.ChildUI.getCollapsed(), IECoreMaya._CollapsibleMotif.getCollapsed(), IECoreMaya.CompoundParameterUI.setCollapsed(), IECoreMaya.ClassParameterUI.setCollapsed(), IECoreMaya.ClassVectorParameterUI.setCollapsed(), IECoreMaya.ChildUI.setCollapsed(), and IECoreMaya._CollapsibleMotif.setCollapsed().
Referenced by IECoreMaya._CollapsibleMotif.frameLayout().