csettingsview_moc.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. #include "../StdInc.h"
  12. namespace Ui
  13. {
  14. class CSettingsView;
  15. }
  16. class CSettingsView : public QWidget
  17. {
  18. Q_OBJECT
  19. public:
  20. explicit CSettingsView(QWidget * parent = 0);
  21. ~CSettingsView();
  22. void loadSettings();
  23. void loadTranslation();
  24. void setDisplayList();
  25. void changeEvent(QEvent *event) override;
  26. void showEvent(QShowEvent * event) override;
  27. public slots:
  28. void fillValidResolutions();
  29. private slots:
  30. void on_comboBoxResolution_currentTextChanged(const QString & arg1);
  31. void on_comboBoxFullScreen_currentIndexChanged(int index);
  32. void on_comboBoxPlayerAI_currentTextChanged(const QString & arg1);
  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_openTempDir_clicked();
  38. void on_openUserDataDir_clicked();
  39. void on_openGameDataDir_clicked();
  40. void on_comboBoxShowIntro_currentIndexChanged(int index);
  41. void on_comboBoxAutoCheck_currentIndexChanged(int index);
  42. void on_comboBoxDisplayIndex_currentIndexChanged(int index);
  43. void on_comboBoxAutoSave_currentIndexChanged(int index);
  44. void on_updatesButton_clicked();
  45. void on_comboBoxLanguage_currentIndexChanged(int index);
  46. void on_comboBoxCursorType_currentIndexChanged(int index);
  47. void on_listWidgetSettings_currentRowChanged(int currentRow);
  48. void on_pushButtonTranslation_clicked();
  49. void on_comboBoxLanguageBase_currentIndexChanged(int index);
  50. void on_checkBoxRepositoryDefault_stateChanged(int arg1);
  51. void on_checkBoxRepositoryExtra_stateChanged(int arg1);
  52. void on_lineEditRepositoryExtra_textEdited(const QString &arg1);
  53. void on_spinBoxInterfaceScaling_valueChanged(int arg1);
  54. private:
  55. Ui::CSettingsView * ui;
  56. void fillValidResolutionsForScreen(int screenIndex);
  57. void fillValidScalingRange();
  58. QSize getPreferredRenderingResolution();
  59. };