csettingsview_moc.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. * csettingsview_moc.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. namespace Ui
  12. {
  13. class CSettingsView;
  14. }
  15. class MainWindow;
  16. class CSettingsView : public QWidget
  17. {
  18. Q_OBJECT
  19. MainWindow * getMainWindow();
  20. public:
  21. explicit CSettingsView(QWidget * parent = nullptr);
  22. ~CSettingsView();
  23. void loadSettings();
  24. void loadToggleButtonSettings();
  25. void loadTranslation();
  26. void setDisplayList();
  27. void changeEvent(QEvent *event) override;
  28. void showEvent(QShowEvent * event) override;
  29. void setCheckbuttonState(QToolButton * button, bool checked);
  30. void updateCheckbuttonText(QToolButton * button);
  31. public slots:
  32. void fillValidResolutions();
  33. private slots:
  34. void on_comboBoxResolution_currentTextChanged(const QString & arg1);
  35. void on_comboBoxFullScreen_currentIndexChanged(int index);
  36. void on_comboBoxFriendlyAI_currentTextChanged(const QString & arg1);
  37. void on_comboBoxNeutralAI_currentTextChanged(const QString & arg1);
  38. void on_comboBoxEnemyAI_currentTextChanged(const QString & arg1);
  39. void on_spinBoxNetworkPort_valueChanged(int arg1);
  40. void on_buttonShowIntro_toggled(bool value);
  41. void on_buttonAutoCheck_toggled(bool value);
  42. void on_comboBoxDisplayIndex_currentIndexChanged(int index);
  43. void on_buttonAutoSave_toggled(bool value);
  44. void on_comboBoxLanguage_currentIndexChanged(int index);
  45. void on_buttonCursorType_toggled(bool value);
  46. void on_pushButtonTranslation_clicked();
  47. void on_pushButtonResetTutorialTouchscreen_clicked();
  48. void on_buttonRepositoryDefault_toggled(bool value);
  49. void on_buttonRepositoryExtra_toggled(bool value);
  50. void on_lineEditRepositoryExtra_textEdited(const QString &arg1);
  51. void on_spinBoxInterfaceScaling_valueChanged(int arg1);
  52. void on_refreshRepositoriesButton_clicked();
  53. void on_spinBoxFramerateLimit_valueChanged(int arg1);
  54. void on_buttonVSync_toggled(bool value);
  55. void on_comboBoxEnemyPlayerAI_currentTextChanged(const QString &arg1);
  56. void on_comboBoxAlliedPlayerAI_currentTextChanged(const QString &arg1);
  57. void on_buttonAutoSavePrefix_toggled(bool value);
  58. void on_spinBoxAutoSaveLimit_valueChanged(int arg1);
  59. void on_lineEditAutoSavePrefix_textEdited(const QString &arg1);
  60. void on_sliderReservedArea_valueChanged(int arg1);
  61. void on_comboBoxRendererType_currentTextChanged(const QString &arg1);
  62. void on_buttonIgnoreSslErrors_clicked(bool checked);
  63. void on_comboBoxUpscalingFilter_currentIndexChanged(int index);
  64. void on_comboBoxDownscalingFilter_currentIndexChanged(int index);
  65. void on_sliderMusicVolume_valueChanged(int value);
  66. void on_sliderSoundVolume_valueChanged(int value);
  67. void on_buttonRelativeCursorMode_toggled(bool value);
  68. void on_sliderRelativeCursorSpeed_valueChanged(int value);
  69. void on_buttonHapticFeedback_toggled(bool value);
  70. void on_sliderLongTouchDuration_valueChanged(int value);
  71. void on_slideToleranceDistanceMouse_valueChanged(int value);
  72. void on_sliderToleranceDistanceTouch_valueChanged(int value);
  73. void on_sliderToleranceDistanceController_valueChanged(int value);
  74. void on_lineEditGameLobbyHost_textChanged(const QString &arg1);
  75. void on_spinBoxNetworkPortLobby_valueChanged(int arg1);
  76. void on_sliderControllerSticksAcceleration_valueChanged(int value);
  77. void on_sliderControllerSticksSensitivity_valueChanged(int value);
  78. void on_sliderScalingFont_valueChanged(int value);
  79. void on_buttonFontAuto_clicked(bool checked);
  80. void on_buttonFontScalable_clicked(bool checked);
  81. void on_buttonFontOriginal_clicked(bool checked);
  82. void on_buttonValidationOff_clicked(bool checked);
  83. void on_buttonValidationBasic_clicked(bool checked);
  84. void on_buttonValidationFull_clicked(bool checked);
  85. void on_sliderScalingCursor_valueChanged(int value);
  86. void on_buttonScalingAuto_toggled(bool checked);
  87. void on_buttonHandleBackRightMouseButton_toggled(bool checked);
  88. private:
  89. Ui::CSettingsView * ui;
  90. void fillValidRenderers();
  91. void fillValidResolutionsForScreen(int screenIndex);
  92. void fillValidScalingRange();
  93. QSize getPreferredRenderingResolution();
  94. };