7 #ifndef __FWGUI_REGISTRAR_MENUREGISTRAR_HPP__ 8 #define __FWGUI_REGISTRAR_MENUREGISTRAR_HPP__ 10 #include <fwRuntime/ConfigurationElement.hpp> 12 #include "fwGui/GuiBaseObject.hpp" 13 #include "fwGui/container/fwMenu.hpp" 14 #include "fwGui/container/fwMenuItem.hpp" 15 #include "fwGui/ActionCallbackBase.hpp" 16 #include "fwGui/config.hpp" 38 typedef std::vector< ::fwGui::IMenuItemCallback::sptr > CallbacksType;
47 FWGUI_API virtual ::fwGui::container::fwMenu::sptr getParent();
54 FWGUI_API virtual ::fwGui::container::fwMenuItem::sptr getFwMenuItem(std::string actionSid,
55 std::vector< ::fwGui::container::fwMenuItem::sptr > menuItems);
89 FWGUI_API
virtual void initialize( ::fwRuntime::ConfigurationElement::sptr configuration);
109 FWGUI_API
virtual void manage(std::vector< ::fwGui::container::fwMenuItem::sptr > menuItems );
120 FWGUI_API
virtual void manage(std::vector< ::fwGui::container::fwMenu::sptr > menus );
126 FWGUI_API
virtual void unmanage();
131 FWGUI_API
virtual void onItemAction();
143 typedef ::fwRuntime::ConfigurationElement::sptr ConfigurationType;
144 typedef std::map< std::string, std::pair<unsigned int, bool> > SIDMenuMapType;
The namespace fwGui contains the base interface for IHM services.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for all fwGui's classes.