2023-06-30 14:24:43 +02:00
|
|
|
/*
|
|
|
|
* aboutproject_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 AboutProjectView;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CModListView;
|
|
|
|
|
|
|
|
class AboutProjectView : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2023-07-17 15:27:21 +02:00
|
|
|
void changeEvent(QEvent *event) override;
|
2024-06-06 16:35:20 +02:00
|
|
|
|
|
|
|
/// Hides a widget and expands second widgets to take place of first widget in layout
|
|
|
|
void hideAndStretchWidget(QGridLayout * layout, QWidget * toHide, QWidget * toStretch);
|
2024-06-13 02:53:43 +02:00
|
|
|
|
2023-06-30 14:24:43 +02:00
|
|
|
public:
|
2023-10-27 17:10:54 +02:00
|
|
|
explicit AboutProjectView(QWidget * parent = nullptr);
|
2023-06-30 14:24:43 +02:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_updatesButton_clicked();
|
|
|
|
|
|
|
|
void on_openGameDataDir_clicked();
|
|
|
|
|
|
|
|
void on_openUserDataDir_clicked();
|
|
|
|
|
|
|
|
void on_openTempDir_clicked();
|
|
|
|
|
|
|
|
void on_pushButtonDiscord_clicked();
|
|
|
|
|
|
|
|
void on_pushButtonGithub_clicked();
|
|
|
|
|
2023-07-03 13:30:13 +02:00
|
|
|
void on_pushButtonHomepage_clicked();
|
|
|
|
|
|
|
|
void on_pushButtonBugreport_clicked();
|
|
|
|
|
2024-06-06 16:35:20 +02:00
|
|
|
void on_openConfigDir_clicked();
|
|
|
|
|
2023-06-30 14:24:43 +02:00
|
|
|
private:
|
|
|
|
Ui::AboutProjectView * ui;
|
|
|
|
};
|