}
/**
- * Calls the import method of the filter responsible for the format
- * of the given file.
+ * Calls the import method of the filter responsible for the format of the
+ * given file.
*
- * @param graphic The container to which we will add
- * entities. Usually that's an Drawing entity but
- * it can also be a polyline, text, ...
+ * @param drawing The container to which we will add entities. Usually that's
+ * an Drawing entity but it can also be a polyline, text, ...
* @param file Path and name of the file to import.
*/
-bool FileIO::fileImport(Drawing & graphic, const QString & file, RS2::FormatType type)
+bool FileIO::fileImport(Drawing & drawing, const QString & file, RS2::FormatType type)
{
DEBUG->print("Trying to import file '%s'...", file.toAscii().data());
filter = getImportFilter(t);
if (filter)
- return filter->fileImport(graphic, file, t);
+ return filter->fileImport(drawing, file, t);
else
{
DEBUG->print(Debug::D_WARNING, "FileIO::fileImport: failed to import file: %s",
}
/**
- * Calls the export method of the object responsible for the format
- * of the given file.
+ * Calls the export method of the object responsible for the format of the
+ * given file.
*
* @param file Path and name of the file to import.
*/
-bool FileIO::fileExport(Drawing & graphic, const QString & file, RS2::FormatType type)
+bool FileIO::fileExport(Drawing & drawing, const QString & file, RS2::FormatType type)
{
DEBUG->print("FileIO::fileExport");
FilterInterface * filter = getExportFilter(type);
if (filter)
- return filter->fileExport(graphic, file, type);
+ return filter->fileExport(drawing, file, type);
DEBUG->print("FileIO::fileExport: no filter found");