// Part of the Architektonas Project
// Originally part of QCad Community Edition by Andrew Mustun
// Extensively rewritten and refactored by James L. Hammons
-// (C) 2010 Underground Software
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
//
// JLH = James L. Hammons <jlhamm@acm.org>
//
* 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();
RS_DEBUG->print("RS_FilterDXF::fileImport: reading file: OK");
//graphic->setAutoUpdateBorders(true);
- if (success == false)
+ if (!success)
{
RS_DEBUG->print(RS_Debug::D_WARNING, "Cannot open DXF file '%s'.",
(const char *)QFile::encodeName(file));
// 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);
}
/**
// update document's variable list:
if (currentContainer->rtti()==RS2::EntityGraphic) {
- ((RS_Graphic*)currentContainer)->addVariable(QString(key),
+ ((Drawing*)currentContainer)->addVariable(QString(key),
QString(value), code);
}
}
// update document's variable list:
if (currentContainer->rtti()==RS2::EntityGraphic) {
- ((RS_Graphic*)currentContainer)->addVariable(QString(key),
+ ((Drawing*)currentContainer)->addVariable(QString(key),
value, 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);
}
}
*
* @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));