OpenCPN Partial API docs
NMEALogWindow Class Reference

This class provides access to the NMEA log/debug window. More...

#include <NMEALogWindow.h>

Inheritance diagram for NMEALogWindow:
NmeaLog WindowDestroyListener

Public Member Functions

 NMEALogWindow (const NMEALogWindow &)=delete
 
NMEALogWindowoperator= (const NMEALogWindow &)=delete
 
bool Active () const
 Return true if log is visible i. More...
 
void Create (wxWindow *parent, int num_lines=35)
 
void Add (const wxString &s)
 Add an formatted string to log output.
 
void Refresh (bool do_refresh=false)
 
int GetSizeW ()
 
int GetSizeH ()
 
int GetPosX ()
 
int GetPosY ()
 
void SetSize (int w, int h)
 
void SetSize (const wxSize &size)
 
void SetPos (int x, int y)
 
void SetPos (const wxPoint &pos)
 
void CheckPos (int display_width, int display_height)
 
void Move ()
 
virtual void DestroyWindow ()
 
wxWindow * GetTTYWindow (void)
 

Static Public Member Functions

static NMEALogWindowGetInstance ()
 
static void Shutdown ()
 

Detailed Description

This class provides access to the NMEA log/debug window.

This provides everything needed to use the single NMEA log window.

Singleton.

Reading geometry information from the window will cache them inside this class. This is used to store them permanently in the configuration file.

Definition at line 48 of file NMEALogWindow.h.

Member Function Documentation

◆ Active()

bool NMEALogWindow::Active ( ) const
virtual

Return true if log is visible i.

e., if it's any point using Add().

Implements NmeaLog.

Definition at line 54 of file NMEALogWindow.cpp.


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