23 #ifndef __qMRMLSubjectHierarchyComboBox_h 24 #define __qMRMLSubjectHierarchyComboBox_h 27 #include <ctkComboBox.h> 30 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 34 class qMRMLSubjectHierarchyComboBoxPrivate;
48 Q_PROPERTY(
bool showRootItem READ showRootItem WRITE setShowRootItem)
52 Q_PROPERTY(
bool highlightReferencedItems READ highlightReferencedItems WRITE setHighlightReferencedItems)
54 Q_PROPERTY(
int maximumNumberOfShownItems READ maximumNumberOfShownItems WRITE setMaximumNumberOfShownItems)
58 Q_PROPERTY(
bool alignPopupVertically READ alignPopupVertically WRITE setAlignPopupVertically)
69 Q_INVOKABLE
void clearSelection();
70 Q_INVOKABLE vtkIdType currentItem()const;
71 Q_INVOKABLE vtkIdType rootItem()const;
73 void setShowRootItem(
bool show);
74 bool showRootItem()const;
76 bool highlightReferencedItems()const;
77 void setHighlightReferencedItems(
bool highlightOn);
79 int maximumNumberOfShownItems()const;
80 void setMaximumNumberOfShownItems(
int maxNumberOfShownItems);
82 bool alignPopupVertically()const;
83 void setAlignPopupVertically(
bool align);
89 Q_INVOKABLE
void setAttributeFilter(const QString& attributeName, const QVariant& attributeValue=QVariant());
91 Q_INVOKABLE
void removeAttributeFilter();
94 Q_INVOKABLE
void setLevelFilter(QString &levelFilter);
96 Q_INVOKABLE
void setNodeTypes(const QStringList& types);
99 Q_INVOKABLE
void setHideChildNodeTypes(const QStringList& types);
106 virtual
void showPopup();
113 virtual
void setCurrentItem(vtkIdType itemID);
116 virtual
void setRootItem(vtkIdType itemID);
121 void setPluginWhitelist(QStringList whitelist);
125 void setPluginBlacklist(QStringList blacklist);
128 void disablePlugin(QString plugin);
131 void currentItemChanged(vtkIdType);
132 void currentItemModified(vtkIdType);
135 void updateComboBoxTitleAndIcon(vtkIdType selectedShItemID);
139 virtual
void mousePressEvent(QMouseEvent* event);
142 QScopedPointer<qMRMLSubjectHierarchyComboBoxPrivate> d_ptr;
MRML node to represent a complete subject hierarchy tree.
A set of MRML Nodes that supports serialization and undo/redo.
Item model for subject hierarchy.