fw4spl
fwGui::layoutManager::TabLayoutManagerBase Class Reference

Defines the base for cardinal layout manager. More...

#include <TabLayoutManagerBase.hpp>

+ Inheritance diagram for fwGui::layoutManager::TabLayoutManagerBase:
+ Collaboration diagram for fwGui::layoutManager::TabLayoutManagerBase:

Classes

class  ViewInfo
 

Public Types

typedef std::string RegistryKeyType
 
- Public Types inherited from fwGui::layoutManager::IViewLayoutManager
typedef ::fwRuntime::ConfigurationElement::sptr ConfigurationType
 
- Public Types inherited from fwGui::GuiBaseObject
typedef ::fwGui::factory::Key Key
 

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWGUI_API TabLayoutManagerBase ()
 Constructor. Do nothing.
 
virtual FWGUI_API ~TabLayoutManagerBase ()
 Destructor. Do nothing.
 
virtual FWGUI_API void initialize (ConfigurationType configuration) override
 Initialize tab layout manager before the creation of layout. More...
 
std::list< ViewInfogetViewsInfo ()
 
- Public Member Functions inherited from fwGui::layoutManager::IViewLayoutManager
FWGUI_API IViewLayoutManager ()
 Constructor. Do nothing.
 
virtual FWGUI_API ~IViewLayoutManager ()
 Destructor. Do nothing.
 
virtual FWGUI_API void createLayout (::fwGui::container::fwContainer::sptr parent)=0
 Instantiate layout with parent container. More...
 
virtual FWGUI_API void destroyLayout ()=0
 Destroy local layout with sub containers. More...
 
virtual FWGUI_API std::vector< ::fwGui::container::fwContainer::sptr > getSubViews ()
 Returns all sub containers managed by this layout.
 
- Public Member Functions inherited from fwGui::GuiBaseObject
- Public Member Functions inherited from fwCore::BaseObject
virtual const std::string & getLeafClassname () const
 return object's classname without its namespace, i.e. BaseObject
 

Static Public Member Functions

static bool isTypeOf (const std::string &type)
 
- Static Public Member Functions inherited from fwGui::layoutManager::IViewLayoutManager
static bool isTypeOf (const std::string &type)
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
- Static Public Member Functions inherited from fwGui::GuiBaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
- Static Public Member Functions inherited from fwCore::BaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Static Public Attributes

static FWGUI_API const RegistryKeyType REGISTRY_KEY = "::fwGui::TabLayoutManager"
 

Demangling methods

virtual const std::string & getClassname () const override
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 

Additional Inherited Members

- Protected Member Functions inherited from fwGui::layoutManager::IViewLayoutManager
virtual FWGUI_API void destroySubViews ()
 Helper to destroy local sub views.
 
- Protected Member Functions inherited from fwGui::GuiBaseObject
 GuiBaseObject ()
 
virtual ~GuiBaseObject ()
 
- Protected Attributes inherited from fwGui::layoutManager::IViewLayoutManager
std::vector< ::fwGui::container::fwContainer::sptr > m_subViews
 All sub containers managed by this layout.
 

Detailed Description

Defines the base for cardinal layout manager.

Definition at line 25 of file TabLayoutManagerBase.hpp.

Member Function Documentation

void fwGui::layoutManager::TabLayoutManagerBase::initialize ( ConfigurationType  configuration)
overridevirtual

Initialize tab layout manager before the creation of layout.

Example of configuration with Tab layout.

1 <service uid="subView3" type="::gui::view::SDefaultView" autoConnect="no" >
2  <gui>
3  <layout type="::fwGui::TabLayoutManager" >
4  <view caption="TabView1" />
5  <view caption="TabView2" selected="yes" />
6  <view caption="TabView3" />
7  </layout>
8  </gui>
9  <registry>
10  <view sid="view1" start="yes" />
11  <view sid="view2" start="yes" />
12  <view sid="view3" start="yes" />
13  </registry>
14 </service>
  • <layout type="::fwGui::TabLayoutManager" > : define a tab layout.
  • <view caption="TabView1" selected="center" /> : define a new view which can have the following attributes
    • caption : name of the view (display on the screen).
    • selected {yes | no}: define if the tab is the current one.

Implements fwGui::layoutManager::IViewLayoutManager.

Definition at line 45 of file TabLayoutManagerBase.cpp.

References OSLM_ASSERT, and SLM_TRACE_IF.


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