25 const QString &_PathToIcon,
29 m_ClassName(_ClassName),
30 m_PathToIcon(_PathToIcon),
31 m_Predicate(_Predicate),
32 m_Separator(new QAction(this))
68 QObject::connect(action, SIGNAL(destroyed(QObject *)),
this, SLOT(
ActionDestroyed(QObject *)));
80 else if (indexOfWidgetAction != -1)
87 QObject::disconnect(_Action, SIGNAL(destroyed(QObject *)),
this, SLOT(
ActionDestroyed(QObject *)));
virtual ~QmitkNodeDescriptor()
virtual QAction * GetSeparator() const
virtual QList< QAction * > GetBatchActions() const
virtual void RemoveAction(QAction *_Action)
virtual QIcon GetIcon() const
virtual QString GetNameOfClass() const
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 QList< QAction * > GetActions() const
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
QList< QAction * > m_BatchActions
virtual bool CheckNode(const mitk::DataNode *node) const
virtual void AddAction(QAction *action, bool isBatchAction=true)
Class for nodes of the DataTree.