The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
editor_common.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2016 by Tomasz Sniatowski <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 /**
16  * @file
17  * Main (common) editor header. Contains forward declarations for most classes,
18  * logging macro definitions and base exception declarations
19  */
20 
21 #ifndef EDITOR_EDITOR_COMMON_HPP_INCLUDED
22 #define EDITOR_EDITOR_COMMON_HPP_INCLUDED
23 
24 #include "exceptions.hpp"
25 #include "log.hpp"
26 
28 #define DBG_ED LOG_STREAM_INDENT(debug, log_editor)
29 #define LOG_ED LOG_STREAM_INDENT(info, log_editor)
30 #define WRN_ED LOG_STREAM_INDENT(warn, log_editor)
31 #define ERR_ED LOG_STREAM_INDENT(err, log_editor)
32 #define SCOPE_ED log_scope2(log_editor, __func__)
33 
34 class display;
35 class gamemap;
36 
37 namespace editor {
38 
40 {
42  : game::error(msg)
43  {
44  }
45 };
46 
48 {
50  : editor_exception(msg)
51  {
52  }
53 };
54 
55 // forward declarations
56 class brush;
57 class editor_action;
58 class editor_controller;
59 class editor_display;
60 class editor_map;
61 class editor_mouse_handler;
62 class map_context;
63 class map_fragment;
64 class mouse_action;
65 
66 } //end namespace editor
67 
68 #endif
editor_exception(const std::string &msg)
editor_logic_exception(const std::string &msg)
lg::log_domain log_editor
Encapsulates the map of the game.
Definition: map.hpp:37
Manage the empty-palette in the editor.
Definition: action.cpp:28
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
Definition: debugger.cpp:112
Base class for all the errors encountered by the engine.
Definition: exceptions.hpp:27
Standard logging facilities (interface).
GLsizei const GLcharARB ** string
Definition: glew.h:4503