OpenCPN Partial API docs
Loading...
Searching...
No Matches
filter_sentence_dlg.h
1/***************************************************************************
2 * Copyright (C) 2026 Alec Leamas *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 ***************************************************************************/
17
18#ifndef SFX_filTER_sENTencE_DLG_
19#define SFX_filTER_sENTencE_DLG_
20
21#include <wx/arrstr.h>
22#include <wx/button.h>
23#include <wx/checklst.h>
24#include <wx/dialog.h>
25#include <wx/event.h>
26#include <wx/regex.h>
27#include <wx/sizer.h>
28#include <wx/statbox.h>
29#include <wx/textdlg.h>
30
31#include "model/conn_params.h"
32#include "model/config_vars.h"
33#include "nmea0183.h"
34
35#include "gui_lib.h"
36
38class FilterSentenceDlg : public wxDialog {
39public:
40 FilterSentenceDlg(wxWindow* parent, FilterDirection dir, ListType type,
41 const wxArrayString& list);
42 wxString GetSentences();
43
44private:
45 void OnAddClick(wxCommandEvent& event);
46 void OnDeleteClick(wxCommandEvent& event);
47 void OnCLBSelect(wxCommandEvent& event);
48 void OnCheckAllClick(wxCommandEvent& event);
49 void OnClearAllClick(wxCommandEvent& event);
50
51 void Populate(const wxArrayString& list);
52 [[nodiscard]] wxString GetBoxLabel() const;
53
54 wxCheckListBox* m_sentences_clb;
55 wxButton* m_del_btn;
56
57 ListType m_type;
58 FilterDirection m_dir;
59 wxArrayString m_sentences;
60};
61
62#endif // SFX_filTER_sENTencE_DLG_
Global variables stored in configuration file.
Connection parameters.
General purpose GUI support.