mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-23 01:55:10 -07:00
Some checks are pending
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
Build Desktop / Configure (push) Waiting to run
Build Desktop / Debian 13 (push) Blocked by required conditions
Build Desktop / Debian 12 (push) Blocked by required conditions
Build Desktop / Fedora 44 (push) Blocked by required conditions
Build Desktop / Fedora 43 (push) Blocked by required conditions
Build Desktop / Servatrice_Debian 12 (push) Blocked by required conditions
Build Desktop / Ubuntu 26.04 (push) Blocked by required conditions
Build Desktop / Ubuntu 24.04 (push) Blocked by required conditions
Build Desktop / Arch (push) Blocked by required conditions
Build Desktop / macOS 13 Intel (push) Blocked by required conditions
Build Desktop / macOS 14 (push) Blocked by required conditions
Build Desktop / macOS 15 (push) Blocked by required conditions
Build Desktop / macOS 26 Debug (push) Blocked by required conditions
Build Desktop / Windows 10 (push) Blocked by required conditions
Build Docker / Servatrice (arm) (push) Waiting to run
Build Docker / Servatrice (x86) (push) Waiting to run
Build Docker / Publish multi-platform Servatrice image (push) Blocked by required conditions
* [SettingsPage] Refactor: Clean up order of variables * fixes
102 lines
3 KiB
C++
102 lines
3 KiB
C++
#ifndef COCKATRICE_APPEARANCE_SETTINGS_PAGE_H
|
|
#define COCKATRICE_APPEARANCE_SETTINGS_PAGE_H
|
|
|
|
#include "abstract_settings_page.h"
|
|
|
|
#include <QCheckBox>
|
|
#include <QComboBox>
|
|
#include <QGroupBox>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QSpinBox>
|
|
#include <libcockatrice/utility/macros.h>
|
|
|
|
class AppearanceSettingsPage : public AbstractSettingsPage
|
|
{
|
|
Q_OBJECT
|
|
private slots:
|
|
void themeBoxChanged(int index);
|
|
void openThemeLocation();
|
|
void editPalette();
|
|
void updateHomeTabSettingsVisibility();
|
|
void showShortcutsChanged(QT_STATE_CHANGED_T enabled);
|
|
void overrideAllCardArtWithPersonalPreferenceToggled(QT_STATE_CHANGED_T enabled);
|
|
|
|
void cardViewInitialRowsMaxChanged(int value);
|
|
void cardViewExpandedRowsMaxChanged(int value);
|
|
void openPlaymatCollectionDialog();
|
|
|
|
private:
|
|
QLabel themeLabel;
|
|
QComboBox themeBox;
|
|
QPushButton openThemeButton;
|
|
QLabel schemeComboLabel;
|
|
QComboBox schemeCombo;
|
|
QLabel styleComboLabel;
|
|
QComboBox styleCombo;
|
|
QPushButton editPaletteButton;
|
|
|
|
QLabel homeTabBackgroundSourceLabel;
|
|
QComboBox homeTabBackgroundSourceBox;
|
|
QLabel homeTabBackgroundShuffleFrequencyLabel;
|
|
QSpinBox homeTabBackgroundShuffleFrequencySpinBox;
|
|
QCheckBox homeTabDisplayCardNameCheckBox;
|
|
QLabel homeTabButtonColorSourceLabel;
|
|
QComboBox homeTabButtonColorSourceBox;
|
|
|
|
QLabel playmatVisibilityLabel;
|
|
QComboBox playmatVisibilityCombo;
|
|
QLabel playmatModeLabel;
|
|
QComboBox playmatModeCombo;
|
|
QLabel playmatDefaultLabel;
|
|
QPushButton playmatDefaultEditButton;
|
|
|
|
QCheckBox styleUserListCheckBox;
|
|
|
|
QCheckBox showShortcutsCheckBox;
|
|
QCheckBox showGameSelectorFilterToolbarCheckBox;
|
|
|
|
QCheckBox overrideAllCardArtWithPersonalPreferenceCheckBox;
|
|
QCheckBox bumpSetsWithCardsInDeckToTopCheckBox;
|
|
|
|
QCheckBox displayCardNamesCheckBox;
|
|
QCheckBox autoRotateSidewaysLayoutCardsCheckBox;
|
|
QCheckBox cardScalingCheckBox;
|
|
QCheckBox roundCardCornersCheckBox;
|
|
QLabel maxFontSizeForCardsLabel;
|
|
QSpinBox maxFontSizeForCardsEdit;
|
|
|
|
QLabel verticalCardOverlapPercentLabel;
|
|
QSpinBox verticalCardOverlapPercentBox;
|
|
QLabel cardViewInitialRowsMaxLabel;
|
|
QSpinBox cardViewInitialRowsMaxBox;
|
|
QLabel cardViewExpandedRowsMaxLabel;
|
|
QSpinBox cardViewExpandedRowsMaxBox;
|
|
|
|
QList<QLabel *> cardCounterNames;
|
|
|
|
QCheckBox horizontalHandCheckBox;
|
|
QCheckBox leftJustifiedHandCheckBox;
|
|
|
|
QCheckBox invertVerticalCoordinateCheckBox;
|
|
QLabel minPlayersForMultiColumnLayoutLabel;
|
|
QSpinBox minPlayersForMultiColumnLayoutEdit;
|
|
|
|
QGroupBox *themeGroupBox;
|
|
QGroupBox *homeTabGroupBox;
|
|
QGroupBox *playmatGroupBox;
|
|
QGroupBox *stylingGroupBox;
|
|
QGroupBox *menuGroupBox;
|
|
QGroupBox *printingsGroupBox;
|
|
QGroupBox *cardsGroupBox;
|
|
QGroupBox *cardLayoutGroupBox;
|
|
QGroupBox *cardCountersGroupBox;
|
|
QGroupBox *handGroupBox;
|
|
QGroupBox *tableGroupBox;
|
|
|
|
public:
|
|
AppearanceSettingsPage();
|
|
void retranslateUi() override;
|
|
};
|
|
|
|
#endif // COCKATRICE_APPEARANCE_SETTINGS_PAGE_H
|