Twan van Laarhoven
dbe6fbd33b
cleanup: child class doesn't need to be public
2020-05-16 00:58:44 +02:00
Twan van Laarhoven
32f28747f0
cleanup indentation
2020-05-16 00:56:11 +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
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
0c3712b61a
Cleanup: indentation of public/protected/private keywords
2020-05-12 21:57:37 +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
bc53730091
Update scrollbar on resize (and on startup)
2020-05-12 02:07: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
968b8eabca
Add "Save as directory"
2020-05-09 13:26:33 +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
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
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
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
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
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
e74774138c
Fix warnings and linker errors on gcc
2020-04-30 14:25:28 +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
fd6f91e756
Warning instead of error for incorrect word-lists
2020-04-27 18:11:06 +02:00
Twan van Laarhoven
2c165271be
Fix: scrolling on style and set info panels
2020-04-27 13:22:01 +02:00
Twan van Laarhoven
46b5075d7a
Logo
2020-04-27 13:17:55 +02:00
Twan van Laarhoven
0f2e7ac3fe
Fix uxtheme stuff on windows
2020-04-26 22:30:00 +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
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
Twan van Laarhoven
5d4c3402df
Added fancy mouseover effect to field borders.
...
This might be slow, if this becomes a problem I could add a setting to disable it.
2020-04-25 23:59:56 +02:00
Twan van Laarhoven
37c8641641
Replace scoped_ptr by unique_ptr
2020-04-25 22:28:32 +02:00
Twan van Laarhoven
b7ed93cd02
Remove dependency on boost::random, since that is now in std
2020-04-25 22:22:15 +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
0ca2c70310
Add keyboard navigation and history to console panel.
2020-04-23 22:02:13 +02:00
Twan van Laarhoven
257c82ed90
Tweak spacing on keywords panel
2020-04-23 21:20:40 +02:00
Twan van Laarhoven
e9456eea86
Fix: refresh list also when changes are made to item 0
2020-04-23 19:59:47 +02:00