fw4spl
SPushField.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 __GUI_ACTION_SPUSHFIELD_HPP__
8 #define __GUI_ACTION_SPUSHFIELD_HPP__
9 
10 #include "gui/config.hpp"
11 
12 #include <fwGui/IActionSrv.hpp>
13 
14 #include <fwTools/Failed.hpp>
15 
16 #include <map>
17 #include <set>
18 
19 namespace gui
20 {
21 namespace action
22 {
23 
37 class GUI_CLASS_API SPushField : public ::fwGui::IActionSrv
38 {
39 
40 public:
41 
43 
45  GUI_API SPushField() noexcept;
46 
48  GUI_API virtual ~SPushField() noexcept;
49 
57  GUI_API virtual KeyConnectionsMap getAutoConnections() const override;
58 
59 protected:
60 
62  virtual void configuring() override;
63 
65  virtual void starting() override;
66 
68  virtual void stopping() override;
69 
71  virtual void updating() override;
72 
73 private:
74 
79  void updateObjects();
80 
82  std::string m_field;
83 };
84 
85 } // namespace action
86 
87 } // namespace gui
88 
89 #endif // __GUI_ACTION_SPUSHFIELD_HPP__
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
The namespace gui contains the basic services to build the application IHM.
STL namespace.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
To add or remove an object in composite with specific key.
Definition: SPushField.hpp:37
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.