38#include <wx/fileconf.h> 
   41#include "wxWTranslateCatalog.h" 
   43#define MY_API_VERSION_MAJOR 1 
   44#define MY_API_VERSION_MINOR 8 
   49#include "GeomagnetismHeader.h" 
   51#include "WmmUIDialog.h" 
   52#include "MagneticPlotMap.h" 
   54#include "jsonreader.h" 
   55#include "jsonwriter.h" 
   61#define WMM_TOOL_POSITION -1   
   68              const wxString &title = _T(
"WMM"),
 
   69              const wxPoint &pos = wxDefaultPosition,
 
   70              const wxSize &size = wxSize(250, 495),
 
   71              long style = wxCAPTION | wxDEFAULT_FRAME_STYLE | wxTAB_TRAVERSAL |
 
   72                           wxFRAME_FLOAT_ON_PARENT | wxFRAME_NO_TASKBAR)
 
   76  void EnablePlotChanged(wxCommandEvent &event);
 
   77  void PlotSettings(wxCommandEvent &event);
 
 
   86                        const wxString &title = _(
"Magnetic Plot Settings"),
 
   87                        const wxPoint &pos = wxDefaultPosition,
 
   88                        const wxSize &size = wxSize(375, 180),
 
   89                        long style = wxDEFAULT_DIALOG_STYLE)
 
   92  void About(wxCommandEvent &event);
 
   93  void Save(wxCommandEvent &event) { EndDialog(wxID_OK); }
 
   94  void Cancel(wxCommandEvent &event) { EndDialog(wxID_CANCEL); }
 
 
  121  void RecomputePlot();
 
  125  void ShowPlotSettingsDialog(wxCommandEvent &event);
 
  131  void SetPluginMessage(wxString &message_id, wxString &message_body);
 
  133  void SetShowPlot(
bool showplot) { m_bShowPlot = showplot; }
 
  136  void SetWmmDialogX(
int x) { m_wmm_dialog_x = x; };
 
  137  void SetWmmDialogY(
int x) { m_wmm_dialog_y = x; }
 
  139  void OnWmmDialogClose();
 
  153  wxWindow *m_parent_window;
 
  159  wxFileConfig *m_pconfig;
 
  160  bool LoadConfig(
void);
 
  161  bool SaveConfig(
void);
 
  163  int m_wmm_dialog_x, m_wmm_dialog_y;
 
  164  int m_display_width, m_display_height;
 
  166  bool m_bShowPlotOptions;
 
  167  bool m_bShowAtCursor;
 
  168  bool m_bShowLiveIcon;
 
  174  int m_leftclick_tool_id;
 
  176  wxString AngleToText(
double angle);
 
  178  bool m_bCachedPlotOk, m_bShowPlot;
 
  179  MagneticPlotMap m_DeclinationMap, m_InclinationMap, m_FieldStrengthMap;
 
  180  wxDateTime m_MapDate;
 
  182  int m_MapPoleAccuracy;
 
  184  void RearrangeWindow();
 
  187  bool m_buseable, m_busegeoid;
 
  189  void SendVariationAt(
double lat, 
double lon, 
int year, 
int month, 
int day);
 
  190  void SendBoatVariation();
 
  191  void SendCursorVariation();
 
  196  bool m_bComputingPlot;
 
  199  wxString m_shareLocn;
 
 
The OpenCPN About dialog displaying information including version, authors, license,...
Basic position fix information.
Contains view parameters and status information for a chart display viewport.
Class WmmPlotSettingsDialogBase.
void OnToolbarToolCallback(int id)
Handles toolbar tool clicks.
int GetAPIVersionMajor()
Returns the major version number of the plugin API that this plugin supports.
wxString GetCommonName()
Get the plugin's common (short) name.
void SetColorScheme(PI_ColorScheme cs)
Updates plugin color scheme.
int GetToolbarToolCount(void)
Returns the number of toolbar tools this plugin provides.
void SetPositionFix(PlugIn_Position_Fix &pfix)
Updates plugin with current position fix data at regular intervals.
bool DeInit(void)
Clean up plugin resources.
void ShowPreferencesDialog(wxWindow *parent)
Shows the plugin preferences dialog.
void SetCursorLatLon(double lat, double lon)
Receives cursor lat/lon position updates.
int Init(void)
Initialize the plugin and declare its capabilities.
wxString GetShortDescription()
Get a brief description of the plugin.
int GetPlugInVersionMinor()
Returns the minor version number of the plugin itself.
wxString GetLongDescription()
Get detailed plugin information.
wxBitmap * GetPlugInBitmap()
Get the plugin's icon bitmap.
int GetAPIVersionMinor()
Returns the minor version number of the plugin API that this plugin supports.
int GetPlugInVersionMajor()
Returns the major version number of the plugin itself.
bool RenderGLOverlay(wxGLContext *pcontext, PlugIn_ViewPort *vp)
Renders plugin overlay graphics in OpenGL mode for single canvas.
PlugIn Object Definition/API.
PI_ColorScheme
Color schemes for different lighting conditions.