Skip to content

Commit 96496c5

Browse files
committedNov 1, 2011
Updated python bindings, added export macros
1 parent bb21724 commit 96496c5

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed
 

‎python/core/symbology-ng-core.sip

+4-2
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,9 @@ class QgsSymbolV2RenderContext
630630
void setFeature( const QgsFeature* f );
631631
const QgsFeature* feature() const;
632632

633+
void setLayer( const QgsVectorLayer* layer );
634+
const QgsVectorLayer* layer() const;
635+
633636
// Color used for selections
634637
static QColor selectionColor();
635638

@@ -708,8 +711,7 @@ public:
708711
//! delete layer at specified index and set a new one
709712
bool changeSymbolLayer(int index, QgsSymbolLayerV2* layer /Transfer/);
710713

711-
712-
void startRender(QgsRenderContext& context);
714+
void startRender( QgsRenderContext& context, const QgsVectorLayer* layer );
713715
void stopRender(QgsRenderContext& context);
714716

715717
void setColor(const QColor& color);

‎src/core/symbology-ng/qgsvectorfieldsymbollayer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "qgssymbollayerv2.h"
2222

2323
/**A symbol layer class for displaying displacement arrows based on point layer attributes*/
24-
class QgsVectorFieldSymbolLayer: public QgsMarkerSymbolLayerV2
24+
class CORE_EXPORT QgsVectorFieldSymbolLayer: public QgsMarkerSymbolLayerV2
2525
{
2626
public:
2727
enum VectorFieldType

‎src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
class QgsVectorFieldSymbolLayer;
88

9-
class QgsVectorFieldSymbolLayerWidget: public QgsSymbolLayerV2Widget, private Ui::WidgetVectorFieldBase
9+
class GUI_EXPORT QgsVectorFieldSymbolLayerWidget: public QgsSymbolLayerV2Widget, private Ui::WidgetVectorFieldBase
1010
{
11-
Q_OBJECT
11+
Q_OBJECT
1212
public:
1313
QgsVectorFieldSymbolLayerWidget( const QgsVectorLayer* vl, QWidget* parent = 0 );
1414
~QgsVectorFieldSymbolLayerWidget();

0 commit comments

Comments
 (0)
Please sign in to comment.