7 #ifndef __FWGUI_GUIREGISTRY_HPP__ 8 #define __FWGUI_GUIREGISTRY_HPP__ 11 #include "fwGui/GuiBaseObject.hpp" 12 #include "fwGui/config.hpp" 13 #include "fwGui/container/fwContainer.hpp" 14 #include "fwGui/container/fwMenu.hpp" 15 #include "fwGui/container/fwMenuBar.hpp" 16 #include "fwGui/container/fwMenuItem.hpp" 17 #include "fwGui/container/fwToolBar.hpp" 30 typedef std::map< std::string, ::fwGui::container::fwContainer::sptr > ContainerMapType;
31 typedef std::map< std::string, ::fwGui::container::fwMenuBar::sptr > MenuBarMapType;
32 typedef std::map< std::string, ::fwGui::container::fwToolBar::sptr > ToolBarMapType;
33 typedef std::map< std::string, ::fwGui::container::fwMenu::sptr > MenuMapType;
34 typedef std::vector< std::string > ParentSidsType;
35 typedef std::map< std::string, ParentSidsType > ActionToParentMapType;
47 FWGUI_API virtual ~GuiRegistry();
59 FWGUI_API static
void registerSIDContainer(
std::
string sid, ::
fwGui::container::fwContainer::sptr container);
64 FWGUI_API static
void unregisterSIDContainer(
std::
string sid);
69 FWGUI_API static ::
fwGui::container::fwContainer::sptr getSIDContainer(
std::
string sid);
74 FWGUI_API static
bool hasSIDContainer(
std::
string sid);
88 FWGUI_API static
void registerWIDContainer(
std::
string wid, ::
fwGui::container::fwContainer::sptr container);
93 FWGUI_API static
void unregisterWIDContainer(
std::
string wid);
98 FWGUI_API static ::
fwGui::container::fwContainer::sptr getWIDContainer(
std::
string wid);
103 FWGUI_API static
bool hasWIDContainer(
std::
string wid);
117 FWGUI_API static
void registerSIDMenuBar(
std::
string sid, ::
fwGui::container::fwMenuBar::sptr menuBar);
122 FWGUI_API static
void unregisterSIDMenuBar(
std::
string sid);
126 FWGUI_API static ::
fwGui::container::fwMenuBar::sptr getSIDMenuBar(
std::
string sid);
140 FWGUI_API static
void registerSIDToolBar(
std::
string sid, ::
fwGui::container::fwToolBar::sptr toolBar);
145 FWGUI_API static
void unregisterSIDToolBar(
std::
string sid);
149 FWGUI_API static ::
fwGui::container::fwToolBar::sptr getSIDToolBar(
std::
string sid);
162 FWGUI_API static
void registerSIDMenu(
std::
string sid, ::
fwGui::container::fwMenu::sptr menu);
167 FWGUI_API static
void unregisterSIDMenu(
std::
string sid);
171 FWGUI_API static ::
fwGui::container::fwMenu::sptr getSIDMenu(
std::
string sid);
184 FWGUI_API static
void registerActionSIDToParentSID(
std::
string actionSid,
std::
string parentSid);
189 FWGUI_API static
void unregisterActionSIDToParentSID(
std::
string actionSid,
std::
string parentSid);
195 FWGUI_API static
void actionServiceStopping(
std::
string actionSid);
201 FWGUI_API static
void actionServiceStarting(
std::
string actionSid);
207 FWGUI_API static
void actionServiceSetActive(
std::
string actionSid,
bool isActive);
213 FWGUI_API static
void actionServiceSetExecutable(
std::
string actionSid,
bool isExecutable);
219 FWGUI_API static
void actionServiceSetVisible(
std::
string actionSid,
bool isVisible);
224 static ContainerMapType m_globalSIDToFwContainer;
225 static ContainerMapType m_globalWIDToFwContainer;
226 static MenuBarMapType m_globalSIDToFwMenuBar;
227 static ToolBarMapType m_globalSIDToFwToolBar;
228 static MenuMapType m_globalSIDToFwMenu;
231 static ActionToParentMapType m_actionSIDToParentSID;
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
The namespace fwGui contains the base interface for IHM services.
Base class for all fwGui's classes.
This class contains helpers to manage all fwContainer in the application.