Twan van Laarhoven
b7ed93cd02
Remove dependency on boost::random, since that is now in std
2020-04-25 22:22:15 +02:00
Twan van Laarhoven
787a707900
Use std::shuffle instead of std::random_shuffle, since the latter is removed in C++17
2020-04-25 22:20:51 +02:00
Twan van Laarhoven
64ea1d7322
Clean up pointer use:
...
* Use unique_ptr for Actions instead of manual memory management
* Use unique_ptr in KeywordDatabase
* Use unique_ptr instead of shared_ptr for file formats
* Don't pass shared_ptr to Reader/Writer, use references instead
Also
* Switch to C++17 so we can use map::try_emplace
2020-04-25 22:20:51 +02:00
Twan van Laarhoven
708b4389a0
Use make_intrusive/make_shared for smart pointer construction.
2020-04-25 22:20:51 +02:00
Twan van Laarhoven
4258ce1c6c
Remove AColor class, because wxColour now supports alpha values.
2020-04-25 22:20:50 +02:00
Twan van Laarhoven
713a9e4a40
Use underscores instead of spaces for all internal names. And renamed some script functions at the same time.
...
* cannocial_name_form now outputs "_", where it used to use " "
* this simplifies reflectio and scripting code, because now C++ names are also MSE internal names
* added 'caption' property to fields. This is used instead of the name in NativeLookEditor, since the latter will now contain underscores.
* renamed text related script functions for consistency, since we were touching that part of the code anyway.
2020-04-22 23:48:26 +02:00
Twan van Laarhoven
3f8f9bef1a
(typo)
2020-04-21 01:11:28 +02:00
Twan van Laarhoven
e8e7e10fa0
Make extension optional in --export command.
...
Added add_extension function
Added ExportTemplate::byName
Use ExportTemplate::byName in main
2020-04-21 00:23:42 +02:00
Twan van Laarhoven
332f7b9ed8
getContext() clears "card" from the context
2020-04-18 21:34:31 +02:00
Twan van Laarhoven
60c392a068
Moved locale validation to a compile time test, instead of a runtime check performed by MSE itself.
...
This also removes perl as a build dependency for people who don't want to run the test suite.
2020-04-18 19:08:35 +02:00
Twan van Laarhoven
cbf1251f8c
Fix more gcc warnings
2020-04-16 01:03:10 +02:00
Twan van Laarhoven
35a89676b4
CMake file
...
Update to C++ 11: std::shared_ptr, for each loops
Update to wxWidgets 3.0+
2020-04-08 01:10:01 +02:00
Lymia Aluysia
aa39a9bc71
Make PNG the default export format.
2017-01-24 10:49:14 -06:00
Lymia Aluysia
76cf6fc0d6
Suppress libpng errors.
2017-01-18 09:14:17 -06:00
Lymia Aluysia
1d912a6853
Update copyright strings.
2017-01-18 08:52:57 -06:00
Lymia Aluysia
d2c635f739
Change tabs to two spaces.
2017-01-18 08:43:21 -06:00
Lymia Aluysia
0f8222b345
Minor cleanup.
2017-01-18 08:32:41 -06:00
Lymia Aluysia
d78101bcd7
Fix font resolution on Linux.
2017-01-18 08:24:12 -06:00
Lymia Aluysia
8c960f0c34
Work on compiling on mingw
2017-01-18 04:56:16 -06:00
twanvl
b96e7ad1fb
Added option to disable spacing between printed cards
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1646 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-02-02 21:40:19 +00:00
twanvl
bd55326c7d
* Added console panel for evaluating scripts and showing error messages.
...
* Rewrite of error queue code: errors are now pulled, instead of being turned into messageboxes automatically.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1629 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-21 13:26:03 +00:00
twanvl
5e0b5f47bc
need some 'typename' to keep gcc happy
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1621 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-18 20:13:11 +00:00
twanvl
bb1def3d69
moved filter stuff from card list here
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1618 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-17 21:10:49 +00:00
twanvl
d217349148
Added filter box for keywords
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1615 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-16 13:34:50 +00:00
twanvl
984d81e287
(formating)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1606 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-09 15:58:52 +00:00
twanvl
53bbcfe9a9
Be explicit about type of angles: either Radians or Degrees.
...
Angles are always doubles.
Internally use radians as much as possible.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1605 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-09 14:49:59 +00:00
twanvl
2d646c5926
#58 : Add operators to quick search.
...
Added quotes and - operator, which are the most important ones
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1597 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-08 13:37:46 +00:00
twanvl
e9a27b8ee4
Fixed #56 : The quick search bar doesn't look in card.notes
...
Yay for single line changes :)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1596 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-08 13:00:27 +00:00
twanvl
cb01268092
added assertion
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1548 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:18:57 +00:00
twanvl
2f56a058c2
compatibility with wxWdigets 2.9+: wxString::iterator::operator* aparently does not return a wxChar anymore, use cast to force conversion.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1547 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:18:31 +00:00
twanvl
8d830289a7
compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE, etc
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1540 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:13:28 +00:00
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
3def657642
comment
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1513 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-03 15:38:20 +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
4532fade77
Removed old random pack code. It was already disabled by the USE_NEW_PACK_SYSTEM flag.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1482 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 15:48:42 +00:00
twanvl
098e470ff9
A simple default "any card" pack if there are no packs specified in the game file
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1481 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 15:13:29 +00:00
twanvl
d546904163
A simple default "any card" pack if there are no packs specified in the game file
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1480 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 15:07:07 +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
ca0e762b64
New image functions:
...
* invert
* flip_horizontal
* flip_vertical
* rotate
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1472 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 14:56:45 +00:00
twanvl
603442e75b
comment
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1460 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-23 14:40:28 +00:00
twanvl
55599011b4
keep close tags together with keyword parameters, fixes #51
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1457 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 23:33:58 +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
4c3acef3fa
don't crash when an action=nullptr (partial fix for #20 )
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1455 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 19:24:51 +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
twanvl
35f5de2800
compatibility with older wxWidgets versions
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1441 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 13:20:24 +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