2017-07-13 10:26:03 +02:00
|
|
|
/*
|
|
|
|
* mainwindow_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
|
|
|
|
*
|
|
|
|
*/
|
2013-08-22 17:22:49 +03:00
|
|
|
#pragma once
|
|
|
|
#include <QMainWindow>
|
2016-08-30 20:54:37 +02:00
|
|
|
#include <QStringList>
|
2013-08-22 17:22:49 +03:00
|
|
|
|
2018-04-13 07:34:58 +02:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class MainWindow;
|
2019-07-30 08:32:35 +02:00
|
|
|
const QString teamName = "VCMI Team";
|
|
|
|
const QString appName = "VCMI Launcher";
|
2013-08-22 17:22:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
class QTableWidgetItem;
|
2022-11-17 01:15:26 +02:00
|
|
|
class CModList;
|
|
|
|
|
2013-08-22 17:22:49 +03:00
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2018-04-13 07:34:58 +02:00
|
|
|
|
2022-12-25 13:19:16 +02:00
|
|
|
QTranslator translator;
|
2017-01-17 13:17:37 +02:00
|
|
|
private:
|
2018-04-13 07:34:58 +02:00
|
|
|
Ui::MainWindow * ui;
|
2013-08-22 17:22:49 +03:00
|
|
|
void load();
|
2022-11-27 03:35:05 +02:00
|
|
|
|
|
|
|
enum TabRows
|
|
|
|
{
|
|
|
|
MODS = 0, SETTINGS = 1, LOBBY = 2
|
|
|
|
};
|
2018-04-13 07:34:58 +02:00
|
|
|
|
2022-12-25 13:19:16 +02:00
|
|
|
void changeEvent(QEvent *event) override;
|
2013-08-22 17:22:49 +03:00
|
|
|
public:
|
2017-08-24 03:52:02 +02:00
|
|
|
explicit MainWindow(QWidget * parent = 0);
|
2013-08-22 17:22:49 +03:00
|
|
|
~MainWindow();
|
2022-11-17 01:15:26 +02:00
|
|
|
|
|
|
|
const CModList & getModList() const;
|
|
|
|
|
2022-12-25 13:19:16 +02:00
|
|
|
void updateTranslation();
|
2022-11-07 11:44:58 +02:00
|
|
|
|
2022-10-26 23:39:57 +02:00
|
|
|
public slots:
|
2016-10-02 00:27:45 +02:00
|
|
|
void on_startGameButton_clicked();
|
2022-11-27 03:35:05 +02:00
|
|
|
|
|
|
|
private slots:
|
2022-12-19 19:12:44 +02:00
|
|
|
void on_modslistButton_clicked();
|
|
|
|
void on_settingsButton_clicked();
|
|
|
|
void on_lobbyButton_clicked();
|
2013-08-22 17:22:49 +03:00
|
|
|
};
|