31 #include <unordered_map>
35 #include <wx/arrstr.h>
37 #include <wx/dcmemory.h>
39 #include <wx/glcanvas.h>
40 #include <wx/notebook.h>
41 #include <wx/string.h>
42 #include <wx/window.h>
46 extern wxWindow* gFrame;
79 static wxBitmap* bitmap = 0;
80 if (!bitmap) bitmap =
new wxBitmap(1,1);
84 opencpn_plugin::~opencpn_plugin() {}
86 int opencpn_plugin::Init(
void) {
return 0; }
88 bool opencpn_plugin::DeInit(
void) {
return true; }
90 int opencpn_plugin::GetAPIVersionMajor() {
return 1; }
92 int opencpn_plugin::GetAPIVersionMinor() {
return 2; }
94 int opencpn_plugin::GetPlugInVersionMajor() {
return 1; }
96 int opencpn_plugin::GetPlugInVersionMinor() {
return 0; }
98 wxString opencpn_plugin::GetCommonName() {
return "BaseClassCommonName"; }
100 wxString opencpn_plugin::GetShortDescription() {
101 return "OpenCPN PlugIn Base Class";
104 wxString opencpn_plugin::GetLongDescription() {
105 return "OpenCPN PlugIn Base Class\n\
106 PlugInManager created this base class";
111 void opencpn_plugin::SetNMEASentence(wxString& sentence) {}
113 void opencpn_plugin::SetAISSentence(wxString& sentence) {}
115 int opencpn_plugin::GetToolbarToolCount(
void) {
return 0; }
117 int opencpn_plugin::GetToolboxPanelCount(
void) {
return 0; }
119 void opencpn_plugin::SetupToolboxPanel(
int page_sel, wxNotebook* pnotebook) {}
121 void opencpn_plugin::OnCloseToolboxPanel(
int page_sel,
int ok_apply_cancel) {}
123 void opencpn_plugin::ShowPreferencesDialog(wxWindow* parent) {}
125 void opencpn_plugin::OnToolbarToolCallback(
int id) {}
127 void opencpn_plugin::OnContextMenuItemCallback(
int id) {}
129 bool opencpn_plugin::RenderOverlay(wxMemoryDC* dc,
PlugIn_ViewPort* vp) {
133 void opencpn_plugin::SetCursorLatLon(
double lat,
double lon) {}
137 void opencpn_plugin::SetDefaults(
void) {}
139 void opencpn_plugin::ProcessParentResize(
int x,
int y) {}
141 void opencpn_plugin::SetColorScheme(PI_ColorScheme cs) {}
143 void opencpn_plugin::UpdateAuiStatus(
void) {}
145 wxArrayString opencpn_plugin::GetDynamicChartClassNameArray() {
151 opencpn_plugin_16::opencpn_plugin_16(
void* pmgr) :
opencpn_plugin(pmgr) {}
153 opencpn_plugin_16::~opencpn_plugin_16(
void) {}
159 void opencpn_plugin_16::SetPluginMessage(wxString& message_id,
160 wxString& message_body) {}
163 opencpn_plugin_17::opencpn_plugin_17(
void* pmgr) :
opencpn_plugin(pmgr) {}
165 opencpn_plugin_17::~opencpn_plugin_17(
void) {}
171 bool opencpn_plugin_17::RenderGLOverlay(wxGLContext* pcontext,
176 void opencpn_plugin_17::SetPluginMessage(wxString& message_id,
177 wxString& message_body) {}
180 opencpn_plugin_18::opencpn_plugin_18(
void* pmgr) :
opencpn_plugin(pmgr) {}
182 opencpn_plugin_18::~opencpn_plugin_18(
void) {}
188 bool opencpn_plugin_18::RenderGLOverlay(wxGLContext* pcontext,
193 void opencpn_plugin_18::SetPluginMessage(wxString& message_id,
194 wxString& message_body) {}
201 opencpn_plugin_19::~opencpn_plugin_19(
void) {}
203 void opencpn_plugin_19::OnSetupOptions(
void) {}
208 opencpn_plugin_110::~opencpn_plugin_110(
void) {}
210 void opencpn_plugin_110::LateInit(
void) {}
215 opencpn_plugin_111::~opencpn_plugin_111(
void) {}
220 opencpn_plugin_112::~opencpn_plugin_112(
void) {}
222 bool opencpn_plugin_112::MouseEventHook(wxMouseEvent& event) {
return false; }
224 void opencpn_plugin_112::SendVectorChartObjectInfo(
225 wxString& chart, wxString& feature, wxString& objname,
double lat,
226 double lon,
double scale,
int nativescale) {}
231 opencpn_plugin_113::~opencpn_plugin_113(
void) {}
233 bool opencpn_plugin_113::KeyboardEventHook(wxKeyEvent& event) {
return false; }
235 void opencpn_plugin_113::OnToolbarToolDownCallback(
int id) {}
236 void opencpn_plugin_113::OnToolbarToolUpCallback(
int id) {}
241 opencpn_plugin_114::~opencpn_plugin_114(
void) {}
246 opencpn_plugin_115::~opencpn_plugin_115(
void) {}
251 opencpn_plugin_116::~opencpn_plugin_116(
void) {}
253 bool opencpn_plugin_116::RenderGLOverlayMultiCanvas(wxGLContext* pcontext,
259 bool opencpn_plugin_116::RenderOverlayMultiCanvas(wxDC& dc,
PlugIn_ViewPort* vp,
264 void opencpn_plugin_116::PrepareContextMenu(
int canvasIndex) {
return; }
269 int opencpn_plugin_117::GetPlugInVersionPatch() {
return 0; };
virtual const char * GetPlugInVersionPre()
Pre-release tag version part, see GetPlugInVersionPatch()
virtual const char * GetPlugInVersionBuild()
Build version part see GetPlugInVersionPatch().
virtual int GetPlugInVersionPost()
Post-release version part, extends the semver spec.
virtual bool RenderGLOverlayMultiCanvas(wxGLContext *pcontext, PlugIn_ViewPort *vp, int canvasIndex, int priority)
Render plugin overlay over chart canvas in OpenGL mode.
virtual bool RenderOverlayMultiCanvas(wxDC &dc, PlugIn_ViewPort *vp, int canvas_ix, int priority)
Render plugin overlay over chart canvas in non-OpenGL mode.
virtual wxBitmap * GetPlugInBitmap()
FIXME static wxBitmap* LoadSVG(const wxString filename, unsigned int width, unsigned int height) { if...