fw4spl
SDefault.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #include "gui/action/SDefault.hpp"
8 
9 #include <fwServices/macros.hpp>
10 
11 namespace gui
12 {
13 namespace action
14 {
15 fwServicesRegisterMacro( ::fwGui::IActionSrv, ::gui::action::SDefault );
16 
17 SDefault::SDefault() noexcept
18 {
19 }
20 
21 //-----------------------------------------------------------------------------
22 
24 {
25 }
26 
27 //-----------------------------------------------------------------------------
28 
30 {
31  this->initialize();
32 }
33 
34 //-----------------------------------------------------------------------------
35 
37 {
39  this->actionServiceStarting();
40 }
41 
42 //-----------------------------------------------------------------------------
43 
45 {
47  this->actionServiceStopping();
48 }
49 
50 //-----------------------------------------------------------------------------
51 
53 {
55 }
56 
57 //-----------------------------------------------------------------------------
58 
59 void SDefault::info(std::ostream& _sstream )
60 {
61  _sstream << "Default button" << std::endl;
62 }
63 
64 }
65 }
66 
FWGUI_API void actionServiceStarting()
Method called when the action service is starting.
Definition: IActionSrv.cpp:160
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Definition: spyLog.hpp:329
virtual GUI_API void configuring() override
Configure the service before starting. Apply the configuration to service.
Definition: SDefault.cpp:29
virtual GUI_API void info(std::ostream &_sstream) override
Write information in a stream.
Definition: SDefault.cpp:59
virtual GUI_API ~SDefault() noexcept
Destructor. Do nothing.
Definition: SDefault.cpp:23
The namespace gui contains the basic services to build the application IHM.
FWGUI_API void actionServiceStopping()
Method called when the action service is stopping.
Definition: IActionSrv.cpp:153
virtual GUI_API void updating() override
Perform some computations according to object (this service is attached to) attribute values and its ...
Definition: SDefault.cpp:52
GUI_API SDefault() noexcept
Constructor. Do nothing.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
FWGUI_API void initialize()
Initialize the action.
Definition: IActionSrv.cpp:69
virtual GUI_API void stopping() override
Uninitialize the service activity. The stop() method is always invoked before destroying a service...
Definition: SDefault.cpp:44
Defines the default action to have a simple action button.
Definition: SDefault.hpp:24
virtual GUI_API void starting() override
Initialize the service activity.
Definition: SDefault.cpp:36