]> Shamusworld >> Repos - architektonas/blobdiff - src/base/drawing.cpp
Adding missing implementation.
[architektonas] / src / base / drawing.cpp
index dbdc1e2f8716e4c7abb3e2382f0087fd462b3172..a891bd46ca7da3edf9a70dfb2293b3417cf0138d 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>
 //
@@ -300,6 +302,7 @@ void Drawing::freezeAllLayers(bool freeze)
        layerList.freezeAll(freeze);
 }
 
+#if 0
 void Drawing::addLayerListListener(RS_LayerListListener * listener)
 {
        layerList.addListener(listener);
@@ -309,6 +312,7 @@ void Drawing::removeLayerListListener(RS_LayerListListener * listener)
 {
        layerList.removeListener(listener);
 }
+#endif
 
 // Wrapper for block functions:
 
@@ -382,6 +386,7 @@ void Drawing::freezeAllBlocks(bool freeze)
        blockList.freezeAll(freeze);
 }
 
+#if 0
 void Drawing::addBlockListListener(RS_BlockListListener * listener)
 {
        blockList.addListener(listener);
@@ -391,6 +396,7 @@ void Drawing::removeBlockListListener(RS_BlockListListener * listener)
 {
        blockList.removeListener(listener);
 }
+#endif
 
 // Wrappers for variable functions:
 void Drawing::clearVariables()
@@ -460,6 +466,7 @@ QMultiHash<QString, RS_Variable *> & Drawing::getVariableDict()
 bool Drawing::isGridOn()
 {
        int on = getVariableInt("$GRIDMODE", 1);
+
        return (on != 0);
 }
 
@@ -477,9 +484,7 @@ void Drawing::setGridOn(bool on)
 void Drawing::setUnit(RS2::Unit u)
 {
        setPaperSize(RS_Units::convert(getPaperSize(), getUnit(), u));
-
        addVariable("$INSUNITS", (int)u, 70);
-
        //unit = u;
 }
 
@@ -604,7 +609,6 @@ void Drawing::setPaperInsertionBase(const Vector & p)
 Vector Drawing::getPaperSize()
 {
        Vector def = RS_Units::convert(Vector(210.0, 297.0), RS2::Millimeter, getUnit());
-
        Vector v1 = getVariableVector("$PLIMMIN", Vector(0.0, 0.0));
        Vector v2 = getVariableVector("$PLIMMAX", def);
 
@@ -751,8 +755,8 @@ std::ostream & operator<<(std::ostream & os, Drawing & g)
     os << "--- Drawing: \n";
     os << "---" << *g.getLayerList() << "\n";
     os << "---" << *g.getBlockList() << "\n";
-    os << "---" << (RS_Undo&)g << "\n";
-    os << "---" << (RS_EntityContainer&)g << "\n";
+    os << "---" << (RS_Undo &)g << "\n";
+    os << "---" << (RS_EntityContainer &)g << "\n";
 
     return os;
 }