[DeckEditor] Show info in PrintingSelector dock when override printings enabled (#6554)

* don't hide printing selector dock

* extract warning message to separate file

* create printing disabled info widget
This commit is contained in:
RickyRister 2026-01-24 02:20:16 -08:00 • committed by GitHub
parent 948ec9e042
commit 3c48d92663
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 176 additions and 67 deletions

View file

@ -0,0 +1,20 @@
#ifndef COCKATRICE_OVERRIDE_PRINTING_WARN_H
#define COCKATRICE_OVERRIDE_PRINTING_WARN_H
#include <QMessageBox>
namespace OverridePrintingWarning
{
/**
* @brief Pops up the warning message for the changing the override printing setting.
* If the user clicks accept, then this also handles changing the setting and resetting the card image cache.
*
* @param parent The parent widget
* @param enable Whether the user is trying to enable or disable the setting
* @return Whether the user clicked accept. All other ways of closing the window returns false.
*/
bool execMessageBox(QWidget *parent, bool enable);
} // namespace OverridePrintingWarning
#endif // COCKATRICE_OVERRIDE_PRINTING_WARN_H