[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/office/flake/lib
From:       Thomas Zander <zander () kde ! org>
Date:       2006-05-14 20:24:48
Message-ID: 1147638288.551820.5726.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 540858 by zander:

Add simple (non working) version of scale strategy

 M  +3 -1      KoInteractionStrategy.cpp  
 M  +4 -2      lib.pro  


--- trunk/playground/office/flake/lib/KoInteractionStrategy.cpp #540857:540858
@@ -24,6 +24,7 @@
 #include "KoShapeRubberSelectStrategy.h"
 #include "KoShapeMoveStrategy.h"
 #include "KoShapeRotateStrategy.h"
+#include "KoShapeScaleStrategy.h"
 #include "KoInteractionTool.h"
 #include "KoCanvasBase.h"
 #include "KoTool.h"
@@ -70,7 +71,8 @@
         if(handle == KoInteractionTool::NoHandle)
             return new KoShapeMoveStrategy(parent, canvas, event->point);
         if(insideSelection)
-            return 0; // TODO scale
+            return new KoShapeScaleStrategy(parent, canvas, event->point, handle);
+
     }
     else if(handle == KoInteractionTool::NoHandle) { // clicked on object which is not selected
         parent->repaintDecorations();
--- trunk/playground/office/flake/lib/lib.pro #540857:540858
@@ -10,9 +10,11 @@
            KoTool.h KoInteractionTool.h KoCommand.h \
            KoInteractionStrategy.h KoShapeMoveStrategy.h \
            KoShapeRubberSelectStrategy.h KoViewConverter.h \
-           KoShapeRotateStrategy.h KoShapeGroup.h KoLineBorder.h
+           KoShapeRotateStrategy.h KoShapeGroup.h KoLineBorder.h \
+           KoShapeScaleStrategy.h
 SOURCES += KoShape.cpp KoPathShape.cpp KoSelection.cpp \
            KoShapeManager.cpp KoShapeContainer.cpp KoRepaintManager.cpp \
            KoInteractionTool.cpp KoShapeMoveStrategy.cpp KoShapeRubberSelectStrategy.cpp \
            KoRectangleShape.cpp KoCommand.cpp KoInteractionStrategy.cpp KoTool.cpp \
-           KoShapeRotateStrategy.cpp KoShapeGroup.cpp KoLineBorder.cpp
+           KoShapeRotateStrategy.cpp KoShapeGroup.cpp KoLineBorder.cpp \
+           KoShapeScaleStrategy.cpp
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic