Android release v6.7_preview1
[xcsoar.git] / src / MapSettings.cpp
blobf635cc27b861d9512f7d512a592cc42fcac03a1a
1 /*
2 Copyright_License {
4 XCSoar Glide Computer - http://www.xcsoar.org/
5 Copyright (C) 2000-2013 The XCSoar Project
6 A detailed list of copyright holders can be found in the file "AUTHORS".
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #include "MapSettings.hpp"
26 void
27 MapItemListSettings::SetDefaults()
29 add_location = true;
30 add_arrival_altitude = true;
33 void
34 TrailSettings::SetDefaults()
36 wind_drift_enabled = true;
37 scaling_enabled = true;
38 type = Type::VARIO_1;
39 length = Length::LONG;
42 void
43 MapSettings::SetDefaults()
45 circle_zoom_enabled = true;
46 max_auto_zoom_distance = fixed(100000); /* 100 km */
47 topography_enabled = true;
48 terrain.SetDefaults();
49 aircraft_symbol = AircraftSymbol::SIMPLE;
50 detour_cost_markers_enabled = false;
51 display_ground_track = DisplayGroundTrack::AUTO;
52 auto_zoom_enabled = false;
53 wind_arrow_style = WindArrowStyle::ARROW_HEAD;
54 waypoint.SetDefaults();
55 airspace.SetDefaults();
56 glider_screen_position = 20; // 20% from bottom
57 map_shift_bias = MapShiftBias::NONE;
58 circling_orientation = DisplayOrientation::NORTH_UP;
59 cruise_orientation = DisplayOrientation::NORTH_UP;
60 circling_scale = fixed(1) / 2;
61 cruise_scale = fixed(1) / 60;
62 show_flarm_on_map = true;
63 show_flarm_alarm_level = true;
64 show_thermal_profile = true;
65 final_glide_bar_mc0_enabled = true;
66 final_glide_bar_display_mode = FinalGlideBarDisplayMode::ON;
67 vario_bar_enabled = false;
68 show_fai_triangle_areas = false;
70 trail.SetDefaults();
71 item_list.SetDefaults();