OpenCPN Partial API docs
Loading...
Searching...
No Matches
OCPNPlatform Class Reference
Inheritance diagram for OCPNPlatform:
BasePlatform

Public Member Functions

bool startBluetoothScan ()
 
wxArrayString getBluetoothScanResults ()
 
bool stopBluetoothScan ()
 
void Initialize_2 (void)
 
void Initialize_3 (void)
 
void SetDefaultOptions (void)
 
void SetUpgradeOptions (wxString vString, wxString vStringConfig)
 
void applyExpertMode (bool mode)
 
double getFontPointsperPixel (void)
 
wxSize getDisplaySize ()
 
double GetDisplaySizeMM ()
 
double GetDisplayAreaCM2 ()
 
virtual double GetDisplayDPmm ()
 
void SetDisplaySizeMM (double size)
 
unsigned int GetSelectRadiusPix ()
 
double GetToolbarScaleFactor (int GUIScaleFactor)
 
double GetCompassScaleFactor (int GUIScaleFactor)
 
wxFileDialog * AdjustFileDialogFont (wxWindow *container, wxFileDialog *dlg)
 
wxDirDialog * AdjustDirDialogFont (wxWindow *container, wxDirDialog *dlg)
 
void PositionAISAlert (wxWindow *alert_window)
 
float GetChartScaleFactorExp (float scale_linear)
 
float GetMarkScaleFactorExp (float scale_linear)
 
int GetStatusBarFieldCount ()
 
bool GetFullscreen ()
 
bool SetFullscreen (bool bFull)
 
bool AllowAlertDialog (const wxString &class_name)
 
double GetDisplayDensityFactor ()
 
long GetDefaultToolbarOrientation ()
 
MyConfigGetConfigObject ()
 
wxString GetSupplementalLicenseString ()
 
int DoFileSelectorDialog (wxWindow *parent, wxString *file_spec, wxString Title, wxString initDir, wxString suggestedName, wxString wildcard)
 
int DoDirSelectorDialog (wxWindow *parent, wxString *file_spec, wxString Title, wxString initDir, bool b_addFiles=true)
 
void setChartTypeMaskSel (int mask, wxString &indicator)
 
bool isPlatformCapable (int flag)
 
void LaunchLocalHelp ()
 
void DoHelpDialog (void)
 
int platformApplyPrivateSettingsString (wxString settings, ArrayOfCDI *pDirArray)
 
void platformLaunchDefaultBrowser (wxString URL)
 
void SetLocaleSearchPrefixes (void)
 
wxString GetDefaultSystemLocale ()
 
bool BuildGLCaps (void *pbuf)
 
bool IsGLCapable ()
 
- Public Member Functions inherited from BasePlatform
wxString & GetPrivateDataDir ()
 
wxString * GetPluginDirPtr ()
 
wxString * GetSharedDataDirPtr ()
 
wxString * GetPrivateDataDirPtr ()
 
wxString & GetPluginDir ()
 The original in-tree plugin directory, sometimes not user-writable. More...
 
wxStandardPaths & GetStdPaths ()
 
wxString GetWinPluginBaseDir ()
 Base directory for user writable windows plugins, reflects winPluginDir option, defaults to LOCALAPPDATA%/opencpn. More...
 
wxString & GetSharedDataDir ()
 
wxString & GetExePath ()
 
wxString & GetHomeDir ()
 
wxString GetWritableDocumentsDir ()
 
wxString GetPluginDataPath ()
 Return ';'-separated list of base directories for plugin data. More...
 
wxString & GetConfigFileName ()
 
wxString & GetLogFileName ()
 
bool isFlatpacked ()
 
bool isPlatformCapable (int flag)
 
OCPN_OSDetailGetOSDetail ()
 
void CloseLogFile (void)
 
bool InitializeLogFile (void)
 
wxString & GetLargeLogMessage (void)
 
FILE * GetLogFilePtr ()
 
wxString NormalizePath (const wxString &full_path)
 
virtual wxSize getDisplaySize ()
 
virtual double GetDisplaySizeMM ()
 
virtual double GetDisplayDPmm ()
 
virtual unsigned int GetSelectRadiusPix ()
 
double GetDisplayDIPMult (wxWindow *win)
 
void ShowBusySpinner ()
 
void HideBusySpinner ()
 

Static Public Member Functions

static bool hasInternalGPS (wxString profile=_T(""))
 
static bool hasInternalBT (wxString profile=_T(""))
 
static void Initialize_1 (void)
 
static void Initialize_4 (void)
 
static void OnExit_1 (void)
 
static void OnExit_2 (void)
 
static void ShowBusySpinner (void)
 
static void HideBusySpinner (void)
 

Public Attributes

double m_pt_per_pixel
 

Additional Inherited Members

- Protected Member Functions inherited from BasePlatform
bool DetectOSDetail (OCPN_OSDetail *detail)
 
- Protected Attributes inherited from BasePlatform
wxString m_PrivateDataDir
 
wxString m_PluginsDir
 
bool m_isFlatpacked
 
wxString m_homeDir
 
wxString m_exePath
 
wxString m_SData_Dir
 
