csettingsview_moc.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 setDisplayList();
  24. bool isExtraResolutionsModEnabled{};
  25. public slots:
  26. void fillValidResolutions(bool isExtraResolutionsModEnabled);
  27. private slots:
  28. void on_checkBoxFullScreen_stateChanged(int state);
  29. void on_comboBoxResolution_currentTextChanged(const QString & arg1);
  30. void on_comboBoxFullScreen_currentIndexChanged(int index);
  31. void on_comboBoxPlayerAI_currentIndexChanged(const QString & arg1);
  32. void on_comboBoxFriendlyAI_currentIndexChanged(const QString & arg1);
  33. void on_comboBoxNeutralAI_currentIndexChanged(const QString & arg1);
  34. void on_comboBoxEnemyAI_currentIndexChanged(const QString & arg1);
  35. void on_spinBoxNetworkPort_valueChanged(int arg1);
  36. void on_plainTextEditRepos_textChanged();
  37. void on_comboBoxEncoding_currentIndexChanged(int index);
  38. void on_openTempDir_clicked();
  39. void on_openUserDataDir_clicked();
  40. void on_openGameDataDir_clicked();
  41. void on_comboBoxShowIntro_currentIndexChanged(int index);
  42. void on_changeGameDataDir_clicked();
  43. void on_comboBoxAutoCheck_currentIndexChanged(int index);
  44. void on_comboBoxDisplayIndex_currentIndexChanged(int index);
  45. void on_comboBoxAutoSave_currentIndexChanged(int index);
  46. void on_updatesButton_clicked();
  47. private:
  48. Ui::CSettingsView * ui;
  49. void fillValidResolutionsForScreen(int screenIndex);
  50. };