User Tools

Site Tools


DzDockBar

Encapsulates a custom QToolBar that can be docked with a DzToolBar.

More...

Inherits :

Inherited By : statusbar_dz

Enumerations

Properties

DAZ Script
Booleanfloating

Methods

DAZ Script
voiddock ( DzDockBar::DockArea area, String beforeBar=“” )
DockAreadockedArea ()
BooleanisClosed ()
voidsetClosed ( Boolean onOff )
voidundock ( Point pos )

Detailed Description

This class provides access to a custom bar in the interface that can be docked with a DzToolBar. This class is not intended to be constructed directly, rather it serves as a base class for other custom dock-able bars.

See Also:

Enumerations


: DockArea

The areas of a DzActivityLayout where this bar can be docked.

  • ToolBarTop - The dock area at the top of a DzActivityLayout.
  • ToolBarBottom - The dock area at the bottom of a DzActivityLayout.
  • ToolBarLeft - The dock area on the left side of a DzActivityLayout.
  • ToolBarRight - The dock area on the right side of a DzActivityLayout.
  • NoToolBarArea - No dock area. The bar cannot be docked.

Properties


Boolean : floating

Holds whether or not this bar is docked. (Read Only)

Methods


void : dock( DzDockBar::DockArea area, String beforeBar=“” )

Docks this bar in the specified area of the DzActivityLayout, and shows the bar if it is hidden.

Parameter(s):

  • area - The DockArea to dock this bar to.
  • beforeBar - The name of the bar (if any) in the area to dock before.

DockArea : dockedArea()

Return Value:

  • The dock area that this bar is docked in.

Boolean : isClosed()

Return Value:

  • true if this bar is not displayed, false if this bar is displayed.

void : setClosed( Boolean onOff )

Sets whether this bar is displayed.

Parameter(s):

  • onOff - If true, this bar is not displayed. If false, this bar is displayed.

void : undock( Point pos )

Undocks this bar, moves it to the specified global coordinates, and shows this bar if it is hidden.

Parameter(s):

  • pos - The global coordinates to position this bar at.