Cruisers Forum
 


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 18-03-2022, 02:28   #1
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 315
Plugin API information sought

Developers... a request for elucidation...

In ocpn_plugin.h we find the APIs for creating and handling context menus, viz:
  • AddCanvasContextMenuItem
  • RemoveCanvasContextMenuItem
  • SetCanvasContextMenuItem etc.
This is all clear and straight forward.

I also espy a set of APIs without the Context bit, e.g.
  • AddCanvasMenuItem
  • RemoveCanvasMenuItem
  • SetCanvasMenuItem etc.
Peeking at the code in OpenCPN, the former appears to mostly be implemented through the latter's internal mechanisms.
Please can someone explain what the latter set are for? And point me to plugins that use them?

My hunch is that the CanvasMenu set was implemented first and then superseded by the CanvasContext set, which might now be relicts.
Antipole is offline   Reply With Quote
Reply

Tags
plug, plugin


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
OpenCPN plugin API creekorful OpenCPN 2 08-06-2016 06:09
OpenCPN Plugin API Documentation / Routes dachancellor OpenCPN 6 09-03-2016 13:49
Plugin API and documentation rgleason OpenCPN 2 06-11-2015 10:09
Waterlevel API plugin stedy OpenCPN 3 16-06-2015 06:03
Plugin api coding rooiedirk OpenCPN 6 03-04-2013 08:49

Advertise Here


All times are GMT -7. The time now is 20:39.


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.