]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionblockscreate.cpp
Removed a bunch of cruft...
[architektonas] / src / actions / rs_actionblockscreate.cpp
index 083f2fe4e4588f25b3beea28b6ab8077e880120f..30e7a397c7abdfc82c94992e64ea174ff844329d 100644 (file)
 
 #include "rs_creation.h"
 #include "rs_dialogfactory.h"
+#include "graphicview.h"
 #include "rs_insert.h"
 #include "rs_modification.h"
 
 /**
  * Constructor.
  */
-RS_ActionBlocksCreate::RS_ActionBlocksCreate(RS_EntityContainer & container, RS_GraphicView & graphicView): RS_PreviewActionInterface("Blocks Create", container, graphicView)
+RS_ActionBlocksCreate::RS_ActionBlocksCreate(RS_EntityContainer & container, GraphicView & graphicView): RS_PreviewActionInterface("Blocks Create", container, graphicView)
 {
        referencePoint = Vector(false);
 }
@@ -117,7 +118,7 @@ void RS_ActionBlocksCreate::mouseMoveEvent(QMouseEvent * e)
 
 void RS_ActionBlocksCreate::mouseReleaseEvent(QMouseEvent * e)
 {
-//     if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton)
+//     if (e->button() == Qt::LeftButton)
        if (e->button() == Qt::LeftButton)
        {
 //             Vector ce(snapPoint(e));
@@ -125,7 +126,7 @@ void RS_ActionBlocksCreate::mouseReleaseEvent(QMouseEvent * e)
                Vector ce(snapPoint(e));
                coordinateEvent(&ce);
        }
-//     else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton)
+//     else if (e->button() == Qt::RightButton)
        else if (e->button() == Qt::RightButton)
        {
                deleteSnapper();