]> Shamusworld >> Repos - architektonas/blobdiff - src/base/fileio.cpp
In the middle of chasing down MDI not activating bug, renaming of Graphic to
[architektonas] / src / base / fileio.cpp
index cde23ea546e09c040cd6c3562605b078666d9c26..8390be19690e13e4e469b06f3438f39e7a42d31e 100644 (file)
@@ -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");