twanvl
2f7d95af9c
No longer using namespace boost,
...
doing that lead to conflicts in new compilers, because both boost and std contain a shared_ptr type.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1517 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-03 16:16:28 +00:00
twanvl
a3973deb0d
fix: Fix error in vc9: some stupid library defined 'near'
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1516 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-03 15:48:24 +00:00
twanvl
9b438daf41
Fix error in vc9: use _wassert instead of _assert, the latter no longer exists.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1510 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-02 13:51:07 +00:00
twanvl
ca7ade0cfd
Fix error in vc9: use _wassert instead of _assert, the latter no longer exists.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1508 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-02 13:42:31 +00:00
twanvl
cc43ea3940
Fix error in vc9: universal-character-name encountered in source
...
Changed unicode literals from '\u1234' to '\x1234'. Hopefully this doesn't break the build for other compilers.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1507 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-02 13:39:33 +00:00
twanvl
50a26e4c76
* find_i function for case insensitive searching
...
* card::contains uses case insensitive find
* Added card::contains_words for quick search, which searches for each word separately
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1484 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 22:33:20 +00:00
twanvl
be922940a2
Added a "quick search" box for filtering the card list
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1483 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 21:52:26 +00:00
twanvl
4defd52aa2
allow reading images from the current directory in the CLI interface
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1475 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 18:25:35 +00:00
twanvl
e01b24aa63
Added 'recolor_image' function
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1473 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 18:19:05 +00:00
twanvl
726bd9c135
don't use locale for error message (mostly to stop mse from whining about the missing entry)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1471 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 14:54:52 +00:00
twanvl
463c3d9a81
(minor) use getAngle() instead of trAngle(0)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1470 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 14:53:30 +00:00
twanvl
69ea39c64f
slightly better error messages when reading an enum value fails: also report the default used
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1464 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-02 23:05:05 +00:00
twanvl
44b3d15a68
warn about invalid conversion to int/double/bool in Reader
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1459 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-22 13:36:05 +00:00
twanvl
f7ae4b5a7b
in_tag function now looks for a positive number of tag occurrences.
...
In particular: in "<tag><tag></tag>x</tag>" the x is now in_tag.
This fixes the rest of #20 .
Also added is_in_tag function that returns a bool instead of the tag position.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1456 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 22:42:46 +00:00
twanvl
864cabb590
fixed nullptr exception when opening a stylesheet without a game twice, the solution is to re-load when loading/validating fails the first time
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1451 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 18:49:12 +00:00
twanvl
f88d92acab
curly_quotes now considers EM_DASH to be a space, so it uses an open quote after it.
...
Fixes #33
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1449 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 18:23:57 +00:00
twanvl
f8c7961c03
trim filenames, apparently writing a file "some card " is not possible on windows, it drops the trailing space.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1448 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 18:06:54 +00:00
twanvl
51dfed69b4
Instead of the new_intrusive<T>() functions, use intrusive(new T)
...
This means we no longer need 8 different functions for different numbers of arguments, and non-const references can now also be passed to constructors without problems.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1443 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 14:32:28 +00:00
coppro
85854b1bd2
Fix warnings
...
Semi-fix bug #6 (does not work if the zipfile was loaded from a directory)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1439 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-03-04 01:46:04 +00:00
coppro
cf91f9c43b
Update copryright date to 2010.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1438 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-03-01 23:33:25 +00:00
coppro
47aa7ce923
Rename 'cannocial_name_form' to 'canonical_name_form'
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1433 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-12-04 06:04:57 +00:00
coppro
5a8f8e8d70
Following a fine MSE tradition of forgetting to svn add new files.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1428 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-09-28 23:02:54 +00:00
coppro
f2d6714da9
(sorry for making this all one commit)
...
Fiddled with the backbone for scripts some more.
VCS are now suppported in sets but configuration/non-svn-systems missing
Linux build now uses precompiled headers (build time--)
A couple warning fixes too.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1427 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-09-16 23:40:44 +00:00
coppro
7af4cd4bd0
Lots of miscellaneous fixes, also added basic VCS framework
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1416 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-08-01 22:34:04 +00:00
coppro
b73f081b60
Updated copyright information (2009 + my real name)
...
MSE now handles opening more gracefully - can handle directories and failures
Changed behavior to always save cards to separate files with intent to add VCS later (note: shouldn't do this for zip, but can't see a good way to approach this)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1388 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-06-19 03:09:05 +00:00
coppro
4c9f3afb05
MSE can now save cards in separate files (needs manual config editing still).
...
Trailing slashes are stripped from commandline arguments (because directory.mse-set/ should be accepted)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1386 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-06-18 02:18:23 +00:00
twanvl
c767b6969d
fix for non Unicode build; why won't it die already?
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1364 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-15 22:59:40 +00:00
coppro
30671ad5b0
Fixed a bunch of linker errors preventing optimized compile on Linux.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1352 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-14 19:13:05 +00:00
twanvl
ad5e22e7c5
Added script support for wxDateTime values:
...
- added ScriptDateTime type
- added to_date function
- added date formating support to to_string.
- documented all of the above.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1348 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-11 16:52:07 +00:00
twanvl
c8dd777bca
EnumReader now warns about the correct string,
...
parse_enum function throws if the string can not be parsed
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1341 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-11 00:45:21 +00:00
twanvl
4200e4ae0a
made isComplex() function cope with the looping of the IMPLEMENT_REFLECTION function
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1337 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-10 20:21:14 +00:00
twanvl
37ea36005d
free spelling suggestion list from hunspell
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1336 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-10 14:44:45 +00:00
twanvl
c7c028b026
fixed: version number propagates to included files
...
magic pack template now uses 'pack type' instead of 'pack item'
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1331 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-10 02:43:15 +00:00
twanvl
d3922cb59d
make pack type labels clickable (based on HoverButton).
...
use set_help_text instead of the previous thing in SetWindow.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1327 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-10 00:34:54 +00:00
twanvl
eba29d38e7
don't merge actions that have been undone before, for example:
...
typing1 Ctrl+Z Ctrl+Y typing2 Ctrl+Z
removes just typing2, not both.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1323 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-09 20:02:21 +00:00
twanvl
c338444e43
The writer now writes less unused blocks, especially for unused DelayedIndexMaps
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1322 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-09 19:39:22 +00:00
twanvl
4fde933a11
added time_created and time_modified to Card. This changes the file format
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1321 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-09 19:07:14 +00:00
twanvl
6fdb7f92b1
Added CustomPackDialog for user constructed PackTypes.
...
There is no UI for using these custom types yet.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1318 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-09 15:43:15 +00:00
twanvl
7d1bb77163
tweaks to compact reading with tag.isComplex(): no longer requires that many hacks
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1312 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-09 02:03:24 +00:00
twanvl
432cdcd583
mostly backwards compatibility with old pack system, uses boost tribool
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1311 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-09 00:49:14 +00:00
twanvl
157aae1179
version bump
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1306 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-08 17:33:13 +00:00
twanvl
c9a11b2198
fixed assert_tagged for release builds
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1305 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-08 17:32:43 +00:00
twanvl
05ba96ab3e
slightly less tagged string checking
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1304 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-08 17:25:36 +00:00
twanvl
f134edb09d
added check_tagged function that verifies that a tagged string is correct, this helps with debugging.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1302 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-08 17:10:54 +00:00
coppro
cf4aea531d
Game settings loading is now deferred until the game is fully loading.
...
This allows auto replaces to be properly loaded from the game file.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1295 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-07 00:20:10 +00:00
coppro
1c925a6225
Upped MSE's version number; pushed up M:tG's game version (spellcheck).
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1293 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-04 19:52:09 +00:00
coppro
3ee71ef6ae
Added a lot of BOMs; cleaned up text replacements into auto_replace scripts.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1292 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-04 19:10:05 +00:00
coppro
46dda0ef30
Compatibility updates; Boost Regex is now statically linked, changed to <hunspell/hunspell.hxx>
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1286 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-02 21:52:08 +00:00
twanvl
311a743fa1
simplified handling of punctuation is spellchecker, now checks for stand alone punctuation and double spaces.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1275 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-31 03:11:25 +00:00
twanvl
e36dc6e6cb
apply spelling corrections from the context menu.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1274 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-30 19:51:41 +00:00