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

Implement data_monitor.h – new NMEA Debugger successor main window. More...

#include <chrono>
#include <fstream>
#include <sstream>
#include <wx/app.h>
#include <wx/button.h>
#include <wx/choice.h>
#include <wx/filedlg.h>
#include <wx/menu.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/statline.h>
#include <wx/stattext.h>
#include <wx/translation.h>
#include <wx/wrapsizer.h>
#include "model/base_platform.h"
#include "model/data_monitor_src.h"
#include "model/filters_on_disk.h"
#include "model/navmsg_filter.h"
#include "model/nmea_log.h"
#include "model/gui.h"
#include "data_monitor.h"
#include "std_filesystem.h"
#include "svg_button.h"
#include "svg_icons.h"
#include "tty_scroll.h"
#include "filter_dlg.h"

Go to the source code of this file.

Classes

class  TtyPanel
 Main window, a rolling log of messages. More...
 
class  QuickFilterPanel
 The quick filter above the status line, invoked by funnel button. More...
 
class  FilterChoice
 Offer user to select current filter. More...
 
class  PauseResumeButton
 Button to stop/resume messages in main log window. More...
 
class  CloseButton
 Button to hide data monitor, used only on Android. More...
 
class  LoggingSetup
 Log setup window invoked from menu "Logging" item. More...
 
class  LoggingSetup::ThePanel
 Top part above buttons. More...
 
class  TheMenu
 The monitor popup menu. More...
 
class  LogButton
 Button to start/stop logging. More...
 
class  CopyClipboardButton
 Copy to clipboard button. More...
 
class  FilterButton
 Button opening the filter dialog. More...
 
class  MenuButton
 Button invoking the popup menu. More...
 
class  StatusLine
 Overall bottom status line. More...
 

Macros

#define _(s)   wxGetTranslation((s)).ToStdString()
 

Typedefs

using SetFormatFunc = std::function< void(DataLogger::Format, std::string)>
 

Functions

template<typename T >
T * GetWindowById (int id)
 Return window with given id (which must exist) cast to T*.
 

Detailed Description

Implement data_monitor.h – new NMEA Debugger successor main window.

Definition in file data_monitor.cpp.

Macro Definition Documentation

◆ _

#define _ (   s)    wxGetTranslation((s)).ToStdString()

Definition at line 66 of file data_monitor.cpp.

Typedef Documentation

◆ SetFormatFunc

using SetFormatFunc = std::function<void(DataLogger::Format, std::string)>

Definition at line 69 of file data_monitor.cpp.

Function Documentation

◆ GetWindowById()

template<typename T >
T * GetWindowById ( int  id)

Return window with given id (which must exist) cast to T*.

Definition at line 73 of file data_monitor.cpp.