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