supertux
src
supertux
menu
editor_menu.hpp
1
// SuperTux
2
// Copyright (C) 2015 Hume2 <teratux.mail@gmail.com>
3
//
4
// This program 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
//
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, see <http://www.gnu.org/licenses/>.
16
17
#ifndef HEADER_SUPERTUX_SUPERTUX_MENU_EDITOR_MENU_HPP
18
#define HEADER_SUPERTUX_SUPERTUX_MENU_EDITOR_MENU_HPP
19
20
#include "gui/menu.hpp"
21
22
class
EditorMenu
final :
public
Menu
23
{
24
private
:
25
enum
MenuIDs {
26
MNID_RETURNTOEDITOR,
27
MNID_SAVELEVEL,
28
MNID_SAVEASLEVEL,
29
MNID_SAVECOPYLEVEL,
30
MNID_TESTLEVEL,
31
MNID_OPTIONS,
32
MNID_PACK,
33
MNID_OPEN_DIR,
34
MNID_SHARE,
35
MNID_LEVELSEL,
36
MNID_LEVELSETSEL,
37
MNID_HELP,
38
MNID_QUITEDITOR,
39
MNID_CHECKDEPRECATEDTILES
40
};
41
42
public
:
43
EditorMenu
();
44
~
EditorMenu
()
override
;
45
46
void
refresh
()
override
;
47
void
menu_action(
MenuItem
& item)
override
;
48
49
bool
on_back_action
()
override
;
50
51
private
:
52
EditorMenu
(
const
EditorMenu
&) =
delete
;
53
EditorMenu
& operator=(
const
EditorMenu
&) =
delete
;
54
};
55
56
#endif
57
58
/* EOF */
EditorMenu
Definition:
editor_menu.hpp:22
MenuItem
Definition:
menu_item.hpp:23
Menu
Definition:
menu.hpp:55
EditorMenu::refresh
void refresh() override
Perform actions to bring the menu up to date with configuration changes.
Definition:
editor_menu.cpp:46
EditorMenu::on_back_action
bool on_back_action() override
Executed before the menu is exited.
Definition:
editor_menu.cpp:257
Generated by
1.8.13