25 #ifndef __AISTARGETLISTDIALOG_H__
26 #define __AISTARGETLISTDIALOG_H__
31 #include <wx/checkbox.h>
33 #define ID_AIS_TARGET_LIST 10003
34 #define ID_RCLK_UNDOCK 7035
47 class wxAuiManagerEvent;
49 WX_DEFINE_SORTED_ARRAY_INT(
int, ArrayOfMMSI);
60 void OnClose(wxCloseEvent &event);
61 void Disconnect_decoder();
63 void RecalculateSize(
void);
64 void SetColorScheme();
65 void UpdateAISTargetList();
66 void UpdateNVAISTargetList();
67 void CopyMMSItoClipBoard(
int);
68 void CenterToTarget(
bool);
69 std::shared_ptr<AisTargetData> GetpTarget(
unsigned int list_item);
74 ArrayOfMMSI *m_pMMSI_array;
77 void CreateControls(
void);
79 void OnPaneClose(wxAuiManagerEvent &event);
81 void OnTargetSelected(wxListEvent &event);
82 void DoTargetQuery(
int mmsi);
83 void OnTargetDefaultAction(wxListEvent &event);
84 void OnTargetQuery(wxCommandEvent &event);
85 void OnTargetListColumnClicked(wxListEvent &event);
86 void OnTargetScrollTo(wxCommandEvent &event);
87 void OnTargetScrollToClose(wxCommandEvent &event);
88 void OnTargetCreateWpt(wxCommandEvent &event);
89 void OnShowAllTracks(wxCommandEvent &event);
90 void OnHideAllTracks(wxCommandEvent &event);
91 void OnToggleTrack(wxCommandEvent &event);
92 void OnCopyMMSI(wxCommandEvent &event);
93 void OnLimitRange(wxCommandEvent &event);
94 void OnCloseButton(wxCommandEvent &event);
95 void OnAutosortCB(wxCommandEvent &event);
96 void OnRightClickContext(wxCommandEvent &event);
97 void OnContextUndock(wxCommandEvent &event);
100 wxAuiManager *m_pAuiManager;
101 wxButton *m_pButtonInfo;
102 wxButton *m_pButtonJumpTo;
103 wxButton *m_pButtonJumpTo_Close;
104 wxButton *m_pButtonCreateWpt;
105 wxButton *m_pButtonHideAllTracks;
106 wxButton *m_pButtonShowAllTracks;
107 wxButton *m_pButtonToggleTrack;
108 wxButton *m_pButtonCopyMMSI;
109 wxStaticText *m_pStaticTextRange;
110 wxSpinCtrl *m_pSpinCtrlRange;
111 wxStaticText *m_pStaticTextCount;
112 wxTextCtrl *m_pTextTargetCount;
113 wxButton *m_pButtonOK;
114 wxCheckBox *m_pCBAutosort;
116 bool m_bautosort_force;
118 DECLARE_EVENT_TABLE()