OpenCPN Partial API docs
Loading...
Searching...
No Matches
grib_ui_dlg.cpp File Reference

GribUIDialog.h. More...

#include "pi_gl.h"
#include "wx/wx.h"
#include "wx/tokenzr.h"
#include "wx/datetime.h"
#include "wx/sound.h"
#include <wx/wfstream.h>
#include <wx/dir.h>
#include <wx/filename.h>
#include <wx/debug.h>
#include <wx/graphics.h>
#include <wx/regex.h>
#include <wx/sysopt.h>
#include <wx/stdpaths.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "jsonwriter.h"
#include "ocpn_plugin.h"
#include "grib_pi.h"
#include "grib_table.h"
#include "email.h"
#include "folder.xpm"
#include "grib_ui_dlg.h"
#include <wx/arrimpl.cpp>

Go to the source code of this file.

Classes

class  FileCollector
 

Macros

#define DEFAULT_STYLE    = wxCAPTION | wxCLOSE_BOX | wxSYSTEM_MENU | wxTAB_TRAVERSAL
 

Functions

 WX_DEFINE_OBJARRAY (ArrayOfGribRecordSets)
 
wxWindow * GetGRIBCanvas ()
 

Variables

double m_cursor_lat
 
double m_cursor_lon
 
int m_Altitude
 
int m_DialogStyle
 
int m_SavedZoneSelMode
 Persisted version of the GRIB area selection mode.
 
int m_ZoneSelMode
 Tracks the current state of GRIB area selection for zone coordinates.
 
GribPig_pi
 

Detailed Description

GribUIDialog.h.

Definition in file grib_ui_dlg.cpp.

Macro Definition Documentation

◆ DEFAULT_STYLE

#define DEFAULT_STYLE    = wxCAPTION | wxCLOSE_BOX | wxSYSTEM_MENU | wxTAB_TRAVERSAL

Definition at line 109 of file grib_ui_dlg.cpp.

Function Documentation

◆ GetGRIBCanvas()

wxWindow * GetGRIBCanvas ( )

Definition at line 126 of file grib_ui_dlg.cpp.

Variable Documentation

◆ g_pi

GribPi* g_pi
extern

Definition at line 59 of file grib_pi.cpp.

◆ m_Altitude

int m_Altitude

Definition at line 58 of file grib_ui_dlg.cpp.

◆ m_cursor_lat

double m_cursor_lat

Definition at line 57 of file grib_ui_dlg.cpp.

◆ m_cursor_lon

double m_cursor_lon

Definition at line 57 of file grib_ui_dlg.cpp.

◆ m_DialogStyle

int m_DialogStyle

Definition at line 59 of file grib_ui_dlg.cpp.

◆ m_SavedZoneSelMode

int m_SavedZoneSelMode

Persisted version of the GRIB area selection mode.

This value is saved to and loaded from the OpenCPN config file, allowing the user's preferred selection mode to persist between sessions. The value is used to:

  • Restore the last used selection mode on startup.
  • Keep track of the mode when dialog is closed/reopened.
  • Revert to previous mode if changes are cancelled.

Definition at line 70 of file grib_ui_dlg.cpp.

◆ m_ZoneSelMode

int m_ZoneSelMode

Tracks the current state of GRIB area selection for zone coordinates.

This state controls:

  • Whether coordinates come from viewport or mouse area selection.
  • When to display the selection overlay during drawing.
  • When to update the lat/lon input fields.

A typical mouse area selection flow:

  1. START_SELECTION when manual mode chosen.
  2. DRAW_SELECTION when user starts Shift+drag.
  3. COMPLETE_SELECTION when user releases mouse button.

Definition at line 84 of file grib_ui_dlg.cpp.