15 #ifndef QGSRENDERERV2REGISTRY_H
16 #define QGSRENDERERV2REGISTRY_H
20 #include <QStringList>
21 #include <QDomElement>
28 class QgsRendererV2Widget;
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 )
108 {
return mWidgetFunc ? mWidgetFunc( layer, style, renderer ) : NULL; }
110 {
return mCreateFromSldFunc ? mCreateFromSldFunc( elem, geomType ) : NULL; }
146 bool removeRenderer( QString rendererName );
152 QStringList renderersList();
167 #endif // QGSRENDERERV2REGISTRY_H