]> Shamusworld >> Repos - architektonas/blobdiff - src/object.cpp
Preliminary Delete Object tool implementation.
[architektonas] / src / object.cpp
index eaef4d4484eb9d002d34777354554704cac985b7..4be11f55fa0961ceb78202881bcc3b2bc0ce577c 100644 (file)
@@ -21,6 +21,7 @@ bool Object::fixedAngle = false;
 bool Object::fixedLength = false;
 QFont * Object::font = 0;
 int Object::viewportHeight = 0;
+bool Object::deleteActive = false;
 
 
 Object::Object(): position(Vector(0, 0)), parent(0), state(OSInactive), oldState(OSInactive),
@@ -95,3 +96,8 @@ void Object::SetViewportHeight(int height)
 {
        viewportHeight = height;
 }
+
+void Object::SetDeleteActive(bool state/*= true*/)
+{
+       deleteActive = state;
+}