mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 16:13:54 -07:00
partial rename
This commit is contained in:
parent
568e253a75
commit
4447214c7a
5 changed files with 30 additions and 30 deletions
|
|
@ -311,8 +311,8 @@ SettingsCache::SettingsCache()
|
|||
focusCardViewSearchBar = settings->value("interface/focusCardViewSearchBar", true).toBool();
|
||||
keepGameChatFocus = settings->value("interface/keepGameChatFocus", false).toBool();
|
||||
|
||||
showDragSelectionTally = settings->value("interface/showlassoselectiontally", true).toBool();
|
||||
showTotalSelectionTally = settings->value("interface/showpersistentselectiontally", true).toBool();
|
||||
showDragSelectionCount = settings->value("interface/showlassoselectioncount", true).toBool();
|
||||
showTotalSelectionCount = settings->value("interface/showpersistentselectioncount", true).toBool();
|
||||
showSubtypeSelectionTally = settings->value("interface/showsubtypeselectiontally", true).toBool();
|
||||
|
||||
showShortcuts = settings->value("menu/showshortcuts", true).toBool();
|
||||
|
|
@ -1376,16 +1376,16 @@ void SettingsCache::setRoundCardCorners(bool _roundCardCorners)
|
|||
emit roundCardCornersChanged(roundCardCorners);
|
||||
}
|
||||
|
||||
void SettingsCache::setShowDragSelectionTally(QT_STATE_CHANGED_T _showDragSelectionTally)
|
||||
void SettingsCache::setShowDragSelectionCount(QT_STATE_CHANGED_T _showDragSelectionCount)
|
||||
{
|
||||
showDragSelectionTally = static_cast<bool>(_showDragSelectionTally);
|
||||
settings->setValue("interface/showlassoselectiontally", showDragSelectionTally);
|
||||
showDragSelectionCount = static_cast<bool>(_showDragSelectionCount);
|
||||
settings->setValue("interface/showlassoselectioncount", showDragSelectionCount);
|
||||
}
|
||||
|
||||
void SettingsCache::setShowTotalSelectionTally(QT_STATE_CHANGED_T _showTotalSelectionTally)
|
||||
void SettingsCache::setShowTotalSelectionCount(QT_STATE_CHANGED_T _showTotalSelectionCount)
|
||||
{
|
||||
showTotalSelectionTally = static_cast<bool>(_showTotalSelectionTally);
|
||||
settings->setValue("interface/showpersistentselectiontally", showTotalSelectionTally);
|
||||
showTotalSelectionCount = static_cast<bool>(_showTotalSelectionCount);
|
||||
settings->setValue("interface/showpersistentselectioncount", showTotalSelectionCount);
|
||||
}
|
||||
|
||||
void SettingsCache::setShowSubtypeSelectionTally(QT_STATE_CHANGED_T _showSubtypeSelectionTally)
|
||||
|
|
|
|||
|
|
@ -351,8 +351,8 @@ private:
|
|||
bool isPortableBuild;
|
||||
bool roundCardCorners;
|
||||
bool showStatusBar;
|
||||
bool showDragSelectionTally;
|
||||
bool showTotalSelectionTally;
|
||||
bool showDragSelectionCount;
|
||||
bool showTotalSelectionCount;
|
||||
bool showSubtypeSelectionTally;
|
||||
|
||||
public:
|
||||
|
|
@ -469,13 +469,13 @@ public:
|
|||
{
|
||||
return showStatusBar;
|
||||
}
|
||||
[[nodiscard]] bool getShowDragSelectionTally() const
|
||||
[[nodiscard]] bool getShowDragSelectionCount() const
|
||||
{
|
||||
return showDragSelectionTally;
|
||||
return showDragSelectionCount;
|
||||
}
|
||||
[[nodiscard]] bool getShowTotalSelectionTally() const
|
||||
[[nodiscard]] bool getShowTotalSelectionCount() const
|
||||
{
|
||||
return showTotalSelectionTally;
|
||||
return showTotalSelectionCount;
|
||||
}
|
||||
[[nodiscard]] bool getShowSubtypeSelectionTally() const
|
||||
{
|
||||
|
|
@ -1172,8 +1172,8 @@ public slots:
|
|||
void setUpdateReleaseChannelIndex(int value);
|
||||
void setMaxFontSize(int _max);
|
||||
void setRoundCardCorners(bool _roundCardCorners);
|
||||
void setShowDragSelectionTally(QT_STATE_CHANGED_T _showDragSelectionTally);
|
||||
void setShowTotalSelectionTally(QT_STATE_CHANGED_T _showTotalSelectionTally);
|
||||
void setShowDragSelectionCount(QT_STATE_CHANGED_T _showDragSelectionCount);
|
||||
void setShowTotalSelectionCount(QT_STATE_CHANGED_T _showTotalSelectionCount);
|
||||
void setShowSubtypeSelectionTally(QT_STATE_CHANGED_T _showSubtypeSelectionTally);
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ void GameView::resizeRubberBand(const QPointF &cursorPoint, int selectedCount)
|
|||
QRect rect = QRect(mapFromScene(selectionOrigin), cursor).normalized();
|
||||
rubberBand->setGeometry(rect);
|
||||
|
||||
if (!SettingsCache::instance().getShowDragSelectionTally()) {
|
||||
if (!SettingsCache::instance().getShowDragSelectionCount()) {
|
||||
dragCountLabel->hide();
|
||||
return;
|
||||
}
|
||||
|
|
@ -218,7 +218,7 @@ void GameView::updateTotalSelectionCount(const QSize &viewSize)
|
|||
|
||||
int count = scene()->selectedItems().count();
|
||||
|
||||
if (!SettingsCache::instance().getShowTotalSelectionTally() || count <= 1) {
|
||||
if (!SettingsCache::instance().getShowTotalSelectionCount() || count <= 1) {
|
||||
totalCountLabel->hide();
|
||||
} else {
|
||||
totalCountLabel->setText(QString::number(count));
|
||||
|
|
|
|||
|
|
@ -60,13 +60,13 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage()
|
|||
connect(&annotateTokensCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||
&SettingsCache::setAnnotateTokens);
|
||||
|
||||
showDragSelectionTallyCheckBox.setChecked(SettingsCache::instance().getShowDragSelectionTally());
|
||||
connect(&showDragSelectionTallyCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||
&SettingsCache::setShowDragSelectionTally);
|
||||
showDragSelectionCountCheckBox.setChecked(SettingsCache::instance().getShowDragSelectionCount());
|
||||
connect(&showDragSelectionCountCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||
&SettingsCache::setShowDragSelectionCount);
|
||||
|
||||
showTotalSelectionTallyCheckBox.setChecked(SettingsCache::instance().getShowTotalSelectionTally());
|
||||
connect(&showTotalSelectionTallyCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||
&SettingsCache::setShowTotalSelectionTally);
|
||||
showTotalSelectionCountCheckBox.setChecked(SettingsCache::instance().getShowTotalSelectionCount());
|
||||
connect(&showTotalSelectionCountCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||
&SettingsCache::setShowTotalSelectionCount);
|
||||
|
||||
showSubtypeSelectionTallyCheckBox.setChecked(SettingsCache::instance().getShowSubtypeSelectionTally());
|
||||
connect(&showSubtypeSelectionTallyCheckBox, &QCheckBox::QT_STATE_CHANGED, &SettingsCache::instance(),
|
||||
|
|
@ -88,8 +88,8 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage()
|
|||
generalGrid->addWidget(&closeEmptyCardViewCheckBox, 4, 0);
|
||||
generalGrid->addWidget(&focusCardViewSearchBarCheckBox, 5, 0);
|
||||
generalGrid->addWidget(&annotateTokensCheckBox, 6, 0);
|
||||
generalGrid->addWidget(&showDragSelectionTallyCheckBox, 7, 0);
|
||||
generalGrid->addWidget(&showTotalSelectionTallyCheckBox, 8, 0);
|
||||
generalGrid->addWidget(&showDragSelectionCountCheckBox, 7, 0);
|
||||
generalGrid->addWidget(&showTotalSelectionCountCheckBox, 8, 0);
|
||||
generalGrid->addWidget(&showSubtypeSelectionTallyCheckBox, 9, 0);
|
||||
generalGrid->addWidget(&useTearOffMenusCheckBox, 10, 0);
|
||||
generalGrid->addWidget(&keepGameChatFocusCheckBox, 11, 0);
|
||||
|
|
@ -214,8 +214,8 @@ void UserInterfaceSettingsPage::retranslateUi()
|
|||
closeEmptyCardViewCheckBox.setText(tr("Close card view window when last card is removed"));
|
||||
focusCardViewSearchBarCheckBox.setText(tr("Auto focus search bar when card view window is opened"));
|
||||
annotateTokensCheckBox.setText(tr("Annotate card text on tokens"));
|
||||
showDragSelectionTallyCheckBox.setText(tr("Show selection tally during drag selection"));
|
||||
showTotalSelectionTallyCheckBox.setText(tr("Show total selection tally"));
|
||||
showDragSelectionCountCheckBox.setText(tr("Show selection count during drag selection"));
|
||||
showTotalSelectionCountCheckBox.setText(tr("Show total selection count"));
|
||||
showSubtypeSelectionTallyCheckBox.setText(tr("Show subtype breakdown in selection tally"));
|
||||
useTearOffMenusCheckBox.setText(tr("Use tear-off menus, allowing right click menus to persist on screen"));
|
||||
keepGameChatFocusCheckBox.setText(
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ private:
|
|||
QCheckBox closeEmptyCardViewCheckBox;
|
||||
QCheckBox focusCardViewSearchBarCheckBox;
|
||||
QCheckBox annotateTokensCheckBox;
|
||||
QCheckBox showDragSelectionTallyCheckBox;
|
||||
QCheckBox showTotalSelectionTallyCheckBox;
|
||||
QCheckBox showDragSelectionCountCheckBox;
|
||||
QCheckBox showTotalSelectionCountCheckBox;
|
||||
QCheckBox showSubtypeSelectionTallyCheckBox;
|
||||
QCheckBox useTearOffMenusCheckBox;
|
||||
QCheckBox keepGameChatFocusCheckBox;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue