2020-12-05 13:08:24 +01:00
|
|
|
#include "about_dialog.h"
|
2017-06-30 22:03:43 +02:00
|
|
|
#include "ui_about_dialog.h"
|
|
|
|
|
|
|
|
|
|
#include "rpcs3_version.h"
|
2023-06-01 01:06:30 +02:00
|
|
|
#include "qt_utils.h"
|
2017-06-30 22:03:43 +02:00
|
|
|
|
|
|
|
|
#include <QDesktopServices>
|
|
|
|
|
#include <QUrl>
|
2021-10-27 23:43:32 +02:00
|
|
|
#include <QSvgWidget>
|
2017-06-30 22:03:43 +02:00
|
|
|
|
|
|
|
|
about_dialog::about_dialog(QWidget* parent) : QDialog(parent), ui(new Ui::about_dialog)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
2024-11-24 08:23:32 +01:00
|
|
|
setAttribute(Qt::WA_DeleteOnClose);
|
2017-06-30 22:03:43 +02:00
|
|
|
|
|
|
|
|
ui->close->setDefault(true);
|
2021-10-27 23:43:32 +02:00
|
|
|
ui->icon->load(QStringLiteral(":/rpcs3.svg"));
|
2022-04-14 22:32:45 +02:00
|
|
|
ui->version->setText(tr("RPCS3 Version: %1").arg(QString::fromStdString(rpcs3::get_verbose_version())));
|
2025-03-12 12:43:47 +01:00
|
|
|
ui->description->setText(gui::utils::make_paragraph(tr(
|
|
|
|
|
"RPCS3 is an open-source Sony PlayStation 3 emulator and debugger.\n"
|
2025-03-20 03:42:15 +01:00
|
|
|
"It is written in C++ for Windows, Linux, FreeBSD and MacOS, funded with %0.\n"
|
2025-03-12 12:43:47 +01:00
|
|
|
"Our developers and contributors are always working hard to ensure this project is the best that it can be.\n"
|
|
|
|
|
"There are still plenty of implementations to make and optimizations to do.")
|
2025-04-05 21:50:45 +02:00
|
|
|
.arg(gui::utils::make_link(tr("Patreon"), "https://rpcs3.net/patreon"))));
|
2017-06-30 22:03:43 +02:00
|
|
|
|
|
|
|
|
// Events
|
2025-04-05 21:50:45 +02:00
|
|
|
connect(ui->gitHub, &QPushButton::clicked, []
|
|
|
|
|
{
|
|
|
|
|
QDesktopServices::openUrl(QUrl("https://www.github.com/RPCS3"));
|
|
|
|
|
});
|
|
|
|
|
connect(ui->website, &QPushButton::clicked, []
|
|
|
|
|
{
|
|
|
|
|
QDesktopServices::openUrl(QUrl("https://rpcs3.net"));
|
|
|
|
|
});
|
|
|
|
|
connect(ui->forum, &QPushButton::clicked, []
|
|
|
|
|
{
|
|
|
|
|
QDesktopServices::openUrl(QUrl("https://forums.rpcs3.net"));
|
|
|
|
|
});
|
|
|
|
|
connect(ui->patreon, &QPushButton::clicked, []
|
|
|
|
|
{
|
|
|
|
|
QDesktopServices::openUrl(QUrl("https://rpcs3.net/patreon"));
|
|
|
|
|
});
|
|
|
|
|
connect(ui->discord, &QPushButton::clicked, []
|
|
|
|
|
{
|
|
|
|
|
QDesktopServices::openUrl(QUrl("https://discord.me/RPCS3"));
|
|
|
|
|
});
|
|
|
|
|
connect(ui->wiki, &QPushButton::clicked, []
|
|
|
|
|
{
|
|
|
|
|
QDesktopServices::openUrl(QUrl("https://wiki.rpcs3.net/index.php?title=Main_Page"));
|
|
|
|
|
});
|
2019-05-04 22:56:55 +02:00
|
|
|
connect(ui->close, &QPushButton::clicked, this, &QWidget::close);
|
2017-06-30 22:03:43 +02:00
|
|
|
}
|
2017-09-03 19:01:54 +02:00
|
|
|
|
|
|
|
|
about_dialog::~about_dialog()
|
|
|
|
|
{
|
|
|
|
|
}
|