csettingsview_moc.h 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 CSettingsView : public QWidget
  16. {
  17. Q_OBJECT
  18. public:
  19. explicit CSettingsView(QWidget * parent = nullptr);
  20. ~CSettingsView();
  21. void loadSettings();
  22. void loadToggleButtonSettings();
  23. void loadTranslation();
  24. void setDisplayList();
  25. void changeEvent(QEvent *event) override;
  26. void showEvent(QShowEvent * event) override;
  27. void setCheckbuttonState(QToolButton * button, bool checked);
  28. void updateCheckbuttonText(QToolButton * button);
  29. public slots:
  30. void fillValidResolutions();
  31. private slots:
  32. void on_comboBoxResolution_currentTextChanged(const QString & arg1);
  33. void on_comboBoxFullScreen_currentIndexChanged(int index);
  34. void on_comboBoxFriendlyAI_currentTextChanged(const QString & arg1);
  35. void on_comboBoxNeutralAI_currentTextChanged(const QString & arg1);
  36. void on_comboBoxEnemyAI_currentTextChanged(const QString & arg1);
  37. void on_spinBoxNetworkPort_valueChanged(int arg1);
  38. void on_buttonShowIntro_toggled(bool value);
  39. void on_buttonAutoCheck_toggled(bool value);
  40. void on_comboBoxDisplayIndex_currentIndexChanged(int index);
  41. void on_buttonAutoSave_toggled(bool value);
  42. void on_comboBoxLanguage_currentIndexChanged(int index);
  43. void on_buttonCursorType_toggled(bool value);
  44. void on_pushButtonTranslation_clicked();
  45. void on_pushButtonResetTutorialTouchscreen_clicked();
  46. void on_buttonRepositoryDefault_toggled(bool value);
  47. void on_buttonRepositoryExtra_toggled(bool value);
  48. void on_lineEditRepositoryExtra_textEdited(const QString &arg1);
  49. void on_spinBoxInterfaceScaling_valueChanged(int arg1);
  50. void on_refreshRepositoriesButton_clicked();
  51. void on_spinBoxFramerateLimit_valueChanged(int arg1);
  52. void on_buttonVSync_toggled(bool value);
  53. void on_comboBoxEnemyPlayerAI_currentTextChanged(const QString &arg1);
  54. void on_comboBoxAlliedPlayerAI_currentTextChanged(const QString &arg1);
  55. void on_buttonAutoSavePrefix_toggled(bool value);
  56. void on_spinBoxAutoSaveLimit_valueChanged(int arg1);
  57. void on_lineEditAutoSavePrefix_textEdited(const QString &arg1);
  58. void on_sliderReservedArea_valueChanged(int arg1);
  59. void on_comboBoxRendererType_currentTextChanged(const QString &arg1);
  60. void on_buttonIgnoreSslErrors_clicked(bool checked);
  61. void on_comboBoxUpscalingFilter_currentIndexChanged(int index);
  62. void on_comboBoxDownscalingFilter_currentIndexChanged(int index);
  63. void on_sliderMusicVolume_valueChanged(int value);
  64. void on_sliderSoundVolume_valueChanged(int value);
  65. void on_buttonRelativeCursorMode_toggled(bool value);
  66. void on_sliderRelativeCursorSpeed_valueChanged(int value);
  67. void on_buttonHapticFeedback_toggled(bool value);
  68. void on_sliderLongTouchDuration_valueChanged(int value);
  69. void on_slideToleranceDistanceMouse_valueChanged(int value);
  70. void on_sliderToleranceDistanceTouch_valueChanged(int value);
  71. void on_sliderToleranceDistanceController_valueChanged(int value);
  72. void on_lineEditGameLobbyHost_textChanged(const QString &arg1);
  73. void on_spinBoxNetworkPortLobby_valueChanged(int arg1);
  74. void on_sliderControllerSticksAcceleration_valueChanged(int value);
  75. void on_sliderControllerSticksSensitivity_valueChanged(int value);
  76. private:
  77. Ui::CSettingsView * ui;
  78. void fillValidRenderers();
  79. void fillValidResolutionsForScreen(int screenIndex);
  80. void fillValidScalingRange();
  81. QSize getPreferredRenderingResolution();
  82. };