Skip to content
Permalink
Browse files

Add copy constructor and assignment operator for QgsDxfExport

  • Loading branch information
mhugent committed Dec 5, 2013
1 parent 3fed0d0 commit 642b0d5ee347b53391c2c6b182cbbb6d34ec2812
Showing with 20 additions and 2 deletions.
  1. +1 −0 python/CMakeLists.txt
  2. +17 −0 src/core/dxf/qgsdxfexport.cpp
  3. +2 −2 src/core/dxf/qgsdxfexport.h
@@ -38,6 +38,7 @@ INCLUDE_DIRECTORIES(
../src/core/pal
../src/core/composer
../src/core/diagram
../src/core/dxf
../src/core/gps
../src/core/raster
../src/core/symbology-ng
@@ -291,6 +291,23 @@ QgsDxfExport::QgsDxfExport(): mSymbologyScaleDenominator( 1.0 ), mSymbologyExpor
{
}

QgsDxfExport::QgsDxfExport( const QgsDxfExport& dxfExport )
{
*this = dxfExport;
}

QgsDxfExport& QgsDxfExport::operator=( const QgsDxfExport & dxfExport )
{
mLayers = dxfExport.mLayers;
mSymbologyScaleDenominator = dxfExport.mSymbologyScaleDenominator;
mSymbologyExport = dxfExport.mSymbologyExport;
mMapUnits = dxfExport.mMapUnits;
mSymbolLayerCounter = 0; //internal counter
mNextHandleId = 0;
mBlockCounter = 0;
return *this;
}

QgsDxfExport::~QgsDxfExport()
{
}
@@ -40,7 +40,9 @@ class QgsDxfExport
};

QgsDxfExport();
QgsDxfExport( const QgsDxfExport& dxfExport );
~QgsDxfExport();
QgsDxfExport& operator=( const QgsDxfExport& dxfExport );

void addLayers( QList< QgsMapLayer* >& layers ) { mLayers = layers; }
int writeToFile( QIODevice* d ); //maybe add progress dialog? //other parameters (e.g. scale, dpi)?
@@ -84,8 +86,6 @@ class QgsDxfExport

QTextStream mTextStream;

QVector<QRgb> mDxfColorPalette;

static double mDxfColors[][3];

int mSymbolLayerCounter; //internal counter

0 comments on commit 642b0d5

Please sign in to comment.
You can’t perform that action at this time.