Manager responsible for layouts, activity layouts, pane groups, panes, and toolbars.
Inherits :
DAZ Script | |
---|---|
DockSide | { NO_DOCKING, DOCK_LEFT, DOCK_TOP, DOCK_RIGHT, DOCK_BOTTOM } |
void | activeLayoutAboutToChange ( Number newLayoutIdx ) |
void | activeLayoutChanged ( Number i ) |
void | activityBarEnabled ( Boolean onOff ) |
void | layoutListChanged () |
void | layoutRestored ( String filename ) |
void | orientTabsAlongTopChanged ( Boolean onOff ) |
void | toolbarListChanged () |
void | workflowAssistanceEnableStateChanged ( Boolean onOff ) |
void | workflowAssistanceModeChanged () |
This class manages layouts, activity layouts, pane groups, panes, and toolbars.
There is only one instance of this manager in an application. This instance is created and owned by DzMainWindow. Request the instance via DzMainWindow::getPaneMgr().
See Also:
The possible dock locations
void : addActivityLayout( DzActivityLayout layout )
Adds the activity layout to the list of layouts.
Parameter(s):
void : clearAllGroups()
Removes all panes from all groups.
DzActivityLayout : createActivityLayout( String name, String description )
Creates a new activity layout and adds it to the list.
Parameter(s):
Return Value:
DzPaneGroup : createEmptyPaneGroup()
Return Value:
DzToolBar : createToolBar( String name )
Parameter(s):
Return Value:
void : enableActivityBar( Boolean onOff )
Sets whether or not the activity bar is visible in the interface.
Parameter(s):
true
, enables the activity bar.DzActivityLayout : findActivityLayout( String name )
Parameter(s):
Return Value:
DzDockBar : findDockBar( String className )
Parameter(s):
Return Value:
DzDockBar : findDockBarByName( String name )
Parameter(s):
Return Value:
DzPane : findPane( String identifier )
Parameter(s):
Return Value:
DzToolBar : findToolBar( String name )
Parameter(s):
Return Value:
DzActivityLayout : getActiveActivityLayout()
Return Value:
Number : getActiveActivityLayoutIndex()
Return Value:
String : getActivityBarImage()
Return Value:
Array : getActivityBarImageList()
Return Value:
DzActivityLayout : getActivityLayout( Number i )
Parameter(s):
Return Value:
Array : getActivityLayoutList()
Return Value:
Since:
Return Value:
String : getBasicLayout()
Return Value:
Return Value:
Array : getDefaultLayoutNames()
Return Value:
DzDockBar : getDockBar( Number i )
Parameter(s):
Return Value:
Array : getDockBarList()
Return Value:
Since:
Number : getNumActivityLayouts()
Return Value:
Number : getNumDockBars()
Return Value:
Return Value:
Number : getNumPanes()
Return Value:
Number : getNumToolBars()
Return Value:
Boolean : getOrientTabsAlongTop()
Return Value:
true
if the tabs for selecting a pane are oriented along the top of pane groups, otherwise false
.Parameter(s):
Return Value:
Since:
DzPaneGroup : getPaneGroup( Number i )
Parameter(s):
Return Value:
Return Value:
Array : getPaneList()
Return Value:
String : getProLayout()
Return Value:
Since:
Return Value:
Boolean : getShowLessonStrip()
Return Value:
true
if the Lesson Strip is showing, otherwise false
.Return Value:
Return Value:
DzToolBar : getToolBar( Number i )
Parameter(s):
Return Value:
Array : getToolBarList()
Return Value:
Since:
Boolean : getUseWorkflowAssistance()
Return Value:
true
if workflow assistance is enabled, otherwise false
.void : hideAllPanes()
Hide all panes from view in the interface.
void : hideAllToolBars()
Hides all the tool bars in the application.
DzError : hidePane( String identifier )
Hide the given pane from view in the interface.
Parameter(s):
DzError : hidePane( DzPane pane )
Hide the given pane from view in the interface.
DzError : hidePaneGroup( DzPaneGroup group )
Hide a pane group in the interface.
Parameter(s):
Return Value:
DzError : hidePaneGroup( Number i )
Hide a pane group in the interface.
Parameter(s):
Return Value:
Boolean : isActivityBarEnabled()
Return Value:
true
if the activity bar appears in the interface, otherwise false
.void : loadNextActivityBarImage()
Loads the next image from the directory and sets it for the activity bar.
DzError : movePaneGroup( DzPaneGroup group, DockSide dock=NO_DOCKING )
Moves a group to a new dock location.
Parameter(s):
Return Value:
DzError : movePaneGroup( DzPaneGroup group, DockSide dock, Number index, Boolean newLine=false )
Moves a group to a new dock location.
Note:
Boolean : removeActivityLayout( String name )
Removes the given layout.
Parameter(s):
Return Value:
true
if the layout existed and was removed, otherwise false
.Boolean : removeActivityLayout( Number i )
Removes the given layout.
Parameter(s):
Return Value:
true
if the layout existed and was removed, otherwise false
.void : removeAllActivityLayouts()
Removes all the current layouts.
void : removeAllToolBars()
Removes all tool bars from the application.
void : removePaneGroup( DzPaneGroup group )
Removes the given pane group.
Parameter(s):
void : removeToolBar( String name )
Removes a tool bar from the application.
Parameter(s):
DzError : restoreLayout( String filename, Boolean executeScript )
Restores the activity layout from the given file.
Parameter(s):
Return Value:
DzError : saveLayout( String filename, String description=“” )
Saves the current activity layout to the given file.
Parameter(s):
Return Value:
Boolean : selectLesson( String path )
Selects the lesson at the given path.
Return Value:
true
if the lesson is found and selected, otherwise false
.void : setActiveActivityLayout( DzActivityLayout layout )
Sets the active layout.
Parameter(s):
void : setActiveActivityLayout( Number i )
Sets the active activity layout.
Parameter(s):
void : setActivityBarImage( String img )
Sets the image for the activity bar.
Parameter(s):
void : setOrientTabsAlongTop( Boolean onOff )
Sets whether or not the position of tabs for selecting a pane are oriented along the top of the pane groups.
Parameter(s):
true
, the tabs will be displayed along the top of pane groups. If false
, the tabs will be displayed along the sides of pane groups.DzError : setPaneEnabled( String identifier, Boolean enabled )
Enables or disables a given pane in the interface.
Parameter(s):
true
, the pane will be enabled.Return Value:
DzError : setPaneEnabled( DzPane pane, Boolean enabled )
Enables or disables a given pane in the interface.
Parameter(s):
true
, the pane will be enabled.Return Value:
DzError : setSessionLayout( String filename )
Sets the file that will be loaded and saved as the user's layout for the session.
Parameter(s):
void : setShowLessonStrip( Boolean onOff )
Sets the visibility of the Lesson Strip.
Parameter(s):
true
, the lesson strip is shown.void : setUseWorkflowAssistance( Boolean onOff )
Sets whether or not workflow assistance will be enabled.
Parameter(s):
true
, workflow assistance will be enabled.void : showAllPanes()
Make all panes visible in the interface.
DzError : showPane( DzPane pane )
Make the given pane visible in the interface.
Parameter(s):
DzError : showPane( String identifier )
Make the given pane visible in the interface.
Parameter(s):
DzError : showPaneGroup( DzPaneGroup group )
Show a pane group in the interface.
Parameter(s):
Return Value:
DzError : showPaneGroup( Number i )
Show a pane group in the interface.
Parameter(s):
Return Value:
DzError : tearOffPane( Number index, Number x=0, Number y=0 )
Put the pane in its own pane group, if it's not already, and moves the pane group out of any dock area.
Parameter(s):
Return Value:
DzError : tearOffPane( String identifier, Number x=0, Number y=0 )
Put the pane in its own pane group, if it's not already, and moves the pane group out of any dock area.
Parameter(s):
Return Value:
DzError : tearOffPane( DzPane pane, Number x=0, Number y=0 )
Put the pane in its own pane group, if it's not already, and moves the pane group out of any dock area.
Parameter(s):
Return Value:
DzError : togglePane( DzPane pane )
Toggle the given pane's visibility in the interface.
Parameter(s):
DzError : togglePane( String identifier )
Toggle the given pane's visibility in the interface.
Parameter(s):
DzError : togglePane( Number index )
Toggle the given pane's visibility in the interface.
Parameter(s):
Number : getNumPaneGroupDlgs()
Deprecated
Exists only to keep old code working. Do not use in new code.
DzPaneGroupDlg : getPaneGroupDlg( Number i )
Deprecated
Exists only to keep old code working. Do not use in new code.
void : addPaneGroupDlg( DzPaneGroupDlg dlg )
Deprecated
Exists only to keep old code working. Do not use in new code.
void : removePaneGroupDlg( DzPaneGroupDlg dlg )
Deprecated
Exists only to keep old code working. Do not use in new code.
void : closeAllPaneGroupDlgs()
Deprecated
Exists only to keep old code working. Do not use in new code.
void : activeLayoutAboutToChange( Number newLayoutIdx )
Signature:“activeLayoutAboutToChange(int)”
Emitted when the active layout is about to change.
Parameter(s):
void : activeLayoutChanged( Number i )
Signature:“activeLayoutChanged(int)”
Emitted when the active layout has changed.
Parameter(s):
void : activityBarEnabled( Boolean onOff )
Signature:“activityBarEnabled(bool)”
Emitted when the activity bar is enabled/disabled.
Parameter(s):
void : layoutListChanged()
Signature:“layoutListChanged()”
Emitted when the list of available layouts has changed.
void : layoutRestored( String filename )
Signature:“layoutRestored(const QString&)”
Emitted when the layout is restored from a file.
Parameter(s):
void : orientTabsAlongTopChanged( Boolean onOff )
Signature:“orientTabsAlongTopChanged(bool)”
Emitted when the option controlling whether or not tabs are oriented along the top of a pane group has changed.
Parameter(s):
void : toolbarListChanged()
Signature:“toolbarListChanged()”
Emitted when the list of available toolbars has changed.
void : workflowAssistanceEnableStateChanged( Boolean onOff )
Signature:“workflowAssistanceEnableStateChanged(bool)”
Emitted when the state of whether or not the workflow assistant is enabled has changed.
Parameter(s):
void : workflowAssistanceModeChanged()
Signature:“workflowAssistanceModeChanged()”
Emitted when the mode of the workflow assistant has changed.