1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/launcher/firstLaunch/firstlaunch_moc.h

106 lines
2.2 KiB
C
Raw Normal View History

/*
* 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;
}
2023-03-11 00:57:55 +02:00
class CModListView;
class FirstLaunchView : public QWidget
{
Q_OBJECT
2023-03-11 00:57:55 +02:00
// vcmibuilder script is not available on these platforms
#if defined(VCMI_WINDOWS) || defined(VCMI_MOBILE) || defined(VCMI_APPLE)
static constexpr bool hasVCMIBuilderScript = false;
#else
static constexpr bool hasVCMIBuilderScript = true;
#endif
2023-03-08 02:01:56 +02:00
void changeEvent(QEvent *event);
2023-03-11 00:57:55 +02:00
CModListView * getModView();
void setSetupProgress(int progress);
void enterSetup();
void activateTabLanguage();
void activateTabHeroesData();
void activateTabModPreset();
void exitSetup();
2023-03-11 00:57:55 +02:00
// Tab Language
void languageSelected(const QString & languageCode);
// Tab Heroes III Data
void heroesDataUpdate();
bool heroesDataDetect();
void heroesDataMissing();
void heroesDataDetected();
void heroesLanguageUpdate();
void forceHeroesLanguage(const QString & language);
void copyHeroesData();
// 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 = 0);
public slots:
private slots:
void on_buttonTabLanguage_clicked();
void on_buttonTabHeroesData_clicked();
void on_buttonTabModPreset_clicked();
2023-03-08 02:01:56 +02:00
void on_listWidgetLanguage_currentRowChanged(int currentRow);
2023-03-11 00:57:55 +02:00
void on_pushButtonLanguageNext_clicked();
void on_pushButtonDataNext_clicked();
void on_pushButtonDataBack_clicked();
void on_pushButtonDataSearch_clicked();
void on_pushButtonDataCopy_clicked();
void on_pushButtonDataHelp_clicked();
void on_comboBoxLanguage_currentIndexChanged(int index);
void on_pushButtonPresetBack_clicked();
void on_pushButtonPresetNext_clicked();
2023-03-08 02:01:56 +02:00
void on_pushButtonDiscord_clicked();
void on_pushButtonSlack_clicked();
void on_pushButtonGithub_clicked();
private:
Ui::FirstLaunchView * ui;
};