X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Ffileio.cpp;fp=src%2Fbase%2Ffileio.cpp;h=8390be19690e13e4e469b06f3438f39e7a42d31e;hb=a18a12fc3bcb18e5c7ca5494d7f97fb8b93f90a2;hp=cde23ea546e09c040cd6c3562605b078666d9c26;hpb=5adb444f3e523d3fd028617ced72d1ea6661db21;p=architektonas diff --git a/src/base/fileio.cpp b/src/base/fileio.cpp index cde23ea..8390be1 100644 --- a/src/base/fileio.cpp +++ b/src/base/fileio.cpp @@ -89,15 +89,14 @@ FilterInterface * FileIO::getExportFilter(RS2::FormatType t) } /** - * 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()); @@ -106,7 +105,7 @@ bool FileIO::fileImport(Drawing & graphic, const QString & file, RS2::FormatType 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", @@ -117,12 +116,12 @@ bool FileIO::fileImport(Drawing & graphic, const QString & file, RS2::FormatType } /** - * 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"); @@ -139,7 +138,7 @@ bool FileIO::fileExport(Drawing & graphic, const QString & file, RS2::FormatType 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");