13 #ifndef QmitkPropertyItemModel_h 14 #define QmitkPropertyItemModel_h 17 #include <QAbstractItemModel> 30 class IPropertyAliases;
31 class IPropertyFilters;
47 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
48 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
49 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
51 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
52 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
53 void OnPreferencesChanged();
54 QModelIndex parent(
const QModelIndex &child)
const override;
55 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
56 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole)
override;
60 void SetShowAliases(
const bool showAliases) { this->m_ShowAliases = showAliases; }
62 void SetFilterProperties(
const bool filterProperties) { this->m_FilterProperties = filterProperties; }
65 void CreateRootItem();
67 void OnPropertyListModified();
68 void OnPropertyListDeleted();
69 void OnPropertyModified(
const itk::Object *property,
const itk::EventObject &event);
73 bool m_FilterProperties;
78 std::unique_ptr<QmitkPropertyItem> m_RootItem;
79 std::map<std::string, unsigned long> m_PropertyDeletedTags;
80 std::map<std::string, unsigned long> m_PropertyModifiedTags;
81 unsigned long m_PropertyListDeletedTag;
82 unsigned long m_PropertyListModifiedTag;
Interface of property aliases service.
static void Update(vtkPolyData *)
DataCollection - Class to facilitate loading/accessing structured data.
Key-value list holding instances of BaseProperty.
bool GetFilterProperties() const
Abstract base class for properties.
void SetFilterProperties(const bool filterProperties)
bool GetShowAliases() const
void SetShowAliases(const bool showAliases)
Interface of property filters service.