]> Shamusworld >> Repos - architektonas/blobdiff - src/applicationwindow.cpp
Added Geometry class for common geometric tools used everywhere.
[architektonas] / src / applicationwindow.cpp
index bf9baf45781fb076e8c9f9c733969f3f5784ba53..83dbd54bd1b86f20bc82964473e6641f5900f725 100644 (file)
 #include "settingsdialog.h"
 
 
+// Class variables
+DrawingView * ApplicationWindow::drawing;
+
+
 ApplicationWindow::ApplicationWindow():
        baseUnitInput(new QLineEdit),
        dimensionSizeInput(new QLineEdit),
@@ -406,6 +410,7 @@ void ApplicationWindow::SetInternalToolStates(void)
        {
                delete drawing->toolAction;
                drawing->toolAction = NULL;
+               Object::ignoreClicks = false;
        }
 
 #if 0
@@ -421,6 +426,9 @@ void ApplicationWindow::SetInternalToolStates(void)
        drawing->SetToolActive(mirrorAct->isChecked() ? new MirrorAction() : NULL);
 #endif
 
+       if (drawing->toolAction)
+               Object::ignoreClicks = true;
+
        update();
 }