Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit/TrackInterface.py
diff options
context:
space:
mode:
authoramartin <olpc@localhost.localdomain>2007-01-20 23:35:14 (GMT)
committer amartin <olpc@localhost.localdomain>2007-01-20 23:35:14 (GMT)
commit76a123a685ca0ae0cdfbd345488bbab1af455865 (patch)
treec8e21439822bed01422711bca7937ba2a410aaf3 /Edit/TrackInterface.py
parent3ef626cf8302e8c7ec32a385adef3f6fb76776b8 (diff)
faster image widgets (for images w/o alpha)
tool buttons in edit mode
Diffstat (limited to 'Edit/TrackInterface.py')
-rw-r--r--Edit/TrackInterface.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Edit/TrackInterface.py b/Edit/TrackInterface.py
index 4abf75a..af4f836 100644
--- a/Edit/TrackInterface.py
+++ b/Edit/TrackInterface.py
@@ -38,7 +38,7 @@ class TrackInterface( gtk.EventBox ):
self.width = 1
self.height = 1
- self.interfaceMode = INTERFACEMODE.DRAW
+ self.interfaceMode = INTERFACEMODE.DEFAULT
self.note = {} # list of pages, tracks, and notes: self.note[pageId][trackId][noteId]
self.pageBeatCount = {} # keep track of the beat count for each page
@@ -307,6 +307,14 @@ class TrackInterface( gtk.EventBox ):
if self.trackSelected[i]: r.append( i )
return r
+ def setInterfaceMode( self, mode ):
+ if mode == "Draw":
+ self.interfaceMode = INTERFACEMODE.DRAW
+ elif mode == "Paste":
+ self.interfaceMode = INTERFACEMODE.PASTE
+ else:
+ self.interfaceMode = INTERFACEMODE.DEFAULT
+
# private
def updateNoteMap( self, page ):
self.noteMap[page] = {}