fw4spl
ActionRegistrar.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_REGISTRAR_ACTIONREGISTRAR_HPP__
8 #define __FWGUI_REGISTRAR_ACTIONREGISTRAR_HPP__
9 
10 #include "fwGui/GuiBaseObject.hpp"
11 #include "fwGui/config.hpp"
12 
13 namespace fwGui
14 {
15 namespace registrar
16 {
17 
22 class FWGUI_CLASS_API ActionRegistrar : public ::fwGui::GuiBaseObject
23 {
24 
25 public:
26 
29 
31  FWGUI_API ActionRegistrar( const std::string& sid);
32 
34  FWGUI_API virtual ~ActionRegistrar();
35 
37  FWGUI_API void actionServiceStopping();
38 
40  FWGUI_API void actionServiceStarting();
41 
43  FWGUI_API void actionServiceSetActive(bool isActive);
44 
46  FWGUI_API void actionServiceSetExecutable(bool isExecutable);
47 
49  FWGUI_API void actionServiceSetVisible(bool isVisible);
50 
51 protected:
52 
54  std::string m_sid;
55 };
56 
57 } // namespace registrar
58 } // namespace fwGui
59 
60 #endif /*__FWGUI_REGISTRAR_ACTIONREGISTRAR_HPP__*/
61 
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for all fwGui's classes.
Defines the action registrar for IHM.
std::string m_sid
Main service ID associate with this ActionRegistrar.