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"
30
31
32namespace stage {
33 namespace panel {
34 class Panel;
35 }
36
37 namespace widget {
38
39
40
46 : public Gtk::Box
47 {
50
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*/
The base class for all dockable panels.
Definition panel.hpp:42
A button that displays a menu when clicked on.
A container widget for widgets to be displayed on GDL panels grips.
Definition panel-bar.hpp:47
void on_hide() override
An event handler for when the "Hide" menu item is clicked.
void setupPanelButton()
Sets up panelButton, populating it with menu items.
Definition panel-bar.cpp:64
Glib::RefPtr< Gdk::Window > window_
The bar window.
Definition panel-bar.hpp:63
Gtk::CheckMenuItem * lockItem_
pointer to the lock menu item.
Definition panel-bar.hpp:58
void on_split_panel(Gtk::Orientation split_direction)
Event handler for when the split panel menu item is clicked.
panel::Panel & panel_
reference to the owner panel
Definition panel-bar.hpp:49
void on_lock()
Event handler for when the "Lock" menu item is clicked.
MenuButton panelButton_
The panel menu drop-down button widget, that will be displayed in the corner of the bar.
Definition panel-bar.hpp:53
void on_panel_type(int type_index)
An event handler for when a panel type is chosen.
A set of basic GTK includes for the UI.
A button widget that displays a menu when clicked.
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37