fw4spl
ToolBarBuilder.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_TOOLBARBUILDER_HPP__
8 #define __FWGUIQT_BUILDER_TOOLBARBUILDER_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 #include "fwGuiQt/container/QtContainer.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 #include <fwGui/builder/IToolBarBuilder.hpp>
16 #include <fwGui/container/fwContainer.hpp>
17 #include <fwGui/container/fwToolBar.hpp>
18 
19 #include <fwRuntime/ConfigurationElement.hpp>
20 
21 namespace fwGui
22 {
23 namespace builder
24 {
25 
30 class FWGUIQT_CLASS_API ToolBarBuilder : public ::fwGui::builder::IToolBarBuilder
31 {
32 public:
34  (()),
35  ::fwGui::factory::New< ToolBarBuilder >);
36 
37  FWGUIQT_API ToolBarBuilder(::fwGui::GuiBaseObject::Key key);
38 
39  FWGUIQT_API virtual ~ToolBarBuilder();
40 
46  FWGUIQT_API virtual void createToolBar( ::fwGui::container::fwContainer::sptr parent ) override;
47 
52  FWGUIQT_API virtual void destroyToolBar() override;
53 
54 protected:
55  ::fwGuiQt::container::QtContainer::sptr m_parent;
56 };
57 
58 } // namespace builder
59 } // namespace fwGui
60 
61 #endif /*__FWGUIQT_BUILDER_TOOLBARBUILDER_HPP__*/
62 
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.
Defines the generic layout manager for IHM.
Defines the interface class for the toolbar builder.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.