forked from OpenCPN/OpenCPN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:OpenCPN/OpenCPN into span
- Loading branch information
Showing
44 changed files
with
2,304 additions
and
1,176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// TBD | ||
|
||
#ifndef CONNECT_NEW_DLG__ | ||
#define CONNECT_NEW_DLG__ | ||
|
||
#include <functional> | ||
|
||
#include <wx/panel.h> | ||
#include <wx/scrolwin.h> | ||
#include "model/conn_params.h" | ||
#include "observable_evtvar.h" | ||
|
||
class ConnectionsDlg : public wxPanel { | ||
public: | ||
ConnectionsDlg(wxWindow* parent, | ||
const std::vector<ConnectionParams*>& connections); | ||
|
||
/** | ||
* Traverse root's children and invoke Apply if they implement ApplyCancel | ||
*/ | ||
void ApplySettings(); | ||
|
||
/** | ||
* Traverse root's children and invoke Cancel if they implement ApplyCancel | ||
*/ | ||
void CancelSettings(); | ||
|
||
void OnResize(); | ||
|
||
private: | ||
void DoApply(wxWindow* root); | ||
void DoCancel(wxWindow* root); | ||
|
||
const std::vector<ConnectionParams*>& m_connections; | ||
std::function<void()> m_on_exit; | ||
EventVar m_evt_add_connection; | ||
ObsListener m_add_connection_lstnr; | ||
}; | ||
|
||
#endif // CONNECT_NEW_DLG__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.