mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05: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
87 lines
2.4 KiB
C++
87 lines
2.4 KiB
C++
#ifndef COCKATRICE_GENERAL_SETTINGS_PAGE_H
|
|
#define COCKATRICE_GENERAL_SETTINGS_PAGE_H
|
|
|
|
#include "abstract_settings_page.h"
|
|
|
|
#include <QCheckBox>
|
|
#include <QComboBox>
|
|
#include <QGroupBox>
|
|
#include <QLabel>
|
|
#include <QLoggingCategory>
|
|
#include <QPushButton>
|
|
#include <QSpinBox>
|
|
|
|
inline Q_LOGGING_CATEGORY(GeneralSettingsPageLog, "general_settings_page");
|
|
|
|
class GeneralSettingsPage : public AbstractSettingsPage
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
GeneralSettingsPage();
|
|
void retranslateUi() override;
|
|
|
|
static QStringList findQmFiles();
|
|
static QString languageName(const QString &lang);
|
|
|
|
private slots:
|
|
void deckPathButtonClicked();
|
|
void filtersPathButtonClicked();
|
|
void replaysPathButtonClicked();
|
|
void picsPathButtonClicked();
|
|
void cardDatabasePathButtonClicked();
|
|
void customCardDatabaseButtonClicked();
|
|
void tokenDatabasePathButtonClicked();
|
|
void resetAllPathsClicked();
|
|
void languageBoxChanged(int index);
|
|
void updateStartupServerControlsVisibility();
|
|
|
|
private:
|
|
QGroupBox *languageGroupBox;
|
|
QGroupBox *versionGroupBox;
|
|
QGroupBox *cardDatabaseGroupBox;
|
|
QGroupBox *startupGroupBox;
|
|
QGroupBox *pathsGroupBox;
|
|
|
|
QLabel languageLabel;
|
|
QComboBox languageBox;
|
|
QLabel advertiseTranslationPageLabel;
|
|
|
|
QLabel updateReleaseChannelLabel;
|
|
QComboBox updateReleaseChannelBox;
|
|
QCheckBox startupUpdateCheckCheckBox;
|
|
QCheckBox updateNotificationCheckBox;
|
|
QCheckBox newVersionOracleCheckBox;
|
|
|
|
QLabel startupCardUpdateCheckBehaviorLabel;
|
|
QComboBox startupCardUpdateCheckBehaviorSelector;
|
|
QLabel cardUpdateCheckIntervalLabel;
|
|
QSpinBox cardUpdateCheckIntervalSpinBox;
|
|
QLabel lastCardUpdateCheckDateLabel;
|
|
|
|
QCheckBox showTipsOnStartup;
|
|
QLabel startupTabLabel;
|
|
QComboBox startupTabSelector;
|
|
QLabel startupServerLabel;
|
|
QComboBox startupServerSelector;
|
|
QLabel startupRoomLabel;
|
|
QLineEdit *startupRoomNameEdit;
|
|
|
|
QLabel deckPathLabel;
|
|
QLabel filtersPathLabel;
|
|
QLabel replaysPathLabel;
|
|
QLabel picsPathLabel;
|
|
QLabel cardDatabasePathLabel;
|
|
QLabel customCardDatabasePathLabel;
|
|
QLabel tokenDatabasePathLabel;
|
|
QLineEdit *deckPathEdit;
|
|
QLineEdit *filtersPathEdit;
|
|
QLineEdit *replaysPathEdit;
|
|
QLineEdit *picsPathEdit;
|
|
QLineEdit *cardDatabasePathEdit;
|
|
QLineEdit *customCardDatabasePathEdit;
|
|
QLineEdit *tokenDatabasePathEdit;
|
|
QPushButton *resetAllPathsButton;
|
|
QLabel *allPathsResetLabel;
|
|
};
|
|
|
|
#endif // COCKATRICE_GENERAL_SETTINGS_PAGE_H
|