firstlaunch_moc.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. public:
  46. explicit FirstLaunchView(QWidget * parent = nullptr);
  47. // Tab Heroes III Data
  48. bool heroesDataUpdate();
  49. public slots:
  50. private slots:
  51. void on_buttonTabLanguage_clicked();
  52. void on_buttonTabHeroesData_clicked();
  53. void on_buttonTabModPreset_clicked();
  54. void on_listWidgetLanguage_currentRowChanged(int currentRow);
  55. void on_pushButtonLanguageNext_clicked();
  56. void on_pushButtonDataNext_clicked();
  57. void on_pushButtonDataBack_clicked();
  58. void on_pushButtonDataSearch_clicked();
  59. void on_pushButtonDataCopy_clicked();
  60. void on_pushButtonGogInstall_clicked();
  61. void on_pushButtonPresetBack_clicked();
  62. void on_pushButtonPresetNext_clicked();
  63. void on_pushButtonDiscord_clicked();
  64. void on_pushButtonGithub_clicked();
  65. private:
  66. Ui::FirstLaunchView * ui;
  67. };