Developer Documentation
MultiObjectPropertyModel Class Reference
Inheritance diagram for MultiObjectPropertyModel:
PropertyModel

Public Member Functions

 MultiObjectPropertyModel (const QStringList &res, QObject *parent=0)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
virtual void objectUpdated () override
 Revisualizes visualized properties.
 
virtual void visualize (QModelIndexList selectedIndices, QWidgetList widgets=QWidgetList()) override
 Visualizes the selected properties.
 
virtual void removeProperty (QModelIndexList selectedIndices) override
 Removes the selected properties.
 
virtual void duplicateProperty (QModelIndexList selectedIndices) override
 Duplicates the selected properties.
 
virtual void gatherProperties () override
 Searches for properties and creates PropertyVisualizers.
 
virtual void clear (QModelIndexList selectedIndices) override
 Clears the selected property visualization.
 
virtual void hideWidget () override
 Hides the widget.
 
virtual QWidget * getWidget () override
 Returns the widget.
 
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 PropertyInfo getPropertyInfo (const QModelIndex index) const override
 Returns the property info for the property with the given index.
 
- Public Member Functions inherited from PropertyModel
virtual void pickModeChanged (const std::string &_mode)
 
virtual void mouseEvent (QMouseEvent *_event)
 
 PropertyModel (QObject *parent=0)
 
QModelIndex indexFromFancyPropName (const QString &propName) const
 Returns the index of the property with the given name.
 
QModelIndex indexFromPlainPropName (const QString &propName) const
 Returns the index of the property with the given name.
 

Private Member Functions

QWidget * createWidgetForType (const TypeInfoWrapper &info) const
 
void setRange (const PropertyInfo &info, QWidget *widget) const
 

Private Attributes

const QStringList restriction
 
const DataType datatypes
 
std::vector< QString > propNames
 
std::vector< PropertyInfopropInfos
 
std::vector< QWidget * > propWidgets
 
QWidget * widget
 

Detailed Description

Definition at line 51 of file MultiObjectPropertyModel.hh.


The documentation for this class was generated from the following files: