fw4spl
TabLayoutManager.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_TABLAYOUTMANAGER_HPP__
8 #define __FWGUIQT_LAYOUTMANAGER_TABLAYOUTMANAGER_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 #include "fwGuiQt/container/QtContainer.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 #include <fwGui/layoutManager/TabLayoutManagerBase.hpp>
16 
17 #include <QPointer>
18 
19 QT_BEGIN_NAMESPACE
20 class QTabWidget;
21 QT_END_NAMESPACE
22 
23 namespace fwGui
24 {
25 
30 {
31 
32 public:
33 
35  (()),
36  ::fwGui::factory::New< TabLayoutManager > );
37 
39 
40  FWGUIQT_API virtual ~TabLayoutManager();
41 
47  FWGUIQT_API virtual void createLayout( ::fwGui::container::fwContainer::sptr parent ) override;
48 
53  FWGUIQT_API virtual void destroyLayout() override;
54 
55 private:
56 
57  ::fwGuiQt::container::QtContainer::sptr m_parentContainer;
58 
59  // Layout manager of this view
60  QPointer<QTabWidget> m_tabWidget;
61 };
62 
63 } // namespace fwGui
64 
65 #endif /*__FWGUIQT_LAYOUTMANAGER_TABLAYOUTMANAGER_HPP__*/
66 
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 tab layout manager.
Defines the base for cardinal layout manager.