fw4spl
fwGui::layoutManager::MenuLayoutManager Class Reference

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

#include <MenuLayoutManager.hpp>

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

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWGUIQT_API MenuLayoutManager (::fwGui::GuiBaseObject::Key key)
 
virtual FWGUIQT_API void createLayout (::fwGui::container::fwMenu::sptr parent) override
 Instantiate actions with parent menu. More...
 
virtual FWGUIQT_API void destroyLayout () override
 Destroy local menus. 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::IMenuLayoutManager
FWGUI_API IMenuLayoutManager ()
 Constructor. Do nothing.
 
virtual FWGUI_API ~IMenuLayoutManager ()
 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 void initialize (ConfigurationType configuration)
 Initialize layout managers. More...
 
virtual void setCallbacks (CallbacksType callbacks)
 Sets callbacks associate with menu 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::IMenuLayoutManager
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::QtMenuContainer::sptr m_parent
 
- Protected Attributes inherited from fwGui::layoutManager::IMenuLayoutManager
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< ActionInfom_actionInfo
 Save action informations from configuration.
 
CallbacksType m_callbacks
 Callbacks associate with menu 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::IMenuLayoutManager
enum  ActionType {
  DEFAULT, QUIT, ABOUT, HELP,
  NEW, SEPARATOR
}
 
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::IMenuLayoutManager
FWGUI_API static const RegistryKeyType REGISTRY_KEY = "::fwGui::MenuLayoutManager"
 
- Protected Member Functions inherited from fwGui::layoutManager::IMenuLayoutManager
virtual FWGUI_API void destroyActions ()
 Helper to destroy local actions.
 
- Protected Member Functions inherited from fwGui::GuiBaseObject
 GuiBaseObject ()
 
virtual ~GuiBaseObject ()
 

Detailed Description

Defines the menu layout manager for IHM.

Definition at line 28 of file MenuLayoutManager.hpp.

Member Function Documentation

void fwGui::layoutManager::MenuLayoutManager::createLayout ( ::fwGui::container::fwMenu::sptr  parent)
overridevirtual
void fwGui::layoutManager::MenuLayoutManager::destroyLayout ( )
overridevirtual

Destroy local menus.

Precondition
services using this actions must be stopped before.

Implements fwGui::layoutManager::IMenuLayoutManager.

Definition at line 133 of file MenuLayoutManager.cpp.

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

+ Here is the call graph for this function:


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