// Copyright 2014 Dolphin Emulator Project // Licensed under GPLv2 // Refer to the license.txt file included. #include #include #include "ui_MainWindow.h" #include "Common/StdMakeUnique.h" #include "DolphinQt/AboutDialog.h" #include "DolphinQt/MainWindow.h" #include "DolphinQt/SystemInfo.h" #include "DolphinQt/Utils/Resources.h" #include "DolphinQt/Utils/Utils.h" DMainWindow::DMainWindow(QWidget* parent_widget) : QMainWindow(parent_widget) { m_ui = std::make_unique(); m_ui->setupUi(this); Resources::Init(); m_ui->actOpen->setIcon(Resources::GetIcon(Resources::TOOLBAR_OPEN)); #ifdef Q_OS_MACX m_ui->toolbar->setMovable(false); #endif } DMainWindow::~DMainWindow() { } void DMainWindow::on_actWebsite_triggered() { QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/"))); } void DMainWindow::on_actOnlineDocs_triggered() { QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/docs/guides/"))); } void DMainWindow::on_actGitHub_triggered() { QDesktopServices::openUrl(QUrl(SL("https://github.com/dolphin-emu/dolphin/"))); } void DMainWindow::on_actSystemInfo_triggered() { DSystemInfo* dlg = new DSystemInfo(this); dlg->open(); } void DMainWindow::on_actAbout_triggered() { DAboutDialog* dlg = new DAboutDialog(this); dlg->open(); }