fw4spl
MenuBarLayoutManager.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_LAYOUTMANAGER_MENUBARLAYOUTMANAGER_HPP__
8 #define __FWGUIQT_LAYOUTMANAGER_MENUBARLAYOUTMANAGER_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 #include "fwGuiQt/container/QtMenuBarContainer.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 #include <fwGui/container/fwMenu.hpp>
16 #include <fwGui/container/fwMenuBar.hpp>
18 
19 #include <fwRuntime/ConfigurationElement.hpp>
20 
21 namespace fwGui
22 {
23 namespace layoutManager
24 {
25 
30 {
31 public:
33  (()),
34  ::fwGui::factory::New< MenuBarLayoutManager > );
35 
37 
38  FWGUIQT_API virtual ~MenuBarLayoutManager();
39 
45  FWGUIQT_API virtual void createLayout( ::fwGui::container::fwMenuBar::sptr parent ) override;
46 
51  FWGUIQT_API virtual void destroyLayout() override;
52 
56  FWGUIQT_API virtual void menuIsVisible(::fwGui::container::fwMenu::sptr fwMenu, bool isVisible) override;
57 
61  FWGUIQT_API virtual void menuIsEnabled(::fwGui::container::fwMenu::sptr fwMenu, bool isEnabled) override;
62 
63 protected:
64  ::fwGuiQt::container::QtMenuBarContainer::sptr m_parent;
65 };
66 
67 } // namespace layoutManager
68 } // namespace fwGui
69 
70 #endif /*__FWGUIQT_LAYOUTMANAGER_MENUBARLAYOUTMANAGER_HPP__*/
71 
Defines the menu bar layout manager for IHM.
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 menu bar layout manager for IHM.
This file defines the interface of the base class for managing a menubar.