Commit Graph

  • b3ddb295fc Rewrite of keyword matching code. This fixes #20 Twan van Laarhoven 2020-05-17 20:37:53 +02:00
  • 0b653938cc Use unordered_map in KeywordTrie Twan van Laarhoven 2020-05-16 21:57:28 +02:00
  • cba96d6f23 Fix #46 Twan van Laarhoven 2020-05-16 20:35:57 +02:00
  • 6b6306fc86 Don't use wxMkDir, it shows stupid error messages Twan van Laarhoven 2020-05-16 20:04:10 +02:00
  • 424fd96185 Add help text to the card/keyword filter boxes Twan van Laarhoven 2020-05-16 14:16:32 +02:00
  • e7c5a0fe32 Use '-' for negation in quick filter (closes #43) Twan van Laarhoven 2020-05-16 13:52:13 +02:00
  • ab2adf7e70 In quick filter, treat ! and : as literal characters when inside quotes (#43) Twan van Laarhoven 2020-05-16 13:25:25 +02:00
  • 92fbb9ea10 Remove erase background event handlers, in favor of SetBackgroundStyle. Twan van Laarhoven 2020-05-16 01:56:17 +02:00
  • dbe6fbd33b cleanup: child class doesn't need to be public Twan van Laarhoven 2020-05-16 00:58:44 +02:00
  • 32f28747f0 cleanup indentation Twan van Laarhoven 2020-05-16 00:56:11 +02:00
  • 5deaeeeb3e Cleanup: use override specifier everywhere, and enable gcc warning to check for it. Twan van Laarhoven 2020-05-16 00:23:18 +02:00
  • a7c47729c1 Clean up old style angle brackets in nested templates Twan van Laarhoven 2020-05-15 02:15:58 +02:00
  • 3ea5ea9573 Fix missing carret in card filter box Add Ctrl+K as a shortcut for card/keyword filter Twan van Laarhoven 2020-05-15 01:57:45 +02:00
  • c9698573c9 Change keyboard shortcuts for tabs Twan van Laarhoven 2020-05-15 00:54:48 +02:00
  • 44c4acc2f5 Remove unused string functions Twan van Laarhoven 2020-05-14 23:51:43 +02:00
  • 1f3a2c2519 Fix #35 Twan van Laarhoven 2020-05-14 23:48:06 +02:00
  • a13337c262 Fix #36 Twan van Laarhoven 2020-05-14 23:16:27 +02:00
  • 2b7bd252e4 Added <li>, <margin> and <align> tags Twan van Laarhoven 2020-05-14 02:37:15 +02:00
  • 6d4d973645 Add support for HTML style hex colors, #ff0000 = red, etc. Twan van Laarhoven 2020-05-12 22:48:56 +02:00
  • dbb6d34bb3 Add <font:$family> tag, closes #24 Twan van Laarhoven 2020-05-12 22:27:57 +02:00
  • 41ed84e678 Fix off-by-1 error in per-paragraph alignment Twan van Laarhoven 2020-05-12 22:26:12 +02:00
  • ed45c7efb8 Cleanup Twan van Laarhoven 2020-05-12 22:25:55 +02:00
  • 0c3712b61a Cleanup: indentation of public/protected/private keywords Twan van Laarhoven 2020-05-12 21:57:37 +02:00
  • 86aec577a2 Use enum class Twan van Laarhoven 2020-05-12 21:29:11 +02:00
  • 7781a428f6 Add constant for escaped < Twan van Laarhoven 2020-05-12 21:10:01 +02:00
  • 48dcdb8e59 Don't throw an exception when failing to load spellchecker file, instead show warning and continue. Mitigates #25 somewhat Twan van Laarhoven 2020-05-12 18:58:54 +02:00
  • cb635bd73d Disable script profiler in release build Twan van Laarhoven 2020-05-12 18:54:56 +02:00
  • cc56aec430 Settings filename Twan van Laarhoven 2020-05-12 18:54:04 +02:00
  • e7d0a2106d Fixed warnings Twan van Laarhoven 2020-05-12 17:49:42 +02:00
  • e6af772ebd Fix reading of symbols: perform after_reading for derived classes Twan van Laarhoven 2020-05-12 15:41:10 +02:00
  • e36dc69ca6 Fix: crash caused by keywords with empty parameter matches (partial fix for #33) Twan van Laarhoven 2020-05-12 14:45:54 +02:00
  • 42b5b10074 Update url for issues Twan van Laarhoven 2020-05-12 02:15:57 +02:00
  • a3951ae345 Use iterators instead of Char* Twan van Laarhoven 2020-05-12 02:10:38 +02:00
  • 3d6e3b3103 Use iterators instead of string positions Twan van Laarhoven 2020-05-12 02:09:10 +02:00
  • bc53730091 Update scrollbar on resize (and on startup) Twan van Laarhoven 2020-05-12 02:07:42 +02:00
  • 7cf5531efd Fix #31 Twan van Laarhoven 2020-05-11 21:36:22 +02:00
  • b57d9b7615 Enable 64 bit static build and fix linker error Twan van Laarhoven 2020-05-11 01:54:21 +02:00
  • 9562103f7e Use whole program optimization Twan van Laarhoven 2020-05-11 00:54:26 +02:00
  • 9160a61d8e Added build target with static linking Twan van Laarhoven 2020-05-11 00:32:09 +02:00
  • 62a0aea3b8 Added some assertions Twan van Laarhoven 2020-05-11 00:31:42 +02:00
  • d90b73101b Implement scrolling ourselfs rather than relying on wxScrolledWindow Twan van Laarhoven 2020-05-10 17:05:31 +02:00
  • 99b8a31da0 (indentation) Twan van Laarhoven 2020-05-10 17:05:01 +02:00
  • e8eacac5e7 Expose more information about text layout. Twan van Laarhoven 2020-05-10 14:12:53 +02:00
  • 1c35183839 Consistent order of style property updates. See #4 (which is mostly fixed by this commit) Twan van Laarhoven 2020-05-10 00:20:37 +02:00
  • 420c329bc4 Added "case-of" control structure Twan van Laarhoven 2020-05-09 18:38:25 +02:00
  • 0a0dd72e36 Fix null dereference when stylesheets are missing, added an error message Twan van Laarhoven 2020-05-09 13:31:42 +02:00
  • 968b8eabca Add "Save as directory" Twan van Laarhoven 2020-05-09 13:26:33 +02:00
  • 8f6423a96e Fix intrusive_ptr and IntrusiveFromThis on gcc, fixes #21 Twan van Laarhoven 2020-05-08 22:29:30 +02:00
  • 2d171732a0 Add Select All functionality, closes #19 Twan van Laarhoven 2020-05-08 01:54:51 +02:00
  • 8b25815f72 Re-enabled intrusive_ptr Twan van Laarhoven 2020-05-07 22:25:02 +02:00
  • 360f8d71ad Fix: check starting_age <= age, instead of starting_age < age. Otherwise we can get into an infinite loop. Twan van Laarhoven 2020-05-07 02:56:43 +02:00
  • 26f35893ae Remove our own atomic type in favor of std::atomic Twan van Laarhoven 2020-05-07 02:17:14 +02:00
  • e005d47d56 Use std::enable_shared_from_this instead of thisP parameters. Twan van Laarhoven 2020-05-06 22:59:10 +02:00
  • b4435e5e57 Themed checkboxes Slightly larger items in (multiple) choice viewers Twan van Laarhoven 2020-05-06 02:47:02 +02:00
  • 6161feefc5 Don't use text cursor when hovering over labels in native look editor Twan van Laarhoven 2020-05-05 23:23:09 +02:00
  • 6434532dfb GetMember is not reading. So don't try to fix-up "read" data when getting a member. Fixes #3 Twan van Laarhoven 2020-05-05 23:11:24 +02:00
  • 30401964d5 Fix #10: find/replace was broken after tab index change. Also: improve tab order to get a total order Twan van Laarhoven 2020-05-05 22:41:32 +02:00
  • cfd19220d5 Use unique_ptr Twan van Laarhoven 2020-05-05 22:36:00 +02:00
  • 302ec87cf2 Locale Twan van Laarhoven 2020-05-04 22:02:09 +02:00
  • c00d1f2236 Use script_nil instead of creating ScriptObjects with null pointers. Fixes #18 Twan van Laarhoven 2020-05-04 19:58:12 +02:00
  • 74230fefeb Fix #17: change &instrs[pos] to &instrs[0]+pos to avoid debug assertions when pos=instrs.size() Twan van Laarhoven 2020-05-04 13:22:44 +02:00
  • 177cc25487 Don't use wxToolBarToolBase::AddDropdownMenu, it is not supposed to be used and might not work in some ports. Twan van Laarhoven 2020-05-04 13:22:05 +02:00
  • 9f99bf4658 There is little point to a pool allocator with shared_ptr, since ref counters are still allocated as well. Twan van Laarhoven 2020-05-04 00:44:50 +02:00
  • 07fe2406e7 Don't allocate wxToolBarToolBase, that can lead to memory corruption and two days of debugging. Twan van Laarhoven 2020-05-04 00:43:58 +02:00
  • b1595c9179 (small clean up) Twan van Laarhoven 2020-05-02 16:12:15 +02:00
  • 6edba0c5c0 Move buffering to Reader Twan van Laarhoven 2020-05-02 01:04:35 +02:00
  • 6c4277bd35 Fix #15, menu and toolbar icons on wxGTK Twan van Laarhoven 2020-05-01 12:55:43 +02:00
  • 1fb3f15aff Generate image for disabled toolbar buttons and menu items. Fixes #13. Twan van Laarhoven 2020-05-01 03:26:02 +02:00
  • 8468c5bd93 Fix #9: Don't use wxWidgets' best size calculation for card and keyword lists. Twan van Laarhoven 2020-04-30 21:11:43 +02:00
  • 77e2ff8fd7 Fix #11: Gallery list best size: Invalidate cache and don't use DoGetBestClientSize Twan van Laarhoven 2020-04-30 20:14:25 +02:00
  • 06471e5231 Use Base::reflect instead of reflect_impl for reflecting base properties, made reflect_impl private. This should fix #8 Twan van Laarhoven 2020-04-30 17:40:36 +02:00
  • e74774138c Fix warnings and linker errors on gcc Twan van Laarhoven 2020-04-30 14:25:28 +02:00
  • 30391672ad Exception instead of warning Twan van Laarhoven 2020-04-30 14:25:18 +02:00
  • a11af1767c Fix #6, fix #7: infinite loops/infinite recursion in regex script functions are now "nice" exceptions Twan van Laarhoven 2020-04-30 14:08:06 +02:00
  • a1d54f36fc Use LocalFileName class for file names inside a package. Twan van Laarhoven 2020-04-29 23:57:36 +02:00
  • f92c09e87a Disable hover effect on field borders for now (it causes redraw issues on some templates) Twan van Laarhoven 2020-04-29 21:29:01 +02:00
  • 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. Twan van Laarhoven 2020-04-28 22:46:34 +02:00
  • 5f615b3117 Fix #5. Use our own function instead of wxRemoveFile, because the latter shows an error when the file doesn't exist. Twan van Laarhoven 2020-04-28 13:50:06 +02:00
  • ed918ce64f changelog: improved card filter Twan van Laarhoven 2020-04-28 13:30:06 +02:00
  • 618df3b534 Script parser now produces warnings about statements where expressions are expected, and about the = comparison operator. Twan van Laarhoven 2020-04-27 19:12:41 +02:00
  • fd6f91e756 Warning instead of error for incorrect word-lists Twan van Laarhoven 2020-04-27 18:11:06 +02:00
  • a8b7699ac3 Revert changes to spec_sort Twan van Laarhoven 2020-04-27 17:21:24 +02:00
  • f4b2a4316f Fix: don't run after_reading multiple times when there are included files Twan van Laarhoven 2020-04-27 14:23:26 +02:00
  • 2c165271be Fix: scrolling on style and set info panels Twan van Laarhoven 2020-04-27 13:22:01 +02:00
  • 46b5075d7a Logo Twan van Laarhoven 2020-04-27 13:17:55 +02:00
  • 7ef0b885bb Allow "field:query" in the quick filter bar Twan van Laarhoven 2020-04-27 01:22:40 +02:00
  • 1a39b85b73 (fix comment) Twan van Laarhoven 2020-04-27 01:21:18 +02:00
  • 26dd6e570b Fix reading of word lists Twan van Laarhoven 2020-04-26 23:43:04 +02:00
  • 0f2e7ac3fe Fix uxtheme stuff on windows Twan van Laarhoven 2020-04-26 22:30:00 +02:00
  • 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. Twan van Laarhoven 2020-04-26 21:41:35 +02:00
  • 8698144ac4 Warn about parse errors in colors Twan van Laarhoven 2020-04-26 17:40:22 +02:00
  • c324c8bbbb to_code now adds quotes around strings. to_code for map now includes keys. This maans that the basic script-functions test passes. Twan van Laarhoven 2020-04-26 17:35:14 +02:00
  • 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. Twan van Laarhoven 2020-04-26 17:03:43 +02:00
  • 42b7cf52b8 Don't write keys in canonical_name_form Twan van Laarhoven 2020-04-26 15:42:01 +02:00
  • 40d78edf0f Cleaned up the reflection code a bit Twan van Laarhoven 2020-04-26 15:33:59 +02:00
  • 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. Twan van Laarhoven 2020-04-26 02:16:39 +02:00
  • 54a3cbfde3 Replace include guards by #pragma once Twan van Laarhoven 2020-04-26 01:25:16 +02:00
  • bad9981ad9 Cleaned up copyright block. Removed the year so we don't get tempted to change this ever again. Twan van Laarhoven 2020-04-26 01:11:14 +02:00
  • 4327abb803 Remove DECLARE_TYPEOF It is no longer needed since C++11 Twan van Laarhoven 2020-04-26 00:51:16 +02:00
  • 5e92d9455c Code cleanup: remove messy spaces before line continuation (\) in macros Twan van Laarhoven 2020-04-26 00:37:13 +02:00