19 #include "QPushButton" 25 auto favoriteNodesButton =
new QPushButton(parent);
29 favoriteNodesButton->setIconSize(QSize(24, 24));
30 favoriteNodesButton->setToolTip(
"Remove selected nodes as favorite");
42 combinedPredicate->AddPredicate(m_FavoriteNodeSelectionPredicate);
43 combinedPredicate->AddPredicate(nodePredicate);
51 for (
auto node : selectedNodes)
53 node->SetBoolProperty(
"org.mitk.selection.favorite",
false);
NodeList GetSelectedNodes() const
void OnFavoriteNodesButtonClicked()
mitk::NodePredicateBase::ConstPointer m_NodePredicate
Ui_QmitkDataStorageListInspector m_Controls
void SetNodePredicate(const mitk::NodePredicateBase *nodePredicate) override
Overrides the corresponding function of QmitkAbstractDataStorageInspector: The custom favorite nodes ...
QmitkDataStorageFavoriteNodesInspector(QWidget *parent=nullptr)
virtual void SetNodePredicate(const mitk::NodePredicateBase *nodePredicate)
Sets the node predicate and updates the widget, according to the node predicate.
static Pointer New(const char *_arg)
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
static QIcon ThemeIcon(const QByteArray &originalSVG)