25#include <gdl/gdl-dock-item-grip.h>
33 ,Gdl::DockItem& dockItem
34 ,
const gchar* longName
35 ,
const gchar* stockID)
36 :
Gtk::Box{
Gtk::ORIENTATION_VERTICAL}
37 , panelManager_(panelManager)
39 , panelBar_(*this, stockID)
42 Glib::Value<std::string> val;
43 val.init(val.value_type());
45 g_object_set_property (G_OBJECT (dockItem.gobj()),
"long-name", val.gobj());
49 GdlDockItemGrip *grip = GDL_DOCK_ITEM_GRIP(
50 gdl_dock_item_get_grip(dockItem.gobj()));
51 gdl_dock_item_grip_show_handle(grip);
52 gdl_dock_item_grip_set_label(grip, ((Widget&)
panelBar_).gobj());
57 dockItem.add((Gtk::Widget&)*
this);
60 dockItem.signal_hide().connect(
75 GdlDockItemGrip *grip = GDL_DOCK_ITEM_GRIP(
76 gdl_dock_item_get_grip(
dockItem_.gobj()));
77 gtk_container_remove (GTK_CONTAINER(grip),
120 REQUIRE(item !=
NULL);
121 return GDL_DOCK_ITEM_ICONIFIED (item);
135 return not GDL_DOCK_ITEM_NOT_LOCKED(
dockItem_.gobj());
workspace::PanelManager & getPanelManager()
bool is_iconified() const
void on_item_hidden()
event handler when dockItem is hidden.
workspace::PanelManager & panelManager_
The owner panel manager object.
Gdl::DockItem & getDockItem()
void lock(bool show=true)
Locks or unlocks the panel against modifications.
widget::PanelBar panelBar_
panel bar to attach to the panel grip.
sigc::signal< void > & signal_hidePanel()
fires when the dock item gets hidden.
void show(bool show=true)
Shows or hides the panel.
Panel(workspace::PanelManager &, Gdl::DockItem &, const gchar *longName, const gchar *stockID)
Gdl::DockItem & dockItem_
owner dock item widget that will host the widgets in this panel.
workspace::WorkspaceWindow & getWorkspaceWindow()
sigc::signal< void > hidePanelSignal_
signal that fires when the dock item is hidden.
A class to manage DockItem objects for WorkspaceWindow.
WorkspaceWindow & getWorkspaceWindow()
Returns a reference to the owner workspace window.
The main Lumiera workspace window.
A set of basic GTK includes for the UI.
Lumiera GTK UI implementation root.
Management of dockable panels.
Base class and interface for all dockable panels.
This file contains the definition of the main workspace window parent, which is the toplevel parent o...