12 #ifndef __FWGUI_LAYOUTMANAGER_ITOOLBARLAYOUTMANAGER_HPP__ 13 #define __FWGUI_LAYOUTMANAGER_ITOOLBARLAYOUTMANAGER_HPP__ 15 #include "fwGui/config.hpp" 16 #include "fwGui/container/fwContainer.hpp" 17 #include "fwGui/container/fwMenu.hpp" 18 #include "fwGui/container/fwMenuItem.hpp" 19 #include "fwGui/container/fwToolBar.hpp" 20 #include "fwGui/GuiBaseObject.hpp" 21 #include "fwGui/IMenuItemCallback.hpp" 23 #include <fwRuntime/ConfigurationElement.hpp> 25 #include <boost/filesystem/path.hpp> 29 namespace layoutManager
40 typedef ::
fwRuntime::ConfigurationElement::sptr ConfigurationType;
41 typedef
std::
string RegistryKeyType;
64 std::string m_shortcut;
65 ::boost::filesystem::path m_icon;
66 ::boost::filesystem::path m_icon2;
76 FWGUI_API
const static RegistryKeyType REGISTRY_KEY;
82 FWGUI_API
virtual ~IToolBarLayoutManager();
87 FWGUI_API
virtual std::vector< ::fwGui::container::fwMenuItem::sptr > getMenuItems();
92 FWGUI_API
virtual std::vector< ::fwGui::container::fwMenu::sptr > getMenus();
97 FWGUI_API
virtual std::vector< ::fwGui::container::fwContainer::sptr > getContainers();
143 FWGUI_API
virtual void initialize( ConfigurationType configuration);
148 FWGUI_API
virtual void createLayout( ::fwGui::container::fwToolBar::sptr parent ) = 0;
154 FWGUI_API
virtual void destroyLayout() = 0;
159 FWGUI_API
virtual void menuItemSetVisible(::fwGui::container::fwMenuItem::sptr,
bool isVisible) = 0;
164 FWGUI_API
virtual void menuItemSetEnabled(::fwGui::container::fwMenuItem::sptr,
bool isEnabled) = 0;
169 FWGUI_API
virtual void menuItemSetChecked(::fwGui::container::fwMenuItem::sptr,
bool isChecked) = 0;
176 m_callbacks = callbacks;
184 FWGUI_API
virtual void destroyActions();
190 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.