22 #ifndef __qMRMLNodeAttributeTableView_h 23 #define __qMRMLNodeAttributeTableView_h 29 #include "qMRMLWidgetsExport.h" 33 #include <ctkVTKObject.h> 36 class qMRMLNodeAttributeTableViewPrivate;
37 class QTableWidgetItem;
38 class QItemSelectionModel;
57 int attributeCount()
const;
60 QStringList attributes()
const;
63 QString attributeValue(
const QString& attributeName)
const;
66 void selectItemRange(
const int topRow,
const int leftColumn,
const int bottomRow,
const int rightColumn);
69 QItemSelectionModel* selectionModel();
79 void removeSelectedAttributes();
82 void setAttribute(
const QString& attributeName,
const QString& attributeValue);
85 void renameAttribute(
const QString& oldName,
const QString& newName);
89 QTableWidgetItem* findAttributeNameItem(
const QString& attributeName)
const;
92 QString generateNewAttributeName()
const;
96 void populateAttributeTable();
99 void onAttributeChanged(QTableWidgetItem* changedItem);
102 void storeSelectedAttributeTableItem(QTableWidgetItem* selectedItem, QTableWidgetItem* previousItem);
105 QScopedPointer<qMRMLNodeAttributeTableViewPrivate>
d_ptr;
QScopedPointer< qMRMLNodeAttributeTableViewPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.