fw4spl
SDefaultFrame.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/frame/SDefaultFrame.hpp"
8 
9 #include <fwServices/macros.hpp>
10 
11 #include <fwTools/fwID.hpp>
12 
13 namespace gui
14 {
15 namespace frame
16 {
17 
18 fwServicesRegisterMacro( ::fwGui::IFrameSrv, ::gui::frame::SDefaultFrame );
19 
21 {
22 }
23 
24 //-----------------------------------------------------------------------------
25 
27 {
28 }
29 
30 //-----------------------------------------------------------------------------
31 
33 {
34  SLM_ASSERT( "<service> tag is required.", m_configuration->getName() == "service" );
35  this->initialize();
36 }
37 
38 //-----------------------------------------------------------------------------
39 
41 {
43  this->create();
44 }
45 
46 //-----------------------------------------------------------------------------
47 
49 {
51  this->destroy();
52 }
53 
54 //-----------------------------------------------------------------------------
55 
56 void SDefaultFrame::info(std::ostream& _sstream )
57 {
59 }
60 
61 //-----------------------------------------------------------------------------
62 
64 {
66 }
67 
68 //-----------------------------------------------------------------------------
69 
70 }
71 }
virtual GUI_API void info(std::ostream &_sstream) override
This method gives information about the class. Do nothing.
FWGUI_API void create()
Creates frame, sub-view, menubar and toolbar containers. Manages sub-view, menubar and toobar service...
Definition: IFrameSrv.cpp:123
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Definition: spyLog.hpp:329
Defines the default frame for standard application.
The namespace gui contains the basic services to build the application IHM.
Defines the service interface managing a frame.
Definition: IFrameSrv.hpp:68
FWGUI_API void destroy()
Stops sub-view, menubar and toobar services. Destroys frame, sub-view, menubar and toolbar containers...
Definition: IFrameSrv.cpp:185
FWGUI_API void initialize()
Initialize frame managers.
Definition: IFrameSrv.cpp:63
GUI_API SDefaultFrame() noexcept
Constructor. Do nothing.
#define SLM_ASSERT(message, cond)
work like &#39;assert&#39; from &#39;cassert&#39;, with in addition a message logged by spylog (with FATAL loglevel) ...
Definition: spyLog.hpp:308
::fwRuntime::ConfigurationElement::sptr m_configuration
Configuration element used to configure service internal state using a generic XML like structure TOD...
Definition: IService.hpp:670
virtual GUI_API ~SDefaultFrame() noexcept
Destructor. Do nothing.
virtual GUI_API void starting() override
Register a view with defined id.
virtual GUI_API void stopping() override
This method remove the view in the frame.
virtual GUI_API void configuring() override
This method is used to configure the class parameters.
virtual GUI_API void updating() override
This method is used to update services. Do nothing.