User Tools

Site Tools


DzPaneGroup

A stacked collection of interface panes that can be docked or float.

More...

Inherits :

Enumerations

Methods

Signals

voidemptyGroup ()

Detailed Description

A Pane Group serves as a collection of container widgets (DzPane) that are themselves used to organize discrete portions of the interface. A pane group is exposed at the top-level of the user interface and is used to stack DzPane instances within the same area.

A pane group can be docked (“anchored”) within a DzDockArea or undocked (“detached”) and made to float above the rest of the interface.

A pane group provides an easy-to-use selection mechanism (i.e., a tab bar) for choosing which DzPane instance in the stack to display to the user. When a pane group contains more DzPane instances than can be sufficiently represented within the tab bar, additional scrolling controls are presented to the user.

Enumerations


: TabBarPosition

Used to define the position of the tab bar for this pane group.

Since:

  • 4.15.1.81
  • TabsTop - The tab bar for this pane group is positioned along the top.
  • TabsBottom - The tab bar for this pane group is positioned along the bottom.
  • TabsLeft - The tab bar for this pane group is positioned along the left side.
  • TabsRight - The tab bar for this pane group is positioned along the right side.

Methods


void : fitScreen()

Resizes this pane group, if it is undocked, to fit the available height and width of the screen it (mostly) currently resides on.

Since:

  • 4.15.1.81

void : fitScreenHeight()

Resizes this pane group, if it is undocked, to fit the available height of the screen it (mostly) currently resides on.

Since:

  • 4.15.1.81

void : fitScreenWidth()

Resizes this pane group, if it is undocked, to fit the available width of the screen it (mostly) currently resides on.

Since:

  • 4.15.1.81

DzPane : getCurrentPane()

Return Value:

  • The currently showing pane.

Point : getDragOffset()

Return Value:

  • The offset, in pixels, from the point where a drag started to the top left corner (including extra for frame, titlebar, etc.)

Number : getNumPanes()

Return Value:

  • The number of panes in this group.

Number : getNumShownPanes()

Return Value:

  • The number of panes shown in this group.

DzPane : getPane( Number i )

Parameter(s):

  • i - The index of the pane to get.

Return Value:

  • The pane in this group at the given index (if any), otherwise NULL.

void : hideAllPanes()

Hides all panes without changing their group ownership.


void : hidePane( DzPane pane )

Hides the given pane without changing its group ownership.

Parameter(s):

  • pane - The pane to be hidden.

void : hideTabBar( Boolean hide )

Sets whether this pane group's tab bar is hidden or not. Emits DzPane::tabBarHiddenChanged(). When the tab bar is hidden, the options menu for the current pane is not visible. If desired, DzPane instances should connect to it's DzPane::tabBarHiddenChanged() signal to be able to provide an alternate options menu when the tab bar is hidden.

Parameter(s):

  • hide - If true, hides the tab bar.

void : setPaneEnabled( DzPane pane, Boolean enabled )

Enable or disabled the given pane in the interface, if it is a member of this group.

Parameter(s):

  • pane - The pane to be enabled or disabled.
  • enabled - If true, the pane will be enabled, otherwise the pane will be disabled.

void : setUndockedTabBarPosition( TabBarPosition pos )

TODO: Add description.


void : showPane( DzPane pane )

Makes sure the given pane is showing (if it is a member of this group).

Parameter(s):

  • pane - The pane to be shown.

Boolean : tabBarHidden()

Return Value:

  • true if this pane group's tab bar is hidden, otherwise false.

TabBarPosition : undockedTabBarPosition()

Return Value:

  • The tab bar position for this pane group if this pane group is undocked.

Since:

  • 4.15.1.81

void : updateTabPosition()

Causes the position of the tab bar for this pane group to be updated.


Boolean : isUndockable()

Deprecated

Exists only to keep old code working. Do not use in new code. Use undockGroup() instead.

Signals


void : emptyGroup()

Signature:“emptyGroup()”

Emitted when the pane group becomes empty.