fw4spl
EquipmentEditor.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 __UIMEDDATAQT_WIDGET_EQUIPMENTEDITOR_HPP__
8 #define __UIMEDDATAQT_WIDGET_EQUIPMENTEDITOR_HPP__
9 
10 #include "uiMedDataQt/config.hpp"
11 
12 #include <fwCore/macros.hpp>
13 
14 #include <QPointer>
15 #include <QWidget>
16 
17 class QLineEdit;
18 
19 namespace fwMedData
20 {
21 class Series;
22 class Equipment;
23 }
24 
25 namespace uiMedDataQt
26 {
27 namespace widget
28 {
29 
33 class UIMEDDATAQT_CLASS_API EquipmentEditor : public QWidget
34 {
35 Q_OBJECT
36 
37 public:
38 
40  UIMEDDATAQT_API EquipmentEditor(QWidget* parent = 0);
41 
43  UIMEDDATAQT_API ~EquipmentEditor();
44 
46  UIMEDDATAQT_API void setSeries(SPTR(::fwMedData::Series) series);
47 
49  UIMEDDATAQT_API SPTR(::fwMedData::Equipment) getEquipment() const;
50 
52  UIMEDDATAQT_API bool isValid() const;
53 protected:
54 
55  SPTR(::fwMedData::Series) m_series;
56 
57  QPointer<QLineEdit> m_institutionName;
58 
59 };
60 
61 } // namespace widget
62 } // namespace uiMedDataQt
63 
64 #endif // __UIMEDDATAQT_WIDGET_EQUIPMENTEDITOR_HPP__
65 
The namespace uiMedDataQt contains editors for medical data.
#define SPTR(_cls_)
Namespace containing medical data.
This file defines fwCore base macros.
Widget to edit fwMedData::Equipment information.