Move sdl_utils to sdl/utils.

This commit is contained in:
Boldizsár Lipka 2014-06-02 23:21:59 +02:00
parent ac96a2b91b
commit 7ca6ad8ad1
31 changed files with 38 additions and 39 deletions

View file

@ -363,6 +363,7 @@ set(wesnoth-sdl_SRC
sdl/rect.cpp sdl/rect.cpp
sdl/texture.cpp sdl/texture.cpp
sdl/window.cpp sdl/window.cpp
sdl/utils.cpp
) )
add_library(wesnoth-sdl add_library(wesnoth-sdl
@ -948,7 +949,6 @@ set(libwesnoth-game_STAT_SRC
race.cpp race.cpp
random.cpp random.cpp
reports.cpp reports.cpp
sdl_utils.cpp
show_dialog.cpp show_dialog.cpp
simple_rng.cpp simple_rng.cpp
sound.cpp sound.cpp
@ -1127,7 +1127,7 @@ set(exploder_SRC
tools/exploder_cutter.cpp tools/exploder_cutter.cpp
tools/exploder_composer.cpp tools/exploder_composer.cpp
tools/dummy_video.cpp tools/dummy_video.cpp
sdl_utils.cpp sdl/utils.cpp
tracer.cpp tracer.cpp
loadscreen_empty.cpp loadscreen_empty.cpp
) )
@ -1143,7 +1143,7 @@ set(cutter_SRC
tools/exploder_utils.cpp tools/exploder_utils.cpp
tools/exploder_cutter.cpp tools/exploder_cutter.cpp
tools/dummy_video.cpp tools/dummy_video.cpp
sdl_utils.cpp sdl/utils.cpp
tracer.cpp tracer.cpp
loadscreen_empty.cpp loadscreen_empty.cpp
) )
@ -1194,7 +1194,7 @@ set(wesmage_SRC
wesmage/options.cpp wesmage/options.cpp
tools/dummy_video.cpp tools/dummy_video.cpp
tools/exploder_utils.cpp tools/exploder_utils.cpp
sdl_utils.cpp sdl/utils.cpp
tracer.cpp tracer.cpp
loadscreen_empty.cpp loadscreen_empty.cpp
) )
@ -1330,7 +1330,7 @@ if(ENABLE_TESTS)
tests/create_images.cpp tests/create_images.cpp
tools/dummy_video.cpp tools/dummy_video.cpp
tools/exploder_utils.cpp tools/exploder_utils.cpp
sdl_utils.cpp sdl/utils.cpp
tracer.cpp tracer.cpp
loadscreen_empty.cpp loadscreen_empty.cpp
) )

View file

