[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/vob/buoy buoymanager.py
From: |
Matti Katila |
Subject: |
[Gzz-commits] libvob/vob/buoy buoymanager.py |
Date: |
Mon, 26 May 2003 15:05:41 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Matti Katila <address@hidden> 03/05/26 15:05:41
Modified files:
vob/buoy : buoymanager.py
Log message:
more save and load
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/buoy/buoymanager.py.diff?tr1=1.24&tr2=1.25&r1=text&r2=text
Patches:
Index: libvob/vob/buoy/buoymanager.py
diff -u libvob/vob/buoy/buoymanager.py:1.24 libvob/vob/buoy/buoymanager.py:1.25
--- libvob/vob/buoy/buoymanager.py:1.24 Fri May 23 17:18:25 2003
+++ libvob/vob/buoy/buoymanager.py Mon May 26 15:05:41 2003
@@ -69,6 +69,7 @@
"""
self.mainNode = mainNode
self.connectors = connectors
+ def getMainNode(self): return self.mainNode
def _nadir(self, cs):
n = self.vs.coords.nadirUnitSq(cs, self.nadirCS)
self.vs.matcher.add(cs, n, "NADIR")
@@ -258,12 +259,16 @@
# ...then see context
if ev.getID() != ev.MOUSE_CLICKED: return
self.context.setMainNodeIndex(self.lastIndex)
- main = self.context.doMouse(ev, self.vs)
- if main != None:
- self.singles[self.lastIndex] = SingleFocusManager(main,
self.connectors)
- #ff.view.MainNode2D(plane,
- #self.singles[self.lastIndex].getView2D(),
- #0,0, 1)
+ planes = []
+ for single in self.singles:
+ planes.append(single.getMainNode())
+ #newPlanes = jarray.zeros(len(self.singles), 'c')
+ newPlanes = self.context.doMouse(ev, self.vs, planes)
+ if newPlanes != None and planes != newPlanes:
+ for i in range(0, len(newPlanes)):
+ self.singles[i] = SingleFocusManager(
+ newPlanes[i],
+ self.connectors)
vob.AbstractUpdateManager.chg()
#else:
# self.context.setMainNodeIndex(self.lastIndex)
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/05/02
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/05/16
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Tuomas J. Lukka, 2003/05/16
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/05/19
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/05/21
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/05/21
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/05/23
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/05/23
- [Gzz-commits] libvob/vob/buoy buoymanager.py,
Matti Katila <=