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 #ifndef XCSOAR_UI_STATE_HPP
25 #define XCSOAR_UI_STATE_HPP
27 #include "DisplayMode.hpp"
28 #include "Util/StaticString.hpp"
29 #include "PageState.hpp"
32 * The state of the user interface.
36 * Is the display currently blanked?
41 * The display mode forced by the user. If not NONE, it overrides
42 * the automatic display mode.
44 DisplayMode force_display_mode
;
47 * The effective display mode.
49 DisplayMode display_mode
;
52 * Are the info boxes showing an "auxiliary" set?
54 bool auxiliary_enabled
;
57 * Which "auxiliary" set is visible if #auxiliary_enabled is true?
59 unsigned auxiliary_index
;
62 * The index of the InfoBox panel currently being displayed. If
63 * #auxiliary_enabled is true, then this is the same as
69 * A copy of the current InfoBox panel name. This copy is necessary
70 * because the original name is in InfoBoxSettings, but MapWindow
71 * does not know InfoBoxSettings or UISettings, and needs to know
72 * the name for rendering the overlay.
74 StaticString
<32u> panel_name
;