Lumiera  0.pre.03
»edit your freedom«
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) Lumiera.org
5  2009, Joel Holdsworth <joel@airwebreathe.org.uk>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
32 #ifndef STAGE_WIDGET_PANEL_BAR_H
33 #define STAGE_WIDGET_PANEL_BAR_H
34 
35 
37 
38 #include <gtkmm.h>
39 
40 
41 namespace stage {
42  namespace panel {
43  class Panel;
44  }
45 
46  namespace widget {
47 
48 
49 
54  class PanelBar
55  : public Gtk::Box
56  {
59 
63 
67  Gtk::CheckMenuItem* lockItem_;
68 
72  Glib::RefPtr<Gdk::Window> window_;
73 
74 
75  public:
80  PanelBar (panel::Panel& owner_panel, const gchar *stock_id);
81 
82 
83 
84  private:
88  void setupPanelButton();
89 
90 
95  void on_panel_type (int type_index);
96 
100  void on_hide();
101 
105  void on_lock();
106 
111  void on_split_panel (Gtk::Orientation split_direction);
112  };
113 
114 
115 
116 }}// stage::widget
117 #endif /*STAGE_WIDGET_PANEL_BAR_H*/
Glib::RefPtr< Gdk::Window > window_
The bar window.
Definition: panel-bar.hpp:72
Gtk::CheckMenuItem * lockItem_
pointer to the lock menu item.
Definition: panel-bar.hpp:67
A container widget for widgets to be displayed on GDL panels grips.
Definition: panel-bar.hpp:54
panel::Panel & panel_
reference to the owner panel
Definition: panel-bar.hpp:58
The base class for all dockable panels.
Definition: panel.hpp:49
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
MenuButton panelButton_
The panel menu drop-down button widget, that will be displayed in the corner of the bar...
Definition: panel-bar.hpp:62
A button that displays a menu when clicked on.
Definition: menu-button.hpp:46