fw4spl
fwGui::layoutManager::ToolBarLayoutManager Class Reference

Defines the toolBar layout manager for IHM. More...

#include <ToolBarLayoutManager.hpp>

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

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWGUIQT_API ToolBarLayoutManager (::fwGui::GuiBaseObject::Key key)
 
virtual FWGUIQT_API void createLayout (::fwGui::container::fwToolBar::sptr parent) override
 Instantiate actions with parent toolBar. More...
 
virtual FWGUIQT_API void destroyLayout () override
 Destroy local toolBars. More...
 
virtual FWGUIQT_API void menuItemSetVisible (::fwGui::container::fwMenuItem::sptr menuItem, bool isVisible) override
 Set the action visibility.
 
virtual FWGUIQT_API void menuItemSetEnabled (::fwGui::container::fwMenuItem::sptr menuItem, bool isEnabled) override
 Set the action enable or not.
 
virtual FWGUIQT_API void menuItemSetChecked (::fwGui::container::fwMenuItem::sptr, bool isChecked) override
 Set the action checked or not.
 
- Public Member Functions inherited from fwGui::layoutManager::IToolBarLayoutManager
FWGUI_API IToolBarLayoutManager ()
 Constructor. Do nothing.
 
virtual FWGUI_API ~IToolBarLayoutManager ()
 Destructor. Do nothing.
 
virtual FWGUI_API std::vector< ::fwGui::container::fwMenuItem::sptr > getMenuItems ()
 Returns the vector of fwMenuItem managed by this layout.
 
virtual FWGUI_API std::vector< ::fwGui::container::fwMenu::sptr > getMenus ()
 Returns the vector of fwMenu managed by this layout.
 
virtual FWGUI_API std::vector< ::fwGui::container::fwContainer::sptr > getContainers ()
 Returns the vector of fwContainer managed by this layout.
 
virtual FWGUI_API void initialize (ConfigurationType configuration)
 Initialize layout managers. More...
 
virtual void setCallbacks (CallbacksType callbacks)
 Sets callbacks associate with toolBar items.
 
- 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::layoutManager::IToolBarLayoutManager
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
 

Protected Attributes

::fwGuiQt::container::QtToolBarContainer::sptr m_parent
 
- Protected Attributes inherited from fwGui::layoutManager::IToolBarLayoutManager
std::vector< ::fwGui::container::fwMenuItem::sptr > m_menuItems
 All actions managed by this layout.
 
std::vector< ::fwGui::container::fwMenu::sptr > m_menus
 All menus managed by this layout.
 
std::vector< ::fwGui::container::fwContainer::sptr > m_containers
 All editors managed by this layout.
 
std::vector< ActionInfom_actionInfo
 Save action informations from configuration.
 
CallbacksType m_callbacks
 Callbacks associate with toolBar items.
 

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::layoutManager::IToolBarLayoutManager
typedef ::fwRuntime::ConfigurationElement::sptr ConfigurationType
 
typedef std::string RegistryKeyType
 
typedef std::vector< ::fwGui::IMenuItemCallback::sptr > CallbacksType
 
- Public Types inherited from fwGui::GuiBaseObject
typedef ::fwGui::factory::Key Key
 
- Static Public Attributes inherited from fwGui::layoutManager::IToolBarLayoutManager
FWGUI_API static const RegistryKeyType REGISTRY_KEY = "::fwGui::ToolBarLayoutManager"
 
- Protected Member Functions inherited from fwGui::layoutManager::IToolBarLayoutManager
virtual FWGUI_API void destroyActions ()
 Helper to destroy local actions.
 
- Protected Member Functions inherited from fwGui::GuiBaseObject
 GuiBaseObject ()
 
virtual ~GuiBaseObject ()
 

Detailed Description

Defines the toolBar layout manager for IHM.

Definition at line 28 of file ToolBarLayoutManager.hpp.

Member Function Documentation

void fwGui::layoutManager::ToolBarLayoutManager::createLayout ( ::fwGui::container::fwToolBar::sptr  parent)
overridevirtual
void fwGui::layoutManager::ToolBarLayoutManager::destroyLayout ( )
overridevirtual

Destroy local toolBars.

Precondition
services using this actions must be stopped before.

Implements fwGui::layoutManager::IToolBarLayoutManager.

Definition at line 187 of file ToolBarLayoutManager.cpp.

References fwGui::layoutManager::IToolBarLayoutManager::destroyActions(), and fwGui::layoutManager::IToolBarLayoutManager::m_menuItems.

+ Here is the call graph for this function:


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