|
Tulip Plugins
|
Class giving help function to convert Tulip data to Qt model/view programming. More...
#include <TulipQVariantBuilder.h>
Public Member Functions | |
| TulipQVariantBuilder () | |
| TulipPropertyType | getPropertyType (tlp::ElementType elementType, tlp::PropertyInterface *property) const |
| Guess the property type of the given property in function of the displayed element types and the property interface. | |
| QVariant | data (tlp::Graph *graph, int displayRole, tlp::ElementType elementType, unsigned int elementId, TulipPropertyType propertyType, tlp::PropertyInterface *property) const |
| Transform nodes and edges properties values to QVariant compatible with Qt model/view framework. See QAbstractItemModel::data function. | |
| QVariant | data (tlp::Graph *graph, int displayRole, tlp::ElementType elementType, unsigned int elementId, tlp::PropertyInterface *property) const |
| QVariant | defaultElementsData (tlp::Graph *graph, int displayRole, tlp::ElementType elementType, TulipPropertyType propertyType, tlp::PropertyInterface *property) const |
| Qt::ItemFlags | flags (Qt::ItemFlags defaultFlags, tlp::ElementType elementType, unsigned int elementId, TulipPropertyType propertyType, tlp::PropertyInterface *property) const |
| Qt::ItemFlags | flags (Qt::ItemFlags defaultFlags, tlp::ElementType elementType, unsigned int elementId, tlp::PropertyInterface *property) const |
| bool | setData (const QVariant &value, tlp::ElementType elementType, unsigned int elementId, TulipPropertyType propertyType, tlp::PropertyInterface *property) const |
| Update the graph with the data returned by the edition widget. | |
| bool | setData (const QVariant &value, tlp::ElementType elementType, unsigned int elementId, tlp::PropertyInterface *property) const |
| Convinience function. | |
| bool | setAllElementData (const QVariant &value, tlp::ElementType elementType, TulipPropertyType propertyType, tlp::PropertyInterface *property) |
| Set all the elements value to the given parameter using the setAllNodeValue or setAllEdgeValue. | |
| bool | setAllElementData (const QVariant &value, tlp::ElementType elementType, tlp::PropertyInterface *property) |
| Convinience function. | |
Class giving help function to convert Tulip data to Qt model/view programming.
| TulipQVariantBuilder::TulipQVariantBuilder | ( | ) |
| QVariant TulipQVariantBuilder::data | ( | tlp::Graph * | graph, |
| int | displayRole, | ||
| tlp::ElementType | elementType, | ||
| unsigned int | elementId, | ||
| TulipPropertyType | propertyType, | ||
| tlp::PropertyInterface * | property | ||
| ) | const |
Transform nodes and edges properties values to QVariant compatible with Qt model/view framework. See QAbstractItemModel::data function.
Handle a new role NormalizedValueRole. This role is used for
| QVariant TulipQVariantBuilder::data | ( | tlp::Graph * | graph, |
| int | displayRole, | ||
| tlp::ElementType | elementType, | ||
| unsigned int | elementId, | ||
| tlp::PropertyInterface * | property | ||
| ) | const [inline] |
| QVariant TulipQVariantBuilder::defaultElementsData | ( | tlp::Graph * | graph, |
| int | displayRole, | ||
| tlp::ElementType | elementType, | ||
| TulipPropertyType | propertyType, | ||
| tlp::PropertyInterface * | property | ||
| ) | const |
| Qt::ItemFlags TulipQVariantBuilder::flags | ( | Qt::ItemFlags | defaultFlags, |
| tlp::ElementType | elementType, | ||
| unsigned int | elementId, | ||
| TulipPropertyType | propertyType, | ||
| tlp::PropertyInterface * | property | ||
| ) | const |
| Qt::ItemFlags TulipQVariantBuilder::flags | ( | Qt::ItemFlags | defaultFlags, |
| tlp::ElementType | elementType, | ||
| unsigned int | elementId, | ||
| tlp::PropertyInterface * | property | ||
| ) | const [inline] |
| TulipPropertyType TulipQVariantBuilder::getPropertyType | ( | tlp::ElementType | elementType, |
| tlp::PropertyInterface * | property | ||
| ) | const |
Guess the property type of the given property in function of the displayed element types and the property interface.
The property type is used to choose the right data to display or the right data to create the edition widget.
| bool TulipQVariantBuilder::setAllElementData | ( | const QVariant & | value, |
| tlp::ElementType | elementType, | ||
| TulipPropertyType | propertyType, | ||
| tlp::PropertyInterface * | property | ||
| ) |
Set all the elements value to the given parameter using the setAllNodeValue or setAllEdgeValue.
| bool TulipQVariantBuilder::setAllElementData | ( | const QVariant & | value, |
| tlp::ElementType | elementType, | ||
| tlp::PropertyInterface * | property | ||
| ) | [inline] |
Convinience function.
| bool TulipQVariantBuilder::setData | ( | const QVariant & | value, |
| tlp::ElementType | elementType, | ||
| unsigned int | elementId, | ||
| tlp::PropertyInterface * | property | ||
| ) | const [inline] |
Convinience function.
| bool TulipQVariantBuilder::setData | ( | const QVariant & | value, |
| tlp::ElementType | elementType, | ||
| unsigned int | elementId, | ||
| TulipPropertyType | propertyType, | ||
| tlp::PropertyInterface * | property | ||
| ) | const |
Update the graph with the data returned by the edition widget.
1.7.4