Medical Imaging Interaction Toolkit  2021.10.99-fd647480
Medical Imaging Interaction Toolkit
QmitkDataStorageFavoriteNodesInspector.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 QMITKDATASTORAGEFAVORITENODESINSPECTOR_H
14 #define QMITKDATASTORAGEFAVORITENODESINSPECTOR_H
15 
16 #include <MitkQtWidgetsExports.h>
17 
19 
22 
23 /*
24 * @brief This is an inspector that offers a simple list view on favorite nodes of a data storage.
25 */
27 {
28  Q_OBJECT
29 
30 public:
31 
32  QmitkDataStorageFavoriteNodesInspector(QWidget* parent = nullptr);
33 
42  void SetNodePredicate(const mitk::NodePredicateBase* nodePredicate) override;
43 
44  constexpr static const char* INSPECTOR_ID()
45  {
46  return "org.mitk.QmitkDataStorageFavoriteNodesInspector";
47  };
48 
49 protected Q_SLOTS:
50 
51  void OnFavoriteNodesButtonClicked();
52 
53 private:
54 
55  mitk::NodePredicateProperty::Pointer m_FavoriteNodeSelectionPredicate;
56 };
57 
58 #endif // QMITKDATASTORAGEFAVORITENODESINSPECTOR_H
virtual void SetNodePredicate(const mitk::NodePredicateBase *nodePredicate)
Sets the node predicate and updates the widget, according to the node predicate.
#define MITKQTWIDGETS_EXPORT
Interface for evaluation conditions used in the DataStorage class GetSubset() method.