fw4spl
ContainerBuilder.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWGUIQT_BUILDER_CONTAINERBUILDER_HPP__
8 #define __FWGUIQT_BUILDER_CONTAINERBUILDER_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 #include "fwGuiQt/container/QtContainer.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 #include <fwGui/builder/IContainerBuilder.hpp>
16 #include <fwGui/container/fwContainer.hpp>
17 
18 #include <fwRuntime/ConfigurationElement.hpp>
19 
20 namespace fwGui
21 {
22 namespace builder
23 {
24 
29 class FWGUIQT_CLASS_API ContainerBuilder : public ::fwGui::builder::IContainerBuilder
30 {
31 public:
33  (()),
34  ::fwGui::factory::New< ContainerBuilder > );
35 
37 
38  FWGUIQT_API virtual ~ContainerBuilder();
39 
45  FWGUIQT_API virtual void createContainer( ::fwGui::container::fwContainer::sptr parent ) override;
46 
51  FWGUIQT_API virtual void destroyContainer() override;
52 
53  FWGUIQT_API virtual void setParent(::fwGui::container::fwContainer::sptr parent) override;
54 
55 protected:
56  ::fwGuiQt::container::QtContainer::sptr m_parent;
57 };
58 
59 } // namespace builder
60 } // namespace fwGui
61 
62 #endif /*__FWGUIQT_BUILDER_CONTAINERBUILDER_HPP__*/
63 
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the interface class for the container builder.
Defines the generic layout manager for IHM.