@ -151,7 +151,7 @@ libcampaignd_sources = Split("""
libcampaignd = env.Library("campaignd", libcampaignd_sources, OBJPREFIX = "campaignd_") libcampaignd = env.Library("campaignd", libcampaignd_sources, OBJPREFIX = "campaignd_")
libwesnoth_sdl_sources = Split(""" libwesnoth_sdl_sources = Split("""
sdl_utils.cpp sdl/utils.cpp
sdl/alpha.cpp sdl/alpha.cpp
sdl/exception.cpp sdl/exception.cpp
sdl/rect.cpp sdl/rect.cpp
@ -639,7 +639,7 @@ wesmage_sources = Split("""
wesmage/options.cpp wesmage/options.cpp
tools/dummy_video.cpp tools/dummy_video.cpp
tools/exploder_utils.cpp tools/exploder_utils.cpp
sdl_utils.cpp sdl/utils.cpp
sdl/alpha.cpp sdl/alpha.cpp
sdl/window.cpp sdl/window.cpp
tracer.cpp tracer.cpp
@ -686,7 +686,7 @@ create_images_sources = Split("""
tests/create_images.cpp tests/create_images.cpp
tools/dummy_video.cpp tools/dummy_video.cpp
tools/exploder_utils.cpp tools/exploder_utils.cpp
sdl_utils.cpp sdl/utils.cpp
sdl/alpha.cpp sdl/alpha.cpp
sdl/window.cpp sdl/window.cpp
tracer.cpp tracer.cpp

View file

@ -27,7 +27,7 @@
#include "../../map_label.hpp" #include "../../map_label.hpp"
#include "../../replay.hpp" #include "../../replay.hpp"
#include "../../resources.hpp" #include "../../resources.hpp"
#include "../../sdl_utils.hpp" #include "../../sdl/utils.hpp"
#include "../../team.hpp" #include "../../team.hpp"
#include "../../terrain_filter.hpp" #include "../../terrain_filter.hpp"
#include "../../tod_manager.hpp" #include "../../tod_manager.hpp"

View file

@ -16,7 +16,7 @@
#include "exceptions.hpp" #include "exceptions.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include <SDL_ttf.h> #include <SDL_ttf.h>

View file

@ -22,7 +22,7 @@
#define GUI_AUXILIARY_CANVAS_HPP_INCLUDED #define GUI_AUXILIARY_CANVAS_HPP_INCLUDED
#include "formula_callable.hpp" #include "formula_callable.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
class config; class config;
class variant; class variant;

View file

@ -15,7 +15,7 @@
#ifndef INC_LOBBY_DATA #ifndef INC_LOBBY_DATA
#define INC_LOBBY_DATA #define INC_LOBBY_DATA
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include <set> #include <set>
#include <deque> #include <deque>

View file

@ -19,7 +19,7 @@
#include "gui/lib/types/point.hpp" #include "gui/lib/types/point.hpp"
#include "gui/widgets/event_executor.hpp" #include "gui/widgets/event_executor.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>

View file

@ -20,7 +20,7 @@
#include "gettext.hpp" #include "gettext.hpp"
#include "serialization/unicode.hpp" #include "serialization/unicode.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include "boost/foreach.hpp" #include "boost/foreach.hpp"
#include <boost/algorithm/string/join.hpp> #include <boost/algorithm/string/join.hpp>

View file

@ -16,7 +16,7 @@
#define IMAGE_HPP_INCLUDED #define IMAGE_HPP_INCLUDED
#include "map_location.hpp" #include "map_location.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include "terrain_translation.hpp" #include "terrain_translation.hpp"
#include "game_config.hpp" #include "game_config.hpp"

View file

@ -17,7 +17,7 @@
#ifndef IMAGE_MODIFICATIONS_HPP_INCLUDED #ifndef IMAGE_MODIFICATIONS_HPP_INCLUDED
#define IMAGE_MODIFICATIONS_HPP_INCLUDED #define IMAGE_MODIFICATIONS_HPP_INCLUDED
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include <queue> #include <queue>
namespace image { namespace image {

View file

@ -13,7 +13,7 @@
*/ */
#include <vector> #include <vector>
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include "map.hpp" #include "map.hpp"
#ifndef JOYSTICK_HPP_ #ifndef JOYSTICK_HPP_

View file

@ -19,7 +19,7 @@
class CVideo; class CVideo;
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
class loadscreen { class loadscreen {
public: public:

View file

@ -21,7 +21,7 @@
#include "image.hpp" #include "image.hpp"
#include "log.hpp" #include "log.hpp"
#include "map.hpp" #include "map.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include "team.hpp" #include "team.hpp"
#include "wml_exception.hpp" #include "wml_exception.hpp"

View file

@ -14,7 +14,7 @@
#include "sdl/rect.hpp" #include "sdl/rect.hpp"
#include "sdl/alpha.hpp" #include "sdl/alpha.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
namespace sdl namespace sdl
{ {

View file

@ -21,7 +21,7 @@
*/ */
#include <SDL_version.h> #include <SDL_version.h>
#include <sdl_utils.hpp> #include "utils.hpp"
#if SDL_VERSION_ATLEAST(2, 0, 0) #if SDL_VERSION_ATLEAST(2, 0, 0)
#include <SDL_rect.h> #include <SDL_rect.h>

View file

@ -20,7 +20,7 @@
#include "SDL_image.h" #include "SDL_image.h"
#include "sdl/exception.hpp" #include "sdl/exception.hpp"
#include "sdl/rect.hpp" #include "sdl/rect.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include <cassert> #include <cassert>

View file

@ -19,7 +19,7 @@
#include "global.hpp" #include "global.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include "sdl/alpha.hpp" #include "sdl/alpha.hpp"
#include "sdl/rect.hpp" #include "sdl/rect.hpp"

View file

@ -24,7 +24,7 @@
#if SDL_VERSION_ATLEAST(2, 0, 0) #if SDL_VERSION_ATLEAST(2, 0, 0)
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
@ -109,7 +109,7 @@ public:
* *
* This is a wrapper for @ref SDL_SetWindowTitle. * This is a wrapper for @ref SDL_SetWindowTitle.
* *
* @param title  The new title for the window. * @param title The new title for the window.
*/ */
void set_title(const std::string& title); void set_title(const std::string& title);
@ -121,7 +121,7 @@ public:
* @note The @p icon is a @ref SDL_Surface and not a @ref SDL_Texture, this * @note The @p icon is a @ref SDL_Surface and not a @ref SDL_Texture, this
* is part of the SDL 2 API. * is part of the SDL 2 API.
* *
* @param icon  The new icon for the window. * @param icon The new icon for the window.
*/ */
void set_icon(const surface& icon); void set_icon(const surface& icon);

View file

@ -24,7 +24,7 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
class config; class config;
class vconfig; class vconfig;

View file

@ -19,7 +19,7 @@
#include <boost/bind.hpp> #include <boost/bind.hpp>
#include "sdl/rect.hpp" #include "sdl/rect.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include "widgets/drop_target.hpp" #include "widgets/drop_target.hpp"
BOOST_AUTO_TEST_SUITE( test_drop_target ) BOOST_AUTO_TEST_SUITE( test_drop_target )

View file

@ -15,7 +15,7 @@
#ifndef TESTS_TEST_SDL_UTILS_HPP_INCLUDED #ifndef TESTS_TEST_SDL_UTILS_HPP_INCLUDED
#define TESTS_TEST_SDL_UTILS_HPP_INCLUDED #define TESTS_TEST_SDL_UTILS_HPP_INCLUDED
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include <boost/function.hpp> #include <boost/function.hpp>

View file

@ -15,7 +15,7 @@
#ifndef TEXT_HPP_INCLUDED #ifndef TEXT_HPP_INCLUDED
#define TEXT_HPP_INCLUDED #define TEXT_HPP_INCLUDED
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include "serialization/unicode.hpp" #include "serialization/unicode.hpp"
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>

View file

@ -15,7 +15,7 @@
/** @file */ /** @file */
#include "../video.hpp" #include "../video.hpp"
#include "../sdl_utils.hpp" #include "../sdl/utils.hpp"
static surface dummy_screen_surface(NULL); static surface dummy_screen_surface(NULL);

View file

@ -15,9 +15,8 @@
#ifndef EXPLODER_CUTTER_HPP_INCLUDED #ifndef EXPLODER_CUTTER_HPP_INCLUDED
#define EXPLODER_CUTTER_HPP_INCLUDED #define EXPLODER_CUTTER_HPP_INCLUDED
#include "../sdl_utils.hpp" #include "../sdl/utils.hpp"
#include "../config.hpp" #include "../config.hpp"
#include "../sdl_utils.hpp"
#include "exploder_utils.hpp" #include "exploder_utils.hpp"
class cutter class cutter

View file

@ -15,7 +15,7 @@
#ifndef EXPLODER_UTILS_HPP_INCLUDED #ifndef EXPLODER_UTILS_HPP_INCLUDED
#define EXPLODER_UTILS_HPP_INCLUDED #define EXPLODER_UTILS_HPP_INCLUDED
#include "../sdl_utils.hpp" #include "../sdl/utils.hpp"
#include <string> #include <string>
struct exploder_failure struct exploder_failure

View file

@ -24,7 +24,7 @@
#include "log.hpp" #include "log.hpp"
#include "preferences.hpp" #include "preferences.hpp"
#include "preferences_display.hpp" #include "preferences_display.hpp"
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include "sdl/rect.hpp" #include "sdl/rect.hpp"
#include "sdl/window.hpp" #include "sdl/window.hpp"
#include "video.hpp" #include "video.hpp"

View file

@ -20,7 +20,7 @@
#ifndef WESMAGE_FILTER_HPP_INCLUDED #ifndef WESMAGE_FILTER_HPP_INCLUDED
#define WESMAGE_FILTER_HPP_INCLUDED #define WESMAGE_FILTER_HPP_INCLUDED
#include "sdl_utils.hpp" #include "sdl/utils.hpp"
#include <string> #include <string>
#include <vector> #include <vector>

View file

@ -21,7 +21,7 @@
#include <vector> #include <vector>
#include "SDL.h" #include "SDL.h"
#include "../sdl_utils.hpp" #include "../sdl/utils.hpp"
#include "scrollarea.hpp" #include "scrollarea.hpp"
namespace gui { namespace gui {

View file

@ -16,7 +16,7 @@
#include "SDL.h" #include "SDL.h"
#include "../sdl_utils.hpp" #include "../sdl/utils.hpp"
#include "widget.hpp" #include "widget.hpp"

View file

@ -16,7 +16,7 @@
#define WIDGET_HPP_INCLUDED #define WIDGET_HPP_INCLUDED
#include "../events.hpp" #include "../events.hpp"
#include "../sdl_utils.hpp" #include "../sdl/utils.hpp"
class CVideo; class CVideo;