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
2b7bd252e4
Added <li>, <margin> and <align> tags
2020-05-14 21:32:22 +02:00
Twan van Laarhoven
dbb6d34bb3
Add <font:$family> tag, closes #24
2020-05-12 22:30:04 +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
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
e7d0a2106d
Fixed warnings
2020-05-12 17:49:42 +02:00
Twan van Laarhoven
42b5b10074
Update url for issues
2020-05-12 02:15:57 +02:00
Twan van Laarhoven
a3951ae345
Use iterators instead of Char*
2020-05-12 02:10:38 +02:00
Twan van Laarhoven
3d6e3b3103
Use iterators instead of string positions
2020-05-12 02:09:10 +02:00
Twan van Laarhoven
7cf5531efd
Fix #31
2020-05-11 21:36:22 +02:00
Twan van Laarhoven
b57d9b7615
Enable 64 bit static build and fix linker error
2020-05-11 01:54:21 +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
8f6423a96e
Fix intrusive_ptr and IntrusiveFromThis on gcc, fixes #21
2020-05-08 22:29:52 +02:00
Twan van Laarhoven
2d171732a0
Add Select All functionality, closes #19
2020-05-08 02:19:04 +02:00
Twan van Laarhoven
8b25815f72
Re-enabled intrusive_ptr
2020-05-07 22:25:02 +02:00
Twan van Laarhoven
360f8d71ad
Fix: check starting_age <= age, instead of starting_age < age. Otherwise we can get into an infinite loop.
2020-05-07 02:56:43 +02:00
Twan van Laarhoven
26f35893ae
Remove our own atomic type in favor of std::atomic
2020-05-07 02:17:14 +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
6434532dfb
GetMember is not reading. So don't try to fix-up "read" data when getting a member.
...
Fixes #3
2020-05-05 23:11:24 +02:00
Twan van Laarhoven
b1595c9179
(small clean up)
2020-05-02 16:12:15 +02:00
Twan van Laarhoven
6edba0c5c0
Move buffering to Reader
2020-05-02 01:04:35 +02:00
Twan van Laarhoven
06471e5231
Use Base::reflect instead of reflect_impl for reflecting base properties, made reflect_impl private.
...
This should fix #8
2020-04-30 17:40:36 +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
d64dee7834
Fix: images were not being loaded from zip files.
...
wxImage::LoadFile requires the file to be seekable to peek at the header.
We work around this by buffering the header in a wrapper class.
2020-04-28 22:46:34 +02:00
Twan van Laarhoven
5f615b3117
Fix #5 . Use our own function instead of wxRemoveFile, because the latter shows an error when the file doesn't exist.
2020-04-28 21:25:05 +02:00
Twan van Laarhoven
a8b7699ac3
Revert changes to spec_sort
2020-04-27 17:21:24 +02:00
Twan van Laarhoven
f4b2a4316f
Fix: don't run after_reading multiple times when there are included files
2020-04-27 14:23:26 +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
42b7cf52b8
Don't write keys in canonical_name_form
2020-04-26 15:42:01 +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
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
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