wxString m_config_file_name
 
wxString m_pluginDataPath
 
wxString mlog_file
 
OCPN_OSDetailm_osDetail
 
FILE * flog
 
wxLog * m_Oldlogger
 
wxString large_log_message
 
wxSize m_displaySize
 
wxSize m_displaySizeMM
 
int m_displaySizeMMOverride
 
int m_monitorWidth
 
int m_monitorHeight
 
bool m_bdisableWindowsDisplayEnum
 

Detailed Description

Definition at line 67 of file OCPNPlatform.h.

Constructor & Destructor Documentation

◆ OCPNPlatform()

OCPNPlatform::OCPNPlatform ( )

Definition at line 279 of file OCPNPlatform.cpp.

◆ ~OCPNPlatform()

OCPNPlatform::~OCPNPlatform ( )
virtual

Definition at line 289 of file OCPNPlatform.cpp.

Member Function Documentation

◆ AdjustDirDialogFont()

wxDirDialog * OCPNPlatform::AdjustDirDialogFont ( wxWindow *  container,
wxDirDialog *  dlg 
)

Definition at line 1748 of file OCPNPlatform.cpp.

◆ AdjustFileDialogFont()

wxFileDialog * OCPNPlatform::AdjustFileDialogFont ( wxWindow *  container,
wxFileDialog *  dlg 
)

Definition at line 1785 of file OCPNPlatform.cpp.

◆ AllowAlertDialog()

bool OCPNPlatform::AllowAlertDialog ( const wxString &  class_name)

Definition at line 2046 of file OCPNPlatform.cpp.

◆ applyExpertMode()

void OCPNPlatform::applyExpertMode ( bool  mode)

Definition at line 1366 of file OCPNPlatform.cpp.

◆ BuildGLCaps()

bool OCPNPlatform::BuildGLCaps ( void *  pbuf)

Definition at line 708 of file OCPNPlatform.cpp.

◆ DoDirSelectorDialog()

int OCPNPlatform::DoDirSelectorDialog ( wxWindow *  parent,
wxString *  file_spec,
wxString  Title,
wxString  initDir,
bool  b_addFiles = true 
)

Definition at line 1441 of file OCPNPlatform.cpp.

◆ DoFileSelectorDialog()

int OCPNPlatform::DoFileSelectorDialog ( wxWindow *  parent,
wxString *  file_spec,
wxString  Title,
wxString  initDir,
wxString  suggestedName,
wxString  wildcard 
)

Definition at line 1389 of file OCPNPlatform.cpp.

◆ DoHelpDialog()

void OCPNPlatform::DoHelpDialog ( void  )

Definition at line 2120 of file OCPNPlatform.cpp.

◆ getBluetoothScanResults()

wxArrayString OCPNPlatform::getBluetoothScanResults ( )

Definition at line 2028 of file OCPNPlatform.cpp.

◆ GetChartScaleFactorExp()

float OCPNPlatform::GetChartScaleFactorExp ( float  scale_linear)

Definition at line 1960 of file OCPNPlatform.cpp.

◆ GetCompassScaleFactor()

double OCPNPlatform::GetCompassScaleFactor ( int  GUIScaleFactor)

Definition at line 1897 of file OCPNPlatform.cpp.

◆ GetConfigObject()

MyConfig * OCPNPlatform::GetConfigObject ( )

Definition at line 1491 of file OCPNPlatform.cpp.

◆ GetDefaultSystemLocale()

wxString OCPNPlatform::GetDefaultSystemLocale ( )

Definition at line 866 of file OCPNPlatform.cpp.

◆ GetDefaultToolbarOrientation()

long OCPNPlatform::GetDefaultToolbarOrientation ( )

Definition at line 1549 of file OCPNPlatform.cpp.

◆ GetDisplayAreaCM2()

double OCPNPlatform::GetDisplayAreaCM2 ( )

Definition at line 1679 of file OCPNPlatform.cpp.

◆ GetDisplayDensityFactor()

double OCPNPlatform::GetDisplayDensityFactor ( )

Definition at line 1541 of file OCPNPlatform.cpp.

◆ GetDisplayDPmm()

double OCPNPlatform::GetDisplayDPmm ( )
virtual

Reimplemented from BasePlatform.

Definition at line 1697 of file OCPNPlatform.cpp.

◆ getDisplaySize()

wxSize OCPNPlatform::getDisplaySize ( )
virtual

Reimplemented from BasePlatform.

Definition at line 1617 of file OCPNPlatform.cpp.

◆ GetDisplaySizeMM()

double OCPNPlatform::GetDisplaySizeMM ( )
virtual

Reimplemented from BasePlatform.

Definition at line 1627 of file OCPNPlatform.cpp.

◆ getFontPointsperPixel()

double OCPNPlatform::getFontPointsperPixel ( void  )

Definition at line 1586 of file OCPNPlatform.cpp.

◆ GetFullscreen()

bool OCPNPlatform::GetFullscreen ( )

Definition at line 1711 of file OCPNPlatform.cpp.

◆ GetMarkScaleFactorExp()

float OCPNPlatform::GetMarkScaleFactorExp ( float  scale_linear)

