fw4spl
StudyEditor.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_STUDYEDITOR_HPP__
8 #define __UIMEDDATAQT_WIDGET_STUDYEDITOR_HPP__
9 
10 #include "uiMedDataQt/config.hpp"
11 
12 #include <fwCore/macros.hpp>
13 
14 #include <QPalette>
15 #include <QPointer>
16 #include <QWidget>
17 
18 class QLineEdit;
19 
20 namespace fwMedData
21 {
22 class Series;
23 class Study;
24 }
25 
26 namespace uiMedDataQt
27 {
28 namespace widget
29 {
30 
34 class UIMEDDATAQT_CLASS_API StudyEditor : public QWidget
35 {
36 Q_OBJECT
37 
38 public:
39 
41  UIMEDDATAQT_API StudyEditor(QWidget* parent = 0);
42 
44  UIMEDDATAQT_API ~StudyEditor();
45 
47  UIMEDDATAQT_API void setSeries(SPTR(::fwMedData::Series) series);
48 
50  UIMEDDATAQT_API SPTR(::fwMedData::Study) getStudy();
51 
53  UIMEDDATAQT_API bool isValid() const;
54 
55 protected Q_SLOTS:
56 
58  void onDateChanged(const QString&);
59 
61  void onTimeChanged(const QString&);
62 
64  void onDescChanged(const QString&);
65 
66 protected:
67 
68  SPTR(::fwMedData::Series) m_series;
69 
73  QPointer<QLineEdit> m_date;
74  QPointer<QLineEdit> m_time;
75  QPointer<QLineEdit> m_referringPhysicianName;
76  QPointer<QLineEdit> m_description;
77  QPointer<QLineEdit> m_patientAge;
83  QPalette m_paletteDate;
84  QPalette m_paletteTime;
86 };
87 
88 } // namespace widget
89 } // namespace uiMedDataQt
90 
91 #endif // __UIMEDDATAQT_WIDGET_STUDYEDITOR_HPP__
92 
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::Study information.
Definition: StudyEditor.hpp:34