Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/SynthLab
diff options
context:
space:
mode:
authorOli <olpc@localhost.localdomain>2007-02-04 07:46:17 (GMT)
committer Oli <olpc@localhost.localdomain>2007-02-04 07:46:17 (GMT)
commit2e0b154865aae4aa0bad9ae32f871c404800e6e4 (patch)
tree569079ddd29ffb1ebec8c8c29dad9bdbf7ad80a8 /SynthLab
parenta10756df6e04266a5c472e10cbdd47a7e2a9ef4f (diff)
Display of parameter's name when mouse is over inputs
Diffstat (limited to 'SynthLab')
-rw-r--r--SynthLab/SynthLabWindow.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/SynthLab/SynthLabWindow.py b/SynthLab/SynthLabWindow.py
index 7cd2702..7ce1dc6 100644
--- a/SynthLab/SynthLabWindow.py
+++ b/SynthLab/SynthLabWindow.py
@@ -374,12 +374,28 @@ class SynthLabWindow( gtk.Window ):
and i != self.objectCount-1: continue
if self.bounds[i][0] < event.x < self.bounds[i][2] and self.bounds[i][1] < event.y < self.bounds[i][3]:
gate = self.testGates( i, event.x-self.locations[i][0], event.y-self.locations[i][1] )
- if gate: self.highlightGate( i, gate )
- else: self.highlightGate( None )
+ if gate:
+ self.highlightGate( i, gate )
+ choosen = SynthLabConstants.CHOOSE_TYPE[i/4][self.typesTable[i]]
+ str = Tooltips.SYNTHTYPES[i/4][self.typesTable[i]] + ': ' + Tooltips.SYNTHPARA[choosen][gate[1]]
+ if gate[0] == 1:
+ if self.parameterOpen:
+ self.parameterUpdate( str )
+ else:
+ self.parameter = Parameter( str )
+ self.parameterOpen = 1
+ else:
+ self.highlightGate( None )
+ if self.parameterOpen:
+ self.parameter.hide()
+ self.parameterOpen = 0
self.highlightWire( None )
return
# didn't find a gate
self.highlightGate( None )
+ if self.parameterOpen:
+ self.parameter.hide()
+ self.parameterOpen = 0
# check for wires
i = self.wireUnderLoc( event.x, event.y )
if i >= 0: self.highlightWire( i )
@@ -781,6 +797,7 @@ class SynthLabWindow( gtk.Window ):
mess = "f5202 0 16 -2 " + " " .join([str(n) for n in fxParametersTable])
self.csnd.inputMessage( mess )
time.sleep(.01)
+ self.typesTable = typesTable
lastTable = [0]*12
for i in range(12):
if i in self.outputs:
@@ -1039,6 +1056,7 @@ class SynthLabWindow( gtk.Window ):
f = shelve.open( Config.TAM_TAM_ROOT + '/Resources/SynthFiles/' + preset, 'r')
self.loadState(f)
f.close()
+ self.handleSaveTemp()
def initRadioButton( self, labelList, methodCallback, box ):
for i in range( len( labelList ) ):