csettingsview_moc.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. public slots:
  27. void fillValidResolutions();
  28. private slots:
  29. void on_comboBoxResolution_currentTextChanged(const QString & arg1);
  30. void on_comboBoxFullScreen_currentIndexChanged(int index);
  31. void on_comboBoxFriendlyAI_currentTextChanged(const QString & arg1);
  32. void on_comboBoxNeutralAI_currentTextChanged(const QString & arg1);
  33. void on_comboBoxEnemyAI_currentTextChanged(const QString & arg1);
  34. void on_spinBoxNetworkPort_valueChanged(int arg1);
  35. void on_comboBoxShowIntro_currentIndexChanged(int index);
  36. void on_comboBoxAutoCheck_currentIndexChanged(int index);
  37. void on_comboBoxDisplayIndex_currentIndexChanged(int index);
  38. void on_comboBoxAutoSave_currentIndexChanged(int index);
  39. void on_comboBoxLanguage_currentIndexChanged(int index);
  40. void on_comboBoxCursorType_currentIndexChanged(int index);
  41. void on_pushButtonTranslation_clicked();
  42. void on_comboBoxLanguageBase_currentIndexChanged(int index);
  43. void on_checkBoxRepositoryDefault_stateChanged(int arg1);
  44. void on_checkBoxRepositoryExtra_stateChanged(int arg1);
  45. void on_lineEditRepositoryExtra_textEdited(const QString &arg1);
  46. void on_spinBoxInterfaceScaling_valueChanged(int arg1);
  47. void on_refreshRepositoriesButton_clicked();
  48. void on_spinBoxFramerateLimit_valueChanged(int arg1);
  49. void on_checkBoxVSync_stateChanged(int arg1);
  50. void on_comboBoxEnemyPlayerAI_currentTextChanged(const QString &arg1);
  51. void on_comboBoxAlliedPlayerAI_currentTextChanged(const QString &arg1);
  52. void on_checkBoxAutoSavePrefix_stateChanged(int arg1);
  53. void on_spinBoxAutoSaveLimit_valueChanged(int arg1);
  54. void on_lineEditAutoSavePrefix_textEdited(const QString &arg1);
  55. void on_spinBoxReservedArea_valueChanged(int arg1);
  56. void on_comboBoxRendererType_currentTextChanged(const QString &arg1);
  57. void on_checkBoxIgnoreSslErrors_clicked(bool checked);
  58. private:
  59. Ui::CSettingsView * ui;
  60. void fillValidRenderers();
  61. void fillValidResolutionsForScreen(int screenIndex);
  62. void fillValidScalingRange();
  63. QSize getPreferredRenderingResolution();
  64. };