A class which manages a dock panel and a related side bar. This is used for the left and right panel of the application shell.
The menu placed on the sidebar bottom. Displayed as icons. Open menus when on clicks.
The panel that contains the tab bar and the dock panel. This one is hidden whenever the dock panel is empty.
The widget container is a dock panel in
single-document mode, which means that the panel
cannot be split.
Options that control the behavior of the side panel.
The shell area where the panel is placed. This property should not be modified directly, but
only by calling
The tab bar displays the titles of the widgets in the side panel. Visibility of the widgets
is controlled entirely through tab selection: a widget is revealed by setting the
accordingly in the tab bar, and the panel is hidden by setting that property to
tab bar itself remains visible as long as there is at least one widget.
A tool bar, which displays a title and widget specific command buttons.
A property that can be attached to widgets in order to determine the insertion index of their title in the tab bar.
Activate a widget residing in the side panel by ID.
the activated widget if it was found
Add a menu to the sidebar bottom.
If the menu is already added, it will be ignored.
Add a widget and its title to the dock panel and side bar.
If the widget is already added, it will be moved.
Collapse the sidebar so no items are expanded.
Create the side bar and dock panel widgets.
Expand a widget residing in the side panel by ID. If no ID is given and the panel is currently collapsed, the last active tab of this side panel is expanded. If no tab was expanded previously, the first one is taken.
the expanded widget if it was found
Determine the default size to apply when the panel is expanded for the first time.
Create an object that describes the current side panel layout. This object may contain references to widgets; these need to be transformed before the layout can be serialized.
Compute the current width of the panel. This implementation assumes that the parent of
the panel container is a
currentChanged signal from the sidebar. The side panel is refreshed so it displays
the new selected widget.
tabDetachRequested signal from the sidebar. A drag is started so the widget can be
moved to another application shell area.
Refresh the visibility of the side bar and dock panel.
Remove a menu from the sidebar bottom.
id of the menu to remove
Sets the size of the side panel.
the desired size (width) of the panel in pixels.
Apply a side panel layout that has been previously created with
Modify the width of the panel. This implementation assumes that the parent of the panel
container is a
The current state of the side panel.