fw4spl
SDefaultMenu.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/SDefaultMenu.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 fwServicesRegisterMacro( ::fwGui::IMenuSrv, ::gui::aspect::SDefaultMenu );
16 
17 namespace gui
18 {
19 
20 namespace aspect
21 {
22 
23 //-----------------------------------------------------------------------------
24 
26 {
27 }
28 
29 //-----------------------------------------------------------------------------
30 
32 {
33 }
34 
35 //-----------------------------------------------------------------------------
36 
38 {
39  this->initialize();
40 }
41 
42 //-----------------------------------------------------------------------------
43 
45 {
47  this->create();
48 }
49 
50 //-----------------------------------------------------------------------------
51 
53 {
55  this->destroy();
56 }
57 
58 //-----------------------------------------------------------------------------
59 
61 {
63 }
64 
65 //-----------------------------------------------------------------------------
66 
67 }
68 
69 }
Defines the default menu for standard application.
FWGUI_API void initialize()
Initialize the layout and registry managers.
Definition: IMenuSrv.cpp:37
FWGUI_API void create()
Create the layout and start the managed services.
Definition: IMenuSrv.cpp:76
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Definition: spyLog.hpp:329
The namespace gui contains the basic services to build the application IHM.
Defines the service interface managing the menu.
Definition: IMenuSrv.hpp:27
virtual GUI_API void configuring() override
Configuring method allows to configure a menu with several actions.
GUI_API SDefaultMenu() noexcept
Constructor. Do nothing.
virtual GUI_API ~SDefaultMenu() noexcept
Destructor. Do nothing.
FWGUI_API void destroy()
Destroy the layout and stop the managed services.
Definition: IMenuSrv.cpp:95
virtual GUI_API void stopping() override
Stop all actions and separator of this menu and remove menu to menuBar.
virtual GUI_API void starting() override
Create the menu items and start the managed services.
virtual GUI_API void updating() override
Updating service, do nothing.