Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 05-10-2020, 10:42   #1
Registered User

Join Date: Jun 2017
Posts: 461
Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

Hello,

I think it would be nice if OpenCPN binaries could be upgraded and built
with wxWidgets 3.1.4. They are encouraged for production use already.
With this upgrade I think it could finally support touch gestures which is a big deal for usability in a cockpit. There are new classes to support touch events

https://docs.wxwidgets.org/trunk/cla...ure_event.html

Please consider this upgrade.



Thanks,
—MG
mgrouch is offline   Reply With Quote
Old 06-10-2020, 16:09   #2
Registered User

Join Date: Jun 2017
Posts: 461
Re: Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

I’ve played with wxWidgets 3.1 on raspberry pi. To be exact with their sample from samples/event and it worked awesome. It could zoom with two fingers, rotate, recognize long touch event which can be mapped to currently missing right click emulation in OpenCPN. With this OpenCPN could be finally comfortably used on raspberry pi with touch screens. I was also able to compile OpenCPN with wxWidgets 3.1.4 and GTK3. And it even somewhat started displaying a chart for a second but crashed after that. It issues report I’ve posted the script how to build it. If we could pass that crash I see that I could manage to add event listeners for touch gestures handlers. It could be a big leap forward for touchscreen support on rpi and other Linux platforms.
mgrouch is offline   Reply With Quote
Old 07-10-2020, 16:26   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,710
Images: 2
Re: Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

mgrouch,

I believe that we are not at that point in the development cycle, where this could be done. There are many considerations that the programmers have to consider. Eventually they will get there, but negotiating the various considerations is sometimes difficult, as I understand it.


Perhaps you should make a Tracker request against the development version of Opencpn or the most recent version.
rgleason is offline   Reply With Quote
Old 07-10-2020, 16:53   #4
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,422
Re: Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

What other gestures would be nice?


3 fingers for rotating the chart? 3 fingers and tap to measure, double tap to make route?
seandepagnier is offline   Reply With Quote
Old 08-10-2020, 21:51   #5
Registered User

Join Date: Jun 2017
Posts: 461
Re: Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

I’d say in the order of priority. I do have and I used OpenCPN on my boat in cockpit with touchscreen. long tap for right click, then two finger zoom, and scrolls like on a mobile phone because the scroll bars are tiny on 7”, and switching between apps/closing one starting another not up to today’s standards. but it’s a different story. Probably needs Wayland tiling window manager instead of what is currently in Raspberry OS
mgrouch is offline   Reply With Quote
Old 08-10-2020, 22:00   #6
Registered User

Join Date: Jun 2017
Posts: 461
Re: Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

Automatic pop up of onscreen keyboard for when you hit an input field. This feature exists in Wayland tiling managers. They recognize that you have no real keyboard attached and pop up on screen keyboard
mgrouch is offline   Reply With Quote
Old 09-10-2020, 07:35   #7
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,115
Re: Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

Quote:
Originally Posted by mgrouch View Post
Automatic pop up of onscreen keyboard for when you hit an input field. This feature exists in Wayland tiling managers. They recognize that you have no real keyboard attached and pop up on screen keyboard

MG,


Interesting to see these options for the touchscreens. OpenCPN has a setting for touch screens. But I don't see what this does.


Bram
verkerkbr is offline   Reply With Quote
Old 10-10-2020, 19:16   #8
Registered User

Join Date: Jun 2017
Posts: 461
Re: Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

I’ve made some progress making OpenCPN recognize touch events. Two fingers zoom and long touch for double click. More details here


https://github.com/OpenCPN/OpenCPN/issues/2057
mgrouch is offline   Reply With Quote
Old 11-10-2020, 14:48   #9
Registered User

Join Date: Jun 2017
Posts: 461
Re: Upgrade OpenCPN to wxWidgets 3.1.4 with touch gestures support

More progress. Zoom, pan work with touchscreen. Somehow with OpenGL on zoom needs 3 fingers. Right click with long touch solved too. Copy paste somewhat work with touch. Popping up onscreen keyboard on entering an editable field not working yet. More details here https://github.com/OpenCPN/OpenCPN/issues/2057
mgrouch is offline   Reply With Quote
Reply

Tags
enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bug: squiddio opencpn android -- wxwidgets ensaymist OpenCPN 0 02-01-2020 18:57
wxWidgets Version 2.9 for OpenCPN (Experimental) bdbcat OpenCPN 8 06-06-2011 11:06
OpenCPN and wxWidgets 2.9 bdbcat OpenCPN 9 14-03-2011 22:51
Compatibility wxWidgets 2.9.0 and VC++ 2010 Netsurfer OpenCPN 4 31-05-2010 12:04

Advertise Here


All times are GMT -7. The time now is 14:08.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.