Commit Graph

287 Commits

Author SHA1 Message Date
Brendan Hagan ec98048c26 misc: export options window formatting 2022-11-18 21:08:29 -05:00
Brendan Hagan 4173d5017b feat: revert hack for time card columns, use scripts instead 2022-06-20 21:06:27 -04:00
Brendan Hagan 766a99fbc4 feat: apply filtering to game list, correct selections after filtering
Will need to propogate these filtering options to the other places these things are present, there's a dedicated variant for just the stylesheet dialog window and also the Style tab.
2022-06-19 23:38:38 -04:00
Brendan Hagan 52f1724449 feat: new set stylesheet filtering 2022-06-19 22:46:10 -04:00
Brendan Hagan 15ad48a5be feat: super sloppy way of adding more card list columns (created, modified, notes) 2022-06-15 23:08:33 -04:00
Twan van Laarhoven 5e50cb4c56 Check/uncheck all selected cards in export window (Closes #93) 2020-10-03 15:06:04 +02:00
Twan van Laarhoven c7377303cf Make templates localizable (Closes #100) 2020-10-03 14:38:39 +02:00
Twan van Laarhoven cf19bc76c3 Fix #98: tab traversal in native look editors. Use bounding_box instead of style.left/top/etc. 2020-09-27 14:44:55 +02:00
Twan van Laarhoven a7336d66e1 Card list sorting is now handled per window (closes #71) 2020-06-14 21:43:33 +02:00
Twan van Laarhoven 053449d5d4 Correct ascending/descending arrows when sorting card and keyword lists 2020-06-10 00:47:58 +02:00
Twan van Laarhoven 02933aecf9 Fix gcc build 2020-06-01 14:54:41 +02:00
Twan van Laarhoven f9d18ac3c8 Fix potential crash when there are errors in a statistics script 2020-06-01 14:11:40 +02:00
Twan van Laarhoven 7952a889c9 Call ev.Skip() for unhandled char events in card editor. Fixes #65 (and maybe also #53) 2020-06-01 13:47:44 +02:00
Twan van Laarhoven 36c1c2541a Fix height of multi line text boxes and TextCtrls 2020-06-01 13:33:53 +02:00
Twan van Laarhoven 4ff603d413 Allow ValueViewers to have a bounding box different from the Style's. This closes #64. 2020-06-01 01:18:13 +02:00
Twan van Laarhoven d97cfce85d Fix #50 2020-05-23 12:46:21 +02:00
Twan van Laarhoven 424fd96185 Add help text to the card/keyword filter boxes 2020-05-16 14:16:32 +02:00
Twan van Laarhoven 92fbb9ea10 Remove erase background event handlers, in favor of SetBackgroundStyle. 2020-05-16 01:56:17 +02:00
Twan van Laarhoven dbe6fbd33b cleanup: child class doesn't need to be public 2020-05-16 00:58:44 +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 99b8a31da0 (indentation) 2020-05-10 17:05:01 +02:00
Twan van Laarhoven 2d171732a0 Add Select All functionality, closes #19 2020-05-08 02:19:04 +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 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 cfd19220d5 Use unique_ptr 2020-05-05 22:36:00 +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 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 2c165271be Fix: scrolling on style and set info panels 2020-04-27 13:22:01 +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 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 e9456eea86 Fix: refresh list also when changes are made to item 0 2020-04-23 19:59:47 +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 e464327e69 filter ctrl: don't force height 2020-04-18 19:12:52 +02:00
Twan van Laarhoven 0706ecae13 Fix wxGTK warnings about GetScrollPos on window without scrollbar 2020-04-16 19:29:46 +02:00
Twan van Laarhoven 5700005243 Cleanup: use DoGetBestClientSize 2020-04-10 16:57:21 +02:00
Twan van Laarhoven be9bae942e Fix empty bitmap issue
Fix: invalidate best size cache that is used in newer wxWidgets versions
2020-04-10 16:56:07 +02:00