fw4spl
SQuit.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_SQUIT_HPP__
8 #define __GUI_ACTION_SQUIT_HPP__
9 
10 #include "gui/config.hpp"
11 
12 #include <fwGui/IActionSrv.hpp>
13 
14 #include <fwServices/IService.hpp>
15 
16 namespace gui
17 {
18 namespace action
19 {
20 
24 class GUI_CLASS_API SQuit : public ::fwGui::IActionSrv
25 {
26 
27 public:
28 
30 
34  GUI_API SQuit() noexcept;
35 
39  GUI_API virtual ~SQuit() noexcept;
40 
41 protected:
42 
47  GUI_API void configuring() override;
48 
49  GUI_API virtual void starting() override;
50 
51  GUI_API virtual void stopping() override;
52 
56  GUI_API virtual void updating() override;
57 
58  /*
59  * @brief This method gives information about the class.
60  */
61  GUI_API virtual void info(std::ostream& _sstream ) override;
62 
63 };
64 
65 } // namespace action
66 } // namespace gui
67 
68 #endif /*__GUI_ACTION_SQUIT_HPP__*/
This action tries to close the window and reset root object.
Definition: SQuit.hpp:24
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
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.