7 #ifndef __FWGUI_IFRAMESRV_HPP__ 8 #define __FWGUI_IFRAMESRV_HPP__ 10 #include "fwGui/builder/IMenuBarBuilder.hpp" 11 #include "fwGui/builder/IToolBarBuilder.hpp" 12 #include "fwGui/config.hpp" 13 #include "fwGui/container/fwContainer.hpp" 14 #include "fwGui/layoutManager/IFrameLayoutManager.hpp" 15 #include "fwGui/registrar/ViewRegistrar.hpp" 17 #include <fwCom/Signal.hpp> 18 #include <fwCom/Signals.hpp> 20 #include <fwServices/IService.hpp> 76 FWGUI_API static ::fwGui::container::fwContainer::sptr getProgressWidget();
82 static const ::fwCom::Signals::SignalKeyType s_CLOSED_SIG;
94 static const ::fwCom::Slots::SlotKeyType s_SET_VISIBLE_SLOT;
112 typedef ::fwRuntime::ConfigurationElement::sptr ConfigurationType;
119 FWGUI_API
void initialize();
122 FWGUI_API
void create();
125 FWGUI_API
void destroy();
127 FWGUI_API
static const std::string CLOSE_POLICY_EXIT;
128 FWGUI_API
static const std::string CLOSE_POLICY_NOTIFY;
129 FWGUI_API
static const std::string CLOSE_POLICY_MESSAGE;
137 void setVisible(
bool isVisible);
144 void onCloseNotify();
145 void onCloseMessage();
146 void initializeLayoutManager( ::fwRuntime::ConfigurationElement::sptr layoutConfig );
147 void initializeMenuBarBuilder( ::fwRuntime::ConfigurationElement::sptr menuBarConfig );
148 void initializeToolBarBuilder( ::fwRuntime::ConfigurationElement::sptr toolBarConfig );
150 ::fwGui::layoutManager::IFrameLayoutManager::sptr m_frameLayoutManager;
151 ::fwGui::registrar::ViewRegistrar::sptr m_viewRegistrar;
152 ::fwGui::builder::IMenuBarBuilder::sptr m_menuBarBuilder;
153 ::fwGui::builder::IToolBarBuilder::sptr m_toolBarBuilder;
155 ConfigurationType m_registrarConfig;
156 ConfigurationType m_frameConfig;
157 ConfigurationType m_menuBarConfig;
158 ConfigurationType m_toolBarConfig;
163 std::string m_closePolicy;
166 ClosedSignalType::sptr m_sigClosed;
Base class for all services.
The namespace fwGui contains the base interface for IHM services.
static const ::fwCom::Slots::SlotKeyType s_SHOW_SLOT
Slot to show the container.
Defines the service interface managing a frame.
static const ::fwCom::Slots::SlotKeyType s_HIDE_SLOT
Slot to hide the container.
::fwCom::Signal< void()> ClosedSignalType
Signal emitted when frame is closed and onclose policy is notify.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
static FWGUI_API::fwGui::container::fwContainer::wptr m_progressWidget
Static reference on a widget defined for progress bar installation.