©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

zoom in wsurf

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



Joined: 02 Feb 2004
Posts: 3

PostPosted: Tue Feb 24, 2004 8:30 am    Post subject: zoom in wsurf Reply with quote

Hi,

is it conceivable to add zoom capabilities to wsurf widget? I mean to move ZoomIn, ZoomOut, ZoomSel and ZoomAll procedures from wavesurfer to wsurf. It will avoid us the hassle of rewriting those functions for each application using wsurf widget. It will especially allow for my second request:

is it possible to add a set of 4 zoom icons to wsurf titlebar (zoomin,zoomout, zoomsel, zoomall)? It is something needed by almost all application using wsurf widget. It is also probably a concern to keep wavesurfer as it is, with zoom icons in menu bar only and not in wsurf title bar. That is why, you could add an option -zoomicon to wsurf (instead of extending possible values of -icon) and hide this option to wavesurfer users.

do you want me to make a proposition in that way?
Back to top
View users profile Send private message
kare



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

PostPosted: Wed Feb 25, 2004 2:33 pm    Post subject: Reply with quote

Great idea! Could have use for it myself instantly in a custom tool I use a lot.
I think we can keep the option -icon for this as well, just hide it from the user in the preferences page, which simply means don't change that code...

I'm looking forward to the code!

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



Joined: 16 Jul 2004
Posts: 2
Location: Tokyo, Japan

PostPosted: Tue Jul 27, 2004 6:49 pm    Post subject: wsurf widget with zoom functions Reply with quote

I want to use a wsurf widget with zoom functions for some custom software.
Can I find it somewhere? If so, could you tell me where I can find it?
Or should I write a code from scratch?

Thanks in advance for your kind help.
_________________
mst
Back to top
View users profile Send private message
kare



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

PostPosted: Mon Aug 02, 2004 10:18 pm    Post subject: Reply with quote

Download the source distribution and check out the wsapp3.tcl demo. This shows how to get zoom icons in the wsurf widgets title bar.

For example create your widget like this:
wsurf .w -icons [list play stop zoomin zoomout]

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





PostPosted: Thu Aug 19, 2004 5:31 pm    Post subject: Python? Reply with quote

Forgive my denseness, but what is the similar command for creating a WaveSurf widget in Python that has the same zoom capabilities?
Back to top
kare



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

PostPosted: Mon Aug 23, 2004 9:54 am    Post subject: Reply with quote

The corresponding Python line is

ws=Wsurf(root,icons='play stop zoomin zoomout')

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





PostPosted: Mon Aug 23, 2004 8:14 pm    Post subject: Thank you Reply with quote

As always, you've been extremely helpful. Thanks kare.
Back to top
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