Cockatrice/cockatrice/src/interface/widgets/dialogs
DawnFire42 aa4592dc9e
Add local game options (#6669)
* Add local game options dialog. Introduces LocalGameOptions struct and DlgLocalGameOptions dialog to replace the previous QInputDialog for starting local games. Encapsulates game configuration with a simple interface that prevents parameter explosion as options are added. The dialog provides UI with settings persistence via SettingsCache

* integrate local game options into main window. Replaces QInputDialog with DlgLocalGameOptions in actSinglePlayer(). The startLocalGame() function now accepts LocalGameOptions, enabling configuration of starting life total and spectator visibility in addition to player count. Also adds user documentation for the local game options flow.

* Removed superfluous documentation file

* removed spectator option and moved structure definition

* Now remember settings separately and & shortcuts removed

* re-run checks
2026-03-12 14:30:01 -07:00
..
dlg_connect.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_connect.h Mark more functions as [[nodiscard]] (#6320) 2025-11-16 01:39:24 +01:00
dlg_convert_deck_to_cod_format.cpp [Move refactor] Move dialogs to interface/widgets/ (#6234) 2025-10-09 15:25:18 +02:00
dlg_convert_deck_to_cod_format.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00
dlg_create_game.cpp [GameInformation] Check for existence of room for create as judge checkbox (#6398) 2025-12-05 17:26:35 +01:00
dlg_create_game.h [Game Selector] Add button to join game as judge as well as convenience filters and doxygen (#6325) 2025-11-16 18:04:42 +01:00
dlg_default_tags_editor.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_default_tags_editor.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_edit_avatar.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_edit_avatar.h [Move refactor] Move dialogs to interface/widgets/ (#6234) 2025-10-09 15:25:18 +02:00
dlg_edit_password.cpp Docs: Use Doxygen \todo comments (#6421) 2025-12-15 00:13:16 +01:00
dlg_edit_password.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_edit_tokens.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_edit_tokens.h [Move refactor] Move dialogs to interface/widgets/ (#6234) 2025-10-09 15:25:18 +02:00
dlg_edit_user.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_edit_user.h Mark more functions as [[nodiscard]] (#6320) 2025-11-16 01:39:24 +01:00
dlg_filter_games.cpp [Game Selector] Add button to join game as judge as well as convenience filters and doxygen (#6325) 2025-11-16 18:04:42 +01:00
dlg_filter_games.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00
dlg_forgot_password_challenge.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_forgot_password_challenge.h Mark more functions as [[nodiscard]] (#6320) 2025-11-16 01:39:24 +01:00
dlg_forgot_password_request.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_forgot_password_request.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00
dlg_forgot_password_reset.cpp Docs: Use Doxygen \todo comments (#6421) 2025-12-15 00:13:16 +01:00
dlg_forgot_password_reset.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00
dlg_load_deck.cpp Deck loader is a gui class. (#6294) 2025-11-11 11:57:41 +01:00
dlg_load_deck.h [Move refactor] Move dialogs to interface/widgets/ (#6234) 2025-10-09 15:25:18 +02:00
dlg_load_deck_from_clipboard.cpp [DeckList] Refactor load from plaintext to take normalizer as param (#6664) 2026-03-06 10:39:04 -08:00
dlg_load_deck_from_clipboard.h [Refactor] Pass around LoadedDeck instead of DeckLoader (#6422) 2025-12-20 13:39:00 +01:00
dlg_load_deck_from_website.cpp [DeckList] Refactor load from plaintext to take normalizer as param (#6664) 2026-03-06 10:39:04 -08:00
dlg_load_deck_from_website.h [DeckList] Refactor load from plaintext to take normalizer as param (#6664) 2026-03-06 10:39:04 -08:00
dlg_load_remote_deck.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_load_remote_deck.h Mark more functions as [[nodiscard]] (#6320) 2025-11-16 01:39:24 +01:00
dlg_local_game_options.cpp Add local game options (#6669) 2026-03-12 14:30:01 -07:00
dlg_local_game_options.h Add local game options (#6669) 2026-03-12 14:30:01 -07:00
dlg_manage_sets.cpp fix set sorting (#6630) 2026-03-02 23:06:05 +01:00
dlg_manage_sets.h fix set sorting (#6630) 2026-03-02 23:06:05 +01:00
dlg_register.cpp Docs: Use Doxygen \todo comments (#6421) 2025-12-15 00:13:16 +01:00
dlg_register.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00
dlg_select_set_for_cards.cpp [DeckListModel] Consolidate methods and signals for card change (#6466) 2026-01-05 18:28:59 +01:00
dlg_select_set_for_cards.h [TabDeckEditor] Create class to centralize deck state (#6459) 2025-12-31 17:54:47 +01:00
dlg_settings.cpp [DeckEditor] Show info in PrintingSelector dock when override printings enabled (#6554) 2026-01-24 02:20:16 -08:00
dlg_settings.h [HomeTab] Add setting to display card info in bottom right for non-theme backgrounds (#6513) 2026-01-14 10:05:45 +01:00
dlg_startup_card_check.cpp Clean up inter-library dependencies with interfaces (#6280) 2025-11-08 22:19:40 +01:00
dlg_startup_card_check.h [Move refactor] Move dialogs to interface/widgets/ (#6234) 2025-10-09 15:25:18 +02:00
dlg_tip_of_the_day.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_tip_of_the_day.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_update.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
dlg_update.h [Move refactor] Move dialogs to interface/widgets/ (#6234) 2025-10-09 15:25:18 +02:00
dlg_view_log.cpp Clean up inter-library dependencies with interfaces (#6280) 2025-11-08 22:19:40 +01:00
dlg_view_log.h [Move refactor] Move dialogs to interface/widgets/ (#6234) 2025-10-09 15:25:18 +02:00
override_printing_warning.cpp [DeckEditor] Show info in PrintingSelector dock when override printings enabled (#6554) 2026-01-24 02:20:16 -08:00
override_printing_warning.h [DeckEditor] Show info in PrintingSelector dock when override printings enabled (#6554) 2026-01-24 02:20:16 -08:00
tip_of_the_day.cpp [Move refactor] Move dialogs to interface/widgets/ (#6234) 2025-10-09 15:25:18 +02:00
tip_of_the_day.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00