GenevensiS
fa021d81c8
Merge pull request #16 from G-e-n-e-v-e-n-s-i-S/console-width_of-fix
...
fix width_of invocation in console not working
2024-09-18 09:23:33 +02:00
GenevensiS
258679b3c3
fix width_of invocation in console not working
2024-09-18 09:16:57 +02:00
GenevensiS
9b34ae5446
add get_card_styling function for export scripts
2024-09-16 08:59:55 +02:00
Brendan Hagan
8d78a66517
Merge pull request #53 from haganbmj/export_subdirectories
...
export scripts can write to subdirectories
2022-11-18 22:12:02 -05:00
Brendan Hagan
5ba9a33e18
misc: make export directory creation recursive
2022-11-18 21:58:33 -05:00
Djack Donovan
d9f79ef99b
export scripts can write to subdirectories
...
Allow export scripts to write files to new subdirectories
2022-11-18 21:52:49 -05:00
Djack Donovan
d1bac74eb9
Script: to_date accepts "now" as an argument
...
indentation fix
2022-11-18 21:40:12 -05:00
Brendan Hagan
05855b812a
feat: add ability to control zoom/angle on generated card image
2022-08-13 23:53:29 -04:00
Brendan Hagan
a1fda8c6cd
feat: barebones image width/height script functions
...
Ideally want a better way to make these properties or something.
2022-08-13 23:53:29 -04:00
Brendan Hagan
0b22b17153
feat: initial implementation for to_card_image() function ( closes #33 )
2022-08-13 23:53:29 -04:00
Brendan Hagan
132d8d9351
feat: add underline to panels and export
2022-07-26 22:37:57 -04:00
Brendan Hagan
52a918be39
misc: remove extra_data function
2022-07-14 17:33:22 -04:00
Brendan Hagan
be2635f778
misc: apply canonical field name transformation
2022-06-21 23:17:28 -04:00
Brendan Hagan
6e077b0899
feat: add extra_data() function to expose extra card fields
2022-06-21 23:16:13 -04:00
Twan van Laarhoven
5840f6c493
Fix type error in error handler
2020-09-27 01:10:36 +02:00
Twan van Laarhoven
f0c0b51e6c
Fix #59 , fix #61 :
...
* Now a <nospellcheck>/<sym>/<atom> anywhere within a word disables the spellchecker.
* Consider single quotes to be a part of a word, for things like "doesn't". TODO: this will do the wrong thing for text in single quotes
2020-05-26 23:37:35 +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
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
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
1f3a2c2519
Fix #35
2020-05-14 23:48:06 +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
e005d47d56
Use std::enable_shared_from_this instead of thisP parameters.
2020-05-06 22:59:10 +02:00
Twan van Laarhoven
30391672ad
Exception instead of warning
2020-04-30 14:25:18 +02:00
Twan van Laarhoven
a11af1767c
Fix #6 , fix #7 : infinite loops/infinite recursion in regex script functions are now "nice" exceptions
2020-04-30 14:08:06 +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
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
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
7d06e903a4
Rename script function rotate -> rotate_image
2020-04-25 23:46:30 +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
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
8f8e2cea65
Expose the 'warning' function, and added a similar 'error' function.
...
Add documentation.
2020-04-23 20:22:43 +02:00
Twan van Laarhoven
bad896898f
Don't throw Char*
2020-04-23 19:56:46 +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
59d59e97fd
fixed: write_image_file failed with --export with relative path, because the is-relative-to-target-dir check was wrong
2020-04-21 00:13:23 +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
24f4b4edba
Add type_name function to query the type of a value
2020-04-18 22:03:25 +02:00
Twan van Laarhoven
9c9eba77a0
Fix: substr("foo",begin:3) now returns "" instead of true
2020-04-18 19:34:32 +02:00
Twan van Laarhoven
0cffdb7d1a
move reverse_string to string.hpp
2020-04-14 20:27:39 +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