17 namespace layoutManager
20 const IMenuBarLayoutManager::RegistryKeyType IMenuBarLayoutManager::REGISTRY_KEY =
"::fwGui::MenuBarLayoutManager";
38 OSLM_ASSERT(
"Bad configuration name "<<configuration->getName()<<
", must be layout",
39 configuration->getName() ==
"layout");
41 std::vector < ConfigurationType > vectMenus = configuration->find(
"menu");
44 for (ConfigurationType menu : vectMenus)
46 SLM_ASSERT(
"missing <name> attribute", menu->hasAttribute(
"name"));
47 if( menu->hasAttribute(
"name") )
49 std::string name = menu->getExistingAttributeValue(
"name");
59 for( ::fwGui::container::fwMenu::sptr menu :
m_menus)
61 menu->destroyContainer();
#define SLM_TRACE_IF(message, cond)
#define OSLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
The namespace fwGui contains the base interface for IHM services.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...