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}
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(
74 GdlDockItemGrip *grip = GDL_DOCK_ITEM_GRIP(
76 gdl_dock_item_get_grip(
dockItem_.gobj()));
77 gtk_container_remove (GTK_CONTAINER(grip),
100 Panel::is_shown()
const 120 REQUIRE(item != NULL);
121 return GDL_DOCK_ITEM_ICONIFIED (item);
132 Panel::is_locked()
const 135 return not GDL_DOCK_ITEM_NOT_LOCKED(
dockItem_.gobj());
145 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.