23 #ifndef __qMRMLTransformItemDelegate_h 24 #define __qMRMLTransformItemDelegate_h 27 #include <QStyledItemDelegate> 31 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 49 bool isTransform(
const QModelIndex& index)
const;
51 virtual QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
52 const QModelIndex &index)
const;
54 virtual void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
55 virtual void setModelData(QWidget *editor, QAbstractItemModel *model,
56 const QModelIndex &index)
const;
58 virtual QSize sizeHint(
const QStyleOptionViewItem &option,
59 const QModelIndex &index)
const;
61 void updateEditorGeometry(QWidget *editor,
62 const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
64 virtual bool eventFilter(QObject *
object, QEvent *event);
69 void setFixedRowHeight(
int height);
72 using QStyledItemDelegate::initStyleOption;
75 void removeTransformsFromBranchOfCurrentItem();
76 void hardenTransformOnBranchOfCurrentItem();
79 void commitAndClose();
81 void transformActionSelected();
104 virtual void showEvent(QShowEvent* event);
A set of MRML Nodes that supports serialization and undo/redo.