fw4spl
fwGui::GuiRegistry Class Reference

This class contains helpers to manage all fwContainer in the application. More...

#include <GuiRegistry.hpp>

+ Inheritance diagram for fwGui::GuiRegistry:
+ Collaboration diagram for fwGui::GuiRegistry:

Public Types

typedef std::map< std::string,::fwGui::container::fwContainer::sptr > ContainerMapType
 
typedef std::map< std::string,::fwGui::container::fwMenuBar::sptr > MenuBarMapType
 
typedef std::map< std::string,::fwGui::container::fwToolBar::sptr > ToolBarMapType
 
typedef std::map< std::string,::fwGui::container::fwMenu::sptr > MenuMapType
 
typedef std::vector< std::string > ParentSidsType
 
typedef std::map< std::string, ParentSidsType > ActionToParentMapType
 
- 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 GuiRegistry ()
 Constructor.
 
virtual FWGUI_API ~GuiRegistry ()
 Destructor. Do nothing.
 
- 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)
 
Helper SID-container methods
static FWGUI_API void registerSIDContainer (std::string sid,::fwGui::container::fwContainer::sptr container)
 Registers container associate with service ID.
 
static FWGUI_API void unregisterSIDContainer (std::string sid)
 Unregisters container associate with service ID.
 
static FWGUI_API::fwGui::container::fwContainer::sptr getSIDContainer (std::string sid)
 Returns fwContainer associate with service ID, null if not found.
 
static FWGUI_API bool hasSIDContainer (std::string sid)
 Verifies if a SID exists in the global SID container.
 
Helper WID-container methods
static FWGUI_API void registerWIDContainer (std::string wid,::fwGui::container::fwContainer::sptr container)
 Registers container associate with window ID.
 
static FWGUI_API void unregisterWIDContainer (std::string wid)
 Unregisters container associate with window ID.
 
static FWGUI_API::fwGui::container::fwContainer::sptr getWIDContainer (std::string wid)
 Returns fwContainer associate with window ID, null if not found.
 
static FWGUI_API bool hasWIDContainer (std::string wid)
 Verifies if a WID exists in the global WID container.
 
Helper SID-MenuBar methods
static FWGUI_API void registerSIDMenuBar (std::string sid,::fwGui::container::fwMenuBar::sptr menuBar)
 Registers fwMenuBar associate with service ID.
 
static FWGUI_API void unregisterSIDMenuBar (std::string sid)
 Unregisters fwMenuBar associate with service ID.
 
static FWGUI_API::fwGui::container::fwMenuBar::sptr getSIDMenuBar (std::string sid)
 Returns fwMenuBar associate with service ID.
 
Helper SID-ToolBar methods
static FWGUI_API void registerSIDToolBar (std::string sid,::fwGui::container::fwToolBar::sptr toolBar)
 Registers fwToolBar associate with service ID.
 
static FWGUI_API void unregisterSIDToolBar (std::string sid)
 Unregisters fwToolBar associate with service ID.
 
static FWGUI_API::fwGui::container::fwToolBar::sptr getSIDToolBar (std::string sid)
 Returns fwToolBar associate with service ID.
 
Helper SID-Menu methods
static FWGUI_API void registerSIDMenu (std::string sid,::fwGui::container::fwMenu::sptr menu)
 Registers fwMenu associate with service ID.
 
static FWGUI_API void unregisterSIDMenu (std::string sid)
 Unregisters fwMenu associate with service ID.
 
static FWGUI_API::fwGui::container::fwMenu::sptr getSIDMenu (std::string sid)
 Returns fwMenu associate with service ID.
 
Helper Action-Menu methods
static FWGUI_API void registerActionSIDToParentSID (std::string actionSid, std::string parentSid)
 Registers action sid associted with a parent sid.
 
static FWGUI_API void unregisterActionSIDToParentSID (std::string actionSid, std::string parentSid)
 Unregisters action sid associted with a parent sid.
 
static FWGUI_API void actionServiceStopping (std::string actionSid)
 Method called when the action service is stopping. Call parent service actionServiceStopping() method.
 
static FWGUI_API void actionServiceStarting (std::string actionSid)
 Method called when the action service is starting. Call parent service actionServiceStarting() method.
 
static FWGUI_API void actionServiceSetActive (std::string actionSid, bool isActive)
 Method called when the action service is activated or not. Call parent service actionServiceSetActive() method.
 
static FWGUI_API void actionServiceSetExecutable (std::string actionSid, bool isExecutable)
 Method called when the action service is executable or not. Call parent service actionServiceSetExecutable() method.
 
static FWGUI_API void actionServiceSetVisible (std::string actionSid, bool isVisible)
 Method called when the action service is visible or not. Call parent service actionServiceSetVisible() method.
 
- 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 Protected Attributes

static ContainerMapType m_globalSIDToFwContainer
 
static ContainerMapType m_globalWIDToFwContainer
 
static MenuBarMapType m_globalSIDToFwMenuBar
 
static ToolBarMapType m_globalSIDToFwToolBar
 
static MenuMapType m_globalSIDToFwMenu
 
static ActionToParentMapType m_actionSIDToParentSID
 Parent sid can be Menu sid or ToolBar sid.
 

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::GuiBaseObject
 GuiBaseObject ()
 
virtual ~GuiBaseObject ()
 

Detailed Description

This class contains helpers to manage all fwContainer in the application.

Definition at line 25 of file GuiRegistry.hpp.


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