2014-09-14 15:03:07 -04:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include <QDesktopServices>
|
|
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
#include "ui_MainWindow.h"
|
2014-10-18 11:07:17 -04:00
|
|
|
|
2014-09-14 17:44:07 -07:00
|
|
|
#include "Common/StdMakeUnique.h"
|
2014-09-14 15:03:07 -04:00
|
|
|
|
2014-10-18 11:07:17 -04:00
|
|
|
#include "DolphinQt/AboutDialog.h"
|
|
|
|
#include "DolphinQt/MainWindow.h"
|
|
|
|
#include "DolphinQt/Utils/Resources.h"
|
|
|
|
#include "DolphinQt/Utils/Utils.h"
|
|
|
|
|
|
|
|
DMainWindow::DMainWindow(QWidget* parent_widget)
|
|
|
|
: QMainWindow(parent_widget)
|
2014-09-14 15:03:07 -04:00
|
|
|
{
|
2014-09-14 17:44:07 -07:00
|
|
|
ui = std::make_unique<Ui::DMainWindow>();
|
2014-09-14 15:03:07 -04:00
|
|
|
ui->setupUi(this);
|
2014-10-18 11:07:17 -04:00
|
|
|
|
|
|
|
Resources::Init();
|
|
|
|
ui->actOpen->setIcon(Resources::GetIcon(Resources::TOOLBAR_OPEN));
|
2014-09-14 15:03:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
DMainWindow::~DMainWindow()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void DMainWindow::on_actWebsite_triggered()
|
|
|
|
{
|
2014-10-18 11:07:17 -04:00
|
|
|
QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/")));
|
2014-09-14 15:03:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void DMainWindow::on_actOnlineDocs_triggered()
|
|
|
|
{
|
2014-10-18 11:07:17 -04:00
|
|
|
QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/docs/guides/")));
|
2014-09-14 15:03:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void DMainWindow::on_actGitHub_triggered()
|
|
|
|
{
|
2014-10-18 11:07:17 -04:00
|
|
|
QDesktopServices::openUrl(QUrl(SL("https://github.com/dolphin-emu/dolphin/")));
|
2014-09-14 15:03:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void DMainWindow::on_actAbout_triggered()
|
|
|
|
{
|
|
|
|
DAboutDialog dlg;
|
|
|
|
dlg.exec();
|
|
|
|
}
|