1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/launcher/firstLaunch/firstlaunch_moc.h
Ivan Savenko b58b96cd31 Improvements to first install / welcome screen in Launcher
- Removed H3 data language selector in favor of autodetection (and to
get more space on mobile systems)
- Replaced hard to click checkboxes in mod install screen with buttons
- Inaccessible system data directory is now hidden on mobile devices to
save space and to avoid displaying data useless to player
- Reworded texts in h3 data import screen to be more clear to players
- moved manual data installation to bottom
2024-06-08 12:02:36 +00:00

97 lines
2.0 KiB
C++

/*
* 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 heroesDataDetect();
void heroesDataMissing();
void heroesDataDetected();
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);
// Tab Heroes III Data
bool heroesDataUpdate();
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_pushButtonPresetBack_clicked();
void on_pushButtonPresetNext_clicked();
void on_pushButtonDiscord_clicked();
void on_pushButtonSlack_clicked();
void on_pushButtonGithub_clicked();
private:
Ui::FirstLaunchView * ui;
};