Commit Graph

416 Commits

Author SHA1 Message Date
Twan van Laarhoven 5e92d9455c Code cleanup: remove messy spaces before line continuation (\) in macros 2020-04-26 00:37:13 +02:00
Twan van Laarhoven b5f18ebec7 Take version number from Cmake file. This way the number is only in one place 2020-04-25 23:36:00 +02:00
Twan van Laarhoven 37c8641641 Replace scoped_ptr by unique_ptr 2020-04-25 22:28:32 +02:00
Twan van Laarhoven 0d42df1537 Fix type conversion errors in GCC/wxGTK 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 a585fc40cc Remove some useless "typedef wxX X" 2020-04-22 23:58:01 +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 a6cd6c2dd0 Spelling of canonical 2020-04-21 21:48:47 +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 b0180547ae Fix Regex::replace_all to actually do something 2020-04-20 21:19:09 +02:00
Twan van Laarhoven a5b2b77d2a Use C++14 so we have make_unique 2020-04-20 19:49:25 +02:00
Twan van Laarhoven cbf1251f8c Fix more gcc warnings 2020-04-16 01:03:10 +02:00
Twan van Laarhoven a8d78fc28c Fix errors about string iteration on gcc/linux builds 2020-04-16 00:35:43 +02:00
Twan van Laarhoven 2ef73f3fa3 Rewrite spec_sort: don't use REMOVED, fix code to work with wx unicode strings. 2020-04-14 21:07:33 +02:00
Twan van Laarhoven 0cffdb7d1a move reverse_string to string.hpp 2020-04-14 20:27:39 +02:00
Twan van Laarhoven 36918281c0 Fix: index out of bounds 2020-04-10 18:57:59 +02:00
Twan van Laarhoven f76a1230c4 Fix compilation in gcc 2020-04-10 17:44:29 +02:00
Twan van Laarhoven f10ec682ad Fix index out of range bug 2020-04-10 16:57:53 +02:00
Twan van Laarhoven 914a4ecceb fix iterator error 2020-04-10 14:46:27 +02:00
Twan van Laarhoven 6e7a4485a8 Cleaned up utf8 decoding code.
It was actually completely broken in newer wxWidgets versions, putting '\0' characters in the string, which broke things like concatenation.
2020-04-08 01:24:19 +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 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 8f7cc53d5b Fix crash. 2017-01-18 06:25:22 -06:00
Lymia Aluysia 8c960f0c34 Work on compiling on mingw 2017-01-18 04:56:16 -06:00
Lymia Aluysia b9616d09a6 Fix unresolved reference. 2017-01-17 23:54:13 -06:00
Lymia Aluysia 24ba3ab28a Fix check for HAVE_GCC_ATOMIC_BUILTINS 2017-01-17 23:41:59 -06:00
twanvl c6a74d4576 linux: added console_panel to makefile, removed junk from error.hpp
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1642 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-24 11:57:11 +00:00
twanvl df9c539983 version bump to 2.0.0
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1635 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-22 17:54:34 +00:00
twanvl fa7f25306b copying messages from console
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1634 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-22 13:15:05 +00:00
twanvl df32d0e99b make console panel compile correctly in vc7.1, wx2.6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1632 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-21 14:55:42 +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 257e8ebbff backwards compatibility for wxAutoBufferedPaintDCBase
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1626 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-21 11:44:29 +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 9cf9277082 (minor)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1610 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-10 19:39:16 +00:00
twanvl ba700a3f0a Fix #59: cast to Char, not char, the former is wchar_t, the latter is a byte
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1609 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-10 19:38:39 +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 6a6c4a7fe3 version bump: now 0.3.9
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1585 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-07 19:26:49 +00:00
twanvl 809d9b747a Added some ifdefs around the vc9 fixes so that mse still compiles with msvc7 and wxWidget 2.6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1568 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-30 16:50:20 +00:00
twanvl f9e8bb88e3 profile package open timing
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1541 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:14:10 +00:00
twanvl a9a50c358a compatibility with wxWdigets 2.9+: wxString::c_str now returns an object instead of a Char*, use cast to force conversion.
TODO: This can probably be done more efficiently!

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1538 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:12:44 +00:00
twanvl 527d21794c compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent, but this function doesn't exist in wx2.8. So, #define the former as the latter for backwards compatibility.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1537 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:12:14 +00:00
twanvl d12e0838a2 compatibility with wxWdigets 2.9+: work around a bug in wx 2.9.1 (should be fixed in newer releases)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1531 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:06:26 +00:00
twanvl e6884e0db3 compatibility with wxWdigets 2.9+: Vector2D::operator *(int) to prevent ambiguous conversion errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1530 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:05:49 +00:00
twanvl 6f922eac7d compatibility with wxWdigets 2.9+: SetLogicalFunction takes wxRasterOperationMode instead of int
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1529 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:05:00 +00:00
twanvl 65cde6c8f3 compatibility with wxWdigets 2.9+: use wxString::const_iterator instead of raw Char*
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1528 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:04:11 +00:00
twanvl 3562891b42 compatibility with wxWdigets 2.9+: there is now a built in wxString::FromUTF8 function, use it
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1527 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:02:55 +00:00
twanvl 9735e24517 Added a panel showing profiler timings
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1523 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-13 21:35:30 +00:00