Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit/NoteInterface.py
diff options
context:
space:
mode:
authoramartin <olpc@localhost.localdomain>2007-02-17 00:09:40 (GMT)
committer amartin <olpc@localhost.localdomain>2007-02-17 00:09:40 (GMT)
commitc305e07810fc15b62848d28bcb332b783a20a374 (patch)
treeeedc8b65f7a6b22d8e55c87f9371fba6945512f8 /Edit/NoteInterface.py
parentac64a2be0288c0664ec92b888fba86055d61a918 (diff)
XYSliders, several drawing fixes
Diffstat (limited to 'Edit/NoteInterface.py')
-rw-r--r--Edit/NoteInterface.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Edit/NoteInterface.py b/Edit/NoteInterface.py
index 25a160d..c923013 100644
--- a/Edit/NoteInterface.py
+++ b/Edit/NoteInterface.py
@@ -41,7 +41,6 @@ class NoteInterface:
def destroy( self ):
if self.selected:
- print "destroy", self.note.id
self.owner.deselectNotes( { self.note.track: [self] } )
else: # if we were deselected above the rect has already been invalidated
self.owner.invalidate_rect( self.imgX, self.imgY, self.imgWidth, self.imgHeight, self.note.page, True )
@@ -100,7 +99,6 @@ class NoteInterface:
if dirty:
if self.firstTransform:
self.owner.invalidate_rect( self.imgX, self.imgY, self.imgWidth, self.imgHeight, self.note.page, True )
- self.firstTransform = False
else:
x = min( self.imgX, oldX )
y = min( self.imgY, oldY )
@@ -108,6 +106,8 @@ class NoteInterface:
endy = max( self.imgY, oldY ) + self.imgHeight
self.owner.invalidate_rect( x, y, endx-x, endy-y, self.note.page, True )
+ self.firstTransform = False
+
def updateDragLimits( self, dragLimits, leftBound, rightBound, widthBound, maxRightBound ):
left = leftBound - self.note.cs.onset
right = rightBound - self.note.cs.duration - self.note.cs.onset
@@ -306,8 +306,7 @@ class NoteInterface:
def setSelected( self, state ):
if self.selected != state:
self.selected = state
- if self.note.page == self.owner.curPage:
- self.owner.invalidate_rect( self.imgX, self.imgY, self.imgWidth, self.imgHeight, self.note.page )
+ self.owner.invalidate_rect( self.imgX, self.imgY, self.imgWidth, self.imgHeight, self.note.page )
return True # state changed
return False # state is the same