Definition at line 1978 of file OCPNPlatform.cpp.

◆ GetSelectRadiusPix()

unsigned int OCPNPlatform::GetSelectRadiusPix ( )
virtual

Reimplemented from BasePlatform.

Definition at line 1706 of file OCPNPlatform.cpp.

◆ GetStatusBarFieldCount()

int OCPNPlatform::GetStatusBarFieldCount ( )

Definition at line 1557 of file OCPNPlatform.cpp.

◆ GetSupplementalLicenseString()

wxString OCPNPlatform::GetSupplementalLicenseString ( )

Definition at line 1373 of file OCPNPlatform.cpp.

◆ GetToolbarScaleFactor()

double OCPNPlatform::GetToolbarScaleFactor ( int  GUIScaleFactor)

Definition at line 1824 of file OCPNPlatform.cpp.

◆ hasInternalBT()

bool OCPNPlatform::hasInternalBT ( wxString  profile = _T(""))
static

Definition at line 1999 of file OCPNPlatform.cpp.

◆ hasInternalGPS()

bool OCPNPlatform::hasInternalGPS ( wxString  profile = _T(""))
static

Definition at line 1503 of file OCPNPlatform.cpp.

◆ HideBusySpinner()

void OCPNPlatform::HideBusySpinner ( void  )
static

Definition at line 1530 of file OCPNPlatform.cpp.

◆ Initialize_1()

void OCPNPlatform::Initialize_1 ( void  )
static

Definition at line 360 of file OCPNPlatform.cpp.

◆ Initialize_2()

void OCPNPlatform::Initialize_2 ( void  )

Definition at line 585 of file OCPNPlatform.cpp.

◆ Initialize_3()

void OCPNPlatform::Initialize_3 ( void  )

Definition at line 629 of file OCPNPlatform.cpp.

◆ Initialize_4()

void OCPNPlatform::Initialize_4 ( void  )
static

Definition at line 679 of file OCPNPlatform.cpp.

◆ IsGLCapable()

bool OCPNPlatform::IsGLCapable ( )

Definition at line 781 of file OCPNPlatform.cpp.

◆ isPlatformCapable()

bool OCPNPlatform::isPlatformCapable ( int  flag)

Definition at line 2098 of file OCPNPlatform.cpp.

◆ LaunchLocalHelp()

void OCPNPlatform::LaunchLocalHelp ( void  )

Definition at line 2139 of file OCPNPlatform.cpp.

◆ OnExit_1()

void OCPNPlatform::OnExit_1 ( void  )
static

Definition at line 696 of file OCPNPlatform.cpp.

◆ OnExit_2()

void OCPNPlatform::OnExit_2 ( void  )
static

Definition at line 698 of file OCPNPlatform.cpp.

◆ platformApplyPrivateSettingsString()

int OCPNPlatform::platformApplyPrivateSettingsString ( wxString  settings,
ArrayOfCDI *  pDirArray 
)

Definition at line 1356 of file OCPNPlatform.cpp.

◆ platformLaunchDefaultBrowser()

void OCPNPlatform::platformLaunchDefaultBrowser ( wxString  URL)

Definition at line 2168 of file OCPNPlatform.cpp.

◆ PositionAISAlert()

void OCPNPlatform::PositionAISAlert ( wxWindow *  alert_window)

Definition at line 1732 of file OCPNPlatform.cpp.

◆ setChartTypeMaskSel()

void OCPNPlatform::setChartTypeMaskSel ( int  mask,
wxString &  indicator 
)

Definition at line 2067 of file OCPNPlatform.cpp.

◆ SetDefaultOptions()

void OCPNPlatform::SetDefaultOptions ( void  )

Definition at line 1052 of file OCPNPlatform.cpp.

◆ SetDisplaySizeMM()

void OCPNPlatform::SetDisplaySizeMM ( double  size)

Definition at line 1693 of file OCPNPlatform.cpp.

◆ SetFullscreen()

bool OCPNPlatform::SetFullscreen ( bool  bFull)

Definition at line 1722 of file OCPNPlatform.cpp.

◆ SetLocaleSearchPrefixes()

void OCPNPlatform::SetLocaleSearchPrefixes ( void  )

Definition at line 805 of file OCPNPlatform.cpp.

◆ SetUpgradeOptions()

void OCPNPlatform::SetUpgradeOptions ( wxString  vString,
wxString  vStringConfig 
)

Definition at line 1261 of file OCPNPlatform.cpp.

◆ ShowBusySpinner()

void OCPNPlatform::ShowBusySpinner ( void  )
static

Definition at line 1519 of file OCPNPlatform.cpp.

◆ startBluetoothScan()

bool OCPNPlatform::startBluetoothScan ( )

Definition at line 2010 of file OCPNPlatform.cpp.

◆ stopBluetoothScan()

bool OCPNPlatform::stopBluetoothScan ( )

Definition at line 2019 of file OCPNPlatform.cpp.

Member Data Documentation

◆ m_pt_per_pixel

double OCPNPlatform::m_pt_per_pixel

Definition at line 131 of file OCPNPlatform.h.


The documentation for this class was generated from the following files: