fw4spl
ComponentsTree.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 #ifndef __MONITORQT_ACTION_COMPONENTSTREE_HPP__
8 #define __MONITORQT_ACTION_COMPONENTSTREE_HPP__
9 
10 #include "monitorQt/config.hpp"
11 
12 #include <fwGui/IActionSrv.hpp>
13 
14 #include <QDialog>
15 #include <QObject>
16 #include <QPointer>
17 #include <QTreeWidget>
18 
19 namespace monitorQt
20 {
21 namespace action
22 {
23 
27 class MONITORQT_CLASS_API ComponentsTree : public ::fwGui::IActionSrv
28 {
29 
30 public:
31 
33 
35  MONITORQT_API ComponentsTree() noexcept;
36 
38  MONITORQT_API virtual ~ComponentsTree() noexcept;
39 
40 protected:
41 
43  void configuring() override;
44 
46  void starting() override;
47 
49  void updating() override;
50 
52  void stopping() override;
53 
54 private:
55 
57  QPointer< QDialog > m_dialog;
58 
60  QPointer< QTreeWidget > m_treeContainer;
61 };
62 
63 } // namespace action
64 } // namespace monitorQt
65 
66 #endif //__MONITORQT_ACTION_COMPONENTSTREE_HPP__
67 
Implements an action that show bundle information.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.