DzToolBar Class Reference
[Interface Components]

Class that encapsulates a toolbar that contains DzAction items. More...

List of all members.

Methods

void clear ()
DzToolBarItem getItem (Number which)
Array getItemList ()
Number getNumItems ()
Boolean hasItems ()
void insertAction (String action, Number where=-1)
void insertCustomAction (String action, Number where=-1)
void insertSeparator (Number where=-1)

Signals

void itemListChanged ()
 Signature: "itemListChanged()"


Detailed Description

Class that encapsulates a toolbar that contains DzAction items.


Member Function Documentation

void DzToolBar::clear (  ) 

Removes all items from the bar.

DzToolBarItem DzToolBar::getItem ( Number  which  ) 

Parameters:
which The index of the item in the menu
Returns:
A pointer to the toolbar item at the given index, NULL if the index is invalid

Array DzToolBar::getItemList (  ) 

This function is provided for DAZ Script access. Plugin developers are encouraged to use the much more efficient itemListIterator() method.

Returns:
A QObjectList of all the items in this bar.

Number DzToolBar::getNumItems (  ) 

Returns:
The number of items in the toolbar

Boolean DzToolBar::hasItems (  ) 

Returns:
true if there are items in this toolbar, false if the toolbar is empty.

void DzToolBar::insertAction ( String  action,
Number  where = -1 
)

Adds the given action to the tool bar.

Parameters:
action The class name of the DzAction that will be added to the tool bar.
where The index at which to insert the item, if the index is invalid (the default) the item is appended to the end of the menu.

void DzToolBar::insertCustomAction ( String  action,
Number  where = -1 
)

Adds the given custom action to the tool bar.

Parameters:
action The name of the custom action that will be added to the tool bar.
where The index at which to insert the item, if the index is invalid (the default) the item is appended to the end of the menu.

void DzToolBar::insertSeparator ( Number  where = -1  ) 

Adds a separator to the tool bar.

Parameters:
where The index at which to insert the item, if the index is invalid (the default) the item is appended to the end of the menu.

void DzToolBar::itemListChanged (  )  [signal]

Signature: "itemListChanged()"

Emitted when items are added to or removed from this toolbar


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.