Debian Codegraph @

src/game/menu/settingsmenu.hpp

raw symbols SCIP
1 // This file is part of Dust Racing 2D.
2 // Copyright (C) 2015 Jussi Lind <[email protected]>
3 //
4 // Dust Racing 2D 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 3 of the License, or
7 // (at your option) any later version.
8 // Dust Racing 2D is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with Dust Racing 2D. If not, see <http://www.gnu.org/licenses/>.
15
16 #ifndef SETTINGSMENU_HPP
17 #define SETTINGSMENU_HPP
18
19 #include <MenuManager>
20
21 #include "confirmationmenu.hpp"
22 #include "surfacemenu.hpp"
23
24 //! The settings menu.
25 class SettingsMenu : public SurfaceMenu
26 {
27 public:
28 //! Constructor.
29 SettingsMenu(std::string id, int width, int height);
30
31 private:
32 void populate(int width, int height);
33
34 void populateFpsMenu(int width, int height);
35
36 void populateGameModeMenu(int width, int height);
37
38 void populateGfxMenu(int width, int height);
39
40 void populateSfxMenu(int width, int height);
41
42 void populateSplitTypeMenu(int width, int height);
43
44 void populateResetMenu(int width, int height);
45
46 ConfirmationMenuPtr m_confirmationMenu;
47
48 MTFH::MenuPtr m_fpsMenu;
49
50 MTFH::MenuPtr m_fullScreenResolutionMenu;
51
52 MTFH::MenuPtr m_windowedResolutionMenu;
53
54 MTFH::MenuPtr m_gameModeMenu;
55
56 MTFH::MenuPtr m_gfxMenu;
57
58 MTFH::MenuPtr m_resetMenu;
59
60 MTFH::MenuPtr m_sfxMenu;
61
62 MTFH::MenuPtr m_splitTypeMenu;
63
64 MTFH::MenuPtr m_vsyncMenu;
65
66 MTFH::MenuPtr m_keyConfigMenu;
67 };
68
69 #endif // SETTINGSMENU_HPP