mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
* [CardDB] Drop rebalanced-card filtering from the v4 parser Rebalanced cards no longer exist, so the includeRebalancedCards preference has no data to filter. Always keep printings marked isRebalanced and remove the now-unused ICardPreferenceProvider plumbing from CockatriceXml4Parser and CardDatabaseLoader. The setting itself (CardsDisplaySettings, Manage Sets checkbox, Oracle attribute mapping) is removed in a follow-up. * [CardDB] Drop the rebalanced-cards setting entirely Rebalanced Alchemy cards no longer exist, so remove the includeRebalancedCards preference surface: the CardsDisplaySettings getter/setter/signal, the ICardPreferenceProvider and ICardsDisplaySettingsProvider methods, the Manage Sets checkbox, the legacy settings migration mapping, the isRebalanced attribute mapping in the Oracle importer, and the isRebalanced attribute in the v4 schema. Builds on #7448, which already stopped the v4 parser from filtering on the preference. * [CardDB] Drop the unused isOnlineOnly printing property The Arena-card detection switched from isOnlineOnly to isRebalanced in #5778, so nothing has read this printing property since; it only round-trips from the Oracle importer into cards.xml. Remove the importer mapping, the benchmark fixture field and the v4 schema attribute so regenerated databases stop carrying it. --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
89 lines
4.1 KiB
C++
89 lines
4.1 KiB
C++
#ifndef CARDS_DISPLAY_SETTINGS_H
|
|
#define CARDS_DISPLAY_SETTINGS_H
|
|
|
|
#include "settings_manager.h"
|
|
|
|
#include <QString>
|
|
#include <libcockatrice/interfaces/interface_cards_display_settings_provider.h>
|
|
#include <qtmetamacros.h>
|
|
|
|
class QObject;
|
|
|
|
class CardsDisplaySettings : public SettingsManager, public ICardsDisplaySettingsProvider
|
|
{
|
|
Q_OBJECT
|
|
friend class SettingsCache;
|
|
|
|
public:
|
|
[[nodiscard]] bool getDisplayCardNames() const override;
|
|
[[nodiscard]] bool getRoundCardCorners() const override;
|
|
[[nodiscard]] bool getOverrideAllCardArtWithPersonalPreference() const override;
|
|
[[nodiscard]] bool getBumpSetsWithCardsInDeckToTop() const override;
|
|
[[nodiscard]] int getPrintingSelectorSortOrder() const override;
|
|
[[nodiscard]] int getPrintingSelectorCardSize() const override;
|
|
[[nodiscard]] bool getPrintingSelectorNavigationButtonsVisible() const override;
|
|
[[nodiscard]] bool getTapAnimation() const override;
|
|
[[nodiscard]] bool getArrowDrawAnimation() const override;
|
|
[[nodiscard]] bool getAutoRotateSidewaysLayoutCards() const override;
|
|
[[nodiscard]] bool getScaleCards() const override;
|
|
[[nodiscard]] int getStackCardOverlapPercent() const override;
|
|
[[nodiscard]] int getCardInfoViewMode() const override;
|
|
[[nodiscard]] int getVisualDeckStorageCardSize() const override;
|
|
[[nodiscard]] int getVisualDatabaseDisplayCardSize() const override;
|
|
[[nodiscard]] int getVisualDeckEditorCardSize() const override;
|
|
[[nodiscard]] bool getVisualDeckEditorShowCardCounts() const override;
|
|
[[nodiscard]] int getEDHRecCardSize() const override;
|
|
[[nodiscard]] int getArchidektPreviewSize() const override;
|
|
[[nodiscard]] int getSampleHandSize() const override;
|
|
[[nodiscard]] QString getCardLang() const override;
|
|
[[nodiscard]] int getCardSearchLanguage() const override;
|
|
|
|
void setDisplayCardNames(bool _displayCardNames);
|
|
void setRoundCardCorners(bool _roundCardCorners);
|
|
void setOverrideAllCardArtWithPersonalPreference(bool _overrideAllCardArt);
|
|
void setBumpSetsWithCardsInDeckToTop(bool _bumpSetsWithCardsInDeckToTop);
|
|
void setPrintingSelectorSortOrder(int _printingSelectorSortOrder);
|
|
void setPrintingSelectorCardSize(int _printingSelectorCardSize);
|
|
void setPrintingSelectorNavigationButtonsVisible(bool _navigationButtonsVisible);
|
|
void setTapAnimation(bool _tapAnimation);
|
|
void setArrowDrawAnimation(bool _arrowDrawAnimation);
|
|
void setAutoRotateSidewaysLayoutCards(bool _autoRotateSidewaysLayoutCards);
|
|
void setCardScaling(bool _scaleCards);
|
|
void setStackCardOverlapPercent(int _verticalCardOverlapPercent);
|
|
void setCardInfoViewMode(int _viewMode);
|
|
void setVisualDeckStorageCardSize(int _cardSize);
|
|
void setVisualDatabaseDisplayCardSize(int _cardSize);
|
|
void setVisualDeckEditorCardSize(int _cardSize);
|
|
void setVisualDeckEditorShowCardCounts(bool _showCardCounts);
|
|
void setEDHRecCardSize(int _edhrecCardSize);
|
|
void setArchidektPreviewCardSize(int _archidektPreviewCardSize);
|
|
void setSampleHandSize(int _sampleHandSize);
|
|
void setCardLang(const QString &_cardLang);
|
|
void setCardSearchLanguage(int _cardSearchLanguage);
|
|
|
|
signals:
|
|
void displayCardNamesChanged();
|
|
void roundCardCornersChanged(bool roundCardCorners);
|
|
void overrideAllCardArtWithPersonalPreferenceChanged(bool _overrideAllCardArtWithPersonalPreference);
|
|
void bumpSetsWithCardsInDeckToTopChanged();
|
|
void printingSelectorSortOrderChanged();
|
|
void printingSelectorCardSizeChanged();
|
|
void printingSelectorNavigationButtonsVisibleChanged();
|
|
void visualDeckStorageCardSizeChanged();
|
|
void visualDatabaseDisplayCardSizeChanged();
|
|
void visualDeckEditorCardSizeChanged();
|
|
void visualDeckEditorShowCardCountsChanged(bool showCardCounts);
|
|
void edhRecCardSizeChanged();
|
|
void archidektPreviewSizeChanged();
|
|
void sampleHandSizeChanged(int amount);
|
|
void cardLangChanged(const QString &lang);
|
|
void cardSearchLanguageChanged(int cardSearchLanguage);
|
|
|
|
public:
|
|
explicit CardsDisplaySettings(const QString &settingPath, QObject *parent = nullptr);
|
|
|
|
private:
|
|
CardsDisplaySettings(const CardsDisplaySettings & /*other*/);
|
|
};
|
|
|
|
#endif // CARDS_DISPLAY_SETTINGS_H
|