45#include "PropertyModel.hh"
46#include "PropertyVisualizer/PropertyVisualizer.hh"
57 void log(
Logtype _type, QString _message);
58 void log(QString _message);
61 void slotLog(
Logtype _type, QString _message){ emit log(_type, _message); }
62 void slotLog(QString _message){ emit log(_message);}
68 virtual int rowCount(
const QModelIndex & parent = QModelIndex())
const override;
69 virtual QVariant data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const override;
70 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
71 virtual QModelIndex index(
int row,
int column, QModelIndex
const & parent = QModelIndex())
const override;
77 virtual void visualize(QModelIndexList selectedIndices, QWidgetList widgets = QWidgetList())
override;
80 virtual void removeProperty(QModelIndexList selectedIndices)
override;
89 virtual void clear(QModelIndexList selectedIndices)
override;
98 virtual void updateWidget(
const QModelIndexList& selectedIndices)
override;
108 void setRange(
const PropertyInfo& info, QWidget* widget)
const;
111 const QStringList restriction;
113 std::vector<QString> propNames;
114 std::vector<PropertyInfo> propInfos;
115 std::vector<QWidget*> propWidgets;
Logtype
Log types for Message Window.
virtual QWidget * getWidget() override
Returns the widget.
virtual void duplicateProperty(QModelIndexList selectedIndices) override
Duplicates the selected properties.
virtual void objectUpdated() override
Revisualizes visualized properties.
virtual void removeProperty(QModelIndexList selectedIndices) override
Removes the selected properties.
virtual PropertyInfo getPropertyInfo(const QModelIndex index) const override
Returns the property info for the property with the given index.
virtual void clear(QModelIndexList selectedIndices) override
Clears the selected property visualization.
virtual void updateWidget(const QModelIndexList &selectedIndices) override
Updates the widget.
virtual void connectLogs(PropertyVisualizer *propViz) override
Connects the PropertyVisualizer log signals with the log slot.
virtual void gatherProperties() override
Searches for properties and creates PropertyVisualizers.
virtual void visualize(QModelIndexList selectedIndices, QWidgetList widgets=QWidgetList()) override
Visualizes the selected properties.
virtual void hideWidget() override
Hides the widget.
Cellection of information about a property.
This class vizualizes a property.
Wraps the information of a type.