editor/editor_common.hpp

Go to the documentation of this file.
00001 /* $Id: editor_common.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2008 - 2012 by Tomasz Sniatowski <kailoran@gmail.com>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 /**
00017  * @file
00018  * Main (common) editor header. Contains forward declarations for most classes,
00019  * logging macro definitions and base exception declarations
00020  */
00021 
00022 #ifndef EDITOR_EDITOR_COMMON_HPP_INCLUDED
00023 #define EDITOR_EDITOR_COMMON_HPP_INCLUDED
00024 
00025 #include "../exceptions.hpp"
00026 #include "../log.hpp"
00027 
00028 extern lg::log_domain log_editor;
00029 #define DBG_ED LOG_STREAM_INDENT(debug, log_editor)
00030 #define LOG_ED LOG_STREAM_INDENT(info, log_editor)
00031 #define WRN_ED LOG_STREAM_INDENT(warn, log_editor)
00032 #define ERR_ED LOG_STREAM_INDENT(err, log_editor)
00033 #define SCOPE_ED log_scope2(log_editor, __func__)
00034 
00035 class display;
00036 class gamemap;
00037 
00038 namespace editor {
00039 
00040 struct editor_exception : public game::error
00041 {
00042     editor_exception(const std::string& msg)
00043     : game::error(msg)
00044     {
00045     }
00046 };
00047 
00048 struct editor_logic_exception : public editor_exception
00049 {
00050     editor_logic_exception(const std::string& msg)
00051     : editor_exception(msg)
00052     {
00053     }
00054 };
00055 
00056 // forward declarations
00057 class brush;
00058 class editor_action;
00059 class editor_controller;
00060 class editor_display;
00061 class editor_map;
00062 class editor_mouse_handler;
00063 class map_context;
00064 class map_fragment;
00065 class mouse_action;
00066 
00067 } //end namespace editor
00068 
00069 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:02:34 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs