|
fw4spl
|
Defines the generic view manager for IHM. More...
#include <ViewRegistrar.hpp>
Inheritance diagram for fwGui::registrar::ViewRegistrar:
Collaboration diagram for fwGui::registrar::ViewRegistrar:Public Member Functions | |
| virtual bool | isA (const std::string &type) const override |
| FWGUI_API | ViewRegistrar (const std::string &sid) |
| Constructor. | |
| virtual FWGUI_API | ~ViewRegistrar () |
| Destructor. Do nothing. | |
| virtual FWGUI_API std::shared_ptr< ::fwGui::container::fwContainer > | getParent () |
| virtual FWGUI_API void | setParent (std::string wid) |
| virtual FWGUI_API void | initialize (::fwRuntime::ConfigurationElement::sptr configuration) |
| Initialize managers. More... | |
| virtual FWGUI_API void | manage (std::vector< std::shared_ptr< ::fwGui::container::fwContainer > > subViews) |
| Starting view manager. All services managed in local subViews and with start="yes" in configuration will be started. More... | |
| virtual FWGUI_API void | manageMenuBar (std::shared_ptr< ::fwGui::container::fwMenuBar > menuBar) |
| Register menu bar. If start="yes" in configuration the menu bar services will be started. | |
| virtual FWGUI_API void | manageToolBar (std::shared_ptr< ::fwGui::container::fwToolBar > toolBar) |
| Register tool bar. If start="yes" in configuration the tool bar services will be started. | |
| virtual FWGUI_API void | unmanage () |
| Stopping view manager. All services managed in local subViews will be stopped. | |
| virtual FWGUI_API void | unmanageToolBar () |
| Stopping view manager. ToolBar service will be stopped. | |
| virtual FWGUI_API void | unmanageMenuBar () |
| Stopping view manager. MenuBar service will be stopped. | |
Public Member Functions inherited from fwGui::GuiBaseObject | |
Public Member Functions inherited from fwCore::BaseObject | |
Static Public Member Functions | |
| static bool | isTypeOf (const std::string &type) |
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 | |
Protected Attributes | |
| SIDContainerMapType | m_sids |
| All services ID managed and associated with pair containing: subViews index vector and boolean describing if is started by the manager. | |
| WIDContainerMapType | m_wids |
| All windows containers ID managed (and associated with subViews index vector). | |
| SIDMenuBarPairType | m_menuBarSid |
| Menu bar service ID associate with this ViewRegistrar. | |
| SIDToolBarPairType | m_toolBarSid |
| Tool bar service ID associate with this ViewRegistrar. | |
| std::string | m_parentWid |
| std::shared_ptr< ::fwGui::container::fwContainer > | m_parentContainer |
| std::string | m_sid |
| Main service ID associate with this ViewRegistrar. | |
Friends | |
| template<class , class , class > | |
| class | ::fwTools::ClassFactory |
| class | ::fwTools::Factory |
Demangling methods | |
| virtual const std::string & | getLeafClassname () const override |
| return object's classname without its namespace, i.e. BaseObject | |
| virtual const std::string & | getClassname () const override |
| return full object's classname with its namespace, i.e. fwCore::BaseObject | |
| 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 | |
Additional Inherited Members | |
Public Types inherited from fwGui::GuiBaseObject | |
| typedef ::fwGui::factory::Key | Key |
Protected Member Functions inherited from fwGui::GuiBaseObject | |
| GuiBaseObject () | |
| virtual | ~GuiBaseObject () |
Defines the generic view manager for IHM.
Definition at line 33 of file ViewRegistrar.hpp.
|
virtual |
Initialize managers.
Example of configuration
Definition at line 67 of file ViewRegistrar.cpp.
References m_menuBarSid, m_sids, m_toolBarSid, m_wids, OSLM_ASSERT, and SLM_ASSERT.
|
virtual |
Starting view manager. All services managed in local subViews and with start="yes" in configuration will be started.
Definition at line 156 of file ViewRegistrar.cpp.
References fwTools::fwID::exist(), m_sids, m_wids, OSLM_ASSERT, fwGui::GuiRegistry::registerSIDContainer(), fwGui::GuiRegistry::registerWIDContainer(), and SLM_TRACE.
Here is the call graph for this function: