12 #ifndef __FWGUI_LAYOUTMANAGER_IMENULAYOUTMANAGER_HPP__ 13 #define __FWGUI_LAYOUTMANAGER_IMENULAYOUTMANAGER_HPP__ 15 #include "fwGui/config.hpp" 16 #include "fwGui/container/fwMenu.hpp" 17 #include "fwGui/container/fwMenuItem.hpp" 18 #include "fwGui/GuiBaseObject.hpp" 19 #include "fwGui/IMenuItemCallback.hpp" 21 #include <fwRuntime/ConfigurationElement.hpp> 23 #include <boost/filesystem/path.hpp> 27 namespace layoutManager
38 typedef ::
fwRuntime::ConfigurationElement::sptr ConfigurationType;
39 typedef
std::
string RegistryKeyType;
69 std::string m_shortcut;
70 ::boost::filesystem::path m_icon;
78 FWGUI_API
const static RegistryKeyType REGISTRY_KEY;
84 FWGUI_API
virtual ~IMenuLayoutManager();
89 FWGUI_API
virtual std::vector< ::fwGui::container::fwMenuItem::sptr > getMenuItems();
94 FWGUI_API
virtual std::vector< ::fwGui::container::fwMenu::sptr > getMenus();
136 FWGUI_API
virtual void initialize( ConfigurationType configuration);
141 FWGUI_API
virtual void createLayout( ::fwGui::container::fwMenu::sptr parent ) = 0;
147 FWGUI_API
virtual void destroyLayout() = 0;
152 FWGUI_API
virtual void menuItemSetVisible(::fwGui::container::fwMenuItem::sptr,
bool isVisible) = 0;
157 FWGUI_API
virtual void menuItemSetEnabled(::fwGui::container::fwMenuItem::sptr,
bool isEnabled) = 0;
162 FWGUI_API
virtual void menuItemSetChecked(::fwGui::container::fwMenuItem::sptr,
bool isChecked) = 0;
169 m_callbacks = callbacks;
177 FWGUI_API
virtual void destroyActions();
183 std::vector< ::fwGui::container::fwMenu::sptr >
m_menus;
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
The namespace fwGui contains the base interface for IHM services.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
Base class for all fwGui's classes.