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