Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/widget/panel-bar.hpp"
A container widget for widgets to be displayed on GDL panels grips.
Definition at line 54 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. More... | |
Private Member Functions | |
void | on_hide () |
An event handler for when the "Hide" menu item is clicked. | |
void | on_lock () |
Event handler for when the "Lock" menu item is clicked. | |
void | on_panel_type (int type_index) |
An event handler for when a panel type is chosen. More... | |
void | on_split_panel (Gtk::Orientation split_direction) |
Event handler for when the split panel menu item is clicked. More... | |
void | setupPanelButton () |
Sets up panelButton, populating it with menu items. More... | |
Private Attributes | |
Gtk::CheckMenuItem * | lockItem_ |
pointer to the lock menu item. More... | |
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. More... | |
Glib::RefPtr< Gdk::Window > | window_ |
The bar window. More... | |
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 50 of file panel-bar.cpp.
|
private |
Sets up panelButton, populating it with menu items.
Keeping this snippet for easy reference list.push_back( Menu_Helpers::StockMenuElem( StockID(PanelManager::get_panel_stock_id(i)), bind(mem_fun(*this, &PanelBar::on_panel_type), i) ));
Definition at line 68 of file panel-bar.cpp.
References PanelBar::lockItem_.
|
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 126 of file panel-bar.cpp.
References Panel::getPanelManager(), PanelBar::panel_, and PanelManager::switchPanel().
|
private |
Event handler for when the split panel menu item is clicked.
split_direction | The direction to split in. |
Definition at line 159 of file panel-bar.cpp.
References Panel::getPanelManager(), PanelBar::panel_, and PanelManager::splitPanel().
|
private |
The panel menu drop-down button widget, that will be displayed in the corner of the bar.
Definition at line 62 of file panel-bar.hpp.
|
private |
pointer to the lock menu item.
Definition at line 67 of file panel-bar.hpp.
Referenced by PanelBar::on_lock(), and PanelBar::setupPanelButton().
|
private |
The bar window.
Definition at line 72 of file panel-bar.hpp.