Base class for component plugins.
__init__ | Construct a new Component object. |
addAttribute | Add attribute element. |
addEquivStyles | Add more style equivalencies |
addEvents | Add more events. |
addExStyles | Add more extra styles. |
addStyles | Add more styles. |
canBeReplaced | True if the current component can be replaced by component. |
canHaveChild | True if the current component can have child of given type. |
copyAttributes | Copy relevant attribute nodes from srcNode to dstNode. |
copyImplicitAttributes | Copy relevant implicit attribute nodes from srcNode to dstNode. |
getAttribute | |
getRect | Return bounding box coordinates for obj. |
getTreeImageId | |
getTreeText | |
isContainer | True if component is a container (can have child nodes). |
makeTestWin | Method can be overrided by derived classes to create custom test view. |
setParamClass | Set special attribute panel class for editing attribute value. |
setSpecial | Set special attribute class for processing XML. |
Base class for component plugins.
Construct a new Component object.
Parameters: |
|
---|
First group is considered to be the I{primary group}. :param attributes: List of XRC attribute names.
B{Supported keyword parameters:}
Parameters: | defaults – Dictionary of default attribute values for creating |
---|
new items. :keyword specials: Dictionary of attribute_name pairs
for specifying special attribute classes for some attributes, instead of using default Attribute class.
Parameters: |
|
---|
Add attribute element.
Add more style equivalencies
Add more events.
Add more extra styles.
Add more styles.
True if the current component can be replaced by component.
This function can be redefined by derived classes.
True if the current component can have child of given type.
This function is redefined by container classes.
Copy relevant attribute nodes from srcNode to dstNode.
Copy relevant implicit attribute nodes from srcNode to dstNode.
Return bounding box coordinates for obj.
True if component is a container (can have child nodes).
Method can be overrided by derived classes to create custom test view.
Parameters: |
|
---|
Set special attribute panel class for editing attribute value.
Parameters: |
|
---|
Set special attribute class for processing XML.
Parameters: |
|
---|