21 const QString &_PathToIcon,
72 QObject::connect(action, SIGNAL(destroyed(QObject *)),
this, SLOT(
ActionDestroyed(QObject *)));
84 else if (indexOfWidgetAction != -1)
89 if (_Action !=
nullptr)
91 QObject::disconnect(_Action, SIGNAL(destroyed(QObject *)),
this, SLOT(
ActionDestroyed(QObject *)));
virtual QAction * GetSeparator() const
Decorator class for mitk::DataNode.
virtual QList< QAction * > GetBatchActions() const
~QmitkNodeDescriptor() override
virtual void RemoveAction(QAction *_Action)
void ActionDestroyed(QObject *obj=nullptr)
Called when an action was destroyed.
QList< QAction * > m_Actions
mitk::NodePredicateBase::Pointer m_Predicate
QmitkNodeDescriptor(const QString &_ClassName, const QString &_PathToIcon, mitk::NodePredicateBase *_Predicate, QObject *parent)
virtual QString GetNameOfClass() const
virtual QList< QAction * > GetActions() const
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
QList< QAction * > m_BatchActions
virtual QIcon GetIcon(const mitk::DataNode *node) const
virtual void AddAction(QAction *action, bool isBatchAction=true)
virtual bool CheckNode(const mitk::DataNode *node) const
Class for nodes of the DataTree.