fw4spl
QTagSelectorWidget.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
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 __FWDICOMIOFILTERQT_WIDGET_QTAGSELECTORWIDGET_HPP__
8 #define __FWDICOMIOFILTERQT_WIDGET_QTAGSELECTORWIDGET_HPP__
9 
10 #include "fwDicomIOFilterQt/config.hpp"
11 #include "fwDicomIOFilterQt/widget/QHexSpinBox.hpp"
12 
13 #include <QLabel>
14 #include <QPointer>
15 #include <QWidget>
16 
17 #include <dcmtk/dcmdata/dctagkey.h>
18 
19 namespace fwDicomIOFilterQt
20 {
21 namespace widget
22 {
23 
27 class QTagSelectorWidget : public QWidget
28 {
29 Q_OBJECT;
30 
31 public:
33  QTagSelectorWidget(QWidget* parent = 0);
34 
37 
39  void setTagValue(const DcmTagKey& tag);
40 
42  DcmTagKey getTag();
43 
44 protected Q_SLOTS:
46  void updateTagName(int value = 0);
47 
48 protected:
50  QPointer< ::fwDicomIOFilterQt::widget::QHexSpinBox > m_groupSpinBox;
51 
53  QPointer< ::fwDicomIOFilterQt::widget::QHexSpinBox > m_elementSpinBox;
54 
56  QPointer< QLabel > m_tagNameLabel;
57 
59  DcmTagKey m_tag;
60 
61 };
62 
63 } // namespace widget
64 } // namespace fwDicomIOFilterQt
65 
66 
67 #endif /* __FWDICOMIOFILTERQT_WIDGET_QTAGSELECTORWIDGET_HPP__ */
QPointer< QLabel > m_tagNameLabel
tag name label
Widget used to select a dicom tag.
void updateTagName(int value=0)
Update tag name when selected tag changes.
void setTagValue(const DcmTagKey &tag)
Set tag.
QTagSelectorWidget(QWidget *parent=0)
Constructor.
QPointer< ::fwDicomIOFilterQt::widget::QHexSpinBox > m_groupSpinBox
Group spin box.
fwDicomIOFilterQt contains filters used to pre-process images before reading.
QPointer< ::fwDicomIOFilterQt::widget::QHexSpinBox > m_elementSpinBox
Tag spin box.