firstlaunch_moc.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. * firstlaunch_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 FirstLaunchView;
  15. }
  16. class CModListView;
  17. class FirstLaunchView : public QWidget
  18. {
  19. Q_OBJECT
  20. void changeEvent(QEvent *event);
  21. CModListView * getModView();
  22. void setSetupProgress(int progress);
  23. void enterSetup();
  24. void activateTabLanguage();
  25. void activateTabHeroesData();
  26. void activateTabModPreset();
  27. void exitSetup();
  28. // Tab Language
  29. void languageSelected(const QString & languageCode);
  30. // Tab Heroes III Data
  31. bool heroesDataUpdate();
  32. bool heroesDataDetect();
  33. void heroesDataMissing();
  34. void heroesDataDetected();
  35. void heroesLanguageUpdate();
  36. void forceHeroesLanguage(const QString & language);
  37. QString getHeroesInstallDir();
  38. void extractGogData();
  39. void copyHeroesData(const QString & path = {}, bool move = false);
  40. // Tab Mod Preset
  41. void modPresetUpdate();
  42. QString findTranslationModName();
  43. bool checkCanInstallTranslation();
  44. bool checkCanInstallWog();
  45. bool checkCanInstallHota();
  46. bool checkCanInstallExtras();
  47. bool checkCanInstallMod(const QString & modID);
  48. void installMod(const QString & modID);
  49. public:
  50. explicit FirstLaunchView(QWidget * parent = nullptr);
  51. public slots:
  52. private slots:
  53. void on_buttonTabLanguage_clicked();
  54. void on_buttonTabHeroesData_clicked();
  55. void on_buttonTabModPreset_clicked();
  56. void on_listWidgetLanguage_currentRowChanged(int currentRow);
  57. void on_pushButtonLanguageNext_clicked();
  58. void on_pushButtonDataNext_clicked();
  59. void on_pushButtonDataBack_clicked();
  60. void on_pushButtonDataSearch_clicked();
  61. void on_pushButtonDataCopy_clicked();
  62. void on_pushButtonGogInstall_clicked();
  63. void on_comboBoxLanguage_currentIndexChanged(int index);
  64. void on_pushButtonPresetBack_clicked();
  65. void on_pushButtonPresetNext_clicked();
  66. void on_pushButtonDiscord_clicked();
  67. void on_pushButtonSlack_clicked();
  68. void on_pushButtonGithub_clicked();
  69. private:
  70. Ui::FirstLaunchView * ui;
  71. };