Medical Imaging Interaction Toolkit  2023.04.00
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::m_SearchButton
QPushButton * m_SearchButton
Definition: QmitkNodeDetailsDialog.h:48
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
MitkQtWidgetsExports.h
mitkDataNode.h
QmitkNodeDetailsDialog::m_KeyWord
QLineEdit * m_KeyWord
Definition: QmitkNodeDetailsDialog.h:47
QmitkNodeDetailsDialog
Definition: QmitkNodeDetailsDialog.h:25
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
QmitkNodeDetailsDialog::m_TextBrowser
QTextBrowser * m_TextBrowser
Definition: QmitkNodeDetailsDialog.h:49