firstlaunch_moc.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 heroesDataDetect();
  32. void heroesDataMissing();
  33. void heroesDataDetected();
  34. QString getHeroesInstallDir();
  35. void extractGogData();
  36. void copyHeroesData(const QString & path = {}, bool move = false);
  37. // Tab Mod Preset
  38. void modPresetUpdate();
  39. QString findTranslationModName();
  40. bool checkCanInstallTranslation();
  41. bool checkCanInstallWog();
  42. bool checkCanInstallHota();
  43. bool checkCanInstallExtras();
  44. bool checkCanInstallMod(const QString & modID);
  45. void installMod(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. };