[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl GLView.java,1.22,1.23
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2005-11-18 01:28:08
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31672/src/net/sourceforge/bprocessor/gl Modified Files: GLView.java Log Message: new cursors for drag and rotate along with better rotation and drag, still small bugs when rotating while an surface is selected and zoomfactor different from 1 Index: GLView.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/GLView.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** GLView.java 7 Nov 2005 07:21:21 -0000 1.22 --- GLView.java 18 Nov 2005 01:27:55 -0000 1.23 *************** *** 87,90 **** --- 87,91 ---- glc.addMouseListener(tool); glc.addMouseMotionListener(tool); + glc.addMouseWheelListener(tool); glc.addKeyListener(tool); glc.addMouseListener(this); *************** *** 112,120 **** * @param mode The new tool */ ! public void changeTool(int mode) { glc.removeMouseListener(tool); glc.removeMouseMotionListener(tool); glc.removeKeyListener(tool); ! tool = ToolFactory.getFactory(this).get(mode); if (tool != null) { glc.addMouseListener(tool); --- 113,125 ---- * @param mode The new tool */ ! public void changeTool(int mode) { glc.removeMouseListener(tool); glc.removeMouseMotionListener(tool); glc.removeKeyListener(tool); ! if (mode == Tool.PREVIOUS_TOOL) { ! tool = ToolFactory.getFactory(this).getPrevious(); ! } else { ! tool = ToolFactory.getFactory(this).get(mode); ! } if (tool != null) { glc.addMouseListener(tool); |