OpenCPN Partial API docs
Loading...
Searching...
No Matches
connections_dlg.h
1// TBD
2
3#ifndef CONNECT_NEW_DLG__
4#define CONNECT_NEW_DLG__
5
6#include <functional>
7
8#include <wx/panel.h>
9#include <wx/scrolwin.h>
10#include "model/conn_params.h"
11#include "observable_evtvar.h"
12
13class ConnectionsDlg : public wxPanel {
14public:
15 ConnectionsDlg(wxWindow* parent,
16 const std::vector<ConnectionParams*>& connections);
17
21 void ApplySettings();
22
26 void CancelSettings();
27
28 void OnResize();
29
30private:
31 void DoApply(wxWindow* root);
32 void DoCancel(wxWindow* root);
33
34 const std::vector<ConnectionParams*>& m_connections;
35 std::function<void()> m_on_exit;
36 EventVar m_evt_add_connection;
37 ObsListener m_add_connection_lstnr;
38};
39
40#endif // CONNECT_NEW_DLG__
void ApplySettings()
Traverse root's children and invoke Apply if they implement ApplyCancel.
void CancelSettings()
Traverse root's children and invoke Cancel if they implement ApplyCancel.
Generic event handling between MVC Model and Controller based on a shared EventVar variable.
Define an action to be performed when a KeyProvider is notified.
Definition observable.h:228