1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/launcher/settingsView/csettingsview_moc.h

101 lines
3.6 KiB
C++
Raw Normal View History

/*
* csettingsview_moc.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
2016-01-09 22:23:55 +02:00
namespace Ui
{
class CSettingsView;
}
2024-09-14 21:34:39 +02:00
class MainWindow;
class CSettingsView : public QWidget
{
Q_OBJECT
2024-09-14 21:34:39 +02:00
MainWindow * getMainWindow();
public:
explicit CSettingsView(QWidget * parent = nullptr);
~CSettingsView();
void loadSettings();
void loadToggleButtonSettings();
void loadTranslation();
void setDisplayList();
void changeEvent(QEvent *event) override;
void showEvent(QShowEvent * event) override;
2016-01-09 22:23:55 +02:00
void setCheckbuttonState(QToolButton * button, bool checked);
void updateCheckbuttonText(QToolButton * button);
public slots:
void fillValidResolutions();
private slots:
2022-09-26 15:39:10 +02:00
void on_comboBoxResolution_currentTextChanged(const QString & arg1);
void on_comboBoxFullScreen_currentIndexChanged(int index);
void on_comboBoxFriendlyAI_currentTextChanged(const QString & arg1);
void on_comboBoxNeutralAI_currentTextChanged(const QString & arg1);
void on_comboBoxEnemyAI_currentTextChanged(const QString & arg1);
void on_spinBoxNetworkPort_valueChanged(int arg1);
void on_buttonShowIntro_toggled(bool value);
void on_buttonAutoCheck_toggled(bool value);
void on_comboBoxDisplayIndex_currentIndexChanged(int index);
void on_buttonAutoSave_toggled(bool value);
void on_comboBoxLanguage_currentIndexChanged(int index);
void on_buttonCursorType_toggled(bool value);
void on_pushButtonTranslation_clicked();
2024-06-20 21:33:45 +02:00
void on_pushButtonResetTutorialTouchscreen_clicked();
void on_buttonRepositoryDefault_toggled(bool value);
void on_buttonRepositoryExtra_toggled(bool value);
void on_lineEditRepositoryExtra_textEdited(const QString &arg1);
void on_spinBoxInterfaceScaling_valueChanged(int arg1);
void on_refreshRepositoriesButton_clicked();
2023-07-03 13:30:13 +02:00
void on_spinBoxFramerateLimit_valueChanged(int arg1);
void on_buttonVSync_toggled(bool value);
2023-07-15 12:22:15 +02:00
void on_comboBoxEnemyPlayerAI_currentTextChanged(const QString &arg1);
void on_comboBoxAlliedPlayerAI_currentTextChanged(const QString &arg1);
void on_buttonAutoSavePrefix_toggled(bool value);
2024-04-20 18:51:03 +02:00
void on_spinBoxAutoSaveLimit_valueChanged(int arg1);
void on_lineEditAutoSavePrefix_textEdited(const QString &arg1);
void on_sliderReservedArea_valueChanged(int arg1);
2024-01-05 21:47:03 +02:00
void on_comboBoxRendererType_currentTextChanged(const QString &arg1);
void on_buttonIgnoreSslErrors_clicked(bool checked);
void on_comboBoxUpscalingFilter_currentIndexChanged(int index);
void on_comboBoxDownscalingFilter_currentIndexChanged(int index);
void on_sliderMusicVolume_valueChanged(int value);
void on_sliderSoundVolume_valueChanged(int value);
void on_buttonRelativeCursorMode_toggled(bool value);
void on_sliderRelativeCursorSpeed_valueChanged(int value);
void on_buttonHapticFeedback_toggled(bool value);
void on_sliderLongTouchDuration_valueChanged(int value);
void on_slideToleranceDistanceMouse_valueChanged(int value);
void on_sliderToleranceDistanceTouch_valueChanged(int value);
void on_sliderToleranceDistanceController_valueChanged(int value);
void on_lineEditGameLobbyHost_textChanged(const QString &arg1);
void on_spinBoxNetworkPortLobby_valueChanged(int arg1);
void on_sliderControllerSticksAcceleration_valueChanged(int value);
void on_sliderControllerSticksSensitivity_valueChanged(int value);
2024-09-14 21:34:39 +02:00
void on_buttonTtfFont_toggled(bool value);
private:
Ui::CSettingsView * ui;
2024-01-05 21:47:03 +02:00
void fillValidRenderers();
void fillValidResolutionsForScreen(int screenIndex);
void fillValidScalingRange();
QSize getPreferredRenderingResolution();
};