fw4spl
ActionCallback.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
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_ACTIONCALLBACK_HPP__
8 #define __FWGUIQT_ACTIONCALLBACK_HPP__
9 
10 
11 #include <QObject>
12 
13 #include <fwGui/ActionCallbackBase.hpp>
14 
15 #include "fwGuiQt/config.hpp"
16 
17 
18 namespace fwGuiQt
19 {
20 
28 class FWGUIQT_CLASS_API ActionCallback : public QObject,
30 {
31 
32 Q_OBJECT
33 
34 public:
35 
37  (()),
38  ::fwGui::factory::New< ActionCallback > );
39 
40  FWGUIQT_API ActionCallback(::fwGui::GuiBaseObject::Key key);
41 
42  FWGUIQT_API virtual ~ActionCallback();
43 
47 public Q_SLOTS:
48  void executeQt(bool checked = false);
49  void checkQt(bool checked);
50 
51 };
52 
53 } // namespace fwGuiQt
54 
55 #endif /*__FWGUIQT_ACTIONCALLBACK_HPP__*/
56 
57 
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Defines the menu item callback.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
Definition: WindowLevel.hpp:32
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the menu item callback.