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

Implement filter_dlg.h. More...

#include <functional>
#include <memory>
#include <string>
#include <wx/app.h>
#include <wx/arrstr.h>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/checklst.h>
#include <wx/choicdlg.h>
#include <wx/frame.h>
#include <wx/log.h>
#include <wx/msgdlg.h>
#include <wx/panel.h>
#include <wx/radiobox.h>
#include <wx/radiobut.h>
#include <wx/sizer.h>
#include <wx/statline.h>
#include <wx/stattext.h>
#include <wx/textdlg.h>
#include <wx/wrapsizer.h>
#include <wx/sstream.h>
#include <wxSVG/svg.h>
#include "model/comm_drv_registry.h"
#include "model/comm_navmsg_bus.h"
#include "model/filters_on_disk.h"
#include "filter_dlg.h"
#include "std_filesystem.h"
#include "svg_icons.h"
#include "edit_button.h"

Go to the source code of this file.

Classes

class  NewFilterDlg
 
class  DeleteFilterDlg
 
class  SelectFilterDlg
 
class  BadFilterNameDlg
 
class  MsgTypePanel
 Message type filter setup GUI bound to filter.include_msg and filter.exclude_msg. More...
 
class  SetPanel< T >
 Common base for displaying a filter set bound to the set ctor parameter. More...
 
class  IfacePanel
 Interfaces filtering panel, bound to filter.interfaces. More...
 
class  BusPanel
 The bus panel, filter w r t message types (nmea2000, nmea1083, etc.). More...
 
class  DirectionPanel
 Direction panel, set up filter w r t direction (input, output, etc..) Bound to filter.directions. More...
 
class  AcceptedPanel
 
class  EditFilterFrame
 

Macros

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

Functions

template<typename T >
T * GetWindowById (int id)
 Return window with given id (which must exist) casted to T*.
 
void CreateFilterDlg (wxWindow *parent)
 
void RemoveFilterDlg (wxWindow *parent)
 
void EditOneFilterDlg (wxWindow *parent, const std::string &filter)
 
void EditFilterDlg (wxWindow *parent)
 

Detailed Description

Implement filter_dlg.h.

Definition in file filter_dlg.cpp.

Macro Definition Documentation

◆ _

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

Definition at line 65 of file filter_dlg.cpp.

Function Documentation

◆ CreateFilterDlg()

void CreateFilterDlg ( wxWindow *  parent)

Definition at line 613 of file filter_dlg.cpp.

◆ EditFilterDlg()

void EditFilterDlg ( wxWindow *  parent)

Definition at line 672 of file filter_dlg.cpp.

◆ EditOneFilterDlg()

void EditOneFilterDlg ( wxWindow *  parent,
const std::string &  filter 
)

Definition at line 653 of file filter_dlg.cpp.

◆ GetWindowById()

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

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

Definition at line 82 of file filter_dlg.cpp.

◆ RemoveFilterDlg()

void RemoveFilterDlg ( wxWindow *  parent)

Definition at line 632 of file filter_dlg.cpp.