mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:10:06 +00:00
Add icons and URL shortcuts to help menu
This commit is contained in:
parent
334ca03a88
commit
aaeea156f3
7 changed files with 65 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include <scwx/common/vcp.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QSplitter>
|
||||
|
|
@ -350,6 +351,23 @@ void MainWindow::on_actionImGuiDebug_triggered()
|
|||
p->imGuiDebugDialog_->show();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionUserManual_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl {"https://supercell-wx.readthedocs.io/"});
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDiscord_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl {"https://discord.gg/snH4tNav7g"});
|
||||
}
|
||||
|
||||
void MainWindow::on_actionGitHubRepository_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl {"https://github.com/dpaulat/supercell-wx"});
|
||||
}
|
||||
|
||||
void MainWindow::on_actionAboutSupercellWx_triggered() {}
|
||||
|
||||
void MainWindow::on_radarSiteSelectButton_clicked()
|
||||
{
|
||||
p->radarSiteDialog_->show();
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@ private slots:
|
|||
void on_actionSettings_triggered();
|
||||
void on_actionExit_triggered();
|
||||
void on_actionImGuiDebug_triggered();
|
||||
void on_actionUserManual_triggered();
|
||||
void on_actionDiscord_triggered();
|
||||
void on_actionGitHubRepository_triggered();
|
||||
void on_actionAboutSupercellWx_triggered();
|
||||
void on_radarSiteSelectButton_clicked();
|
||||
void on_resourceTreeCollapseAllButton_clicked();
|
||||
void on_resourceTreeExpandAllButton_clicked();
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@
|
|||
<property name="windowTitle">
|
||||
<string>Supercell Wx</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../../../../scwx-qt.qrc">
|
||||
<normaloff>:/res/icons/scwx-256.ico</normaloff>:/res/icons/scwx-256.ico</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QHBoxLayout">
|
||||
<property name="leftMargin">
|
||||
|
|
@ -59,6 +63,11 @@
|
|||
<property name="title">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
<addaction name="actionUserManual"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionDiscord"/>
|
||||
<addaction name="actionGitHubRepository"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionAboutSupercellWx"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuView">
|
||||
|
|
@ -361,6 +370,33 @@
|
|||
<string>&Settings</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionUserManual">
|
||||
<property name="icon">
|
||||
<iconset resource="../../../../scwx-qt.qrc">
|
||||
<normaloff>:/res/icons/font-awesome-6/book-solid.svg</normaloff>:/res/icons/font-awesome-6/book-solid.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&User Manual</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDiscord">
|
||||
<property name="icon">
|
||||
<iconset resource="../../../../scwx-qt.qrc">
|
||||
<normaloff>:/res/icons/font-awesome-6/discord.svg</normaloff>:/res/icons/font-awesome-6/discord.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Discord</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionGitHubRepository">
|
||||
<property name="icon">
|
||||
<iconset resource="../../../../scwx-qt.qrc">
|
||||
<normaloff>:/res/icons/font-awesome-6/github.svg</normaloff>:/res/icons/font-awesome-6/github.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&GitHub Repository</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../../../../scwx-qt.qrc"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue