X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fdrawing.cpp;fp=src%2Fbase%2Fdrawing.cpp;h=a891bd46ca7da3edf9a70dfb2293b3417cf0138d;hb=d86611a87f46873819dfae63f1112b248ba9aca1;hp=3393bfc3e3921da2b12fc1dc9b8e71b23a77d943;hpb=a5a416c0a1276401a71b2c0e482af867f4583985;p=architektonas diff --git a/src/base/drawing.cpp b/src/base/drawing.cpp index 3393bfc..a891bd4 100644 --- a/src/base/drawing.cpp +++ b/src/base/drawing.cpp @@ -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 & 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; }