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);
101 virtual
void showPopup();
108 virtual
void setCurrentItem(vtkIdType itemID);
111 virtual
void setRootItem(vtkIdType itemID);
114 void currentItemChanged(vtkIdType);
115 void currentItemModified(vtkIdType);
118 void updateComboBoxTitleAndIcon(vtkIdType selectedShItemID);
122 virtual
void mousePressEvent(QMouseEvent* event);
125 QScopedPointer<qMRMLSubjectHierarchyComboBoxPrivate> d_ptr;
128 Q_DECLARE_PRIVATE(qMRMLSubjectHierarchyComboBox);
129 Q_DISABLE_COPY(qMRMLSubjectHierarchyComboBox);
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.