mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-29 12:20:24 -07:00
* [Settings] Split cache_settings into multiple files Took 9 minutes Took 4 minutes * [Settings] Fwd declare settings classes in cache_settings Took 15 minutes * Fix oracle includes. Took 8 minutes * Address comments, fix windows CI Took 8 minutes * fix copy constructor visibility Took 3 minutes * lint Took 2 minutes * Fix native format tests. Took 5 minutes * Remove test header guard Took 4 seconds * Remove tests invalid in CI environ Took 24 seconds * Adjust to rebase. Took 11 minutes * Change settings file name. Took 8 minutes --------- Co-authored-by: Lukas Brübach <lukas.bruebach@bdosecurity.de> Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
91 lines
4.4 KiB
C++
91 lines
4.4 KiB
C++
#ifndef INTERFACE_SETTINGS_H
|
|
#define INTERFACE_SETTINGS_H
|
|
|
|
#include "settings_manager.h"
|
|
|
|
#include <libcockatrice/interfaces/interface_interface_settings_provider.h>
|
|
|
|
class InterfaceSettings : public SettingsManager, public IInterfaceSettingsProvider
|
|
{
|
|
Q_OBJECT
|
|
friend class SettingsCache;
|
|
|
|
public:
|
|
[[nodiscard]] bool getUseTearOffMenus() const override;
|
|
[[nodiscard]] int getCardViewInitialRowsMax() const override;
|
|
[[nodiscard]] int getCardViewExpandedRowsMax() const override;
|
|
[[nodiscard]] bool getCloseEmptyCardView() const override;
|
|
[[nodiscard]] bool getFocusCardViewSearchBar() const override;
|
|
[[nodiscard]] bool getKeepGameChatFocus() const override;
|
|
[[nodiscard]] bool getNotificationsEnabled() const override;
|
|
[[nodiscard]] bool getSpectatorNotificationsEnabled() const override;
|
|
[[nodiscard]] bool getBuddyConnectNotificationsEnabled() const override;
|
|
[[nodiscard]] bool getDoubleClickToPlay() const override;
|
|
[[nodiscard]] bool getClickPlaysAllSelected() const override;
|
|
[[nodiscard]] bool getPlayToStack() const override;
|
|
[[nodiscard]] bool getDoNotDeleteArrowsInSubPhases() const override;
|
|
[[nodiscard]] int getStartingHandSize() const override;
|
|
[[nodiscard]] bool getAnnotateTokens() const override;
|
|
[[nodiscard]] bool getShowDragSelectionCount() const override;
|
|
[[nodiscard]] bool getShowTotalSelectionCount() const override;
|
|
[[nodiscard]] int getTallyType() const override;
|
|
[[nodiscard]] bool getHorizontalHand() const override;
|
|
[[nodiscard]] bool getInvertVerticalCoordinate() const override;
|
|
[[nodiscard]] int getMinPlayersForMultiColumnLayout() const override;
|
|
[[nodiscard]] bool getOpenDeckInNewTab() const override;
|
|
[[nodiscard]] int getRewindBufferingMs() const override;
|
|
[[nodiscard]] qreal getFastForwardSpeed() const override;
|
|
[[nodiscard]] bool getStyleUserList() const override;
|
|
[[nodiscard]] bool getLeftJustified() const override;
|
|
[[nodiscard]] int getZoneViewGroupByIndex() const override;
|
|
[[nodiscard]] int getZoneViewSortByIndex() const override;
|
|
[[nodiscard]] bool getZoneViewPileView() const override;
|
|
[[nodiscard]] QString getKnownMissingFeatures() override;
|
|
|
|
void setUseTearOffMenus(bool _useTearOffMenus);
|
|
void setCardViewInitialRowsMax(int _cardViewInitialRowsMax);
|
|
void setCardViewExpandedRowsMax(int value);
|
|
void setCloseEmptyCardView(bool value);
|
|
void setFocusCardViewSearchBar(bool value);
|
|
void setKeepGameChatFocus(bool value);
|
|
void setNotificationsEnabled(bool _notificationsEnabled);
|
|
void setSpectatorNotificationsEnabled(bool _spectatorNotificationsEnabled);
|
|
void setBuddyConnectNotificationsEnabled(bool _buddyConnectNotificationsEnabled);
|
|
void setDoubleClickToPlay(bool _doubleClickToPlay);
|
|
void setClickPlaysAllSelected(bool _clickPlaysAllSelected);
|
|
void setPlayToStack(bool _playToStack);
|
|
void setDoNotDeleteArrowsInSubPhases(bool _doNotDeleteArrowsInSubPhases);
|
|
void setStartingHandSize(int _startingHandSize);
|
|
void setAnnotateTokens(bool _annotateTokens);
|
|
void setShowDragSelectionCount(bool _showDragSelectionCount);
|
|
void setShowTotalSelectionCount(bool _showTotalSelectionCount);
|
|
void setTallyType(int value);
|
|
void setHorizontalHand(bool _horizontalHand);
|
|
void setInvertVerticalCoordinate(bool _invertVerticalCoordinate);
|
|
void setMinPlayersForMultiColumnLayout(int _minPlayersForMultiColumnLayout);
|
|
void setOpenDeckInNewTab(bool _openDeckInNewTab);
|
|
void setRewindBufferingMs(int _rewindBufferingMs);
|
|
void setFastForwardSpeed(qreal _value);
|
|
void setStyleUserList(bool _styleUserList);
|
|
void setLeftJustified(bool _leftJustified);
|
|
void setZoneViewGroupByIndex(int _zoneViewGroupByIndex);
|
|
void setZoneViewSortByIndex(int _zoneViewSortByIndex);
|
|
void setZoneViewPileView(bool _zoneViewPileView);
|
|
void setKnownMissingFeatures(const QString &_knownMissingFeatures);
|
|
|
|
signals:
|
|
void useTearOffMenusChanged(bool state);
|
|
void keepGameChatFocusChanged(bool value);
|
|
void horizontalHandChanged();
|
|
void invertVerticalCoordinateChanged();
|
|
void minPlayersForMultiColumnLayoutChanged();
|
|
void styleUserListChanged();
|
|
void handJustificationChanged();
|
|
void tallyTypeChanged(int type);
|
|
|
|
private:
|
|
explicit InterfaceSettings(const QString &settingPath, QObject *parent = nullptr);
|
|
InterfaceSettings(const InterfaceSettings & /*other*/);
|
|
};
|
|
|
|
#endif // INTERFACE_SETTINGS_H
|