2017-07-13 10:26:03 +02:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*/
|
2013-08-22 17:22:49 +03:00
|
|
|
#pragma once
|
2016-01-27 22:08:08 +02:00
|
|
|
#include "../StdInc.h"
|
2016-01-09 22:23:55 +02:00
|
|
|
|
2018-04-13 07:34:58 +02:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class CSettingsView;
|
2013-08-22 17:22:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
class CSettingsView : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2018-04-13 07:34:58 +02:00
|
|
|
|
2013-08-22 17:22:49 +03:00
|
|
|
public:
|
2018-04-13 07:34:58 +02:00
|
|
|
explicit CSettingsView(QWidget * parent = 0);
|
2013-08-22 17:22:49 +03:00
|
|
|
~CSettingsView();
|
|
|
|
|
|
|
|
void loadSettings();
|
2023-03-14 13:37:22 +02:00
|
|
|
void loadTranslation();
|
2017-08-24 03:52:02 +02:00
|
|
|
void setDisplayList();
|
2022-12-25 13:19:16 +02:00
|
|
|
void changeEvent(QEvent *event) override;
|
2023-03-14 13:37:22 +02:00
|
|
|
void showEvent(QShowEvent * event) override;
|
2016-01-09 22:23:55 +02:00
|
|
|
|
2022-09-27 10:51:49 +02:00
|
|
|
public slots:
|
2023-05-07 21:18:01 +02:00
|
|
|
void fillValidResolutions();
|
2022-09-27 10:51:49 +02:00
|
|
|
|
2013-08-22 17:22:49 +03:00
|
|
|
private slots:
|
2022-09-26 15:39:10 +02:00
|
|
|
void on_comboBoxResolution_currentTextChanged(const QString & arg1);
|
2013-08-22 17:22:49 +03:00
|
|
|
void on_comboBoxFullScreen_currentIndexChanged(int index);
|
2023-06-13 19:56:27 +02:00
|
|
|
void on_comboBoxPlayerAI_currentTextChanged(const QString & arg1);
|
|
|
|
void on_comboBoxFriendlyAI_currentTextChanged(const QString & arg1);
|
|
|
|
void on_comboBoxNeutralAI_currentTextChanged(const QString & arg1);
|
|
|
|
void on_comboBoxEnemyAI_currentTextChanged(const QString & arg1);
|
2013-08-22 17:22:49 +03:00
|
|
|
void on_spinBoxNetworkPort_valueChanged(int arg1);
|
2014-08-04 14:03:57 +03:00
|
|
|
void on_comboBoxShowIntro_currentIndexChanged(int index);
|
2014-11-03 17:47:37 +02:00
|
|
|
void on_comboBoxAutoCheck_currentIndexChanged(int index);
|
2016-08-30 20:54:37 +02:00
|
|
|
void on_comboBoxDisplayIndex_currentIndexChanged(int index);
|
2018-04-03 03:37:09 +02:00
|
|
|
void on_comboBoxAutoSave_currentIndexChanged(int index);
|
2022-12-25 13:19:16 +02:00
|
|
|
void on_comboBoxLanguage_currentIndexChanged(int index);
|
2023-01-19 18:14:10 +02:00
|
|
|
void on_comboBoxCursorType_currentIndexChanged(int index);
|
2023-01-26 00:30:51 +02:00
|
|
|
void on_listWidgetSettings_currentRowChanged(int currentRow);
|
2023-03-14 13:37:22 +02:00
|
|
|
void on_pushButtonTranslation_clicked();
|
|
|
|
|
|
|
|
void on_comboBoxLanguageBase_currentIndexChanged(int index);
|
2023-01-26 00:30:51 +02:00
|
|
|
|
2023-06-29 14:41:12 +02:00
|
|
|
void on_checkBoxRepositoryDefault_stateChanged(int arg1);
|
|
|
|
|
|
|
|
void on_checkBoxRepositoryExtra_stateChanged(int arg1);
|
|
|
|
|
|
|
|
void on_lineEditRepositoryExtra_textEdited(const QString &arg1);
|
|
|
|
|
|
|
|
void on_spinBoxInterfaceScaling_valueChanged(int arg1);
|
|
|
|
|
2023-06-30 17:41:05 +02:00
|
|
|
void on_refreshRepositoriesButton_clicked();
|
|
|
|
|
2023-07-03 13:30:13 +02:00
|
|
|
void on_spinBoxFramerateLimit_valueChanged(int arg1);
|
|
|
|
|
2013-08-22 17:22:49 +03:00
|
|
|
private:
|
2018-04-13 07:34:58 +02:00
|
|
|
Ui::CSettingsView * ui;
|
2022-09-26 15:58:27 +02:00
|
|
|
|
|
|
|
void fillValidResolutionsForScreen(int screenIndex);
|
2023-06-29 18:52:25 +02:00
|
|
|
void fillValidScalingRange();
|
|
|
|
QSize getPreferredRenderingResolution();
|
2013-08-22 17:22:49 +03:00
|
|
|
};
|