DAZ Script | |
---|---|
DockArea | { ToolBarTop, ToolBarBottom, ToolBarLeft, ToolBarRight, NoToolBarArea } |
DAZ Script | |
---|---|
void | clear () |
void | dock ( DzToolBar::DockArea area, String beforeBar=“” ) |
DockArea | dockedArea () |
DzToolBarItem | getItem ( Number which ) |
Array | getItemList () |
Number | getNumItems () |
Boolean | hasItems () |
void | insertAction ( DzAction action, DzAction before ) |
void | insertAction ( String action, Number index=-1 ) |
void | insertCustomAction ( String action, Number index=-1 ) |
void | insertCustomWidget ( String uiScript, Number index=-1 ) |
void | insertItem ( DzToolBarItem item, Number index=-1 ) |
void | insertSeparator ( Number index=-1 ) |
void | insertViewportAlignmentSpacer ( Number alignment, Number index=-1 ) |
void | insertViewportCenterAlignSpacer ( Number index=-1 ) |
void | insertViewportLeftAlignSpacer ( Number index=-1 ) |
Boolean | isClosed () |
void | removeItem ( Number index ) |
void | removeItem ( DzToolBarItem item ) |
void | setClosed ( Boolean onOff ) |
void | undock ( Point pos ) |
void | itemListChanged () |
This class provides access to a toolbar within the interface. This class is not intended to be constructed directly, rather an instance of the class is created using DzPaneMgr::createToolBar().
See Also:
The areas of a DzActivityLayout where the toolbar can be docked.
void : clear()
Removes all items from the bar.
void : dock( DzToolBar::DockArea area, String beforeBar=“” )
Docks the toolbar in the specified area on the DzActivityLayout, and shows the toolbar if it is hidden.
Parameter(s):
DockArea : dockedArea()
Return Value:
DzToolBarItem : getItem( Number which )
Parameter(s):
Return Value:
Array : getItemList()
This function is provided for DAZ Script access. Plugin developers are encouraged to use the much more efficient itemListIterator() method.
Return Value:
Number : getNumItems()
Return Value:
Return Value:
true
if there are items in this toolbar, false
if the toolbar is empty.void : insertAction( DzAction action, DzAction before )
Adds the given action to the toolbar.
Parameter(s):
action
before.void : insertAction( String action, Number index=-1 )
Adds the given action to the toolbar.
Parameter(s):
void : insertCustomAction( String action, Number index=-1 )
Adds the given custom action to the toolbar.
Parameter(s):
void : insertCustomWidget( String uiScript, Number index=-1 )
Adds a custom widget to the toolbar.
Parameter(s):
void : insertItem( DzToolBarItem item, Number index=-1 )
Inserts the given item into the toolbar at the given location.
Parameter(s):
void : insertSeparator( Number index=-1 )
Adds a separator to the toolbar.
Parameter(s):
void : insertViewportAlignmentSpacer( Number alignment, Number index=-1 )
Adds a spacer to the toolbar which adjusts itself so that items added after it are aligned over the application viewport.
Parameter(s):
void : insertViewportCenterAlignSpacer( Number index=-1 )
Adds a spacer to the toolbar which adjusts itself so that any items after it are centered over the application viewport.
Parameter(s):
void : insertViewportLeftAlignSpacer( Number index=-1 )
Adds a spacer to the toolbar which adjusts itself so that any items after it are left aligned over the application viewport.
Parameter(s):
Return Value:
true
if the toolbar is closed (not displayed), false
if the toolbar is open (displayed).void : removeItem( Number index )
Parameter(s):
void : removeItem( DzToolBarItem item )
Parameter(s):
void : setClosed( Boolean onOff )
Sets whether the toolbar is closed (not displayed), or open (displayed).
Undocks the toolbar, moves it to the given global coordinates, and shows the toolbar if it is hidden.
void : itemListChanged()
Signature:“itemListChanged()”
Emitted when items are added to or removed from this toolbar