mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
[Settings] Shuffle some settings around (#7084)
* [Settings] Shuffle some settings around Took 21 minutes Took 1 hour 25 minutes * [Settings] Camel case everything * Revert debug schema change * Add new classes * Fix card counters writing to global * Fix CI tests * Fix Windows CI * interface() is a protected keyword for MSVC Took 5 minutes Took 5 seconds * [Settings] Keep menu settings on the appearance settings page Leave the 'Menu settings' group box on the appearance settings page for now; relocating it to the user interface settings page will be done in a separate PR. Took 6 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
bf6b2a90bc
commit
adf574e038
79 changed files with 1899 additions and 1123 deletions
|
|
@ -14,46 +14,15 @@ class PersonalSettings : public SettingsManager, public IPersonalSettingsProvide
|
|||
|
||||
public:
|
||||
[[nodiscard]] QString getLang() const override;
|
||||
[[nodiscard]] QString getClientID() override;
|
||||
[[nodiscard]] QString getClientVersion() override;
|
||||
[[nodiscard]] int getKeepAlive() const override;
|
||||
[[nodiscard]] int getTimeOut() const override;
|
||||
[[nodiscard]] bool getPicDownload() const override;
|
||||
[[nodiscard]] bool getShowStatusBar() const override;
|
||||
[[nodiscard]] int getMaxFontSize() const override;
|
||||
[[nodiscard]] QString getHighlightWords() const override;
|
||||
[[nodiscard]] QString getHomeTabBackgroundSource() const override;
|
||||
[[nodiscard]] int getHomeTabBackgroundShuffleFrequency() const override;
|
||||
[[nodiscard]] QString getThemeName() const;
|
||||
void setThemeName(const QString &_themeName);
|
||||
[[nodiscard]] bool getHomeTabDisplayCardName() const override;
|
||||
[[nodiscard]] bool getShowTipsOnStartup() const override;
|
||||
[[nodiscard]] QList<int> getSeenTips() const override;
|
||||
[[nodiscard]] bool getDownloadSpoilersStatus() const override;
|
||||
|
||||
void setLang(const QString &_lang);
|
||||
void setClientID(const QString &_clientID);
|
||||
void setClientVersion(const QString &_clientVersion);
|
||||
void setPicDownload(bool _picDownload);
|
||||
void setShowStatusBar(bool value);
|
||||
void setMaxFontSize(int _max);
|
||||
void setHighlightWords(const QString &_highlightWords);
|
||||
void setHomeTabBackgroundSource(const QString &_backgroundSource);
|
||||
void setHomeTabBackgroundShuffleFrequency(int _frequency);
|
||||
void setHomeTabDisplayCardName(bool _displayCardName);
|
||||
void setShowTipsOnStartup(bool _showTipsOnStartup);
|
||||
void setSeenTips(const QList<int> &_seenTips);
|
||||
void setDownloadSpoilerStatus(bool _spoilerStatus);
|
||||
|
||||
signals:
|
||||
void langChanged();
|
||||
void themeNameChanged();
|
||||
void picDownloadChanged();
|
||||
void showStatusBarChanged(bool state);
|
||||
void homeTabBackgroundSourceChanged();
|
||||
void homeTabBackgroundShuffleFrequencyChanged();
|
||||
void homeTabDisplayCardNameChanged();
|
||||
void downloadSpoilerStatusChanged();
|
||||
|
||||
public:
|
||||
explicit PersonalSettings(const QString &settingPath, QObject *parent = nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue