layerList.freezeAll(freeze);
}
+#if 0
void Drawing::addLayerListListener(RS_LayerListListener * listener)
{
layerList.addListener(listener);
{
layerList.removeListener(listener);
}
+#endif
// Wrapper for block functions:
blockList.freezeAll(freeze);
}
+#if 0
void Drawing::addBlockListListener(RS_BlockListListener * listener)
{
blockList.addListener(listener);
{
blockList.removeListener(listener);
}
+#endif
// Wrappers for variable functions:
void Drawing::clearVariables()
bool Drawing::isGridOn()
{
int on = getVariableInt("$GRIDMODE", 1);
+
return (on != 0);
}
void Drawing::setUnit(RS2::Unit u)
{
setPaperSize(RS_Units::convert(getPaperSize(), getUnit(), u));
-
addVariable("$INSUNITS", (int)u, 70);
-
//unit = u;
}
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);
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;
}