![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "stage/widget/panel-bar.hpp"
A container widget for widgets to be displayed on GDL panels grips.
Definition at line 45 of file panel-bar.hpp.
Public Member Functions | |
| PanelBar (panel::Panel &owner_panel, const gchar *stock_id) | |
| create a PanelBar with a given stock_id. | |
Private Member Functions | |
| void | setupPanelButton () |
| Sets up panelButton, populating it with menu items. | |
| void | on_panel_type (int type_index) |
| An event handler for when a panel type is chosen. | |
| void | on_split_panel (Gtk::Orientation split_direction) |
| Event handler for when the split panel menu item is clicked. | |
| void | on_hide () override |
| An event handler for when the "Hide" menu item is clicked. | |
| void | on_lock () |
| Event handler for when the "Lock" menu item is clicked. | |
Private Attributes | |
| panel::Panel & | panel_ |
| reference to the owner panel | |
| MenuButton | panelButton_ |
| The panel menu drop-down button widget, that will be displayed in the corner of the bar. | |
| Gtk::CheckMenuItem * | lockItem_ |
| pointer to the lock menu item. | |
| Glib::RefPtr< Gdk::Window > | window_ |
| The bar window. | |
| PanelBar | ( | panel::Panel & | owner_panel, |
| const gchar * | stock_id | ||
| ) |
create a PanelBar with a given stock_id.
| owner_panel | The GDL panel that is the parent of this panel bar. |
| stock_id | The stock id with a name and an icon for this panel. |
Definition at line 42 of file panel-bar.cpp.
References PanelBar::panelButton_, and PanelBar::setupPanelButton().
Here is the call graph for this function:
|
private |
Sets up panelButton, populating it with menu items.
Definition at line 64 of file panel-bar.cpp.
References MenuButton::append(), PanelManager::getPanelDescriptionCount(), PanelManager::getPanelTitle(), Panel::is_locked(), PanelBar::lockItem_, NULL, PanelBar::on_hide(), PanelBar::on_lock(), PanelBar::on_panel_type(), PanelBar::on_split_panel(), PanelBar::panel_, and PanelBar::panelButton_.
Referenced by PanelBar::PanelBar().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
An event handler for when a panel type is chosen.
| type_index | index of the panel description that will be instantiated. |
Definition at line 125 of file panel-bar.cpp.
References Panel::getPanelManager(), PanelBar::panel_, and PanelManager::switchPanel().
Referenced by PanelBar::setupPanelButton().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Event handler for when the split panel menu item is clicked.
| split_direction | The direction to split in. |
Definition at line 135 of file panel-bar.cpp.
References Panel::getPanelManager(), PanelBar::panel_, and PanelManager::splitPanel().
Referenced by PanelBar::setupPanelButton().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprivate |
An event handler for when the "Hide" menu item is clicked.
Definition at line 143 of file panel-bar.cpp.
References PanelBar::panel_, and Panel::show().
Referenced by PanelBar::setupPanelButton().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Event handler for when the "Lock" menu item is clicked.
Definition at line 150 of file panel-bar.cpp.
References Panel::is_locked(), Panel::lock(), PanelBar::lockItem_, and PanelBar::panel_.
Referenced by PanelBar::setupPanelButton().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
reference to the owner panel
Definition at line 49 of file panel-bar.hpp.
Referenced by PanelBar::on_hide(), PanelBar::on_lock(), PanelBar::on_panel_type(), PanelBar::on_split_panel(), and PanelBar::setupPanelButton().
|
private |
The panel menu drop-down button widget, that will be displayed in the corner of the bar.
Definition at line 53 of file panel-bar.hpp.
Referenced by PanelBar::PanelBar(), and PanelBar::setupPanelButton().
|
private |
pointer to the lock menu item.
Definition at line 58 of file panel-bar.hpp.
Referenced by PanelBar::on_lock(), and PanelBar::setupPanelButton().
|
private |
The bar window.
Definition at line 63 of file panel-bar.hpp.
Inheritance diagram for PanelBar:
Collaboration diagram for PanelBar: