Commit Graph

296 Commits

Author SHA1 Message Date
GenevensiS 3bf9de18b1 Implement unique IDs and card linking 2025-08-11 16:17:13 +02:00
GenevensiS e45353af9b Add Json importer (#46)
add boost-json to dependencies
2025-06-21 07:53:35 +02:00
GenevensiS 87fbc0e80e Implement CSV / TSV import (#45)
- add csv/tsv importer
- add `make_map` script function
- add `alt name` field property
- add `construction script` field property
- add `construction script` game property
2025-06-09 04:53:33 +02:00
cajun 8709e69bcc prevent empty list crash on windows (fixes #93) (#94)
Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-28 15:23:46 -04:00
GenevensiS d0522f6a09 Scale card render in program with DPI (#90) 2024-09-25 21:26:45 -04:00
Brendan Hagan 2770b07668 misc: code formatting + readme update 2022-12-30 22:12:44 -05:00
Brendan Hagan e4cf30cc5b Merge pull request #57 from llemoi/keyword_filter_crash_fix
Fixed crash when 0 keywords match filter string in keyword panel
2022-12-30 22:04:59 -05:00
Luke Le Moignan 1b88d905b1 Fix crash when nonexistent string entered when filtering keywords 2022-12-29 02:02:03 +00:00
Luke Le Moignan 1444defc03 Fixed scrolled widgets not scrolling fully (or at all) 2022-12-27 13:12:17 +00:00
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