fw4spl
QtMenuItemContainer.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
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 #include <QAction>
8 #include "fwGuiQt/container/QtMenuItemContainer.hpp"
9 
10 namespace fwGuiQt
11 {
12 namespace container
13 {
14 
15 //-----------------------------------------------------------------------------
16 
17 QtMenuItemContainer::QtMenuItemContainer(::fwGui::GuiBaseObject::Key key) noexcept : m_menuItem(0)
18 {
19 }
20 
21 //-----------------------------------------------------------------------------
22 
23 QtMenuItemContainer::~QtMenuItemContainer() noexcept
24 {
25 }
26 
27 //-----------------------------------------------------------------------------
28 
29 void QtMenuItemContainer::clean()
30 {
31  SLM_ASSERT("The qtMenuItem is not yet initialized, cleaning is thus impossible", m_menuItem);
32 }
33 
34 //-----------------------------------------------------------------------------
35 
36 void QtMenuItemContainer::destroyContainer()
37 {
38  SLM_ASSERT("The qtMenuItem is not yet initialized, cleaning is thus impossible", m_menuItem);
39 }
40 
41 //-----------------------------------------------------------------------------
42 
43 void QtMenuItemContainer::setQtMenuItem(QAction* menuItem)
44 {
45  this->m_menuItem = menuItem;
46 }
47 
48 //-----------------------------------------------------------------------------
49 
50 QAction* QtMenuItemContainer::getQtMenuItem()
51 {
52  return this->m_menuItem;
53 }
54 
55 //-----------------------------------------------------------------------------
56 
57 } // namespace container
58 } // namespace fwGuiQt
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
#define SLM_ASSERT(message, cond)
work like &#39;assert&#39; from &#39;cassert&#39;, with in addition a message logged by spylog (with FATAL loglevel) ...
Definition: spyLog.hpp:308