Lumiera
0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
panel-bar.hpp
Go to the documentation of this file.
1
/*
2
PANEL-BAR.hpp - container to place widgets into the GDL dock attachment area
3
4
Copyright (C)
5
2009, Joel Holdsworth <joel@airwebreathe.org.uk>
6
2012, Michael R. Fisher <mfisher31@gmail.com>
7
8
**Lumiera** is free software; you can redistribute it and/or modify it
9
under the terms of the GNU General Public License as published by the
10
Free Software Foundation; either version 2 of the License, or (at your
11
option) any later version. See the file COPYING for further details.
12
13
*/
14
24
#ifndef STAGE_WIDGET_PANEL_BAR_H
25
#define STAGE_WIDGET_PANEL_BAR_H
26
27
28
#include "
stage/gtk-base.hpp
"
29
#include "
stage/widget/menu-button.hpp
"
30
31
32
namespace
stage
{
33
namespace
panel {
34
class
Panel;
35
}
36
37
namespace
widget {
38
39
40
45
class
PanelBar
46
:
public
Gtk::Box
47
{
49
panel::Panel
&
panel_
;
50
53
MenuButton
panelButton_
;
54
58
Gtk::CheckMenuItem*
lockItem_
;
59
63
Glib::RefPtr<Gdk::Window>
window_
;
64
65
66
public
:
71
PanelBar
(
panel::Panel
& owner_panel,
const
gchar *stock_id);
72
73
74
75
private
:
76
void
setupPanelButton
();
77
78
void
on_panel_type
(
int
type_index);
79
void
on_split_panel
(Gtk::Orientation split_direction);
80
81
void
on_hide
()
override
;
82
void
on_lock
();
83
};
84
85
86
87
}}
// stage::widget
88
#endif
/*STAGE_WIDGET_PANEL_BAR_H*/
stage::panel::Panel
The base class for all dockable panels.
Definition
panel.hpp:42
stage::widget::MenuButton
A button that displays a menu when clicked on.
Definition
menu-button.hpp:39
stage::widget::PanelBar
A container widget for widgets to be displayed on GDL panels grips.
Definition
panel-bar.hpp:47
stage::widget::PanelBar::on_hide
void on_hide() override
An event handler for when the "Hide" menu item is clicked.
Definition
panel-bar.cpp:143
stage::widget::PanelBar::setupPanelButton
void setupPanelButton()
Sets up panelButton, populating it with menu items.
Definition
panel-bar.cpp:64
stage::widget::PanelBar::window_
Glib::RefPtr< Gdk::Window > window_
The bar window.
Definition
panel-bar.hpp:63
stage::widget::PanelBar::lockItem_
Gtk::CheckMenuItem * lockItem_
pointer to the lock menu item.
Definition
panel-bar.hpp:58
stage::widget::PanelBar::on_split_panel
void on_split_panel(Gtk::Orientation split_direction)
Event handler for when the split panel menu item is clicked.
Definition
panel-bar.cpp:135
stage::widget::PanelBar::panel_
panel::Panel & panel_
reference to the owner panel
Definition
panel-bar.hpp:49
stage::widget::PanelBar::on_lock
void on_lock()
Event handler for when the "Lock" menu item is clicked.
Definition
panel-bar.cpp:150
stage::widget::PanelBar::panelButton_
MenuButton panelButton_
The panel menu drop-down button widget, that will be displayed in the corner of the bar.
Definition
panel-bar.hpp:53
stage::widget::PanelBar::on_panel_type
void on_panel_type(int type_index)
An event handler for when a panel type is chosen.
Definition
panel-bar.cpp:125
gtk-base.hpp
A set of basic GTK includes for the UI.
menu-button.hpp
A button widget that displays a menu when clicked.
stage
Lumiera GTK UI implementation root.
Definition
guifacade.cpp:37
stage
widget
panel-bar.hpp
Generated on Thu Dec 11 2025 for Lumiera by
1.9.8