9 #include "fwGui/config.hpp" 10 #include "fwGui/container/fwContainer.hpp" 11 #include "fwGui/GuiBaseObject.hpp" 13 #include <fwData/Composite.hpp> 15 #include <fwRuntime/ConfigurationElement.hpp> 17 #include <boost/filesystem/path.hpp> 24 namespace layoutManager
37 typedef ::
fwRuntime::ConfigurationElement::sptr ConfigurationType;
47 typedef std::string RegistryKeyType;
49 static const std::string SOFTWARE_UI;
50 static const std::string FRAME_STATE_UI;
51 static const std::string FRAME_SIZE_W_UI;
52 static const std::string FRAME_SIZE_H_UI;
53 static const std::string FRAME_POSITION_X_UI;
54 static const std::string FRAME_POSITION_Y_UI;
70 m_minSize(std::make_pair(-1, -1)),
72 m_size(std::make_pair(-1, -1)),
73 m_position(std::make_pair(-1, -1)),
103 FWGUI_API
virtual void initialize( ConfigurationType configuration);
105 FWGUI_API
static const RegistryKeyType REGISTRY_KEY;
110 FWGUI_API
virtual void createFrame() = 0;
115 FWGUI_API
virtual void destroyFrame() = 0;
118 virtual ::fwGui::container::fwContainer::sptr
getFrame()
129 typedef std::function< void () > CloseCallback;
130 FWGUI_API
virtual void setCloseCallback(CloseCallback fct);
153 m_frameInfo = frameInfo;
157 ::fwGui::container::fwContainer::sptr m_frame;
158 ::fwGui::container::fwContainer::sptr m_container;
159 CloseCallback m_closeCallback;
161 FWGUI_API
void readConfig();
163 FWGUI_API
void writeConfig();
165 FWGUI_API ::fwData::Composite::sptr getPreferenceUI();
169 void defaultCloseCallback();
const FrameInfo & getFrameInfo() const
Configuration definition.
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
void setFrameInfo(const FrameInfo &frameInfo)
Configuration definition.
The namespace fwGui contains the base interface for IHM services.
Style m_style
Frame style.
Style
Defines all possible style for a frame.
std::string m_name
Frame name.
FrameInfo & getFrameInfo()
Configuration definition.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
virtual ::fwGui::container::fwContainer::sptr getFrame()
Return the frame container.
std::pair< int, int > m_minSize
Frame minimum size (min width and min height)
std::pair< int, int > m_position
Frame position.
Base class for all fwGui's classes.
::boost::filesystem::path m_iconPath
Frame icon.
virtual ::fwGui::container::fwContainer::sptr getContainer()
Return the first container into the frame.
Defines an interface for managing a frame.
std::pair< int, int > m_size
Frame size.
FrameState m_state
Frame state (maximize, minized, full screen)