fw4spl
ToolBarLayoutManager.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_TOOLBARLAYOUTMANAGER_HPP__
8 #define __FWGUIQT_LAYOUTMANAGER_TOOLBARLAYOUTMANAGER_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 #include "fwGuiQt/container/QtToolBarContainer.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 #include <fwGui/container/fwToolBar.hpp>
17 
18 #include <fwRuntime/ConfigurationElement.hpp>
19 
20 namespace fwGui
21 {
22 namespace layoutManager
23 {
24 
29 {
30 public:
32  (()),
33  ::fwGui::factory::New< ToolBarLayoutManager > );
34 
36 
37  FWGUIQT_API virtual ~ToolBarLayoutManager();
38 
44  FWGUIQT_API virtual void createLayout( ::fwGui::container::fwToolBar::sptr parent ) override;
45 
50  FWGUIQT_API virtual void destroyLayout() override;
51 
55  FWGUIQT_API virtual void menuItemSetVisible(::fwGui::container::fwMenuItem::sptr menuItem, bool isVisible) override;
56 
60  FWGUIQT_API virtual void menuItemSetEnabled(::fwGui::container::fwMenuItem::sptr menuItem, bool isEnabled) override;
61 
65  FWGUIQT_API virtual void menuItemSetChecked(::fwGui::container::fwMenuItem::sptr, bool isChecked) override;
66 
67 protected:
68  ::fwGuiQt::container::QtToolBarContainer::sptr m_parent;
69 
70 };
71 
72 } // namespace layoutManager
73 } // namespace fwGui
74 
75 #endif /*__FWGUIQT_LAYOUTMANAGER_TOOLBARLAYOUTMANAGER_HPP__*/
76 
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 toolBar layout manager for IHM.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the toolBar layout manager for IHM.
This file defines the interface of the base class for managing a toolbar.