OpenCPN Partial API docs
Loading...
Searching...
No Matches
waypointman_gui.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2022 by David Register *
3 * Copyright (C) 2022 Alec Leamas *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
25#ifndef WAYPOINT_GUI_H_
26#define WAYPOINT_GUI_H_
27
28#include "model/routeman.h"
29#include "styles.h"
30
32public:
33 WayPointmanGui(WayPointman &waypoint_man) : m_waypoint_man(waypoint_man) {}
34
35 void SetColorScheme(ColorScheme cs, double displayDPmm);
36 void ReloadAllIcons(double displayDPmm);
37 void ProcessDefaultIcons(double displayDPmm);
38 void ProcessIcons(ocpnStyle::Style *style, double displayDPmm);
39 void ProcessUserIcons(ocpnStyle::Style *style, double displayDPmm);
40 MarkIcon *ProcessIcon(wxImage image, const wxString &key,
41 const wxString &description, bool add_in_front = false);
42 unsigned int GetIconTexture(const wxBitmap *pmb, int &glw, int &glh);
43
44 void ReloadRoutepointIcons();
45
46private:
47 MarkIcon *ProcessLegacyIcon(wxString fileName, const wxString &key,
48 const wxString &description, double displayDPmm);
49 MarkIcon *ProcessExtendedIcon(wxImage &image, const wxString &key,
50 const wxString &description);
51 wxRect CropImageOnAlpha(wxImage &image);
52 WayPointman &m_waypoint_man;
53};
54
55#endif // WAYPOINT_GUI_H_
Route Manager.
Chart Symbols.