2014-09-14 19:03:07 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include <QDesktopServices>
|
|
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
#include "AboutDialog.h"
|
|
|
|
#include "MainWindow.h"
|
|
|
|
#include "ui_MainWindow.h"
|
2014-09-15 00:44:07 +00:00
|
|
|
#include "Common/StdMakeUnique.h"
|
2014-09-14 19:03:07 +00:00
|
|
|
|
2014-09-15 00:44:07 +00:00
|
|
|
DMainWindow::DMainWindow(QWidget* p)
|
|
|
|
: QMainWindow(p)
|
2014-09-14 19:03:07 +00:00
|
|
|
{
|
2014-09-15 00:44:07 +00:00
|
|
|
ui = std::make_unique<Ui::DMainWindow>();
|
2014-09-14 19:03:07 +00:00
|
|
|
ui->setupUi(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
DMainWindow::~DMainWindow()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void DMainWindow::on_actWebsite_triggered()
|
|
|
|
{
|
2014-09-15 00:44:07 +00:00
|
|
|
QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/")));
|
2014-09-14 19:03:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DMainWindow::on_actOnlineDocs_triggered()
|
|
|
|
{
|
2014-09-15 00:44:07 +00:00
|
|
|
QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/docs/guides/")));
|
2014-09-14 19:03:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DMainWindow::on_actGitHub_triggered()
|
|
|
|
{
|
2014-09-15 00:44:07 +00:00
|
|
|
QDesktopServices::openUrl(QUrl(QStringLiteral("https://github.com/dolphin-emu/dolphin/")));
|
2014-09-14 19:03:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DMainWindow::on_actAbout_triggered()
|
|
|
|
{
|
|
|
|
DAboutDialog dlg;
|
|
|
|
dlg.exec();
|
|
|
|
}
|