fw4spl
SActivityView.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2017-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 #pragma once
8 
9 #include "guiQt/config.hpp"
10 
11 #include <fwActivities/registry/Activities.hpp>
12 
13 #include <fwGui/view/IActivityView.hpp>
14 
15 #include <fwMedData/ActivitySeries.hpp>
16 
17 #include <fwServices/IAppConfigManager.hpp>
18 
19 #include <fwTools/Failed.hpp>
20 
21 namespace guiQt
22 {
23 namespace editor
24 {
25 
61 class GUIQT_CLASS_API SActivityView : public ::fwGui::view::IActivityView
62 {
63 
64 public:
65 
67 
68 
69  GUIQT_API SActivityView();
70 
72 
73  GUIQT_API virtual ~SActivityView();
74 
79  typedef ::fwCom::Signal< void (::fwMedData::ActivitySeries::sptr ) > ActivityLaunchedSignalType;
84 protected:
85 
87  virtual void starting() override;
88 
90  virtual void stopping() override;
91 
93  virtual void updating() override;
94 
95 private:
96 
100  void launchActivity(::fwMedData::ActivitySeries::sptr activitySeries) override;
101 
103  ::fwServices::IAppConfigManager::sptr m_configManager;
104 
106  std::string m_wid;
107 
108  ActivityLaunchedSignalType::sptr m_sigActivityLaunched;
109 };
110 
111 } //namespace editor
112 } // guiQt
Namespace containing medical data.
Namespace containing fw4spl communication tools.
Definition: DumpEditor.hpp:30
STL namespace.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
This editor displays activities in a single view (when a new activity is launched, it replaces the previous one).
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Defines the base class for services displaying activity view.
The namespace guiQt contains the basic services to build the application IHM with Qt...
Definition: Code.hpp:21