]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_block.cpp
Adding missing implementation.
[architektonas] / src / base / rs_block.cpp
index 193f9041312179059ba4464d9ac013992dd6cfe9..e817031e327a0d30e2facb71dd741a646f9c19f8 100644 (file)
@@ -3,7 +3,9 @@
 // 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>
 //
@@ -15,7 +17,7 @@
 #include "rs_block.h"
 
 #include <iomanip>
-#include "rs_graphic.h"
+#include "drawing.h"
 
 /**
  * @param parent The graphic this block belongs to.
@@ -44,7 +46,7 @@ RS_Entity * RS_Block::clone()
 
 RS_LayerList * RS_Block::getLayerList()
 {
-       RS_Graphic * g = getGraphic();
+       Drawing * g = getGraphic();
 
        if (g != NULL)
                return g->getLayerList();
@@ -54,7 +56,7 @@ RS_LayerList * RS_Block::getLayerList()
 
 RS_BlockList * RS_Block::getBlockList()
 {
-       RS_Graphic * g = getGraphic();
+       Drawing * g = getGraphic();
 
        if (g != NULL)
                return g->getBlockList();
@@ -64,7 +66,7 @@ RS_BlockList * RS_Block::getBlockList()
 
 bool RS_Block::save()
 {
-       RS_Graphic * g = getGraphic();
+       Drawing * g = getGraphic();
 
        if (g != NULL)
                return g->save();
@@ -74,7 +76,7 @@ bool RS_Block::save()
 
 bool RS_Block::saveAs(const QString & filename, RS2::FormatType type)
 {
-       RS_Graphic * g = getGraphic();
+       Drawing * g = getGraphic();
 
        if (g != NULL)
                return g->saveAs(filename, type);
@@ -87,7 +89,7 @@ bool RS_Block::saveAs(const QString & filename, RS2::FormatType type)
  */
 void RS_Block::setModified(bool m)
 {
-       RS_Graphic * p = getGraphic();
+       Drawing * p = getGraphic();
 
        if (p)
                p->setModified(m);