fw4spl
ActionCallbackBase.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 __FWGUI_ACTIONCALLBACKBASE_HPP__
8 #define __FWGUI_ACTIONCALLBACKBASE_HPP__
9 
10 #include "fwGui/config.hpp"
11 #include "fwGui/IMenuItemCallback.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 namespace fwGui
16 {
17 
21 class FWGUI_CLASS_API ActionCallbackBase : public ::fwGui::IMenuItemCallback
22 {
23 
24 public:
25 
27 
28  typedef std::string RegistryKeyType;
29 
33  FWGUI_API virtual void setSID(std::string sid);
34 
38  FWGUI_API virtual void execute() override;
39 
43  FWGUI_API virtual void check(bool checked);
44 
45  FWGUI_API static const RegistryKeyType REGISTRY_KEY;
46 
47 protected:
48 
52  FWGUI_API ActionCallbackBase();
53 
57  FWGUI_API virtual ~ActionCallbackBase();
58 
59 private:
60  std::string m_sid;
61 
62 };
63 
64 } // namespace fwGui
65 
66 #endif /*__FWGUI_ACTIONCALLBACKBASE_HPP__*/
67 
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
Defines the menu item callback.
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
Defines the menu item callback.
STL namespace.