mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-23 10:05:10 -07:00
* [Settings] Shuffle some settings around Took 21 minutes Took 1 hour 25 minutes * [Settings] Camel case everything * Revert debug schema change * Add new classes * Fix card counters writing to global * Fix CI tests * Fix Windows CI * interface() is a protected keyword for MSVC Took 5 minutes Took 5 seconds * [Settings] Keep menu settings on the appearance settings page Leave the 'Menu settings' group box on the appearance settings page for now; relocating it to the user interface settings page will be done in a separate PR. Took 6 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
81 lines
2.6 KiB
C++
81 lines
2.6 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);
|
|
|
|
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;
|
|
QCheckBox styleUserListCheckBox;
|
|
QCheckBox showShortcutsCheckBox;
|
|
QCheckBox showGameSelectorFilterToolbarCheckBox;
|
|
QLabel minPlayersForMultiColumnLayoutLabel;
|
|
QLabel maxFontSizeForCardsLabel;
|
|
QCheckBox overrideAllCardArtWithPersonalPreferenceCheckBox;
|
|
QCheckBox bumpSetsWithCardsInDeckToTopCheckBox;
|
|
QCheckBox displayCardNamesCheckBox;
|
|
QCheckBox autoRotateSidewaysLayoutCardsCheckBox;
|
|
QCheckBox cardScalingCheckBox;
|
|
QCheckBox roundCardCornersCheckBox;
|
|
QLabel verticalCardOverlapPercentLabel;
|
|
QSpinBox verticalCardOverlapPercentBox;
|
|
QLabel cardViewInitialRowsMaxLabel;
|
|
QSpinBox cardViewInitialRowsMaxBox;
|
|
QLabel cardViewExpandedRowsMaxLabel;
|
|
QSpinBox cardViewExpandedRowsMaxBox;
|
|
QCheckBox horizontalHandCheckBox;
|
|
QCheckBox leftJustifiedHandCheckBox;
|
|
QCheckBox invertVerticalCoordinateCheckBox;
|
|
QGroupBox *themeGroupBox;
|
|
QGroupBox *homeTabGroupBox;
|
|
QGroupBox *stylingGroupBox;
|
|
QGroupBox *menuGroupBox;
|
|
QGroupBox *printingsGroupBox;
|
|
QGroupBox *cardsGroupBox;
|
|
QGroupBox *cardLayoutGroupBox;
|
|
QGroupBox *handGroupBox;
|
|
QGroupBox *tableGroupBox;
|
|
QGroupBox *cardCountersGroupBox;
|
|
QList<QLabel *> cardCounterNames;
|
|
QSpinBox minPlayersForMultiColumnLayoutEdit;
|
|
QSpinBox maxFontSizeForCardsEdit;
|
|
|
|
public:
|
|
AppearanceSettingsPage();
|
|
void retranslateUi() override;
|
|
};
|
|
|
|
#endif // COCKATRICE_APPEARANCE_SETTINGS_PAGE_H
|