Lumiera  0.pre.03
»edit your freedom«
DockArea::PanelDescription Class Reference

Description

A class to describe and instantiate Panel types.

Definition at line 241 of file dock-area.hpp.

Public Member Functions

panel::Panelcreate (DockArea &panelManager, Gdl::DockItem &dockItem) const
 Creates an instance of this panel. More...
 
const std::type_info & getClassInfo () const
 
const char * getClassName () const
 
const gchar * getStockID () const
 
const char * getTitle () const
 the localised title that will be shown on the panel
 

Protected Types

typedef panel::Panel *(*const CreatePanelProc) (DockArea &, Gdl::DockItem &)
 

Protected Member Functions

 PanelDescription (std::type_info const &classInfo, const char *title, const gchar *stockID, CreatePanelProc createPanelProc)
 

Private Attributes

const std::type_info & classInfo_
 reference to the typeID of this class
 
CreatePanelProc createPanelProc_
 pointer to a function that will instantiate the panel object
 
const gchar *const stockID_
 Stock ID for this type of panel. More...
 
const char *const titleName_
 localised title that will be shown on the panel. More...
 

Constructor & Destructor Documentation

◆ PanelDescription()

PanelDescription ( std::type_info const &  classInfo,
const char *  title,
const gchar *  stockID,
CreatePanelProc  createPanelProc 
)
inlineprotected
Parameters
classInfoThe typeID of the Panel class
titleThe localised title that will be shown on the panel.
stock_idThe Stock ID for this type of panel.
create_panel_procA pointer to a function that will instantiate the panel object.

Definition at line 267 of file dock-area.hpp.

Member Function Documentation

◆ create()

panel::Panel* create ( DockArea panelManager,
Gdl::DockItem &  dockItem 
) const
inline

Creates an instance of this panel.

Parameters
panel_managerThe owner panel manager.
dock_itemThe GdlDockItem that will host this panel.
Returns
Returns a pointer to the panel object.

Definition at line 312 of file dock-area.hpp.

Member Data Documentation

◆ titleName_

const char* const titleName_
private

localised title that will be shown on the panel.

Definition at line 251 of file dock-area.hpp.

◆ stockID_

const gchar* const stockID_
private

Stock ID for this type of panel.

Definition at line 254 of file dock-area.hpp.

+ Inheritance diagram for DockArea::PanelDescription:
+ Collaboration diagram for DockArea::PanelDescription:

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