23 #ifndef __qMRMLTransformItemDelegate_h 24 #define __qMRMLTransformItemDelegate_h 27 #include <QStyledItemDelegate> 30 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 45 bool isTransform(
const QModelIndex& index)
const;
47 virtual QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
48 const QModelIndex &index)
const;
50 virtual void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
51 virtual void setModelData(QWidget *editor, QAbstractItemModel *model,
52 const QModelIndex &index)
const;
54 virtual QSize sizeHint(
const QStyleOptionViewItem &option,
55 const QModelIndex &index)
const;
57 void updateEditorGeometry(QWidget *editor,
58 const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
60 virtual bool eventFilter(QObject *
object, QEvent *event);
65 void setFixedRowHeight(
int height);
68 using QStyledItemDelegate::initStyleOption;
71 void removeTransformsFromBranchOfCurrentItem();
72 void hardenTransformOnBranchOfCurrentItem();
75 void commitAndClose();
A set of MRML Nodes that supports serialization and undo/redo.