15 #ifndef QGSRENDERERV2REGISTRY_H
16 #define QGSRENDERERV2REGISTRY_H
20 #include <QStringList>
21 #include <QDomElement>
40 : mName( name ), mVisibleName( visibleName ), mIcon(
icon ) {}
43 QString
name()
const {
return mName; }
46 QIcon
icon()
const {
return mIcon; }
54 { Q_UNUSED( layer ); Q_UNUSED( style ); Q_UNUSED( renderer );
return NULL; }
57 { Q_UNUSED( elem ); Q_UNUSED( geomType );
return NULL; }
88 , mCreateFunc( pfCreate )
89 , mWidgetFunc( pfWidget )
90 , mCreateFromSldFunc( NULL )
101 , mCreateFunc( pfCreate )
102 , mWidgetFunc( pfWidget )
103 , mCreateFromSldFunc( pfCreateFromSld )
110 {
return mWidgetFunc ? mWidgetFunc( layer, style, renderer ) : NULL; }
112 {
return mCreateFromSldFunc ? mCreateFromSldFunc( elem, geomType ) : NULL; }
148 bool removeRenderer( QString rendererName );
154 QStringList renderersList();
167 #endif // QGSRENDERERV2REGISTRY_H