Gesture navigation style is in master

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Gesture navigation style is in master

Post by DeepSOIC »

I'm proud to announce that the new navigation style I had a mission to make since my very first post here, was recently merged into master branch.

It is called "Gesture Navigation Style". Yes, it was made for touchscreens, but it also has a new way of navigating with regular mouse. The main feature is the combined action of left mouse button (LMB): select and rotate view.

Features:
mouse navigation:
* hold LMB and drag to rotate the view (like Inventor, but it also selects!). In sketcher and other editing, hold Alt in addition to rotate.
* hold RMB and drag to pan
* scroll wheel to zoom
* click the wheel to focus on the point under cursor (focus point = point the view rotates around)
* hold RMB+LMB to tilt (New!)
touchscreen navigation
* one-finger drag to rotate the view (works through mouse events)
* two-finger drag to pan. Alternatively, tap-and-hold, then drag.
* pinch to zoom and pan
* two-finger rotate to tilt the view
* tap a point and hit H on keyboard to focus on a point on object

Please keep me posted on if this works on Linux. (I've been developing for Windows 8, and I used Qt's gesture events. Unfortunately, Qt 4.8 gesture support on Windows was hopeless, so I had to mess with Windows API to improve it. I have done nothing special for Linux, so it will be supported only if Qt does a decent job.)

Special thanks to wmayer for a lot of help and merging, and cox for his help on making the code compile on Linux. Also thanks to sgrogan for feedback.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Gesture navigation style is in master

Post by sgrogan »

Congrats DeepSOIC

I'm on Win7 with no touch screen but I like the mouse layout.

Because you like user feedback. ;) What do you think about "zoom to fit" on MMB+RMB?
"fight the good fight"
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Gesture navigation style is in master

Post by DeepSOIC »

sgrogan wrote:What do you think about "zoom to fit" on MMB+RMB?
Well, it's not hard. But that makes me think of making the actions customizable... somehow...
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Gesture navigation style is in master

Post by sgrogan »

Fully customizable like keyboard shortcuts? That's pretty interesting.
But on the other hand I'm sure my preferences are perfect for everyone else :mrgreen:
"fight the good fight"
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Gesture navigation style is in master

Post by NormandC »

DeepSOIC wrote:It is called "Gesture Navigation Style". Yes, it was made for touchscreens, but it also has a new way of navigating with regular mouse.
That a very nice mouse navigation mode, one I would have very much liked to have 5 years ago when I was complaining about CAD navigation. But I got used to it and now I'm afraid I'll be unable to change my ways. :D

Nice job!
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Gesture navigation style is in master

Post by DeepSOIC »

Thanks Normand!
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Gesture navigation style is in master

Post by bejant »

Well done DeepSOIC, it's very easy to use and will help those people who didn't seem to like the way Rotation works in CAD Navigation style.
User avatar
yorik
Founder
Posts: 13660
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Gesture navigation style is in master

Post by yorik »

Yes this is excellent... I'm using it since a couple of days and already hooked, cannot get back to CAD mode anymore :) Well done DeepSOIC!
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Gesture navigation style is in master

Post by DeepSOIC »

Thank you all for encouragement :D
I noticed a few places, where the nav style doesn't work. One is triangle creation, in mesh design (navigation with mouse doesn't work at all, nav. with touchscreen partially works). I guess, other operations from mesh design suffer the same problem.
Another is alignment dialog, where view rotation should be enabled without pressing Alt.
Please report if you find something similar.
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: Gesture navigation style is in master

Post by dubstar-04 »

This works amazing on the macbook pro mouse pad.

I had to use a seperate mouse until now.
Post Reply