|
From: Mojca M. <moj...@gm...> - 2011-08-01 16:40:40
|
On Mon, Aug 1, 2011 at 17:28, sfeam (Ethan Merritt) wrote: > >> - The window stays behind the terminal when plotting to it > > [shrug] I consider that a very desirable feature. But I believe you > can configure it differently using ./configure --raise-console I will try. >> (but on the >> other hand that is almost the same in matlab); this is slightly >> non-desirable and probably easy to fix if one knows what to fix. >> >> - wxt seems to be great in supporting a lot of mouse events (scroll >> left & right, zoom in & out); would there be any chance to add left & >> right scrolling and zoom in & out events based on "mouse gestures" >> supported by apple? Apple's mouse supports scrolling left and right >> and zooming in and out natively. These events would only have to >> become synonyms with current shift+scroll up/down. > > If you can figure out what the event/keystroke/whatever > the system sends when it sees these "gestures", then you can simply > add them to the dispatch table in gpexecute.c and/or mouse.c I don't understand how gpexecute.c and mouse.c work, but I see that wx_gui.c does quite a lot with mouse. There seems to be GetWheelAxis() in http://docs.wxwidgets.org/trunk/classwx_mouse_event.html, but I'm not sure how well that works if it works at all (no idea what happens in case of diagonal movements). I don't find any zoom event in wxt tutorial. There is a documentation for Mac (NSEventTypeSwipe & NSEventTypeMagnify working since 10.6): https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/HandlingTouchEvents/HandlingTouchEvents.html#//apple_ref/doc/uid/10000060i-CH13-SW10 but I have no idea yet where those events could be plugged it. >> - After I play with zoom a bit, I'm unable to go back to original/auto >> focus; also when I plot the next function, the zoom still stays at >> some weird place where it was left at the first plot; I'm unable to >> figure out how to get default scale. > > Type "u" for "unzoom" in the plot window? > (not sure what you mean by "auto focus") Yes, "u" works perfectly. The problem is that I was playing with buttons in the window: - replot - apply previous zoom settings - apply next zoom settings - apply autoscale None of them was able to reproduce the behaviour of "u". If I can use mouse to change the range, I would find it useful to be able to use the mouse to revert the change as well. > Anyhow, I take it the bottom line is that wxWidgets 2.8 does work, > but 2.9 does not? True. I'm not sure what is wrong with 2.9, but it might also be a bug in their code, not just the need to rewrite the program. It would make a lot of sense to resolve such bugs before 3.0 is released, but I don't know how to create a minimal example to submit a bug report (if there is one). Mojca |