21 #ifndef __qMRMLSceneAnnotationModel_h 22 #define __qMRMLSceneAnnotationModel_h 28 #include "qSlicerAnnotationsModuleWidgetsExport.h" 29 class qMRMLSceneAnnotationModelPrivate;
48 Q_PROPERTY(
bool annotationsAreParent READ areAnnotationsParent WRITE setAnnotationsAreParent)
51 Q_PROPERTY (
int lockColumn READ lockColumn WRITE setLockColumn)
62 Q_PROPERTY (
int editColumn READ editColumn WRITE setEditColumn)
68 Q_PROPERTY (
int valueColumn READ valueColumn WRITE setValueColumn)
74 Q_PROPERTY (
int textColumn READ textColumn WRITE setTextColumn)
86 bool areAnnotationsParent()const;
89 void setAnnotationsAreParent(
bool parentable);
93 int lockColumn()const;
96 void setLockColumn(
int column);
100 int editColumn()const;
103 void setEditColumn(
int column);
107 int valueColumn()const;
110 void setValueColumn(
int column);
114 int textColumn()const;
117 void setTextColumn(
int column);
129 qMRMLSceneAnnotationModel(qMRMLSceneAnnotationModelPrivate* pimpl,
132 virtual
void updateItemDataFromNode(QStandardItem* item,
vtkMRMLNode* node,
int column);
134 virtual
void updateNodeFromItemData(
vtkMRMLNode* node, QStandardItem* item);
136 virtual QFlags<Qt::ItemFlag> nodeFlags(
vtkMRMLNode* node,
int column)const;
137 virtual
int maxColumnId()const;
140 Q_DECLARE_PRIVATE(qMRMLSceneAnnotationModel);
141 Q_DISABLE_COPY(qMRMLSceneAnnotationModel);
The Visibility icon is in the same column than the name by default.
Abstract Superclass for all specific types of MRML nodes.