Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
Panel Class Reference

#include "stage/panel/panel.hpp"

Description

The base class for all dockable panels.

Definition at line 40 of file panel.hpp.

Public Member Functions

 ~Panel ()
 
Gdl::DockItem & getDockItem ()
 
void show (bool show=true)
 Shows or hides the panel.
 
bool is_shown () const
 
void iconify ()
 
bool is_iconified () const
 
void lock (bool show=true)
 Locks or unlocks the panel against modifications.
 
bool is_locked () const
 
workspace::PanelManagergetPanelManager ()
 
sigc::signal< void > & signal_hidePanel ()
 fires when the dock item gets hidden.
 

Protected Member Functions

 Panel (workspace::PanelManager &, Gdl::DockItem &, const gchar *longName, const gchar *stockID)
 
workspace::WorkspaceWindowgetWorkspaceWindow ()
 

Protected Attributes

workspace::PanelManagerpanelManager_
 The owner panel manager object.
 
Gdl::DockItem & dockItem_
 owner dock item widget that will host the widgets in this panel.
 
sigc::signal< void > hidePanelSignal_
 signal that fires when the dock item is hidden.
 
widget::PanelBar panelBar_
 panel bar to attach to the panel grip.
 

Private Member Functions

void on_item_hidden ()
 event handler when dockItem is hidden.
 

Constructor & Destructor Documentation

◆ Panel()

Panel ( workspace::PanelManager panelManager,
Gdl::DockItem &  dockItem,
const gchar *  longName,
const gchar *  stockID 
)
protected
Parameters
panel_managerowner panel manager widget
dock_itemGdlDockItem that will host this panel
long_nametitle of this panel
stock_idID of this panel

Definition at line 32 of file panel.cpp.

References Panel::on_item_hidden(), and Panel::panelBar_.

+ Here is the call graph for this function:

◆ ~Panel()

~Panel ( )

Definition at line 67 of file panel.cpp.

References Panel::dockItem_, and Panel::panelBar_.

Member Function Documentation

◆ getDockItem()

Gdl::DockItem & getDockItem ( )
Returns
pointer to the underlying GdlDockItem structure

Definition at line 86 of file panel.cpp.

References Panel::dockItem_.

Referenced by DockArea::createPanels(), PanelManager::createPanels(), DockArea::showPanel(), PanelManager::showPanel(), DockArea::splitPanel(), PanelManager::splitPanel(), DockArea::switchPanel(), and PanelManager::switchPanel().

+ Here is the caller graph for this function:

◆ show()

void show ( bool  show = true)

Shows or hides the panel.

Definition at line 92 of file panel.cpp.

References Panel::dockItem_, and Panel::show().

Referenced by InfoBoxPanel::getLog(), PanelBar::on_hide(), Panel::show(), DockArea::showPanel(), and PanelManager::showPanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_shown()

bool is_shown ( ) const

Definition at line 100 of file panel.cpp.

References Panel::dockItem_.

Referenced by DockArea::on_panel_shown(), PanelManager::on_panel_shown(), DockArea::showPanel(), and PanelManager::showPanel().

+ Here is the caller graph for this function:

◆ iconify()

void iconify ( )

Definition at line 107 of file panel.cpp.

References Panel::dockItem_.

◆ is_iconified()

bool is_iconified ( ) const

Gdlmm as of v1.30.0 does not have a facility for checking the whether a dock item is iconified or not ////////////////////TODO explicit usings please!

Definition at line 113 of file panel.cpp.

References Panel::dockItem_, and NULL.

Referenced by DockArea::on_panel_shown(), and PanelManager::on_panel_shown().

+ Here is the caller graph for this function:

◆ lock()

void lock ( bool  show = true)

Locks or unlocks the panel against modifications.

Definition at line 125 of file panel.cpp.

References Panel::dockItem_, and Panel::lock().

Referenced by Panel::lock(), and PanelBar::on_lock().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_locked()

bool is_locked ( ) const

Definition at line 132 of file panel.cpp.

References Panel::dockItem_, and NULL.

Referenced by PanelBar::on_lock(), and PanelBar::setupPanelButton().

+ Here is the caller graph for this function:

◆ getPanelManager()

workspace::PanelManager & getPanelManager ( )
Returns
the owner

Definition at line 139 of file panel.cpp.

References Panel::panelManager_.

Referenced by PanelBar::on_panel_type(), and PanelBar::on_split_panel().

+ Here is the caller graph for this function:

◆ signal_hidePanel()

sigc::signal< void > & signal_hidePanel ( )

fires when the dock item gets hidden.

Definition at line 151 of file panel.cpp.

References Panel::hidePanelSignal_.

Referenced by DockArea::createPanel_by_index(), and PanelManager::createPanel_by_index().

+ Here is the caller graph for this function:

◆ getWorkspaceWindow()

workspace::WorkspaceWindow & getWorkspaceWindow ( )
protected

Definition at line 145 of file panel.cpp.

References PanelManager::getWorkspaceWindow(), and Panel::panelManager_.

+ Here is the call graph for this function:

◆ on_item_hidden()

void on_item_hidden ( )
private

event handler when dockItem is hidden.

Definition at line 157 of file panel.cpp.

References Panel::hidePanelSignal_.

Referenced by Panel::Panel().

+ Here is the caller graph for this function:

Member Data Documentation

◆ panelManager_

workspace::PanelManager& panelManager_
protected

The owner panel manager object.

Definition at line 94 of file panel.hpp.

Referenced by PlayPanel::accessViewer(), Panel::getPanelManager(), and Panel::getWorkspaceWindow().

◆ dockItem_

Gdl::DockItem& dockItem_
protected

owner dock item widget that will host the widgets in this panel.

Definition at line 97 of file panel.hpp.

Referenced by Panel::~Panel(), Panel::getDockItem(), Panel::iconify(), Panel::is_iconified(), Panel::is_locked(), Panel::is_shown(), Panel::lock(), and Panel::show().

◆ hidePanelSignal_

sigc::signal<void> hidePanelSignal_
protected

signal that fires when the dock item is hidden.

Definition at line 100 of file panel.hpp.

Referenced by Panel::on_item_hidden(), and Panel::signal_hidePanel().

◆ panelBar_

widget::PanelBar panelBar_
protected

panel bar to attach to the panel grip.

Definition at line 103 of file panel.hpp.

Referenced by Panel::Panel(), and Panel::~Panel().

+ Inheritance diagram for Panel:
+ Collaboration diagram for Panel:

The documentation for this class was generated from the following files: