fw4spl
SDefaultMenuBar.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/aspect/SDefaultMenuBar.hpp"
8 
9 #include <fwRuntime/ConfigurationElement.hpp>
10 #include <fwRuntime/helper.hpp>
11 #include <fwRuntime/Runtime.hpp>
12 
13 #include <fwServices/macros.hpp>
14 
15 #include <fwTools/fwID.hpp>
16 
17 fwServicesRegisterMacro( ::fwGui::IMenuBarSrv, ::gui::aspect::SDefaultMenuBar );
18 
19 namespace gui
20 {
21 
22 namespace aspect
23 {
24 
25 //-----------------------------------------------------------------------------
26 
28 {
29 }
30 
31 //-----------------------------------------------------------------------------
32 
34 {
35 }
36 
37 //-----------------------------------------------------------------------------
38 
40 {
41  this->initialize();
42 }
43 
44 //-----------------------------------------------------------------------------
45 
47 {
49  this->create();
50 }
51 
52 //-----------------------------------------------------------------------------
53 
55 {
57  this->destroy();
58 }
59 
60 //-----------------------------------------------------------------------------
61 
63 {
65 }
66 
67 //-----------------------------------------------------------------------------
68 
69 }
70 
71 }
virtual GUI_API void updating() override
Updating service, do nothing.
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Definition: spyLog.hpp:329
The namespace gui contains the basic services to build the application IHM.
virtual GUI_API void configuring() override
Configuring method allows to configure an application with menu bar. Example of configuration.
FWGUI_API void initialize()
Initialize the layout and registry managers.
Definition: IMenuBarSrv.cpp:35
FWGUI_API void destroy()
Destroy the layout and stop the managed services.
Definition: IMenuBarSrv.cpp:83
virtual GUI_API ~SDefaultMenuBar() noexcept
Destructor. Do nothing.
GUI_API SDefaultMenuBar() noexcept
Constructor. Do nothing.
virtual GUI_API void stopping() override
Stop all menu of this menuBar and destroy MenuBar.
Defines the service interface managing the menu bar.
Definition: IMenuBarSrv.hpp:28
virtual GUI_API void starting() override
Create the menus and start the managed services.
Defines the default menubar for standard application.
FWGUI_API void create()
Create the layout and start the managed services.
Definition: IMenuBarSrv.cpp:68