Cockatrice/cockatrice/src
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
..
client [Fonts] Retire max font size setting into theme CardText min/max range (#7544) 2026-11-09 14:02:59 +01:00
database/interface [Refactor] Move game logic into libcockatrice_game (#7437) 2026-10-31 18:44:15 +01:00
filters [Icons] Tint semantic glyphs and add badge and sticker treatments (#7775) 2026-11-08 19:09:01 +01:00
game_graphics [Client] Choose a token's printing in the create-token dialog (#7815) (#7866) 2026-11-10 10:32:46 +01:00
interface [Client] Choose a token's printing in the create-token dialog (#7815) (#7866) 2026-11-10 10:32:46 +01:00
installer_close_server.cpp [Installer] Graceful close and a way out of a stuck update (#7687) 2026-10-31 15:32:59 +01:00
installer_close_server.h [Installer] Graceful close and a way out of a stuck update (#7687) 2026-10-31 15:32:59 +01:00
main.cpp [Crash] Add lifecycle breadcrumbs for unattributable native crashes (#7813) 2026-11-08 23:06:21 +01:00
main.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
single_instance_manager.cpp [Client] Improve card database update visibility (#7458) 2026-10-09 11:07:48 +02:00
single_instance_manager.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00