©2003 Kåre Sjölander and Jonas Beskow
Introduction Download Documentation Links Forum
WaveSurfer user forum

FAQ  FAQ
Search  Search
Memberlist  Memberlist
Register  Register
Profile  Profile
Login  Login

Version 1.6.0 - Comments

 
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer
View previous topic :: View next topic  
Author Message
dzach



Joined: 03 Jul 2003
Posts: 41
Location: Athens, Greece

PostPosted: Tue Jan 13, 2004 10:30 pm    Post subject: Version 1.6.0 - Comments Reply with quote

Kare

Thank you for the new version 1.6.0
I tried to use some plugins (like meanpitch.plug) and I noticed that they appear 3 times in the popup menu. It looks like a bug.

Dimitrios
Back to top
View users profile Send private message Send email Visit posters website
Geoffrey



Joined: 03 Feb 2003
Posts: 32
Location: Belgium

PostPosted: Wed Jan 14, 2004 9:58 am    Post subject: Reply with quote

Hi Dimitrios

I have tried to install that plugin too, with WS 1.6 and do not notice the problem you mention.
Did you notice it for all plugins you installed ?

Regards,
Geoffrey
Back to top
View users profile Send private message
dzach



Joined: 03 Jul 2003
Posts: 41
Location: Athens, Greece

PostPosted: Wed Jan 14, 2004 10:44 am    Post subject: Reply with quote

Geoffrey

I get the problem with all plugins that appear in the popup menu but not in the submenus (i.e. the "Create pane" submenu)

The way the plugins appears is shown in
http://users.hol.gr/~dzach/wavesurfer/ws1.png
http://users.hol.gr/~dzach/wavesurfer/ws2.png
http://users.hol.gr/~dzach/wavesurfer/ws3.png

"Speak" is a plug in of my own.

I get the problem with both the compiled and the source code versions. I don't have the same problem with version 1.5.7

Dimitrios
Back to top
View users profile Send private message Send email Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Wed Jan 14, 2004 11:03 am    Post subject: Reply with quote

The updated meanpitch.plug was not copied to the distribution directory properly, that is fixed now. Try installing it again.

Kåre
Back to top
View users profile Send private message Visit posters website
dzach



Joined: 03 Jul 2003
Posts: 41
Location: Athens, Greece

PostPosted: Wed Jan 14, 2004 9:27 pm    Post subject: Reply with quote

Kåre

the problem remains...
I also get this error when I try to save my configuration:

Code:
can't read "v(-dataspacingmode)": no such element in array
    while executing
"append result "\$widget dataplot::addDataPlot \$pane -backdrop $v(backdrop) -datadirectory \"$v(dataDir)\"  -delimiter \{$v(delimiter)\}  -stylelist \..."
    (procedure "dataplot::getConfiguration" line 6)
    invoked from within
"dataplot::getConfiguration .x.s1 .x.s1.workspace.pane_2"
    ("eval" body line 1)
    invoked from within
"eval $Info(Callback,$plug,getConfigurationProc) $w $pane"
    (procedure "saveConfiguration" line 62)
    invoked from within
"saveConfiguration .x.s1"
    (in namespace inscope "::wsurf" script line 1)
    invoked from within
"::namespace inscope ::wsurf {saveConfiguration .x.s1}"
    (menu invoke)


Dimitrios
Back to top
View users profile Send private message Send email Visit posters website
zak



Joined: 04 Sep 2002
Posts: 6
Location: Umeå

PostPosted: Thu Jan 15, 2004 9:37 am    Post subject: Same problem.. Reply with quote

Hi,

It seems that I have a similar problem with a 1.5 configuration that I copied, used+modified (dataplot max value) and tried to save. Here's my output:

Code:

can't read "v(-dataspacingmode)": no such element in array
    while executing
"append result "\$widget dataplot::addDataPlot \$pane -backdrop $v(backdrop) -datadirectory
\"$v(dataDir)\"  -delimiter \{$v(delimiter)\}  -stylelist \..."
    (procedure "dataplot::getConfiguration" line 6)
    invoked from within
"dataplot::getConfiguration .x.s1 .x.s1.workspace.pane_3"
    ("eval" body line 1)
    invoked from within
"eval $Info(Callback,$plug,getConfigurationProc) $w $pane"
    (procedure "saveConfiguration" line 62)
    invoked from within
"saveConfiguration .x.s1"
    (in namespace inscope "::wsurf" script line 1)
    invoked from within
"::namespace inscope ::wsurf {saveConfiguration .x.s1}"
    invoked from within
".x.s1.popup invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 47)
    invoked from within
"tk::MenuInvoke .x.s1.popup 1"
    (command bound to event)
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Fri Jan 16, 2004 3:13 pm    Post subject: Reply with quote

I've fixed the plug-in try download it from http://www.speech.kth.se/~kare/dataplot.plug

Will of course be included in an updated release.

Kåre
Back to top
View users profile Send private message Visit posters website
Guest






PostPosted: Sat Jan 17, 2004 11:08 pm    Post subject: Reply with quote

Problem corrected.

Dimitrios
Back to top
dzach



Joined: 03 Jul 2003
Posts: 41
Location: Athens, Greece

PostPosted: Wed Jan 21, 2004 9:49 am    Post subject: Problem: multiple menu items of user plugins Reply with quote

I bring this issue up again, as I have not been able to correct the problem that first appeared with version 1.6.0.

Has anybody else noticed the problem with the multiple apearences of the user installed plugins in the mouse popup menu?
_________________
Dimitrios
Back to top
View users profile Send private message Send email Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Wed Jan 21, 2004 10:07 am    Post subject: Reply with quote

The internal API has changed in v1.6, I've should had made this clear.
Taking your speak-plugin as an example. In wsurf v1.5 it looked like this:

proc speak::addMenuEntries {w pane m hook x y} {
if {![string match create $hook]} {
$m add command -label "Speak" -command [namespace code [list SpeakUp $w $pane]]
}
}

For version 1.6 it needs to be modified like this:

proc speak::addMenuEntries {w pane m hook x y} {
# Tell wsurf we want a top level menu item
if {[string match query $hook]} {
return 1
}
# Add own menu item
if {[string match main $hook]} {
$m add command -label "Speak" -command [namespace code [list SpeakUp $w $pane]]
}
}


All your plug-ins need to be updated correspondingly, check out the plug-ins in the WaveSurfer dist for more code examples.

Kåre
Back to top
View users profile Send private message Visit posters website
dzach



Joined: 03 Jul 2003
Posts: 41
Location: Athens, Greece

PostPosted: Wed Jan 21, 2004 11:42 am    Post subject: Reply with quote

kare wrote:
...
For version 1.6 it needs to be modified like this:

proc speak::addMenuEntries {w pane m hook x y} {
# Tell wsurf we want a top level menu item
if {[string match query $hook]} {
return 1
}
# Add own menu item
if {[string match main $hook]} {
$m add command -label "Speak" -command [namespace code [list SpeakUp $w $pane]]
}
}


All your plug-ins need to be updated correspondingly, check out the plug-ins in the WaveSurfer dist for more code examples.

Kåre


Thank you Kare.

It actually should be:
Code:
   # Add own menu item
   if {[string length $hook]==0} {
      $m add command -label "Speak" -command [namespace code [list SpeakUp $w $pane]]
   }


for my code to work.

After I reinstalled all plugins from the Help->About Plugins menu, everything works fine. Maybe users should be warned at the download page that they need to reinstall all plug ins due to this change of the API.

I' will update my code in the other post also.
_________________
Dimitrios
Back to top
View users profile Send private message Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.1 © 2001, 2002 phpBB Group