Skip to content

Commit

Permalink
Updated python bindings, added export macros
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Nov 1, 2011
1 parent bb21724 commit 96496c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions python/core/symbology-ng-core.sip
Expand Up @@ -630,6 +630,9 @@ class QgsSymbolV2RenderContext
void setFeature( const QgsFeature* f );
const QgsFeature* feature() const;

void setLayer( const QgsVectorLayer* layer );
const QgsVectorLayer* layer() const;

// Color used for selections
static QColor selectionColor();

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


void startRender(QgsRenderContext& context);
void startRender( QgsRenderContext& context, const QgsVectorLayer* layer );
void stopRender(QgsRenderContext& context);

void setColor(const QColor& color);
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsvectorfieldsymbollayer.h
Expand Up @@ -21,7 +21,7 @@
#include "qgssymbollayerv2.h"

/**A symbol layer class for displaying displacement arrows based on point layer attributes*/
class QgsVectorFieldSymbolLayer: public QgsMarkerSymbolLayerV2
class CORE_EXPORT QgsVectorFieldSymbolLayer: public QgsMarkerSymbolLayerV2
{
public:
enum VectorFieldType
Expand Down
4 changes: 2 additions & 2 deletions src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.h
Expand Up @@ -6,9 +6,9 @@

class QgsVectorFieldSymbolLayer;

class QgsVectorFieldSymbolLayerWidget: public QgsSymbolLayerV2Widget, private Ui::WidgetVectorFieldBase
class GUI_EXPORT QgsVectorFieldSymbolLayerWidget: public QgsSymbolLayerV2Widget, private Ui::WidgetVectorFieldBase
{
Q_OBJECT
Q_OBJECT
public:
QgsVectorFieldSymbolLayerWidget( const QgsVectorLayer* vl, QWidget* parent = 0 );
~QgsVectorFieldSymbolLayerWidget();
Expand Down

0 comments on commit 96496c5

Please sign in to comment.