added mousewheel for zooming circleselect
authorRob Haarsma <phaseIV@zonnet.nl>
Sat, 8 Feb 2003 12:59:25 +0000 (12:59 +0000)
committerRob Haarsma <phaseIV@zonnet.nl>
Sat, 8 Feb 2003 12:59:25 +0000 (12:59 +0000)
source/blender/src/edit.c
source/blender/src/editobject.c

index 18a4174bf1c1e016dabfa95acdbfa1990de5a80b..ae29e73dc13e28b370b9461612db53ea3c207b0a 100644 (file)
@@ -81,6 +81,7 @@
 #include "BSE_edit.h"
 #include "BSE_trans_types.h"
 #include "BSE_drawipo.h"
+#include "BSE_drawview.h"
 
 #include "BDR_editobject.h"
 
@@ -408,9 +409,11 @@ void circle_selectCB(select_CBfunc callback)
                                firsttime= 1;
                                
                                break;
+                       case WHEELDOWNMOUSE:
                        case PADPLUSKEY:
                                if(val) if(rad<200.0) rad*= 1.2;
                                break;
+                       case WHEELUPMOUSE:
                        case PADMINUS:
                                if(val) if(rad>5.0) rad/= 1.2;
                                break;
index c7c1a9ff5c958adb6e05f367d619ea5c9f52ef6c..250ef0a3a48e3e527c163311d92222765b684eb6 100644 (file)
 #include "BIF_toolbox.h"
 #include "BIF_screen.h"
 #include "BIF_space.h"
+#include "BIF_toets.h"
 #include "BIF_buttons.h"
 #include "BIF_editdeform.h"
 #include "BIF_editfont.h"
@@ -4627,6 +4628,7 @@ void transform(int mode)  /* 'g' 'G' 'r' 'R' 's' 'S' 't' or 'w' 'N' */
                                        firsttime=1;
                                        break;
                                
+                               case WHEELDOWNMOUSE:
                                case PADPLUSKEY:
                                        if(G.f & G_PROPORTIONAL) {
                                                prop_size*= 1.1;
@@ -4639,10 +4641,6 @@ void transform(int mode) /* 'g' 'G' 'r' 'R' 's' 'S' 't' or 'w' 'N' */
                                        break;
 
                                case WHEELUPMOUSE:
-                                       persptoetsen(PADPLUSKEY);
-                                       firsttime= 1;
-                                       break;
-
                                case PADMINUS:
                                        if(G.f & G_PROPORTIONAL) {
                                                prop_size*= 0.90909090;
@@ -4654,11 +4652,6 @@ void transform(int mode) /* 'g' 'G' 'r' 'R' 's' 'S' 't' or 'w' 'N' */
                                        }
                                        break;
 
-                               case WHEELDOWNMOUSE:
-                                       persptoetsen(PADMINUS);
-                                       firsttime= 1;
-                                       break;
-                               
                                case LEFTSHIFTKEY:
                                case RIGHTSHIFTKEY:
                                        VECCOPY(d_dvec, dvec);