Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkNodeDetailsDialog.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QMITKNODEDETAILSDIALOG_H
14 #define QMITKNODEDETAILSDIALOG_H
15 
16 #include <mitkDataNode.h>
17 
18 #include <QDialog>
19 
20 #include <MitkQtWidgetsExports.h>
21 
22 class QLineEdit;
23 class QTextBrowser;
24 
26 {
27  Q_OBJECT
28 
29 public:
30 
31  QmitkNodeDetailsDialog(const QList<mitk::DataNode::ConstPointer>& nodes, QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr);
32  QmitkNodeDetailsDialog(const QList<mitk::DataNode::Pointer>& nodes, QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr);
33 
34 public Q_SLOTS:
35 
36  void OnSelectionChanged(const mitk::DataNode*);
37  void OnSearchButtonClicked(bool checked = false);
38  void OnCancelButtonClicked(bool checked = false);
39  void KeyWordTextChanged(const QString& text);
40 
41 protected:
42 
43  bool eventFilter(QObject* obj, QEvent* event) override;
44 
45 protected:
46 
47  QLineEdit* m_KeyWord;
48  QPushButton* m_SearchButton;
49  QTextBrowser* m_TextBrowser;
50 
51 private:
52  void InitWidgets(const QList<mitk::DataNode::ConstPointer>& nodes);
53 
54 };
55 
56 #endif // QMITKNODEDETAILSDIALOG_H
#define MITKQTWIDGETS_EXPORT
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57