mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Add a dialog to prompt user to convert to .cod format if trying to apply tags to a .txt deck.
This commit is contained in:
parent
1d2ab8d3d3
commit
218ec23892
14 changed files with 224 additions and 6 deletions
|
|
@ -169,6 +169,7 @@ set(cockatrice_SOURCES
|
||||||
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_color_identity_widget.cpp
|
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_color_identity_widget.cpp
|
||||||
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_color_identity_filter_widget.cpp
|
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_color_identity_filter_widget.cpp
|
||||||
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_addition_widget.cpp
|
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_addition_widget.cpp
|
||||||
|
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_deck_format_conversion_dialog.cpp
|
||||||
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_display_widget.cpp
|
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_display_widget.cpp
|
||||||
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_dialog.cpp
|
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_dialog.cpp
|
||||||
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_item_widget.cpp
|
src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_item_widget.cpp
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#include "deck_preview_tag_addition_widget.h"
|
#include "deck_preview_tag_addition_widget.h"
|
||||||
|
|
||||||
|
#include "../../../../../settings/cache_settings.h"
|
||||||
|
#include "deck_preview_tag_deck_format_conversion_dialog.h"
|
||||||
#include "deck_preview_tag_dialog.h"
|
#include "deck_preview_tag_dialog.h"
|
||||||
|
|
||||||
#include <QFontMetrics>
|
#include <QFontMetrics>
|
||||||
|
|
@ -40,11 +42,50 @@ void DeckPreviewTagAdditionWidget::mousePressEvent(QMouseEvent *event)
|
||||||
QStringList knownTags = parent->parent->parent->gatherAllTagsFromFlowWidget();
|
QStringList knownTags = parent->parent->parent->gatherAllTagsFromFlowWidget();
|
||||||
QStringList activeTags = parent->deckLoader->getTags();
|
QStringList activeTags = parent->deckLoader->getTags();
|
||||||
|
|
||||||
DeckPreviewTagDialog dialog(knownTags, activeTags);
|
bool canAddTags = true;
|
||||||
if (dialog.exec() == QDialog::Accepted) {
|
|
||||||
QStringList updatedTags = dialog.getActiveTags();
|
if (parent->deckLoader->getLastFileFormat() != DeckLoader::CockatriceFormat) {
|
||||||
parent->deckLoader->setTags(updatedTags);
|
canAddTags = false;
|
||||||
parent->deckLoader->saveToFile(parent->parent->filePath, DeckLoader::CockatriceFormat);
|
// Retrieve saved preference if the prompt is disabled
|
||||||
|
if (!SettingsCache::instance().getVisualDeckStoragePromptForConversion()) {
|
||||||
|
if (SettingsCache::instance().getVisualDeckStorageAlwaysConvert()) {
|
||||||
|
parent->deckLoader->convertToCockatriceFormat(parent->parent->filePath);
|
||||||
|
parent->parent->filePath = parent->deckLoader->getLastFileName();
|
||||||
|
parent->parent->refreshBannerCardText();
|
||||||
|
canAddTags = true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Show the dialog to the user
|
||||||
|
DeckPreviewTagDeckFormatConversionDialog conversionDialog(parent);
|
||||||
|
if (conversionDialog.exec() == QDialog::Accepted) {
|
||||||
|
parent->deckLoader->convertToCockatriceFormat(parent->parent->filePath);
|
||||||
|
parent->parent->filePath = parent->deckLoader->getLastFileName();
|
||||||
|
parent->parent->refreshBannerCardText();
|
||||||
|
canAddTags = true;
|
||||||
|
|
||||||
|
if (conversionDialog.dontAskAgain()) {
|
||||||
|
SettingsCache::instance().setVisualDeckStoragePromptForConversion(Qt::CheckState::Unchecked);
|
||||||
|
SettingsCache::instance().setVisualDeckStorageAlwaysConvert(Qt::CheckState::Checked);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
SettingsCache::instance().setVisualDeckStorageAlwaysConvert(Qt::CheckState::Unchecked);
|
||||||
|
|
||||||
|
if (conversionDialog.dontAskAgain()) {
|
||||||
|
SettingsCache::instance().setVisualDeckStoragePromptForConversion(Qt::CheckState::Unchecked);
|
||||||
|
} else {
|
||||||
|
SettingsCache::instance().setVisualDeckStoragePromptForConversion(Qt::CheckState::Checked);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (canAddTags) {
|
||||||
|
DeckPreviewTagDialog dialog(knownTags, activeTags);
|
||||||
|
if (dialog.exec() == QDialog::Accepted) {
|
||||||
|
QStringList updatedTags = dialog.getActiveTags();
|
||||||
|
parent->deckLoader->setTags(updatedTags);
|
||||||
|
parent->deckLoader->saveToFile(parent->parent->filePath, DeckLoader::CockatriceFormat);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
#include "deck_preview_tag_deck_format_conversion_dialog.h"
|
||||||
|
|
||||||
|
#include <QCheckBox>
|
||||||
|
#include <QDialogButtonBox>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
|
DeckPreviewTagDeckFormatConversionDialog::DeckPreviewTagDeckFormatConversionDialog(QWidget *parent) : QDialog(parent)
|
||||||
|
{
|
||||||
|
setWindowTitle("Deck Format Conversion");
|
||||||
|
layout = new QVBoxLayout(this);
|
||||||
|
label = new QLabel();
|
||||||
|
layout->addWidget(label);
|
||||||
|
|
||||||
|
dontAskAgainCheckbox = new QCheckBox(this);
|
||||||
|
layout->addWidget(dontAskAgainCheckbox);
|
||||||
|
|
||||||
|
buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
|
||||||
|
layout->addWidget(buttonBox);
|
||||||
|
|
||||||
|
connect(buttonBox, &QDialogButtonBox::accepted, this, [this]() { accept(); });
|
||||||
|
|
||||||
|
connect(buttonBox, &QDialogButtonBox::rejected, this, [this]() { reject(); });
|
||||||
|
|
||||||
|
setLayout(layout);
|
||||||
|
retranslateUi();
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeckPreviewTagDeckFormatConversionDialog::retranslateUi()
|
||||||
|
{
|
||||||
|
label->setText(tr("You tried to add a tag to a .txt format deck. Tags can only be added to .cod format decks. Do "
|
||||||
|
"you want to convert the deck to the .cod format?"));
|
||||||
|
dontAskAgainCheckbox->setText(tr("Remember and automatically apply choice in the future"));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DeckPreviewTagDeckFormatConversionDialog::dontAskAgain() const
|
||||||
|
{
|
||||||
|
return dontAskAgainCheckbox->isChecked();
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
#ifndef DECK_PREVIEW_TAG_DECK_FORMAT_CONVERSION_DIALOG_H
|
||||||
|
#define DECK_PREVIEW_TAG_DECK_FORMAT_CONVERSION_DIALOG_H
|
||||||
|
|
||||||
|
#include <QCheckBox>
|
||||||
|
#include <QDialog>
|
||||||
|
#include <QDialogButtonBox>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
|
class DeckPreviewTagDeckFormatConversionDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit DeckPreviewTagDeckFormatConversionDialog(QWidget *parent = nullptr);
|
||||||
|
void retranslateUi();
|
||||||
|
|
||||||
|
bool dontAskAgain() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
QVBoxLayout *layout;
|
||||||
|
QLabel *label;
|
||||||
|
QCheckBox *dontAskAgainCheckbox;
|
||||||
|
QDialogButtonBox *buttonBox;
|
||||||
|
|
||||||
|
Q_DISABLE_COPY(DeckPreviewTagDeckFormatConversionDialog)
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // DECK_PREVIEW_TAG_DECK_FORMAT_CONVERSION_DIALOG_H
|
||||||
|
|
@ -17,7 +17,7 @@ DeckPreviewWidget::DeckPreviewWidget(VisualDeckStorageWidget *_parent, const QSt
|
||||||
|
|
||||||
deckLoader = new DeckLoader();
|
deckLoader = new DeckLoader();
|
||||||
connect(deckLoader, &DeckLoader::loadFinished, this, &DeckPreviewWidget::initializeUi);
|
connect(deckLoader, &DeckLoader::loadFinished, this, &DeckPreviewWidget::initializeUi);
|
||||||
deckLoader->loadFromFileAsync(filePath, DeckLoader::CockatriceFormat, false);
|
deckLoader->loadFromFileAsync(filePath, DeckLoader::getFormatFromName(filePath), false);
|
||||||
|
|
||||||
bannerCardDisplayWidget = new DeckPreviewCardPictureWidget(this);
|
bannerCardDisplayWidget = new DeckPreviewCardPictureWidget(this);
|
||||||
|
|
||||||
|
|
@ -88,6 +88,12 @@ void DeckPreviewWidget::setFilePath(const QString &_filePath)
|
||||||
filePath = _filePath;
|
filePath = _filePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DeckPreviewWidget::refreshBannerCardText()
|
||||||
|
{
|
||||||
|
bannerCardDisplayWidget->setOverlayText(
|
||||||
|
deckLoader->getName().isEmpty() ? QFileInfo(deckLoader->getLastFileName()).fileName() : deckLoader->getName());
|
||||||
|
}
|
||||||
|
|
||||||
void DeckPreviewWidget::imageClickedEvent(QMouseEvent *event, DeckPreviewCardPictureWidget *instance)
|
void DeckPreviewWidget::imageClickedEvent(QMouseEvent *event, DeckPreviewCardPictureWidget *instance)
|
||||||
{
|
{
|
||||||
Q_UNUSED(instance);
|
Q_UNUSED(instance);
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setFilePath(const QString &filePath);
|
void setFilePath(const QString &filePath);
|
||||||
|
void refreshBannerCardText();
|
||||||
void imageClickedEvent(QMouseEvent *event, DeckPreviewCardPictureWidget *instance);
|
void imageClickedEvent(QMouseEvent *event, DeckPreviewCardPictureWidget *instance);
|
||||||
void imageDoubleClickedEvent(QMouseEvent *event, DeckPreviewCardPictureWidget *instance);
|
void imageDoubleClickedEvent(QMouseEvent *event, DeckPreviewCardPictureWidget *instance);
|
||||||
void initializeUi(bool deckLoadSuccess);
|
void initializeUi(bool deckLoadSuccess);
|
||||||
|
|
|
||||||
|
|
@ -481,6 +481,52 @@ void DeckLoader::saveToStream_DeckZoneCards(QTextStream &out,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool DeckLoader::convertToCockatriceFormat(QString fileName)
|
||||||
|
{
|
||||||
|
// Change the file extension to .cod
|
||||||
|
QFileInfo fileInfo(fileName);
|
||||||
|
QString newFileName = fileInfo.path() + "/" + fileInfo.completeBaseName() + ".cod";
|
||||||
|
|
||||||
|
// Open the new file for writing
|
||||||
|
QFile file(newFileName);
|
||||||
|
if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
|
||||||
|
qCWarning(DeckLoaderLog) << "Failed to open file for writing:" << newFileName;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
// Perform file modifications based on the detected format
|
||||||
|
switch (getFormatFromName(fileName)) {
|
||||||
|
case PlainTextFormat:
|
||||||
|
// Save in Cockatrice's native format
|
||||||
|
result = saveToFile_Native(&file);
|
||||||
|
break;
|
||||||
|
case CockatriceFormat:
|
||||||
|
qCInfo(DeckLoaderLog) << "File is already in Cockatrice format. No conversion needed.";
|
||||||
|
result = true;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
qCWarning(DeckLoaderLog) << "Unsupported file format for conversion:" << fileName;
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
file.close();
|
||||||
|
|
||||||
|
// Delete the old file if conversion was successful
|
||||||
|
if (result) {
|
||||||
|
if (!QFile::remove(fileName)) {
|
||||||
|
qCWarning(DeckLoaderLog) << "Failed to delete original file:" << fileName;
|
||||||
|
} else {
|
||||||
|
qCInfo(DeckLoaderLog) << "Original file deleted successfully:" << fileName;
|
||||||
|
}
|
||||||
|
lastFileName = newFileName;
|
||||||
|
lastFileFormat = CockatriceFormat;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
QString DeckLoader::getCardZoneFromName(QString cardName, QString currentZoneName)
|
QString DeckLoader::getCardZoneFromName(QString cardName, QString currentZoneName)
|
||||||
{
|
{
|
||||||
CardInfoPtr card = CardDatabaseManager::getInstance()->getCard(cardName);
|
CardInfoPtr card = CardDatabaseManager::getInstance()->getCard(cardName);
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ public:
|
||||||
|
|
||||||
// overload
|
// overload
|
||||||
bool saveToStream_Plain(QTextStream &out, bool addComments = true, bool addSetNameAndNumber = true);
|
bool saveToStream_Plain(QTextStream &out, bool addComments = true, bool addSetNameAndNumber = true);
|
||||||
|
bool convertToCockatriceFormat(QString fileName);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void saveToStream_DeckHeader(QTextStream &out);
|
void saveToStream_DeckHeader(QTextStream &out);
|
||||||
|
|
|
||||||
|
|
@ -573,6 +573,15 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage()
|
||||||
connect(&useTearOffMenusCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
connect(&useTearOffMenusCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||||
[](const QT_STATE_CHANGED_T state) { SettingsCache::instance().setUseTearOffMenus(state == Qt::Checked); });
|
[](const QT_STATE_CHANGED_T state) { SettingsCache::instance().setUseTearOffMenus(state == Qt::Checked); });
|
||||||
|
|
||||||
|
visualDeckStoragePromptForConversionCheckBox.setChecked(
|
||||||
|
SettingsCache::instance().getVisualDeckStoragePromptForConversion());
|
||||||
|
connect(&visualDeckStoragePromptForConversionCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||||
|
&SettingsCache::setVisualDeckStoragePromptForConversion);
|
||||||
|
|
||||||
|
visualDeckStorageAlwaysConvertCheckBox.setChecked(SettingsCache::instance().getVisualDeckStorageAlwaysConvert());
|
||||||
|
connect(&visualDeckStorageAlwaysConvertCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||||
|
&SettingsCache::setVisualDeckStorageAlwaysConvert);
|
||||||
|
|
||||||
auto *generalGrid = new QGridLayout;
|
auto *generalGrid = new QGridLayout;
|
||||||
generalGrid->addWidget(&doubleClickToPlayCheckBox, 0, 0);
|
generalGrid->addWidget(&doubleClickToPlayCheckBox, 0, 0);
|
||||||
generalGrid->addWidget(&clickPlaysAllSelectedCheckBox, 1, 0);
|
generalGrid->addWidget(&clickPlaysAllSelectedCheckBox, 1, 0);
|
||||||
|
|
@ -580,6 +589,8 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage()
|
||||||
generalGrid->addWidget(&closeEmptyCardViewCheckBox, 3, 0);
|
generalGrid->addWidget(&closeEmptyCardViewCheckBox, 3, 0);
|
||||||
generalGrid->addWidget(&annotateTokensCheckBox, 4, 0);
|
generalGrid->addWidget(&annotateTokensCheckBox, 4, 0);
|
||||||
generalGrid->addWidget(&useTearOffMenusCheckBox, 5, 0);
|
generalGrid->addWidget(&useTearOffMenusCheckBox, 5, 0);
|
||||||
|
generalGrid->addWidget(&visualDeckStoragePromptForConversionCheckBox, 6, 0);
|
||||||
|
generalGrid->addWidget(&visualDeckStorageAlwaysConvertCheckBox, 7, 0);
|
||||||
|
|
||||||
generalGroupBox = new QGroupBox;
|
generalGroupBox = new QGroupBox;
|
||||||
generalGroupBox->setLayout(generalGrid);
|
generalGroupBox->setLayout(generalGrid);
|
||||||
|
|
@ -658,6 +669,8 @@ void UserInterfaceSettingsPage::retranslateUi()
|
||||||
closeEmptyCardViewCheckBox.setText(tr("Close card view window when last card is removed"));
|
closeEmptyCardViewCheckBox.setText(tr("Close card view window when last card is removed"));
|
||||||
annotateTokensCheckBox.setText(tr("Annotate card text on tokens"));
|
annotateTokensCheckBox.setText(tr("Annotate card text on tokens"));
|
||||||
useTearOffMenusCheckBox.setText(tr("Use tear-off menus, allowing right click menus to persist on screen"));
|
useTearOffMenusCheckBox.setText(tr("Use tear-off menus, allowing right click menus to persist on screen"));
|
||||||
|
visualDeckStoragePromptForConversionCheckBox.setText(tr("Prompt before converting .txt decks to .cod format"));
|
||||||
|
visualDeckStorageAlwaysConvertCheckBox.setText(tr("Always convert if not prompted"));
|
||||||
notificationsGroupBox->setTitle(tr("Notifications settings"));
|
notificationsGroupBox->setTitle(tr("Notifications settings"));
|
||||||
notificationsEnabledCheckBox.setText(tr("Enable notifications in taskbar"));
|
notificationsEnabledCheckBox.setText(tr("Enable notifications in taskbar"));
|
||||||
specNotificationsEnabledCheckBox.setText(tr("Notify in the taskbar for game events while you are spectating"));
|
specNotificationsEnabledCheckBox.setText(tr("Notify in the taskbar for game events while you are spectating"));
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,8 @@ private:
|
||||||
QCheckBox closeEmptyCardViewCheckBox;
|
QCheckBox closeEmptyCardViewCheckBox;
|
||||||
QCheckBox annotateTokensCheckBox;
|
QCheckBox annotateTokensCheckBox;
|
||||||
QCheckBox useTearOffMenusCheckBox;
|
QCheckBox useTearOffMenusCheckBox;
|
||||||
|
QCheckBox visualDeckStoragePromptForConversionCheckBox;
|
||||||
|
QCheckBox visualDeckStorageAlwaysConvertCheckBox;
|
||||||
QCheckBox tapAnimationCheckBox;
|
QCheckBox tapAnimationCheckBox;
|
||||||
QCheckBox openDeckInNewTabCheckBox;
|
QCheckBox openDeckInNewTabCheckBox;
|
||||||
QLabel rewindBufferingMsLabel;
|
QLabel rewindBufferingMsLabel;
|
||||||
|
|
|
||||||
|
|
@ -274,6 +274,9 @@ SettingsCache::SettingsCache()
|
||||||
settings->value("interface/visualdeckstoragedrawunusedcoloridentities", true).toBool();
|
settings->value("interface/visualdeckstoragedrawunusedcoloridentities", true).toBool();
|
||||||
visualDeckStorageUnusedColorIdentitiesOpacity =
|
visualDeckStorageUnusedColorIdentitiesOpacity =
|
||||||
settings->value("interface/visualdeckstorageunusedcoloridentitiesopacity", 15).toInt();
|
settings->value("interface/visualdeckstorageunusedcoloridentitiesopacity", 15).toInt();
|
||||||
|
visualDeckStoragePromptForConversion =
|
||||||
|
settings->value("interface/visualdeckstoragepromptforconversion", true).toBool();
|
||||||
|
visualDeckStorageAlwaysConvert = settings->value("interface/visualdeckstoragealwaysconvert", false).toBool();
|
||||||
horizontalHand = settings->value("hand/horizontal", true).toBool();
|
horizontalHand = settings->value("hand/horizontal", true).toBool();
|
||||||
invertVerticalCoordinate = settings->value("table/invert_vertical", false).toBool();
|
invertVerticalCoordinate = settings->value("table/invert_vertical", false).toBool();
|
||||||
minPlayersForMultiColumnLayout = settings->value("interface/min_players_multicolumn", 4).toInt();
|
minPlayersForMultiColumnLayout = settings->value("interface/min_players_multicolumn", 4).toInt();
|
||||||
|
|
@ -699,6 +702,18 @@ void SettingsCache::setVisualDeckStorageUnusedColorIdentitiesOpacity(int _visual
|
||||||
visualDeckStorageUnusedColorIdentitiesOpacity);
|
visualDeckStorageUnusedColorIdentitiesOpacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SettingsCache::setVisualDeckStoragePromptForConversion(QT_STATE_CHANGED_T _visualDeckStoragePromptForConversion)
|
||||||
|
{
|
||||||
|
visualDeckStoragePromptForConversion = _visualDeckStoragePromptForConversion;
|
||||||
|
settings->setValue("interface/visualdeckstoragepromptforconversion", visualDeckStoragePromptForConversion);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SettingsCache::setVisualDeckStorageAlwaysConvert(QT_STATE_CHANGED_T _visualDeckStorageAlwaysConvert)
|
||||||
|
{
|
||||||
|
visualDeckStorageAlwaysConvert = _visualDeckStorageAlwaysConvert;
|
||||||
|
settings->setValue("interface/visualdeckstoragealwaysconvert", visualDeckStorageAlwaysConvert);
|
||||||
|
}
|
||||||
|
|
||||||
void SettingsCache::setHorizontalHand(QT_STATE_CHANGED_T _horizontalHand)
|
void SettingsCache::setHorizontalHand(QT_STATE_CHANGED_T _horizontalHand)
|
||||||
{
|
{
|
||||||
horizontalHand = static_cast<bool>(_horizontalHand);
|
horizontalHand = static_cast<bool>(_horizontalHand);
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,8 @@ private:
|
||||||
int visualDeckStorageCardSize;
|
int visualDeckStorageCardSize;
|
||||||
bool visualDeckStorageDrawUnusedColorIdentities;
|
bool visualDeckStorageDrawUnusedColorIdentities;
|
||||||
int visualDeckStorageUnusedColorIdentitiesOpacity;
|
int visualDeckStorageUnusedColorIdentitiesOpacity;
|
||||||
|
bool visualDeckStoragePromptForConversion;
|
||||||
|
bool visualDeckStorageAlwaysConvert;
|
||||||
bool horizontalHand;
|
bool horizontalHand;
|
||||||
bool invertVerticalCoordinate;
|
bool invertVerticalCoordinate;
|
||||||
int minPlayersForMultiColumnLayout;
|
int minPlayersForMultiColumnLayout;
|
||||||
|
|
@ -424,6 +426,14 @@ public:
|
||||||
{
|
{
|
||||||
return visualDeckStorageUnusedColorIdentitiesOpacity;
|
return visualDeckStorageUnusedColorIdentitiesOpacity;
|
||||||
}
|
}
|
||||||
|
bool getVisualDeckStoragePromptForConversion() const
|
||||||
|
{
|
||||||
|
return visualDeckStoragePromptForConversion;
|
||||||
|
}
|
||||||
|
bool getVisualDeckStorageAlwaysConvert() const
|
||||||
|
{
|
||||||
|
return visualDeckStorageAlwaysConvert;
|
||||||
|
}
|
||||||
bool getHorizontalHand() const
|
bool getHorizontalHand() const
|
||||||
{
|
{
|
||||||
return horizontalHand;
|
return horizontalHand;
|
||||||
|
|
@ -748,6 +758,8 @@ public slots:
|
||||||
void setVisualDeckStorageCardSize(int _visualDeckStorageCardSize);
|
void setVisualDeckStorageCardSize(int _visualDeckStorageCardSize);
|
||||||
void setVisualDeckStorageDrawUnusedColorIdentities(QT_STATE_CHANGED_T _visualDeckStorageDrawUnusedColorIdentities);
|
void setVisualDeckStorageDrawUnusedColorIdentities(QT_STATE_CHANGED_T _visualDeckStorageDrawUnusedColorIdentities);
|
||||||
void setVisualDeckStorageUnusedColorIdentitiesOpacity(int _visualDeckStorageUnusedColorIdentitiesOpacity);
|
void setVisualDeckStorageUnusedColorIdentitiesOpacity(int _visualDeckStorageUnusedColorIdentitiesOpacity);
|
||||||
|
void setVisualDeckStoragePromptForConversion(QT_STATE_CHANGED_T _visualDeckStoragePromptForConversion);
|
||||||
|
void setVisualDeckStorageAlwaysConvert(QT_STATE_CHANGED_T _visualDeckStorageAlwaysConvert);
|
||||||
void setHorizontalHand(QT_STATE_CHANGED_T _horizontalHand);
|
void setHorizontalHand(QT_STATE_CHANGED_T _horizontalHand);
|
||||||
void setInvertVerticalCoordinate(QT_STATE_CHANGED_T _invertVerticalCoordinate);
|
void setInvertVerticalCoordinate(QT_STATE_CHANGED_T _invertVerticalCoordinate);
|
||||||
void setMinPlayersForMultiColumnLayout(int _minPlayersForMultiColumnLayout);
|
void setMinPlayersForMultiColumnLayout(int _minPlayersForMultiColumnLayout);
|
||||||
|
|
|
||||||
|
|
@ -222,6 +222,12 @@ void SettingsCache::setVisualDeckStorageUnusedColorIdentitiesOpacity(
|
||||||
int /* _visualDeckStorageUnusedColorIdentitiesOpacity */)
|
int /* _visualDeckStorageUnusedColorIdentitiesOpacity */)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
void SettingsCache::setVisualDeckStoragePromptForConversion(QT_STATE_CHANGED_T /* _visualDeckStoragePromptForConversion */)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void SettingsCache::setVisualDeckStorageAlwaysConvert(QT_STATE_CHANGED_T /* _visualDeckStorageAlwaysConvert */)
|
||||||
|
{
|
||||||
|
}
|
||||||
void SettingsCache::setHorizontalHand(QT_STATE_CHANGED_T /* _horizontalHand */)
|
void SettingsCache::setHorizontalHand(QT_STATE_CHANGED_T /* _horizontalHand */)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -226,6 +226,12 @@ void SettingsCache::setVisualDeckStorageUnusedColorIdentitiesOpacity(
|
||||||
int /* _visualDeckStorageUnusedColorIdentitiesOpacity */)
|
int /* _visualDeckStorageUnusedColorIdentitiesOpacity */)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
void SettingsCache::setVisualDeckStoragePromptForConversion(QT_STATE_CHANGED_T /* _visualDeckStoragePromptForConversion */)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void SettingsCache::setVisualDeckStorageAlwaysConvert(QT_STATE_CHANGED_T /* _visualDeckStorageAlwaysConvert */)
|
||||||
|
{
|
||||||
|
}
|
||||||
void SettingsCache::setHorizontalHand(QT_STATE_CHANGED_T /* _horizontalHand */)
|
void SettingsCache::setHorizontalHand(QT_STATE_CHANGED_T /* _horizontalHand */)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue