562
by sirver
|
1 |
/*
|
8646.1.1
by GunChleoc
Ran update copyright script for 2018. |
2 |
* Copyright (C) 2002-2018 by the Widelands Development Team
|
562
by sirver
|
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 2
|
|
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
|
|
6140
by David Allwicher
Change postal address |
16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
562
by sirver
|
17 |
*
|
18 |
*/
|
|
19 |
||
7943.1.1
by fios at foramnagaidhlig
Removed "editor_" prefix from editor source files. |
20 |
#ifndef WL_EDITOR_UI_MENUS_MAIN_MENU_H
|
21 |
#define WL_EDITOR_UI_MENUS_MAIN_MENU_H
|
|
562
by sirver
|
22 |
|
7532.1.27
by fios at foramnagaidhlig
Editor and Game Options Menu now have dynamic button height to fit the font size. |
23 |
#include "ui_basic/box.h" |
4009
by sirver
Moved ui/ui_basic to src/. Renamed all files inside like ui_panel.h -> panel.h |
24 |
#include "ui_basic/button.h" |
25 |
#include "ui_basic/unique_window.h" |
|
562
by sirver
|
26 |
|
7704.2.5
by Holger Rapp
Reset all state when the editor changes map. |
27 |
class EditorInteractive; |
562
by sirver
|
28 |
|
3041
by bedouin
Lots of doxygen-ification |
29 |
/**
|
30 |
* This represents the main menu
|
|
8937.1.2
by Wideland's Bunnybot
Merged lp:~widelands-dev/widelands/appveyor_reenable_glbinding: |
31 |
*/
|
7175.1.7
by fios at foramnagaidhlig
MenusAndEditor2CamelCase |
32 |
struct EditorMainMenu : public UI::UniqueWindow { |
8048
by GunChleoc
Ran clang-format. |
33 |
EditorMainMenu(EditorInteractive&, UI::UniqueWindow::Registry&); |
562
by sirver
|
34 |
|
2569
by sigra
Be consistent about not gaining a level of indentation for labels. Remove redundant visibility levels. Fix overlong lines, alignment and format arguments. |
35 |
private: |
8048
by GunChleoc
Ran clang-format. |
36 |
EditorInteractive& eia(); |
7532.1.27
by fios at foramnagaidhlig
Editor and Game Options Menu now have dynamic button height to fit the font size. |
37 |
UI::Box box_; |
38 |
UI::Button button_new_map_; |
|
39 |
UI::Button button_new_random_map_; |
|
40 |
UI::Button button_load_map_; |
|
41 |
UI::Button button_save_map_; |
|
42 |
UI::Button button_map_options_; |
|
43 |
UI::Button button_exit_editor_; |
|
562
by sirver
|
44 |
|
8048
by GunChleoc
Ran clang-format. |
45 |
void exit_btn(); |
46 |
void load_btn(); |
|
47 |
void save_btn(); |
|
48 |
void new_map_btn(); |
|
7877.1.2
by fios at foramnagaidhlig
In-game and editor now also use a tabbed layout for readme/license/authors. Split translators into separate tab. |
49 |
void new_random_map_btn(); |
2883
by sigra
Standardize include guards as discussed at [https://sourceforge.net/mailarchive/message.php?msg_id=470F876E.2080807%40home.se]. Add a simple tool that detects style errors in leading whitespace in C++ source code. This tool is a compiled Ada program, so it is lightingly fast compared to the bunch of regexps, but of course GNAT is needed to build it. Fix the many errors that the tool finds and do some minor fixes on the way. This will substantially reduce the number of overlong lines. Add some FIXMEs. |
50 |
void map_options_btn(); |
562
by sirver
|
51 |
};
|
52 |
||
7943.1.1
by fios at foramnagaidhlig
Removed "editor_" prefix from editor source files. |
53 |
#endif // end of include guard: WL_EDITOR_UI_MENUS_MAIN_MENU_H |