OpenCPN Partial API docs
Loading...
Searching...
No Matches
ocpn_list_ctrl.h
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2010 by David S. Register *
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
24#ifndef __OCPNLISTCTRL_H__
25#define __OCPNLISTCTRL_H__
26
27#include <wx/listctrl.h>
28#include <wx/string.h>
29
30#include "ais_target_list_dlg.h"
31#include "ais.h"
32
33class AISTargetListDialog; // circular
34
40class OCPNListCtrl : public wxListCtrl {
41public:
42 OCPNListCtrl(AISTargetListDialog* parent, wxWindowID id, const wxPoint& pos,
43 const wxSize& size, long style);
45
46 wxString OnGetItemText(long item, long column) const;
47 int OnGetItemColumnImage(long item, long column) const;
48
49 wxString GetTargetColumnData(AisTargetData* pAISTarget, long column) const;
50
51 AISTargetListDialog* m_parent;
52};
53
54#endif
Class AISTargetListDialog.
Dialog for displaying a list of AIS targets.
A custom list control for displaying AIS target information.