Cockatrice/cockatrice
BruebachL 505c3b62dc
[Client] Choose a token's printing in the create-token dialog (#7815) (#7866)
* Refactor printing selector onto a host interface

Move the deck-editor coupling out of PrintingSelector behind PrintingSelectorHost so the same widget can run where there is no deck. The deck editor keeps its behaviour through DeckEditorPrintingSelectorHost; a selection-only host hides deck controls, reports a picked printing, and highlights it in the grid.

* Add a printings tab to the token dialog

The token list and the printing selector now share one tabbed surface. Picking a printing sets the provider id used by the live preview and by the created token, while an untouched dialog keeps the existing preference lookup. Names with no printings show a placeholder instead of an empty grid.

* Address printing selector review feedback

Hold the deck editor printing-selector host by value, since its deck editor is known at construction. Emit printingSelected for every left-click pick instead of gating it on selection-only mode; consumers that do not want picks simply do not connect.

* Use the shared layout helper in the token tabs

Replace the hand-built zero-margin layouts with QtUtils::makeLayout, which is the helper the printing selector already uses.
2026-11-10 10:32:46 +01:00
..
resources [Card] Add Scryfall Tagger tag search and filtering (#7337) 2026-11-08 20:57:45 +01:00
sounds Add cmake format (#4618) 2022-05-08 21:22:43 +02:00
src [Client] Choose a token's printing in the create-token dialog (#7815) (#7866) 2026-11-10 10:32:46 +01:00
themes [Fonts] Retire max font size setting into theme CardText min/max range (#7544) 2026-11-09 14:02:59 +01:00
translations Updates for project Cockatrice and language ru (#7561) 2026-10-17 16:43:14 +02:00
.qdevelop icon_draw and icon_untap added, icon_general and icon_messages modified 2009-07-31 13:37:16 +02:00
CMakeLists.txt [Client] Choose a token's printing in the create-token dialog (#7815) (#7866) 2026-11-10 10:32:46 +01:00
cockatrice-cod.xml Define Cockatrice as an editor/handler for .cod files and cockatrice:// protocol on all platforms (#6775) 2026-08-08 19:02:19 +02:00
cockatrice.desktop fix the desktop file, removing the invalid key (#7406) 2026-10-10 17:15:10 +02:00
cockatrice.qrc [Card] Add Scryfall Tagger tag search and filtering (#7337) 2026-11-08 20:57:45 +01:00
cockatrice.rc Included uninstaller for Windows version 2010-09-17 15:26:07 +02:00
cockatrice_en@source.ts Update translation source strings (#7397) 2026-10-04 21:08:47 +02:00