Commit Graph

1807 Commits

Author SHA1 Message Date
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 bc53730091 Update scrollbar on resize (and on startup) 2020-05-12 02:07:42 +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 9562103f7e Use whole program optimization 2020-05-11 00:54:26 +02:00
Twan van Laarhoven 9160a61d8e Added build target with static linking 2020-05-11 00:32:09 +02:00
Twan van Laarhoven 62a0aea3b8 Added some assertions 2020-05-11 00:31:42 +02:00
Twan van Laarhoven d90b73101b Implement scrolling ourselfs rather than relying on wxScrolledWindow 2020-05-10 17:05:31 +02:00
Twan van Laarhoven 99b8a31da0 (indentation) 2020-05-10 17:05:01 +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 420c329bc4 Added "case-of" control structure 2020-05-09 18:41:30 +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 b4435e5e57 Themed checkboxes
Slightly larger items in (multiple) choice viewers
2020-05-06 02:47:02 +02:00
Twan van Laarhoven 6161feefc5 Don't use text cursor when hovering over labels in native look editor 2020-05-05 23:23:09 +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 30401964d5 Fix #10: find/replace was broken after tab index change.
Also: improve tab order to get a total order
2020-05-05 22:41:32 +02:00
Twan van Laarhoven cfd19220d5 Use unique_ptr 2020-05-05 22:36:00 +02:00
Twan van Laarhoven 302ec87cf2 Locale 2020-05-04 22:02:09 +02:00
Twan van Laarhoven c00d1f2236 Use script_nil instead of creating ScriptObjects with null pointers.
Fixes #18
2020-05-04 19:58:12 +02:00
Twan van Laarhoven 74230fefeb Fix #17: change &instrs[pos] to &instrs[0]+pos to avoid debug assertions when pos=instrs.size() 2020-05-04 13:22:44 +02:00
Twan van Laarhoven 177cc25487 Don't use wxToolBarToolBase::AddDropdownMenu, it is not supposed to be used and might not work in some ports. 2020-05-04 13:22:05 +02:00
Twan van Laarhoven 9f99bf4658 There is little point to a pool allocator with shared_ptr, since ref counters are still allocated as well. 2020-05-04 00:44:50 +02:00
Twan van Laarhoven 07fe2406e7 Don't allocate wxToolBarToolBase, that can lead to memory corruption and two days of debugging. 2020-05-04 00:43:58 +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 6c4277bd35 Fix #15, menu and toolbar icons on wxGTK 2020-05-01 12:55:43 +02:00
Twan van Laarhoven 1fb3f15aff Generate image for disabled toolbar buttons and menu items.
Fixes #13.

Removed IconMenu class, use add_menu_item/add_menu_item_tr instead.
Added _tr variants that automatically do locale translation
2020-05-01 03:26:02 +02:00
Twan van Laarhoven 8468c5bd93 Fix #9: Don't use wxWidgets' best size calculation for card and keyword lists. 2020-04-30 21:11:43 +02:00
Twan van Laarhoven 77e2ff8fd7 Fix #11: Gallery list best size: Invalidate cache and don't use DoGetBestClientSize
Revert "Cleanup: use DoGetBestClientSize"
This reverts commit 5700005243.

DoGetBestClient size is a nice idea, but it doesn't take scrollbars into account.
2020-04-30 20:35:12 +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 e74774138c Fix warnings and linker errors on gcc 2020-04-30 14:25:28 +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 f92c09e87a Disable hover effect on field borders for now (it causes redraw issues on some templates) 2020-04-29 21:29:01 +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 ed918ce64f changelog: improved card filter 2020-04-28 13:30:06 +02:00
Twan van Laarhoven 618df3b534 Script parser now produces warnings about statements where expressions are expected, and about the = comparison operator. 2020-04-27 19:14:17 +02:00
Twan van Laarhoven fd6f91e756 Warning instead of error for incorrect word-lists 2020-04-27 18:11:06 +02:00
Twan van Laarhoven a8b7699ac3 Revert changes to spec_sort 2020-04-27 17:21:24 +02:00