fw4spl
QtToolBarContainer.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_CONTAINER_QTTOOLBARCONTAINER_HPP__
8 #define __FWGUIQT_CONTAINER_QTTOOLBARCONTAINER_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 
12 #include <fwCore/base.hpp>
13 
14 #include <fwGui/container/fwToolBar.hpp>
15 
16 #include <fwTools/Object.hpp>
17 
18 #include <QPointer>
19 
20 QT_BEGIN_NAMESPACE
21 class QToolBar;
22 QT_END_NAMESPACE
23 
24 namespace fwGuiQt
25 {
26 namespace container
27 {
28 
33 class FWGUIQT_CLASS_API QtToolBarContainer : public ::fwGui::container::fwToolBar
34 {
35 
36 public:
37 
39  (()),
40  ::fwGui::factory::New< QtToolBarContainer > );
41 
42  FWGUIQT_API QtToolBarContainer(::fwGui::GuiBaseObject::Key key) noexcept;
43 
44  FWGUIQT_API virtual ~QtToolBarContainer() noexcept;
45 
46  FWGUIQT_API virtual void clean() override;
47  FWGUIQT_API virtual void destroyContainer() override;
48 
49  FWGUIQT_API virtual void setQtToolBar(QToolBar* toolBar);
50  FWGUIQT_API virtual QToolBar* getQtToolBar();
51 
52 private:
53 
54  QPointer<QToolBar> m_toolBar;
55 };
56 
57 } // namespace container
58 } // namespace fwGuiQt
59 
60 #endif /*__FWGUIQT_CONTAINER_QTTOOLBARCONTAINER_HPP__*/
61 
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
Definition: WindowLevel.hpp:32
Defines the tool bar for IHM.
Definition: fwToolBar.hpp:24
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the Qt toolBar bar container for IHM.