#include "stage/workspace/dock-area.hpp"
A class to manage DockItem objects for WorkspaceWindow.
- Todo:
- this code is smelly and needs some clean-up ///////////////////////////////TICKET #1026
Definition at line 49 of file dock-area.hpp.
◆ setupDock()
Initialises this dock manager and creates the dock and all it's widgets.
- Deprecated:
- ///////////////////////////////////////////////////////////////////////////////////TICKET #1145 UI must not populate itself!!!!!
Definition at line 94 of file dock-area.cpp.
◆ getDock()
Gets a pointer to the dock object.
Definition at line 116 of file dock-area.cpp.
◆ getDockBar()
Gdl::DockBar & getDockBar |
( |
| ) |
|
◆ showPanel()
Shows a panel given a description index.
- Parameters
-
description_index | The index of the panel type to show. |
- Returns
- existing or new Panel, docked within the realm of this PanelManager.
Definition at line 146 of file dock-area.cpp.
◆ switchPanel()
void switchPanel |
( |
panel::Panel & |
old_panel, |
|
|
const int |
description_index |
|
) |
| |
Switches a panel from one type to another, without touching the underlying GdlDockItem.
- Parameters
-
old_panel | The panel which will be transformed to a new type. |
description_index | The index of the panel description that will be instantiated. |
Definition at line 177 of file dock-area.cpp.
References Panel::getDockItem().
◆ splitPanel()
void splitPanel |
( |
panel::Panel & |
panel, |
|
|
Gtk::Orientation |
split_direction |
|
) |
| |
Splits a panel into two panels of the same type.
- Parameters
-
panel | The panel to split. |
split_direction | The direction to split the panel in. |
Definition at line 194 of file dock-area.cpp.
References Panel::getDockItem().
◆ findPanelID()
◆ getPanelDescriptionCount()
int getPanelDescriptionCount |
( |
| ) |
|
|
static |
Gets the number of panel descriptions.
Definition at line 225 of file dock-area.cpp.
◆ getPanelStockID()
const gchar * getPanelStockID |
( |
const int |
index | ) |
|
|
static |
Gets a panel description's stock id.
- Parameters
-
index | The index of the panel to retrieve. |
- Returns
- Returns the stock id of a panel at this index.
Definition at line 232 of file dock-area.cpp.
◆ getPanelTitle()
const char * getPanelTitle |
( |
int |
index | ) |
|
|
static |
Gets a panel description's title.
- Parameters
-
index | The index of the panel to retrieve. |
- Returns
- Returns the title of a panel at this index.
Definition at line 240 of file dock-area.cpp.
◆ createPanels()
◆ findPanelDescription()
int findPanelDescription |
( |
const char * |
class_name | ) |
|
|
staticprivate |
Find the index of a panel description given the class name.
- Parameters
-
class_name | The name of the object class to search for. |
- Returns
- Returns the index of the panel description found, or -1 if no description was found for this type.
Definition at line 262 of file dock-area.cpp.
◆ createPanel_by_index() [1/2]
Creates a panel by description index.
- Parameters
-
index | The index of the description to instantiate. |
- Returns
- Returns a pointer to the new instantiated panel object.
Definition at line 279 of file dock-area.cpp.
References stage::widget::name().
◆ createPanel_by_index() [2/2]
panel::Panel * createPanel_by_index |
( |
const int |
index, |
|
|
Gdl::DockItem & |
dock_item |
|
) |
| |
|
private |
Creates a panel by description index with a given GdlDockItem.
- Parameters
-
index | The index of the description to instantiate. |
dock_item | The GdlDockItem to attach this panel to |
- Returns
- Returns a pointer to the new instantiated panel object.
Definition at line 294 of file dock-area.cpp.
References Panel::signal_hidePanel().
◆ createPanel_by_name()
panel::Panel * createPanel_by_name |
( |
const char * |
class_name | ) |
|
|
private |
Creates a panel by class name.
- Parameters
-
class_name | The name of the object class to create. |
- Returns
- Returns a pointer to the new instantiated panel object.
Definition at line 313 of file dock-area.cpp.
◆ getPanelType()
Gets the type of a given panel.
- Parameters
-
panel | The Panel to get the type of |
- Returns
- Returns the index of the panel description found, or -1 if no description was found for this type.
Definition at line 322 of file dock-area.cpp.
◆ removePanel()
Removes a panel from the panel list and deletes it.
- Parameters
-
panel | The panel to remove and delete. |
Definition at line 340 of file dock-area.cpp.
◆ clearPanels()
Removes all panels from the panel list and deletes them.
Definition at line 358 of file dock-area.cpp.
◆ on_panel_shown()
An event handler for when the panel is shown or hidden.
- Parameters
-
panel | A pointer to the panel that was hidden. |
Definition at line 370 of file dock-area.cpp.
References Panel::is_iconified().
◆ dock_
The pointer to GDL dock widget.
Definition at line 57 of file dock-area.hpp.
◆ dockBar_
The pointer to GDL dock bar widget.
Definition at line 62 of file dock-area.hpp.
◆ dockLayout_
Glib::RefPtr<Gdl::DockLayout> dockLayout_ |
|
private |
The pointer to GDL dock layout object.
Definition at line 67 of file dock-area.hpp.
◆ dockPlaceholders_
GdlDockPlaceholder* dockPlaceholders_[4] |
|
private |
Pointers to the 4 root place holders.
Definition at line 72 of file dock-area.hpp.
◆ panelDescriptionList
Initial value:
The list of panel descriptions.
Definition at line 344 of file dock-area.hpp.
The documentation for this class was generated from the following files: