/[fenfire]/fenfire/org/fenfire/bin/fenpdf10.py
ViewVC logotype

Diff of /fenfire/org/fenfire/bin/fenpdf10.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mudyc, Wed Aug 6 17:07:52 2003 UTC revision 1.3 by mudyc, Thu Aug 7 11:10:07 2003 UTC
# Line 43  print """ Line 43  print """
43  FenPDF is offered you by the Fenfire team(http://fenfire.org).  FenPDF is offered you by the Fenfire team(http://fenfire.org).
44    
45    
46    
47    Fenfire is free software; you can redistribute it and/or modify it under
48    the terms of the GNU Lesser General Public License as published by
49    the Free Software Foundation; either version 2 of the License, or
50    (at your option) any later version.
51    
52    Fenfire is distributed in the hope that it will be useful, but WITHOUT
53    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
54    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
55    Public License for more details.
56    
57    You should have received a copy of the GNU Lesser General
58    Public License along with Fenfire; if not, write to the Free
59    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
60    MA  02111-1307  USA
61    
62    
63  """  """
64    
65    
# Line 333  class DoubleGeometer: Line 350  class DoubleGeometer:
350      def mouse(self, ev, oldvs):      def mouse(self, ev, oldvs):
351          if dbg: p(ev)          if dbg: p(ev)
352    
353            def mousePrint(ev, txt='event'):
354                if ev.getType() == ev.MOUSE_RELEASED:
355                    p(txt,'mouse released')
356                elif ev.getType() == ev.MOUSE_CLICKED:
357                    p(txt,'mouse clicked')
358                elif ev.getType() == ev.MOUSE_PRESSED:
359                    p(txt,'mouse pressed')
360                else: pass
361            if dbg: mousePrint(ev)
362    
363          if ev.getType() == ev.MOUSE_RELEASED:          if ev.getType() == ev.MOUSE_RELEASED:
364              p('mainMouse released? - there\'s a bug in here!')              p('mainMouse released? - there\'s a bug in here!')
365                mousePrint(self.lastEvent, 'lastEvent')
366    
367                # workaround..
368                if self.lastEvent.getType() == ev.MOUSE_PRESSED:
369                    p('workaround')
370                    return 1
371    
372              # mainMouse XXX              # mainMouse XXX
373              #ctrl.removePressState()              #ctrl.removePressState()
374              self.context.states.clean()              self.context.states.clean()
375              w.setCursor('default')              w.setCursor('default')
376              # There is a bug in AbstractUpdateManager code(?) and that's why now is must to return.              # There is a bug in AbstractUpdateManager code(?) and that's why now is must to return.
377              # return 1              #return 1
378              return 0              return 0
379          #return 0          #return 0
380            self.lastEvent = ev
381    
382          # ...then see context          # ...then see context
383          if ev.getType() != ev.MOUSE_CLICKED:          if ev.getType() != ev.MOUSE_CLICKED:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26