From: Mojca M. <moj...@gm...> - 2012-01-08 17:23:49
|
Hello, I would like to ask just for a few pointers, not any real code. Gnuplot supports Shift+scroll up/down to move left/right on the graph. However the trackpad on Mac OS X is capable of scrolling left/right as well, as well as zooming in/out. That would be a lot more handly than trying to remember which key to press along with a mouse. Here are some references from Apple & Qt documentation for zoom in/out (pinch): http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSResponder_Class/Reference/Reference.html#//apple_ref/occ/instm/NSResponder/magnifyWithEvent: http://doc.qt.nokia.com/4.7-snapshot/qpinchgesture.html http://doc.qt.nokia.com/4.7-snapshot/gestures-overview.html ... ok, maybe after all I was wrong about horizontal scrolling if I'm looking at the right document: https://bugreports.qt.nokia.com/browse/QTBUG-9054, but at least pinch should work. My question is: where exactly could I plug in the Cocoa or Qt code if I want to play with gestures? In particular, I don't understand where for example GE_buttonrelease comes from (what triggers it). Mojca PS: Qt terminal is a tiny bit buggy. Scrolling left/right results in scrolling of graph up/down. Even if scrolling left/right is not yet supported, it should at least not try to be clever and scroll up/down. |