[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: |
Wed, 25 Jun 2003 20:27:10 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Branch:
Changes by: Matti Katila <address@hidden> 03/06/25 20:27:10
Modified files:
vob/buoy : buoymanager.py
Log message:
event code
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/buoy/buoymanager.py.diff?tr1=1.32&tr2=1.33&r1=text&r2=text
Patches:
Index: libvob/vob/buoy/buoymanager.py
diff -u libvob/vob/buoy/buoymanager.py:1.32 libvob/vob/buoy/buoymanager.py:1.33
--- libvob/vob/buoy/buoymanager.py:1.32 Tue Jun 24 07:19:43 2003
+++ libvob/vob/buoy/buoymanager.py Wed Jun 25 20:27:10 2003
@@ -51,7 +51,7 @@
dbg = 0
def pa(*s):
- print 'vob.buoy.buoymanager::',s
+ print 'buoymanager::',s
pa("LOADING BUOYMANAGER")
@@ -210,15 +210,16 @@
self.replaceScene = None
self.events = eventHandler
self.context = context
+ self.lastIndex = 0
def key(self, key):
- if self.geometer.key(key):
- return
- if self.events != None:
- self.events.key(self, key)
+ if hasattr(self.geometer, 'key'):
+ self.geometer.key(key)
def getVs(self):
return self.vs;
def getSingles(self):
return self.singles
+ def getLastMain(self):
+ return self.singles[self.lastmain].getMain()
def scene(self, vs):
if self.replaceScene:
sc = self.replaceScene
@@ -246,19 +247,28 @@
nadirCS)
def mouse(self, ev):
- if self.events != None:
- self.events.mouse(self, ev)
+ if not hasattr(self, 'vs'):
+ vob.AbstractUpdateManager.setNoAnimation()
+ vob.AbstractUpdateManager.chg()
return
-
+
if hasattr(self.geometer, 'mouse') and \
self.geometer.mouse(ev, self.vs):
return
+
+ if ev.getID() == ev.MOUSE_DRAGGED:
+ if self.singles[self.lastIndex].mainNode.mouse(ev, self.vs):
+ self.replaceScene = self.vs
+ vob.AbstractUpdateManager.setNoAnimation()
+ vob.AbstractUpdateManager.chg()
+ return
+
x, y = ev.getX(), ev.getY()
cs = self.vs.getCSAt(0, x, y, None)
for single in self.singles:
link = single.cs.get(cs, None)
if link != None:
- # print "IN CS: ",cs, link
+ # pa("IN CS: ",cs, link)
if hasattr(self.geometer, 'buoyMouse') and \
self.geometer.buoyMouse(self, ev, single, link):
return
@@ -274,6 +284,7 @@
if self.singles[i].mainNode.mouseClickHit(ev, self.vs, None):
self.context.setMainNodeIndex(i)
self.lastIndex = i
+
if self.singles[i].mainNode.mouse(ev, self.vs):
self.replaceScene = self.vs
vob.AbstractUpdateManager.setNoAnimation()
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Benja Fallenstein, 2003/06/07
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Benja Fallenstein, 2003/06/07
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Benja Fallenstein, 2003/06/08
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Benja Fallenstein, 2003/06/09
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/06/19
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/06/24
- [Gzz-commits] libvob/vob/buoy buoymanager.py,
Matti Katila <=
- [Gzz-commits] libvob/vob/buoy buoymanager.py, Matti Katila, 2003/06/26