Zoom GUI in fltk backend
Shai Ayal
shaiay at gmail.com
Mon Jul 20 15:00:36 CDT 2009
On Mon, Jul 20, 2009 at 11:41 AM, Søren Hauberg<soren at hauberg.org> wrote:
> man, 20 07 2009 kl. 09:15 +0100, skrev Michael Goffioul:
>> On Sun, Jul 19, 2009 at 8:24 PM, Søren Hauberg<soren at hauberg.org> wrote:
>> >> Perhaps what we need is a feature to select the axis as current by
>> >> clicking. I think the competition does it that way.
>> >
>> > I think that would be a good approach. I don't know how to do it,
>> > though.
>>
>> I think this is backend's job. The GTK+ backend does this, you may
>> want to look at
>>
>> http://octavede.svn.sourceforge.net/viewvc/octavede/trunk/ui/gh-axesbox.cc?revision=86&view=markup
>>
>> The next step is also to set the figure's currentaxes property.
>
> Thanks, I'll have a look once time permits me.
How about the attached patch? (it's against current hg so it includes
Soren's previous patch). I used the code from octavede. It now
zooms/pans the axes in which the mouse pointer is in. It will not
change the current axes, as I'm not sure I like this idea.
Comments?
Shai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fltk_zoom.patch
Type: text/x-diff
Size: 9455 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090720/5eaa5c44/attachment.bin
More information about the Octave-maintainers
mailing list