File: csettingsview_moc.h

package info (click to toggle)
vcmi 1.6.5%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 32,060 kB
  • sloc: cpp: 238,971; python: 265; sh: 224; xml: 157; ansic: 78; objc: 61; makefile: 49
file content (113 lines) | stat: -rw-r--r-- 4,134 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 * 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

namespace Ui
{
class CSettingsView;
}

class MainWindow;

class CSettingsView : public QWidget
{
	Q_OBJECT

	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;

	void setCheckbuttonState(QToolButton * button, bool checked);
	void updateCheckbuttonText(QToolButton * button);

public slots:
	void fillValidResolutions();

private slots:
	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();
	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();
	void on_spinBoxFramerateLimit_valueChanged(int arg1);
	void on_buttonVSync_toggled(bool value);
	void on_comboBoxEnemyPlayerAI_currentTextChanged(const QString &arg1);
	void on_comboBoxAlliedPlayerAI_currentTextChanged(const QString &arg1);
	void on_buttonAutoSavePrefix_toggled(bool value);
	void on_spinBoxAutoSaveLimit_valueChanged(int arg1);
	void on_lineEditAutoSavePrefix_textEdited(const QString &arg1);
	void on_sliderReservedArea_valueChanged(int arg1);
	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);
	void on_sliderScalingFont_valueChanged(int value);
	void on_buttonFontAuto_clicked(bool checked);
	void on_buttonFontScalable_clicked(bool checked);
	void on_buttonFontOriginal_clicked(bool checked);


	void on_buttonValidationOff_clicked(bool checked);

	void on_buttonValidationBasic_clicked(bool checked);

	void on_buttonValidationFull_clicked(bool checked);

	void on_sliderScalingCursor_valueChanged(int value);

	void on_buttonScalingAuto_toggled(bool checked);

	void on_buttonHandleBackRightMouseButton_toggled(bool checked);

private:
	Ui::CSettingsView * ui;

	void fillValidRenderers();
	void fillValidResolutionsForScreen(int screenIndex);
	void fillValidScalingRange();
	QSize getPreferredRenderingResolution();
};