fw4spl
|
Defines the menu bar layout manager for IHM. More...
#include <MenuBarLayoutManager.hpp>
Public Member Functions | |
virtual bool | isA (const std::string &type) const override |
FWGUIQT_API | MenuBarLayoutManager (::fwGui::GuiBaseObject::Key key) |
virtual FWGUIQT_API void | createLayout (::fwGui::container::fwMenuBar::sptr parent) override |
Instantiate menu with parent menuBar. More... | |
virtual FWGUIQT_API void | destroyLayout () override |
Destroy local menus. More... | |
virtual FWGUIQT_API void | menuIsVisible (::fwGui::container::fwMenu::sptr fwMenu, bool isVisible) override |
Set the menu visibility. | |
virtual FWGUIQT_API void | menuIsEnabled (::fwGui::container::fwMenu::sptr fwMenu, bool isEnabled) override |
Set the menu enable or not. | |
Public Member Functions inherited from fwGui::layoutManager::IMenuBarLayoutManager | |
FWGUI_API | IMenuBarLayoutManager () |
Constructor. Do nothing. | |
virtual FWGUI_API | ~IMenuBarLayoutManager () |
Destructor. Do nothing. | |
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... | |
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::IMenuBarLayoutManager | |
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::QtMenuBarContainer::sptr | m_parent |
Protected Attributes inherited from fwGui::layoutManager::IMenuBarLayoutManager | |
std::vector< ::fwGui::container::fwMenu::sptr > | m_menus |
All sub containers managed by this layout. | |
std::vector< std::string > | m_menuNames |
Save menu name from configuration. | |
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::IMenuBarLayoutManager | |
typedef ::fwRuntime::ConfigurationElement::sptr | ConfigurationType |
typedef std::string | RegistryKeyType |
Public Types inherited from fwGui::GuiBaseObject | |
typedef ::fwGui::factory::Key | Key |
Static Public Attributes inherited from fwGui::layoutManager::IMenuBarLayoutManager | |
FWGUI_API static const RegistryKeyType | REGISTRY_KEY = "::fwGui::MenuBarLayoutManager" |
Protected Member Functions inherited from fwGui::layoutManager::IMenuBarLayoutManager | |
virtual FWGUI_API void | destroyMenus () |
Helper to destroy local sub views. | |
Protected Member Functions inherited from fwGui::GuiBaseObject | |
GuiBaseObject () | |
virtual | ~GuiBaseObject () |
Defines the menu bar layout manager for IHM.
Definition at line 29 of file MenuBarLayoutManager.hpp.
|
overridevirtual |
Instantiate menu with parent menuBar.
Implements fwGui::layoutManager::IMenuBarLayoutManager.
Definition at line 39 of file MenuBarLayoutManager.cpp.
References fwGui::layoutManager::IMenuBarLayoutManager::m_menuNames, fwGui::layoutManager::IMenuBarLayoutManager::m_menus, SLM_ASSERT, and SLM_TRACE_FUNC.
|
overridevirtual |
Destroy local menus.
Implements fwGui::layoutManager::IMenuBarLayoutManager.
Definition at line 59 of file MenuBarLayoutManager.cpp.
References fwGui::layoutManager::IMenuBarLayoutManager::destroyMenus(), and fwGui::layoutManager::IMenuBarLayoutManager::m_menus.