X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_filterdxf.cpp;h=546d2ea428d989192466a2559dc3dd035e8e32a9;hb=27d4a138d23453e93a833e9347444b828a971cb4;hp=1d2f45c0f8ef4e95fdbb4ea84c9d3674062cabaa;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_filterdxf.cpp b/src/base/rs_filterdxf.cpp index 1d2f45c..546d2ea 100644 --- a/src/base/rs_filterdxf.cpp +++ b/src/base/rs_filterdxf.cpp @@ -70,7 +70,7 @@ RS_FilterDXF::~RS_FilterDXF() * will be created or the graphics from which the entities are * taken to be stored in a file. */ -bool RS_FilterDXF::fileImport(RS_Graphic & g, const QString & file, RS2::FormatType /*type*/) +bool RS_FilterDXF::fileImport(Drawing & g, const QString & file, RS2::FormatType /*type*/) { RS_DEBUG->print("RS_FilterDXF::fileImport"); //RS_DEBUG->timestamp(); @@ -1073,7 +1073,7 @@ void RS_FilterDXF::setVariableVector(const char * key, double v1, double v2, dou // update document's variable list: if (currentContainer->rtti() == RS2::EntityGraphic) - ((RS_Graphic *)currentContainer)->addVariable(QString(key), Vector(v1, v2, v3), code); + ((Drawing *)currentContainer)->addVariable(QString(key), Vector(v1, v2, v3), code); } /** @@ -1088,7 +1088,7 @@ void RS_FilterDXF::setVariableString(const char * key, const char * value, int c // update document's variable list: if (currentContainer->rtti()==RS2::EntityGraphic) { - ((RS_Graphic*)currentContainer)->addVariable(QString(key), + ((Drawing*)currentContainer)->addVariable(QString(key), QString(value), code); } } @@ -1103,7 +1103,7 @@ void RS_FilterDXF::setVariableInt(const char* key, int value, int code) { // update document's variable list: if (currentContainer->rtti()==RS2::EntityGraphic) { - ((RS_Graphic*)currentContainer)->addVariable(QString(key), + ((Drawing*)currentContainer)->addVariable(QString(key), value, code); } } @@ -1119,7 +1119,7 @@ void RS_FilterDXF::setVariableDouble(const char* key, double value, int code) { // update document's variable list: if (currentContainer->rtti() == RS2::EntityGraphic) { - ((RS_Graphic *)currentContainer)->addVariable(QString(key), value, code); + ((Drawing *)currentContainer)->addVariable(QString(key), value, code); } } @@ -1129,7 +1129,7 @@ void RS_FilterDXF::setVariableDouble(const char* key, double value, int code) { * * @param file Full path to the DXF file that will be written. */ -bool RS_FilterDXF::fileExport(RS_Graphic & g, const QString & file, RS2::FormatType type) +bool RS_FilterDXF::fileExport(Drawing & g, const QString & file, RS2::FormatType type) { RS_DEBUG->print("RS_FilterDXF::fileExport: exporting file '%s'...", (const char *)QFile::encodeName(file));