50 #ifndef MULTI_OBJECT_PROPERTY_MODEL_H
51 #define MULTI_OBJECT_PROPERTY_MODEL_H
53 #include "PropertyModel.hh"
66 virtual int rowCount(
const QModelIndex & parent = QModelIndex())
const;
67 virtual QVariant data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const;
68 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
74 virtual void visualize(QModelIndexList selectedIndices, QWidgetList widgets = QWidgetList());
86 virtual void clear(QModelIndexList selectedIndices);
95 virtual void updateWidget(
const QModelIndexList& selectedIndices);
105 void setRange(
const PropertyInfo& info, QWidget* widget)
const;
108 const QStringList restriction;
110 std::vector<QString> propNames;
111 std::vector<PropertyInfo> propInfos;
112 std::vector<QWidget*> propWidgets;
virtual void hideWidget()
Hides the widget.
virtual void duplicateProperty(QModelIndexList selectedIndices)
Duplicates the selected properties.
virtual void connectLogs(PropertyVisualizer *propViz)
Connects the PropertyVisualizer log signals with the log slot.
This class vizualizes a property.
Wraps the information of a type.
virtual void clear(QModelIndexList selectedIndices)
Clears the selected property visualization.
virtual void objectUpdated()
Revisualizes visualized properties.
virtual void gatherProperties()
Searches for properties and creates PropertyVisualizers.
virtual void removeProperty(QModelIndexList selectedIndices)
Removes the selected properties.
virtual PropertyInfo getPropertyInfo(const QModelIndex index) const
Returns the property info for the property with the given index.
virtual QWidget * getWidget()
Returns the widget.
virtual void visualize(QModelIndexList selectedIndices, QWidgetList widgets=QWidgetList())
Visualizes the selected properties.
virtual void updateWidget(const QModelIndexList &selectedIndices)
Updates the widget.
Cellection of information about a property.