csettingsview_moc.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 loadTranslation();
  23. void setDisplayList();
  24. void changeEvent(QEvent *event) override;
  25. void showEvent(QShowEvent * event) override;
  26. void setCheckbuttonState(QToolButton * button, bool checked);
  27. void updateCheckbuttonText(QToolButton * button);
  28. public slots:
  29. void fillValidResolutions();
  30. private slots:
  31. void on_comboBoxResolution_currentTextChanged(const QString & arg1);
  32. void on_comboBoxFullScreen_currentIndexChanged(int index);
  33. void on_comboBoxFriendlyAI_currentTextChanged(const QString & arg1);
  34. void on_comboBoxNeutralAI_currentTextChanged(const QString & arg1);
  35. void on_comboBoxEnemyAI_currentTextChanged(const QString & arg1);
  36. void on_spinBoxNetworkPort_valueChanged(int arg1);
  37. void on_comboBoxShowIntro_currentIndexChanged(int index);
  38. void on_comboBoxAutoCheck_currentIndexChanged(int index);
  39. void on_comboBoxDisplayIndex_currentIndexChanged(int index);
  40. void on_comboBoxAutoSave_currentIndexChanged(int index);
  41. void on_comboBoxLanguage_currentIndexChanged(int index);
  42. void on_comboBoxCursorType_currentIndexChanged(int index);
  43. void on_pushButtonTranslation_clicked();
  44. void on_buttonRepositoryDefault_stateChanged(int arg1);
  45. void on_buttonRepositoryExtra_stateChanged(int arg1);
  46. void on_lineEditRepositoryExtra_textEdited(const QString &arg1);
  47. void on_spinBoxInterfaceScaling_valueChanged(int arg1);
  48. void on_refreshRepositoriesButton_clicked();
  49. void on_spinBoxFramerateLimit_valueChanged(int arg1);
  50. void on_buttonVSync_stateChanged(int arg1);
  51. void on_comboBoxEnemyPlayerAI_currentTextChanged(const QString &arg1);
  52. void on_comboBoxAlliedPlayerAI_currentTextChanged(const QString &arg1);
  53. void on_buttonAutoSavePrefix_stateChanged(int arg1);
  54. void on_spinBoxAutoSaveLimit_valueChanged(int arg1);
  55. void on_lineEditAutoSavePrefix_textEdited(const QString &arg1);
  56. void on_spinBoxReservedArea_valueChanged(int arg1);
  57. void on_comboBoxRendererType_currentTextChanged(const QString &arg1);
  58. void on_buttonIgnoreSslErrors_clicked(bool checked);
  59. void on_comboBoxUpscalingFilter_currentIndexChanged(int index);
  60. void on_sliderMusicVolume_valueChanged(int value);
  61. void on_sliderSoundVolume_valueChanged(int value);
  62. void on_comboBoxRelativeCursorMode_currentIndexChanged(int index);
  63. void on_sliderRelativeCursorSpeed_valueChanged(int value);
  64. void on_comboBoxHapticFeedback_currentIndexChanged(int index);
  65. void on_sliderLongTouchDuration_valueChanged(int value);
  66. void on_slideToleranceDistanceMouse_valueChanged(int value);
  67. void on_sliderToleranceDistanceTouch_valueChanged(int value);
  68. void on_sliderToleranceDistanceController_valueChanged(int value);
  69. void on_lineEditGameLobbyHost_textChanged(const QString &arg1);
  70. void on_spinBoxNetworkPortLobby_valueChanged(int arg1);
  71. void on_sliderControllerSticksAcceleration_valueChanged(int value);
  72. void on_sliderControllerSticksSensitivity_valueChanged(int value);
  73. private:
  74. Ui::CSettingsView * ui;
  75. void fillValidRenderers();
  76. void fillValidResolutionsForScreen(int screenIndex);
  77. void fillValidScalingRange();
  78. QSize getPreferredRenderingResolution();
  79. };