| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- /*
- * firstlaunch_moc.h, part of VCMI engine
- *
- * Authors: listed in file AUTHORS in main folder
- *
- * License: GNU General Public License v2.0 or later
- * Full text of license available in license.txt file, in main folder
- *
- */
- #pragma once
- #include "../StdInc.h"
- namespace Ui
- {
- class FirstLaunchView;
- }
- class CModListView;
- class FirstLaunchView : public QWidget
- {
- Q_OBJECT
- void changeEvent(QEvent *event);
- CModListView * getModView();
- void setSetupProgress(int progress);
- void enterSetup();
- void activateTabLanguage();
- void activateTabHeroesData();
- void activateTabModPreset();
- void exitSetup();
-
- // Tab Language
- void languageSelected(const QString & languageCode);
- // Tab Heroes III Data
- bool heroesDataUpdate();
- bool heroesDataDetect();
- void heroesDataMissing();
- void heroesDataDetected();
- void heroesLanguageUpdate();
- void forceHeroesLanguage(const QString & language);
- QString getHeroesInstallDir();
- void extractGogData();
- void copyHeroesData(const QString & path = {}, bool move = false);
- // Tab Mod Preset
- void modPresetUpdate();
- QString findTranslationModName();
- bool checkCanInstallTranslation();
- bool checkCanInstallWog();
- bool checkCanInstallHota();
- bool checkCanInstallExtras();
- bool checkCanInstallMod(const QString & modID);
- void installMod(const QString & modID);
- public:
- explicit FirstLaunchView(QWidget * parent = nullptr);
- public slots:
- private slots:
- void on_buttonTabLanguage_clicked();
- void on_buttonTabHeroesData_clicked();
- void on_buttonTabModPreset_clicked();
- void on_listWidgetLanguage_currentRowChanged(int currentRow);
- void on_pushButtonLanguageNext_clicked();
- void on_pushButtonDataNext_clicked();
- void on_pushButtonDataBack_clicked();
- void on_pushButtonDataSearch_clicked();
- void on_pushButtonDataCopy_clicked();
- void on_pushButtonGogInstall_clicked();
- void on_comboBoxLanguage_currentIndexChanged(int index);
- void on_pushButtonPresetBack_clicked();
- void on_pushButtonPresetNext_clicked();
- void on_pushButtonDiscord_clicked();
- void on_pushButtonSlack_clicked();
- void on_pushButtonGithub_clicked();
- private:
- Ui::FirstLaunchView * ui;
- };
|