gear_mc
 All Classes Namespaces Functions Variables
Public Member Functions | Public Attributes | List of all members
gear.xsi.ppg.LayoutComponent Class Reference

Base class for all layout items. More...

Inheritance diagram for gear.xsi.ppg.LayoutComponent:
gear.xsi.ppg.LayoutCompound gear.xsi.ppg.LayoutItem gear.xsi.ppg.Group gear.xsi.ppg.Row gear.xsi.ppg.Tab gear.xsi.ppg.Button gear.xsi.ppg.Color gear.xsi.ppg.EnumControl gear.xsi.ppg.FCurve gear.xsi.ppg.Item gear.xsi.ppg.Spacer gear.xsi.ppg.String

Public Member Functions

def __init__
 Init method. More...
 
def setCodeBefore
 Add custom code before the item. More...
 
def setCodeAfter
 Add custom code after the item. More...
 
def addCondition
 Simple condition to place before the item. More...
 
def convertToAscii
 Make sure that all string in the list are in ascii and not unicode. More...
 
def getAsString
 Add quotemark to string and return the list as a string. More...
 

Public Attributes

 codeBefore
 
 codeAfter
 code to place before the item
 
 condition
 code to place after the item
 
 args
 simple condition to place before the item
 

Detailed Description

Base class for all layout items.

Constructor & Destructor Documentation

def gear.xsi.ppg.LayoutComponent.__init__ (   self)

Init method.

Parameters
self

Member Function Documentation

def gear.xsi.ppg.LayoutComponent.addCondition (   self,
  condition 
)

Simple condition to place before the item.

Condition must be in Python, the 'If' statement is not needed.

Parameters
self
conditionString - code to place before the item.
def gear.xsi.ppg.LayoutComponent.convertToAscii (   self,
  items 
)

Make sure that all string in the list are in ascii and not unicode.

Parameters
self
itemsList - list to check
Returns
List - Cleaned list.
def gear.xsi.ppg.LayoutComponent.getAsString (   self,
  items 
)

Add quotemark to string and return the list as a string.

Parameters
self
itemsList - list to convert
Returns
String
def gear.xsi.ppg.LayoutComponent.setCodeAfter (   self,
  code 
)

Add custom code after the item.

Code must be in Python.

Parameters
self
codeString - code to place before the item.
def gear.xsi.ppg.LayoutComponent.setCodeBefore (   self,
  code 
)

Add custom code before the item.

Code must be in Python.

Parameters
self
codeString - code to place before the item.

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