SuperTuxKart
options_common.hpp
1  // SuperTuxKart - a fun racing game with go-kart
2 // Copyright (C) 2009-2015 Marianne Gagnon
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 3
7 // of the License, or (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, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 
18 #ifndef SERVER_ONLY // No GUI files in server builds
19 #ifndef __HEADER_OPTIONS_COMMON_HPP__
20 #define __HEADER_OPTIONS_COMMON_HPP__
21 
22 // This file contains include headers that are used by all or most options screens.
23 // It also contains a standalone function to switch between the options screens.
24 // This simplifies maintenance.
25 
26 // Config to read and save settings
27 #include "config/user_config.hpp"
28 
29 // Frequent widgets used by multiple option screens
30 #include "guiengine/widgets/button_widget.hpp"
31 #include "guiengine/widgets/check_box_widget.hpp"
32 #include "guiengine/widgets/dynamic_ribbon_widget.hpp"
33 #include "guiengine/widgets/label_widget.hpp"
34 #include "guiengine/widgets/spinner_widget.hpp"
35 
36 // Other option screens, for navigation between them
37 #include "states_screens/options/options_screen_audio.hpp"
38 #include "states_screens/options/options_screen_display.hpp"
39 #include "states_screens/options/options_screen_general.hpp"
40 #include "states_screens/options/options_screen_input.hpp"
41 #include "states_screens/options/options_screen_language.hpp"
42 #include "states_screens/options/options_screen_ui.hpp"
43 #include "states_screens/options/options_screen_video.hpp"
44 #include "states_screens/options/user_screen.hpp"
45 
46 // GUI management
47 #include "states_screens/state_manager.hpp"
48 
49 // Utils for translation of tooltips
50 #include "utils/string_utils.hpp"
51 #include "utils/translation.hpp"
52 
53 namespace OptionsCommon
54 {
55  void switchTab(std::string selected_tab);
56  void setTabStatus();
57 }
58 
59 #endif
60 #endif // ifndef SERVER_ONLY