mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
116 lines
3.2 KiB
C++
116 lines
3.2 KiB
C++
#ifndef COCKATRICE_GENERAL_SETTINGS_PAGE_H
|
|
#define COCKATRICE_GENERAL_SETTINGS_PAGE_H
|
|
|
|
#include "abstract_settings_page.h"
|
|
|
|
#include <QCheckBox>
|
|
#include <QComboBox>
|
|
#include <QLabel>
|
|
#include <QLoggingCategory>
|
|
#include <QSpinBox>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
#include <qtmetamacros.h>
|
|
|
|
class QGroupBox;
|
|
class QLineEdit;
|
|
class QPushButton;
|
|
|
|
inline Q_LOGGING_CATEGORY(GeneralSettingsPageLog, "general_settings_page");
|
|
|
|
class GeneralSettingsPage : public AbstractSettingsPage
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
GeneralSettingsPage();
|
|
void retranslateUi() override;
|
|
|
|
static QStringList findQmFiles();
|
|
|
|
signals:
|
|
/// Request to re-import the card database with the newly selected card language
|
|
void cardDatabaseUpdateRequested();
|
|
|
|
private slots:
|
|
void deckPathButtonClicked();
|
|
void filtersPathButtonClicked();
|
|
void replaysPathButtonClicked();
|
|
void picsPathButtonClicked();
|
|
void cardDatabasePathButtonClicked();
|
|
void customCardDatabaseButtonClicked();
|
|
void tokenDatabasePathButtonClicked();
|
|
void resetAllPathsClicked();
|
|
void languageBoxChanged(int index);
|
|
void cardLanguageBoxChanged(int index);
|
|
void cardSearchLanguageBoxChanged(int index);
|
|
void updateStartupServerControlsVisibility();
|
|
|
|
private:
|
|
QGroupBox *languageGroupBox;
|
|
QGroupBox *versionGroupBox;
|
|
QGroupBox *crashReportingGroupBox;
|
|
QGroupBox *cardDatabaseGroupBox;
|
|
QGroupBox *startupGroupBox;
|
|
QGroupBox *pathsGroupBox;
|
|
QGroupBox *deckSyncGroupBox;
|
|
|
|
QLabel languageLabel;
|
|
QComboBox languageBox;
|
|
QLabel advertiseTranslationPageLabel;
|
|
|
|
QLabel cardLanguageLabel;
|
|
QComboBox cardLanguageBox;
|
|
QLabel cardLanguageNoteLabel;
|
|
|
|
QLabel cardSearchLanguageLabel;
|
|
QComboBox cardSearchLanguageBox;
|
|
|
|
QLabel updateReleaseChannelLabel;
|
|
QComboBox updateReleaseChannelBox;
|
|
QCheckBox startupUpdateCheckCheckBox;
|
|
QCheckBox updateNotificationCheckBox;
|
|
QCheckBox newVersionOracleCheckBox;
|
|
|
|
QLabel crashReportingLabel;
|
|
QComboBox crashReportingBox;
|
|
|
|
QLabel startupCardUpdateCheckBehaviorLabel;
|
|
QComboBox startupCardUpdateCheckBehaviorSelector;
|
|
QLabel cardUpdateCheckIntervalLabel;
|
|
QSpinBox cardUpdateCheckIntervalSpinBox;
|
|
QLabel lastCardUpdateCheckDateLabel;
|
|
QCheckBox cardDatabaseUpdateTrayNotificationCheckBox;
|
|
|
|
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;
|
|
|
|
QLabel conflictDefaultLabel;
|
|
QComboBox conflictDefaultSelector;
|
|
QCheckBox autoSyncCheckBox;
|
|
QLabel syncIntervalLabel;
|
|
QSpinBox syncIntervalEdit;
|
|
};
|
|
|
|
#endif // COCKATRICE_GENERAL_SETTINGS_PAGE_H
|