Twan van Laarhoven
0fc9480586
Make sure that after_reading is called when loading a Symbol. This fixes #68
2020-06-14 22:25:43 +02:00
Twan van Laarhoven
f97cf4236d
Fix #70 : overlapping keyword matches show reminder text for both keywords, now longest match is used
2020-06-10 00:00:38 +02:00
Twan van Laarhoven
688a25eb83
Fix #67
2020-06-02 19:48:43 +02:00
Twan van Laarhoven
ff86f928ee
No statistics for image fields
2020-06-01 14:20:18 +02:00
Twan van Laarhoven
4ff603d413
Allow ValueViewers to have a bounding box different from the Style's. This closes #64 .
2020-06-01 01:18:13 +02:00
Twan van Laarhoven
1f75175943
Cleanup: rename ValueViewer::viewer -> parent; store CardP in ValueAction
2020-05-31 16:07:13 +02:00
Twan van Laarhoven
31baa909d8
Fix #60 : Don't match keywords when the keyword is (partially) inside and <atom> tag
2020-05-29 00:46:30 +02:00
Twan van Laarhoven
279fdb0378
Fix #58 . Positions of the second match of a keyword were incorrectly counted from the end of the previous match instead of from the start of the string.
2020-05-27 02:12:32 +02:00
Twan van Laarhoven
22a7bce749
Fix #56 : Add default values to TextStyle::layout
2020-05-25 22:34:25 +02:00
Twan van Laarhoven
48dd5907e2
Fix warning
2020-05-24 22:06:24 +02:00
Twan van Laarhoven
386ddb40b9
Remove old code
2020-05-24 21:30:34 +02:00
Twan van Laarhoven
83448a1667
Fix #28 : correctly track dependencies on card_style._.content / ..layout
2020-05-23 13:57:04 +02:00
Twan van Laarhoven
22b1c2604b
Remove reader_pragma_handler hack
2020-05-22 01:23:53 +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
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
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
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
dbb6d34bb3
Add <font:$family> tag, closes #24
2020-05-12 22:30:04 +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
cc56aec430
Settings filename
2020-05-12 18:54:04 +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
Twan van Laarhoven
e8eacac5e7
Expose more information about text layout.
2020-05-10 14:16:10 +02:00
Twan van Laarhoven
1c35183839
Consistent order of style property updates.
...
See #4 (which is mostly fixed by this commit)
2020-05-10 00:20:37 +02:00
Twan van Laarhoven
0a0dd72e36
Fix null dereference when stylesheets are missing, added an error message
2020-05-09 13:33:41 +02:00
Twan van Laarhoven
968b8eabca
Add "Save as directory"
2020-05-09 13:26:33 +02:00
Twan van Laarhoven
8b25815f72
Re-enabled intrusive_ptr
2020-05-07 22:25:02 +02:00
Twan van Laarhoven
e005d47d56
Use std::enable_shared_from_this instead of thisP parameters.
2020-05-06 22:59:10 +02:00
Twan van Laarhoven
b4435e5e57
Themed checkboxes
...
Slightly larger items in (multiple) choice viewers
2020-05-06 02:47:02 +02:00
Twan van Laarhoven
a1d54f36fc
Use LocalFileName class for file names inside a package.
2020-04-30 00:20:32 +02:00
Twan van Laarhoven
7ef0b885bb
Allow "field:query" in the quick filter bar
2020-04-27 13:16:56 +02:00
Twan van Laarhoven
1a39b85b73
(fix comment)
2020-04-27 01:21:18 +02:00
Twan van Laarhoven
26dd6e570b
Fix reading of word lists
2020-04-26 23:43:04 +02:00
Twan van Laarhoven
af7e8c9d39
Switch (back) to our own Color type instead of using wxColour.
...
The reason is that wxColour's default constructor creates an invalid color (what is that even?). It is nicer to just have default be transparent.
2020-04-26 21:41:35 +02:00
Twan van Laarhoven
2e897edbbf
Use toSomeType() instead of operator SomeType in ScriptValue.
...
This means that we are more explicit about type conversions.
Also use override specifiers for overriden virtual functions in ScriptValue.
2020-04-26 17:03:43 +02:00
Twan van Laarhoven
40d78edf0f
Cleaned up the reflection code a bit
...
* Renamed 'tag' variable to 'handler'
* Removed addAlias stuff, instead check for matching names with if statements
* Added after_reading function that is called by Reader after reading a complete object. This generalizes Packaged::validate, which is now also called via this mechanism.
* Removed some backwards compatibility with <0.3.0 for templates
2020-04-26 15:33:59 +02:00
Twan van Laarhoven
4bebd48786
Moved tab_index to Style (instead of Field), it makes more sense there, since it pertains to the layout of stuff on the card.
...
Also don't precalculate list of fields sorted by tab order, just find the next/previous ones on the fly.
2020-04-26 02:16:39 +02:00
Twan van Laarhoven
54a3cbfde3
Replace include guards by #pragma once
2020-04-26 01:25:16 +02:00
Twan van Laarhoven
bad9981ad9
Cleaned up copyright block.
...
Removed the year so we don't get tempted to change this ever again.
2020-04-26 01:11:14 +02:00
Twan van Laarhoven
4327abb803
Remove DECLARE_TYPEOF
...
It is no longer needed since C++11
2020-04-26 00:51:16 +02:00
Twan van Laarhoven
5e92d9455c
Code cleanup: remove messy spaces before line continuation (\) in macros
2020-04-26 00:37:13 +02:00