From 23abbedcbd931558164f83bdf37892cfe011da80 Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 20 Nov 2006 18:51:11 +0000 Subject: [PATCH] implemented clipboard handling for cards git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@83 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/data/card.hpp | 2 +- src/data/field/image.hpp | 2 +- src/data/field/symbol.hpp | 2 +- src/data/format/apprentice.cpp | 11 ++++ src/data/format/clipboard.cpp | 83 ++++++++++++++++++++++++++ src/data/format/clipboard.hpp | 43 +++++++++++++ src/data/format/html.cpp | 11 ++++ src/data/format/mse1.cpp | 11 ++++ src/data/format/mse2.cpp | 11 ++++ src/data/format/mtg_editor.cpp | 11 ++++ src/data/format/mws.cpp | 11 ++++ src/data/game.cpp | 2 +- src/data/stylesheet.cpp | 2 +- src/gui/about_window.hpp | 2 +- src/gui/control/card_editor.hpp | 4 +- src/gui/control/card_list.cpp | 39 +++++++++++- src/gui/control/card_list.hpp | 2 + src/gui/control/filtered_card_list.hpp | 2 +- src/gui/control/native_look_editor.cpp | 2 +- src/gui/set/cards_panel.cpp | 57 +++++++++++------- src/gui/set/cards_panel.hpp | 6 +- src/gui/set/panel.hpp | 18 +----- src/gui/set/set_info_panel.cpp | 9 +-- src/gui/set/set_info_panel.hpp | 2 +- src/gui/set/stats_panel.cpp | 25 +++++++- src/gui/set/stats_panel.hpp | 11 +++- src/gui/symbol/basic_shape_editor.hpp | 2 +- src/gui/symbol/control.cpp | 2 +- src/gui/symbol/control.hpp | 2 +- src/gui/symbol/point_editor.hpp | 2 +- src/gui/symbol/select_editor.cpp | 2 +- src/gui/symbol/select_editor.hpp | 2 +- src/gui/symbol/window.hpp | 2 +- src/gui/util.cpp | 13 ++++ src/gui/util.hpp | 5 ++ src/gui/welcome_window.cpp | 2 +- src/gui/welcome_window.hpp | 2 +- src/mse.vcproj | 6 ++ src/render/card/viewer.cpp | 1 + src/util/io/get_member.cpp | 1 + src/util/io/package.cpp | 25 ++++++++ src/util/io/package.hpp | 7 +++ src/util/io/reader.cpp | 23 ++++++- src/util/io/writer.cpp | 17 ++++++ src/util/prec.hpp | 3 + src/util/window_id.hpp | 3 + 46 files changed, 433 insertions(+), 70 deletions(-) create mode 100644 src/data/format/apprentice.cpp create mode 100644 src/data/format/clipboard.cpp create mode 100644 src/data/format/clipboard.hpp create mode 100644 src/data/format/html.cpp create mode 100644 src/data/format/mse1.cpp create mode 100644 src/data/format/mse2.cpp create mode 100644 src/data/format/mtg_editor.cpp create mode 100644 src/data/format/mws.cpp diff --git a/src/data/card.hpp b/src/data/card.hpp index 765d357d..ba1cc350 100644 --- a/src/data/card.hpp +++ b/src/data/card.hpp @@ -9,7 +9,7 @@ // ----------------------------------------------------------------------------- : Includes -#include +#include #include class Game; diff --git a/src/data/field/image.hpp b/src/data/field/image.hpp index a0285d51..0212c254 100644 --- a/src/data/field/image.hpp +++ b/src/data/field/image.hpp @@ -50,7 +50,7 @@ class ImageValue : public Value { public: inline ImageValue(const ImageFieldP& field) : Value(field) {} - String filename; ///< Filename of the image (in the current package), or "" + FileName filename; ///< Filename of the image (in the current package), or "" virtual String toString() const; diff --git a/src/data/field/symbol.hpp b/src/data/field/symbol.hpp index abf49039..f57a42ec 100644 --- a/src/data/field/symbol.hpp +++ b/src/data/field/symbol.hpp @@ -65,7 +65,7 @@ class SymbolValue : public Value { inline SymbolValue(const SymbolFieldP& field) : Value(field) {} DECLARE_HAS_FIELD(Symbol) - String filename; ///< Filename of the symbol (in the current package) + FileName filename; ///< Filename of the symbol (in the current package) virtual String toString() const; diff --git a/src/data/format/apprentice.cpp b/src/data/format/apprentice.cpp new file mode 100644 index 00000000..5e85f472 --- /dev/null +++ b/src/data/format/apprentice.cpp @@ -0,0 +1,11 @@ +//+----------------------------------------------------------------------------+ +//| Description: Magic Set Editor - Program to make Magic (tm) cards | +//| Copyright: (C) 2001 - 2006 Twan van Laarhoven | +//| License: GNU General Public License 2 or later (see file COPYING) | +//+----------------------------------------------------------------------------+ + +// ----------------------------------------------------------------------------- : Includes + +#include + +// ----------------------------------------------------------------------------- : diff --git a/src/data/format/clipboard.cpp b/src/data/format/clipboard.cpp new file mode 100644 index 00000000..75a0f562 --- /dev/null +++ b/src/data/format/clipboard.cpp @@ -0,0 +1,83 @@ +//+----------------------------------------------------------------------------+ +//| Description: Magic Set Editor - Program to make Magic (tm) cards | +//| Copyright: (C) 2001 - 2006 Twan van Laarhoven | +//| License: GNU General Public License 2 or later (see file COPYING) | +//+----------------------------------------------------------------------------+ + +// ----------------------------------------------------------------------------- : Includes + +#include +#include +#include +#include +#include +#include