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)
5  2009, Joel Holdsworth <joel@airwebreathe.org.uk>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
23 #ifndef STAGE_WIDGET_PANEL_BAR_H
24 #define STAGE_WIDGET_PANEL_BAR_H
25 
26 
28 
29 #include <gtkmm.h>
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  {
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:
79  void setupPanelButton();
80 
81 
86  void on_panel_type (int type_index);
87 
91  void on_hide();
92 
96  void on_lock();
97 
102  void on_split_panel (Gtk::Orientation split_direction);
103  };
104 
105 
106 
107 }}// stage::widget
108 #endif /*STAGE_WIDGET_PANEL_BAR_H*/
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
A container widget for widgets to be displayed on GDL panels grips.
Definition: panel-bar.hpp:45
panel::Panel & panel_
reference to the owner panel
Definition: panel-bar.hpp:49
The base class for all dockable panels.
Definition: panel.hpp:40
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:37
MenuButton panelButton_
The panel menu drop-down button widget, that will be displayed in the corner of the bar...
Definition: panel-bar.hpp:53
A button that displays a menu when clicked on.
Definition: menu-button.hpp:37