Commit Graph

1217 Commits

Author SHA1 Message Date
Twan van Laarhoven 4ed586ddfe Fix crash in 64 bit build, because size_t can't be used with a %d format string 2020-05-22 19:45:18 +02:00
Twan van Laarhoven 9922e39feb Fix locale errors 2020-05-22 19:02:31 +02:00
Twan van Laarhoven 8192bd9613 fix: don't use cannonical name form when generating choice images, use it only for indexing 2020-05-22 16:17:33 +02:00
Twan van Laarhoven 22b1c2604b Remove reader_pragma_handler hack 2020-05-22 01:23:53 +02:00
Twan van Laarhoven 173f702ffa Warn about missing ':' in reader 2020-05-22 01:20:48 +02:00
Twan van Laarhoven c9c7a958ae Add exception handlers in places where scripts are invoked. This should lead to slightly nicer error messages. 2020-05-22 00:30:18 +02:00
Twan van Laarhoven 8b91cd8804 Message box when there are exceptions when creating a set, because there is no console yet 2020-05-22 00:26:51 +02:00
Twan van Laarhoven cbab6481a1 When reading, don't add items to a vector before they are read. This avoids nullptrs in the list of fields, cards, etc. when exceptions are thrown 2020-05-22 00:25:55 +02:00
Twan van Laarhoven 749de23eb0 Fix error when using saveAs 2020-05-22 00:25:35 +02:00
Twan van Laarhoven c8bf037815 Fix: correct line numbers for parse errors in included files 2020-05-22 00:24:05 +02:00
Twan van Laarhoven 4bd29f0eda Add override keyword 2020-05-21 20:01:23 +02:00
Twan van Laarhoven 1bb61ea9ac Fix gcc build 2020-05-21 19:53:56 +02:00
Twan van Laarhoven be3e8b1e6b Fix reflection of TextStyle::layout 2020-05-21 19:34:39 +02:00
Twan van Laarhoven 1a0e17221b Added StringView type (similar to std::string_view) 2020-05-21 19:29:42 +02:00
Twan van Laarhoven 6a299dfe41 Fix #48 2020-05-20 13:10:39 +02:00
Twan van Laarhoven 641acff92a Add game and stylesheet version numbers to set files. Closes #39 2020-05-19 23:56:23 +02:00
Twan van Laarhoven 09139128e1 Fix in_tag and is_tag calls, fixes #47 2020-05-19 22:59:38 +02:00
Twan van Laarhoven a0f077e3b6 Fix gcc build 2020-05-18 00:31:46 +02:00
Twan van Laarhoven 7ac44fcff1 More strict matching of tags: <blah> doesn't count as <b> anymore 2020-05-17 23:51:36 +02:00
Twan van Laarhoven ab4e7e59f3 Margin top in <margin> tag 2020-05-17 22:52:56 +02:00
Twan van Laarhoven b3ddb295fc Rewrite of keyword matching code. This fixes #20
Uses new iterator based tagged string functions.
2020-05-17 22:00:59 +02:00
Twan van Laarhoven 0b653938cc Use unordered_map in KeywordTrie 2020-05-16 21:57:28 +02:00
Twan van Laarhoven cba96d6f23 Fix #46 2020-05-16 20:35:57 +02:00
Twan van Laarhoven 6b6306fc86 Don't use wxMkDir, it shows stupid error messages 2020-05-16 20:12:04 +02:00
Twan van Laarhoven 424fd96185 Add help text to the card/keyword filter boxes 2020-05-16 14:16:32 +02:00
Twan van Laarhoven e7c5a0fe32 Use '-' for negation in quick filter (closes #43) 2020-05-16 13:52:25 +02:00
Twan van Laarhoven ab2adf7e70 In quick filter, treat ! and : as literal characters when inside quotes (#43) 2020-05-16 13:25:25 +02:00
Twan van Laarhoven 92fbb9ea10 Remove erase background event handlers, in favor of SetBackgroundStyle. 2020-05-16 01:56:17 +02:00
Twan van Laarhoven dbe6fbd33b cleanup: child class doesn't need to be public 2020-05-16 00:58:44 +02:00
Twan van Laarhoven 32f28747f0 cleanup indentation 2020-05-16 00:56:11 +02:00
Twan van Laarhoven 5deaeeeb3e Cleanup: use override specifier everywhere, and enable gcc warning to check for it. 2020-05-16 00:23:18 +02:00
Twan van Laarhoven a7c47729c1 Clean up old style angle brackets in nested templates 2020-05-15 02:15:58 +02:00
Twan van Laarhoven 3ea5ea9573 Fix missing carret in card filter box
Add Ctrl+K as a shortcut for card/keyword filter
2020-05-15 02:08:55 +02:00
Twan van Laarhoven 44c4acc2f5 Remove unused string functions 2020-05-14 23:51:43 +02:00
Twan van Laarhoven 1f3a2c2519 Fix #35 2020-05-14 23:48:06 +02:00
Twan van Laarhoven a13337c262 Fix #36 2020-05-14 23:16:27 +02:00
Twan van Laarhoven 2b7bd252e4 Added <li>, <margin> and <align> tags 2020-05-14 21:32:22 +02:00
Twan van Laarhoven 6d4d973645 Add support for HTML style hex colors, #ff0000 = red, etc. 2020-05-12 22:48:56 +02:00
Twan van Laarhoven dbb6d34bb3 Add <font:$family> tag, closes #24 2020-05-12 22:30:04 +02:00
Twan van Laarhoven 41ed84e678 Fix off-by-1 error in per-paragraph alignment 2020-05-12 22:26:12 +02:00
Twan van Laarhoven ed45c7efb8 Cleanup 2020-05-12 22:25:55 +02:00
Twan van Laarhoven 0c3712b61a Cleanup: indentation of public/protected/private keywords 2020-05-12 21:57:37 +02:00
Twan van Laarhoven 86aec577a2 Use enum class 2020-05-12 21:29:11 +02:00
Twan van Laarhoven 7781a428f6 Add constant for escaped < 2020-05-12 21:10:01 +02:00
Twan van Laarhoven 48dcdb8e59 Don't throw an exception when failing to load spellchecker file, instead show warning and continue.
Mitigates #25 somewhat
2020-05-12 18:59:33 +02:00
Twan van Laarhoven cb635bd73d Disable script profiler in release build 2020-05-12 18:54:56 +02:00
Twan van Laarhoven cc56aec430 Settings filename 2020-05-12 18:54:04 +02:00
Twan van Laarhoven e7d0a2106d Fixed warnings 2020-05-12 17:49:42 +02:00
Twan van Laarhoven e6af772ebd Fix reading of symbols: perform after_reading for derived classes 2020-05-12 15:41:10 +02:00
Twan van Laarhoven e36dc69ca6 Fix: crash caused by keywords with empty parameter matches (partial fix for #33) 2020-05-12 14:45:54 +02:00