/[gzz]/gzz/gzz/view/buoy/pagespanNodes.py
ViewVC logotype

Diff of /gzz/gzz/view/buoy/pagespanNodes.py

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

revision 1.39 by jvk, Fri Feb 14 18:17:22 2003 UTC revision 1.40 by jvk, Sat Feb 15 10:02:49 2003 UTC
# Line 228  class PageSpanMainNode(BuoyViewMainNode) Line 228  class PageSpanMainNode(BuoyViewMainNode)
228          self.data.layout.request(self.fisheye.curx, self.fisheye.cury,          self.data.layout.request(self.fisheye.curx, self.fisheye.cury,
229                              self.data.layout.w, 1, .8, 2000)                              self.data.layout.w, 1, .8, 2000)
230    
231        def moveTo(self, x, y):
232            if x < 0: x = 0
233            if y < 0: y = 0
234            if x > self.data.layout.w: x = self.data.layout.w
235            if y > self.data.layout.h: y = self.data.layout.h
236            self.fisheye.setCenter(x, y)
237            gzz.client.AbstractUpdateManager.chg()
238            self.doReq()
239    
240      def mouse(self, mouseEvent, oldVS):      def mouse(self, mouseEvent, oldVS):
241          if self.fisheye.event(mouseEvent):          if self.fisheye.event(mouseEvent):
242              self.fisheye.setCoordsysParams()              self.fisheye.setCoordsysParams()
# Line 251  class PageSpanMainNode(BuoyViewMainNode) Line 260  class PageSpanMainNode(BuoyViewMainNode)
260              print "Retransformed:", tmp[0], tmp[1], tmp[2]              print "Retransformed:", tmp[0], tmp[1], tmp[2]
261              x = size[0]              x = size[0]
262              y = size[1]              y = size[1]
263              if x < 0: x = 0              self.moveTo(x, y)
             if y < 0: y = 0  
             if x > self.data.layout.w: x = self.data.layout.w  
             if y > self.data.layout.h: y = self.data.layout.h  
             self.fisheye.setCenter(x, y)  
             gzz.client.AbstractUpdateManager.chg()  
             self.doReq()  
264              # self.setShift(oldVS)              # self.setShift(oldVS)
265              return 0              return 0
266          return 0          return 0

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

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