Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
An item delegate for rendering and editing mitk::Properties in a QTableView. More...
#include <QmitkNDIToolDelegate.h>
Public Types | |
enum | ToolTableColumns { IndexCol, NameCol, SROMCol, TypeCol, StatusCol, NodeCol, RepCol } |
enum | NDIItemDataRole { NDIToolRole, ToolIndexRole, FileNameRole, OrganNodeRole, TypeRole } |
Public Member Functions | |
QmitkNDIToolDelegate (QObject *parent=nullptr) | |
void | SetTypes (const QStringList &types) |
set types list for type editor combobox More... | |
void | SetDataStorage (mitk::DataStorage *ds) |
set datastorage for organ node editor More... | |
void | SetPredicate (mitk::NodePredicateBase::Pointer p) |
set predicate for organ node editor More... | |
void | SetTagPropertyName (const std::string &name) |
set name of the property that is used to tag selected nodes More... | |
void | SetTagProperty (mitk::BaseProperty::Pointer prop) |
set the property that is used to tag selected nodes More... | |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
void | setEditorData (QWidget *editor, const QModelIndex &index) const override |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override |
An item delegate for rendering and editing mitk::Properties in a QTableView.
Definition at line 39 of file QmitkNDIToolDelegate.h.
Enumerator | |
---|---|
NDIToolRole | |
ToolIndexRole | |
FileNameRole | |
OrganNodeRole | |
TypeRole |
Definition at line 59 of file QmitkNDIToolDelegate.h.
Enumerator | |
---|---|
IndexCol | |
NameCol | |
SROMCol | |
TypeCol | |
StatusCol | |
NodeCol | |
RepCol |
Definition at line 49 of file QmitkNDIToolDelegate.h.
QmitkNDIToolDelegate::QmitkNDIToolDelegate | ( | QObject * | parent = nullptr | ) |
Creates a new PropertyDelegate.
Definition at line 35 of file QmitkNDIToolDelegate.cpp.
|
override |
void QmitkNDIToolDelegate::SetDataStorage | ( | mitk::DataStorage * | ds | ) |
set datastorage for organ node editor
Definition at line 194 of file QmitkNDIToolDelegate.cpp.
Referenced by QmitkNDIConfigurationWidget::CreateQtPartControl(), and QmitkNDIConfigurationWidget::SetDataStorage().
|
override |
|
override |
When the user accepts input this func commits the data to the model (overwritten from QItemDelegate)
Definition at line 118 of file QmitkNDIToolDelegate.cpp.
References QmitkDataStorageComboBox::GetSelectedNode(), IndexCol, NameCol, NodeCol, OrganNodeRole, SROMCol, StatusCol, and TypeCol.
void QmitkNDIToolDelegate::SetPredicate | ( | mitk::NodePredicateBase::Pointer | p | ) |
set predicate for organ node editor
Definition at line 200 of file QmitkNDIToolDelegate.cpp.
Referenced by QmitkNDIConfigurationWidget::CreateQtPartControl(), and QmitkNDIConfigurationWidget::SetPredicate().
void QmitkNDIToolDelegate::SetTagProperty | ( | mitk::BaseProperty::Pointer | prop | ) |
set the property that is used to tag selected nodes
Definition at line 206 of file QmitkNDIToolDelegate.cpp.
Referenced by QmitkNDIConfigurationWidget::SetTagProperty().
void QmitkNDIToolDelegate::SetTagPropertyName | ( | const std::string & | name | ) |
set name of the property that is used to tag selected nodes
Definition at line 211 of file QmitkNDIToolDelegate.cpp.
Referenced by QmitkNDIConfigurationWidget::SetTagPropertyName().
void QmitkNDIToolDelegate::SetTypes | ( | const QStringList & | types | ) |
set types list for type editor combobox
Definition at line 188 of file QmitkNDIToolDelegate.cpp.
Referenced by QmitkNDIConfigurationWidget::CreateQtPartControl(), and QmitkNDIConfigurationWidget::SetToolTypes().