| Home | Trees | Index | Help |
|---|
GTriggerCore--+ |object--+ | | |ParserObj--+ |GObj--+ |GTriggerExtension--+ |GFObj--+ | GFCommander
GFMenuItem,
GFToolButtonAny object that is bound to an action.
A commander can either be linked to a single action, in which case the
action is executed whenever the commander is fired, or it can be linked
to an action and an action_off, in which case the commander is
a toggle and the action is executed when the toggle is switched on and
the action_off is fired when the toggle is switched off.
| Method Summary | |
|---|---|
Create a GFCommander instance. | |
__fire(self)
| |
__trigger_get_enabled(self)
| |
__trigger_get_state(self)
| |
__trigger_set_enabled(self,
value)
| |
__trigger_set_state(self,
value)
| |
Fire the commander. | |
Return the file with the icon bound to this action. | |
_phase_2_init_(self)
| |
Update the enabled/disabled status of the commander. | |
| Inherited from GFObj | |
Return wether the object is currently navigable or not. | |
Phase 1 initialization called after all objects of the XML tree were created. | |
Return the objects' block from the block mapping. | |
Returns the objects' field from the blocks' field mapping | |
Return the value of a given option of the object or None if no such option is present. | |
Return wether the object is currently navigable or not. | |
Phase 1 initialization called after all objects of the XML tree were created. | |
| Inherited from GObj | |
| |
| |
Dumps an XML representation of the object | |
This is a convenience function for applications NOT using GParser to load an object tree. | |
A convenience function for applications NOT using GParser to load an object tree. | |
| string |
Returns the xml tag to be used to represent the object. |
Return a python iterator of child objects. | |
maxInits returns the maximum size of all the _inits list from this object or it's children | |
Starts GNUe's phased initialization system from this object down. | |
A recusive function to print an indented text representation of the GObj tree from this object down. | |
Function that recursively walks down through a tree of ParserObj instances and applies a function
to them. | |
This function is called after the parsers have completely constructed. | |
Used internally by phaseInit to walk through the object tree initializing objects. | |
This bit of nastiness is here to let GNUe Designer capture the setting of GObject properties. | |
| Inherited from GTriggerCore | |
| |
Construct a namespace object tree from an XML ( definitions.GObjects.GObj) object tree. | |
Return the namespace object that mirrors this object in the action/trigger namespace. | |
| Inherited from ParserObj | |
Set the action attribute of a given object to the specified action. | |
Get the contents of this object. | |
Return a compareable and identifying id of an object within a tree. | |
Set attributes loaded by GParser. | |
Add an object to the list of children | |
Assign all attributes from a given object to this one. | |
Build an object tree representing the difference between two object trees. | |
Return a XML representation of the object. | |
Moves downward though the children of an object till it finds the child with the specified name. | |
Moves downward through the children of an object till it finds the child of the specified type. | |
Find all children of a specific type. | |
Moves upward though the parents of an object till it finds the parent of the specified type. | |
Returns the content of any GContent objects that are children of this object. | |
Return a useful description of the object. | |
| any |
Returns the immediate parent of an object instance in a GObj tree. |
Merge another object tree into this tree. | |
Set the immediate parent of an object instance in a GObj tree | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... | |
| Inherited from GTriggerExtension | |
Associate a trigger with this object. | |
Fire the requested trigger if a trigger of that type has been associated with this object. | |
| Property Summary | |
|---|---|
| Inherited from GFObj | |
has_label | |
| Instance Variable Summary | |
|---|---|
| Inherited from GTriggerCore | |
_triggerFunctions: Dictionary defining the functions this object should present in
action/trigger code. | |
_triggerGet: Can be set to a method that returns the string value of the
object. | |
_triggerGlobal: If set to True, this object is added to the global namespace. | |
_triggerProperties: Dictionary defining the properties this object should present in
action/trigger code. | |
_triggerSet: Can be set to a method that sets the value of this object. | |
| Class Variable Summary | |
|---|---|
NoneType |
action = None |
NoneType |
action_off = None |
NoneType |
description = None |
bool |
enabled = True
|
NoneType |
icon = None |
NoneType |
label = None |
NoneType |
name = None |
bool |
state = False
|
| Inherited from GTriggerExtension | |
dict |
_validTriggers: Dictionary with valid trigger names as keys. |
| Method Details |
|---|
__init__(self,
parent,
object_type)
Create a GFCommander instance.
|
__fire(self) |
__trigger_get_enabled(self) |
__trigger_get_state(self) |
__trigger_set_enabled(self, value) |
__trigger_set_state(self, value) |
_event_fire(self)Fire the commander. This function is executed when the user clicks on the menu item or the toolbar button. If the commander is bound to a single action, this action is executed. If the commander is bound to two actions (i.e. it is a toggle), the state of the toggle is changed, and the corresponding action is executed. |
_get_icon_file(self, size='32x32', format='png')Return the file with the icon bound to this action.
|
_phase_2_init_(self) |
update_status(self)Update the enabled/disabled status of the commander. The attached action calls this function whenever its enabled/disabled status changes, so the commander can adjust the status of the user interface element. |
| Class Variable Details |
|---|
action
|
action_off
|
description
|
enabled
|
icon
|
label
|
name
|
state
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sun Nov 30 23:03:35 2008 | http://epydoc.sf.net |