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