firstlaunch_moc.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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(bool goToMods);
  28. // Tab Language
  29. void languageSelected(const QString & languageCode);
  30. // Tab Heroes III Data
  31. bool heroesDataDetect();
  32. void heroesDataMissing();
  33. void heroesDataDetected();
  34. QString getHeroesInstallDir();
  35. void extractGogData();
  36. void extractGogDataAsync(QString filePathBin, QString filePathExe);
  37. void copyHeroesData(const QString & path = {}, bool move = false);
  38. // Tab Mod Preset
  39. void modPresetUpdate();
  40. QString findTranslationModName();
  41. bool checkCanInstallTranslation();
  42. bool checkCanInstallWog();
  43. bool checkCanInstallHota();
  44. bool checkCanInstallExtras();
  45. bool checkCanInstallMod(const QString & modID);
  46. public:
  47. explicit FirstLaunchView(QWidget * parent = nullptr);
  48. // Tab Heroes III Data
  49. bool heroesDataUpdate();
  50. public slots:
  51. private slots:
  52. void on_buttonTabLanguage_clicked();
  53. void on_buttonTabHeroesData_clicked();
  54. void on_buttonTabModPreset_clicked();
  55. void on_listWidgetLanguage_currentRowChanged(int currentRow);
  56. void on_pushButtonLanguageNext_clicked();
  57. void on_pushButtonDataNext_clicked();
  58. void on_pushButtonDataBack_clicked();
  59. void on_pushButtonDataSearch_clicked();
  60. void on_pushButtonDataCopy_clicked();
  61. void on_pushButtonGogInstall_clicked();
  62. void on_pushButtonPresetBack_clicked();
  63. void on_pushButtonPresetNext_clicked();
  64. void on_pushButtonDiscord_clicked();
  65. void on_pushButtonGithub_clicked();
  66. private:
  67. Ui::FirstLaunchView * ui;
  68. };