Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
deck_editor_settings.h
Go to the documentation of this file.
1#ifndef DECK_EDITOR_SETTINGS_H
2#define DECK_EDITOR_SETTINGS_H
3
4#include "settings_manager.h"
5
7
15
22
24{
25 Q_OBJECT
26 friend class SettingsCache;
27
28public:
29 [[nodiscard]] bool getOpenDeckInNewTab() const override;
30 [[nodiscard]] bool getBannerCardComboBoxVisible() const override;
31 [[nodiscard]] bool getTagsWidgetVisible() const override;
32 [[nodiscard]] int getDefaultDeckEditorType() const override;
33 [[nodiscard]] int getVdeStartupTab() const;
34 [[nodiscard]] int getCommanderSpellbookIntegrationEnabled() const;
36
37 void setOpenDeckInNewTab(bool _openDeckInNewTab);
38 void setBannerCardComboBoxVisible(bool _bannerCardComboBoxVisible);
39 void setTagsWidgetVisible(bool _tagsWidgetVisible);
40 void setDefaultDeckEditorType(int _defaultDeckEditorType);
41 void setVdeStartupTab(int _vdeStartupTab);
42 void setCommanderSpellbookIntegrationEnabled(int _commanderSpellbookIntegrationEnabled);
43 void setCommanderSpellbookIntegrationUseOfficialBracketNames(bool _useOfficialBracketNames);
44
45signals:
47 void tagsWidgetVisibleChanged(bool visible);
50 void vdeStartupTabChanged(int vdeStartupTab);
51
52public:
53 explicit DeckEditorSettings(const QString &settingPath, QObject *parent = nullptr);
54
55private:
57};
58
59#endif // DECK_EDITOR_SETTINGS_H
int getCommanderSpellbookIntegrationEnabled() const
Definition deck_editor_settings.cpp:61
bool getTagsWidgetVisible() const override
Definition deck_editor_settings.cpp:18
DeckEditorSettings(const QString &settingPath, QObject *parent=nullptr)
Definition deck_editor_settings.cpp:3
int getVdeStartupTab() const
Definition deck_editor_settings.cpp:28
void setDefaultDeckEditorType(int _defaultDeckEditorType)
Definition deck_editor_settings.cpp:50
int getDefaultDeckEditorType() const override
Definition deck_editor_settings.cpp:23
void setCommanderSpellbookIntegrationEnabled(int _commanderSpellbookIntegrationEnabled)
Definition deck_editor_settings.cpp:73
void vdeStartupTabChanged(int vdeStartupTab)
void setTagsWidgetVisible(bool _tagsWidgetVisible)
Definition deck_editor_settings.cpp:44
bool getOpenDeckInNewTab() const override
Definition deck_editor_settings.cpp:8
bool getCommanderSpellbookIntegrationUseOfficialBracketNames() const
Definition deck_editor_settings.cpp:68
friend class SettingsCache
Definition deck_editor_settings.h:26
void setVdeStartupTab(int _vdeStartupTab)
Definition deck_editor_settings.cpp:55
void tagsWidgetVisibleChanged(bool visible)
void setOpenDeckInNewTab(bool _openDeckInNewTab)
Definition deck_editor_settings.cpp:33
void setCommanderSpellbookIntegrationUseOfficialBracketNames(bool _useOfficialBracketNames)
Definition deck_editor_settings.cpp:79
void commanderSpellbookIntegrationUseOfficialBracketNamesChanged(bool useOfficialBracketNames)
DeckEditorSettings(const DeckEditorSettings &)
void bannerCardComboBoxVisibleChanged(bool visible)
bool getBannerCardComboBoxVisible() const override
Definition deck_editor_settings.cpp:13
void setBannerCardComboBoxVisible(bool _bannerCardComboBoxVisible)
Definition deck_editor_settings.cpp:38
void commanderSpellbookIntegrationEnabledChanged(int enabled)
Definition interface_deck_editor_settings_provider.h:5
SettingsManager(const QString &settingPath, const QString &defaultGroup=QString(), const QString &defaultSubGroup=QString(), QObject *parent=nullptr)
Definition settings_manager.cpp:3
QString settingPath
Definition settings_manager.h:33
VdeStartupTab
Definition deck_editor_settings.h:17
@ VdeStartupTabDeckDisplay
Always open the Visual Deck View.
Definition deck_editor_settings.h:19
@ VdeStartupTabContext
Match the opened deck: new decks show the database display, existing decks the deck view.
Definition deck_editor_settings.h:18
@ VdeStartupTabDatabaseDisplay
Always open the Visual Database Display.
Definition deck_editor_settings.h:20
commanderSpellbookIntegrationEnabledIndex
Definition deck_editor_settings.h:9
@ commanderSpellbookIntegrationEnabledIndexUnprompted
Definition deck_editor_settings.h:13
@ commanderSpellbookIntegrationEnabledIndexDisabled
Definition deck_editor_settings.h:10
@ commanderSpellbookIntegrationEnabledIndexAutomatic
Definition deck_editor_settings.h:12
@ commanderSpellbookIntegrationEnabledIndexEnabled
Definition deck_editor_settings.h:11