]> Shamusworld >> Repos - architektonas/blobdiff - src/base/drawing.cpp
Removed useless *Listener class and references.
[architektonas] / src / base / drawing.cpp
index 3393bfc3e3921da2b12fc1dc9b8e71b23a77d943..a891bd46ca7da3edf9a70dfb2293b3417cf0138d 100644 (file)
@@ -302,6 +302,7 @@ void Drawing::freezeAllLayers(bool freeze)
        layerList.freezeAll(freeze);
 }
 
+#if 0
 void Drawing::addLayerListListener(RS_LayerListListener * listener)
 {
        layerList.addListener(listener);
@@ -311,6 +312,7 @@ void Drawing::removeLayerListListener(RS_LayerListListener * listener)
 {
        layerList.removeListener(listener);
 }
+#endif
 
 // Wrapper for block functions:
 
@@ -384,6 +386,7 @@ void Drawing::freezeAllBlocks(bool freeze)
        blockList.freezeAll(freeze);
 }
 
+#if 0
 void Drawing::addBlockListListener(RS_BlockListListener * listener)
 {
        blockList.addListener(listener);
@@ -393,6 +396,7 @@ void Drawing::removeBlockListListener(RS_BlockListListener * listener)
 {
        blockList.removeListener(listener);
 }
+#endif
 
 // Wrappers for variable functions:
 void Drawing::clearVariables()
@@ -462,6 +466,7 @@ QMultiHash<QString, RS_Variable *> & Drawing::getVariableDict()
 bool Drawing::isGridOn()
 {
        int on = getVariableInt("$GRIDMODE", 1);
+
        return (on != 0);
 }
 
@@ -479,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;
 }
 
@@ -606,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);
 
@@ -753,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;
 }