- enhancement: Add "Help"/"Submit Iusses".

- enhancement: Add "Help"/"Document" for Simplified Chinese users.
This commit is contained in:
Roy Qu 2023-01-16 15:42:03 +08:00
parent 73d527318c
commit 8603fa10ee
7 changed files with 714 additions and 711 deletions

View File

@ -3,7 +3,8 @@ Red Panda C++ Version 2.10
- fix: When restored from minimization, info on statusbar not correctly restored. - fix: When restored from minimization, info on statusbar not correctly restored.
- enhancement: Changes of "auto backup editing contents" is applied immediately. - enhancement: Changes of "auto backup editing contents" is applied immediately.
- enhancement: Don't create temp backup for readonly files. - enhancement: Don't create temp backup for readonly files.
- enhancement: Add "Help"/"Submit Iusses".
- enhancement: Add "Help"/"Document" for Simplified Chinese users.
Red Panda C++ Version 2.9 Red Panda C++ Version 2.9

View File

@ -414,6 +414,7 @@ MainWindow::MainWindow(QWidget *parent)
this, &MainWindow::updateProjectActions); this, &MainWindow::updateProjectActions);
ui->actionEGE_Manual->setVisible(pSettings->environment().language()=="zh_CN"); ui->actionEGE_Manual->setVisible(pSettings->environment().language()=="zh_CN");
ui->actionDocument->setVisible(pSettings->environment().language()=="zh_CN");
connect(ui->EditorTabsLeft, &EditorsTabWidget::middleButtonClicked, connect(ui->EditorTabsLeft, &EditorsTabWidget::middleButtonClicked,
this, &MainWindow::on_EditorTabsLeft_tabCloseRequested); this, &MainWindow::on_EditorTabsLeft_tabCloseRequested);
@ -7897,7 +7898,7 @@ void MainWindow::on_actionC_C_Reference_triggered()
QDesktopServices::openUrl(QUrl::fromLocalFile(fileInfo.absoluteFilePath())); QDesktopServices::openUrl(QUrl::fromLocalFile(fileInfo.absoluteFilePath()));
} else { } else {
QDesktopServices::openUrl(QUrl("https://qingcms.gitee.io/cppreference/20210212/zh/cpp.html")); QDesktopServices::openUrl(QUrl("https://zh.cppreference.com/w/cpp"));
} }
} else { } else {
QDesktopServices::openUrl(QUrl("https://en.cppreference.com/w/cpp")); QDesktopServices::openUrl(QUrl("https://en.cppreference.com/w/cpp"));
@ -8221,7 +8222,7 @@ void MainWindow::onProblemRunAllCases()
void MainWindow::on_actionC_Reference_triggered() void MainWindow::on_actionC_Reference_triggered()
{ {
if (pSettings->environment().language()=="zh_CN") { if (pSettings->environment().language()=="zh_CN") {
QDesktopServices::openUrl(QUrl("https://qingcms.gitee.io/cppreference/20210212/zh/c.html")); QDesktopServices::openUrl(QUrl("https://zh.cppreference.com/w/c"));
} else { } else {
QDesktopServices::openUrl(QUrl("https://en.cppreference.com/w/c")); QDesktopServices::openUrl(QUrl("https://en.cppreference.com/w/c"));
} }
@ -8757,7 +8758,7 @@ void MainWindow::on_actionGit_Restore_triggered()
void MainWindow::on_actionWebsite_triggered() void MainWindow::on_actionWebsite_triggered()
{ {
if (pSettings->environment().language()=="zh_CN") { if (pSettings->environment().language()=="zh_CN") {
QDesktopServices::openUrl(QUrl("https://royqh1979.gitee.io/redpandacpp/docsy/docs/")); QDesktopServices::openUrl(QUrl("https://royqh1979.gitee.io/redpandacpp/"));
} else { } else {
QDesktopServices::openUrl(QUrl("https://sourceforge.net/projects/redpanda-cpp/")); QDesktopServices::openUrl(QUrl("https://sourceforge.net/projects/redpanda-cpp/"));
} }
@ -9339,3 +9340,19 @@ void MainWindow::on_actionToggle_Readonly_triggered()
} }
} }
void MainWindow::on_actionSubmit_Issues_triggered()
{
if (pSettings->environment().language()=="zh_CN") {
QDesktopServices::openUrl(QUrl("https://gitee.com/royqh1979/RedPanda-CPP/issues"));
} else {
QDesktopServices::openUrl(QUrl("https://github.com/royqh1979/RedPanda-CPP/issues"));
}
}
void MainWindow::on_actionDocument_triggered()
{
QDesktopServices::openUrl(QUrl("https://royqh1979.gitee.io/redpandacpp/docsy/docs/"));
}

View File

@ -771,6 +771,10 @@ private slots:
void on_actionToggle_Readonly_triggered(); void on_actionToggle_Readonly_triggered();
void on_actionSubmit_Issues_triggered();
void on_actionDocument_triggered();
private: private:
Ui::MainWindow *ui; Ui::MainWindow *ui;
bool mFullInitialized; bool mFullInitialized;

View File

@ -267,11 +267,14 @@
<property name="title"> <property name="title">
<string>Help</string> <string>Help</string>
</property> </property>
<addaction name="actionWebsite"/> <addaction name="actionDocument"/>
<addaction name="actionC_Reference"/> <addaction name="actionC_Reference"/>
<addaction name="actionC_C_Reference"/> <addaction name="actionC_C_Reference"/>
<addaction name="actionRaylib_Manual"/> <addaction name="actionRaylib_Manual"/>
<addaction name="actionEGE_Manual"/> <addaction name="actionEGE_Manual"/>
<addaction name="separator"/>
<addaction name="actionWebsite"/>
<addaction name="actionSubmit_Issues"/>
<addaction name="actionAbout"/> <addaction name="actionAbout"/>
</widget> </widget>
<widget class="QMenu" name="menuRefactor"> <widget class="QMenu" name="menuRefactor">
@ -3131,9 +3134,6 @@
<property name="text"> <property name="text">
<string>Website</string> <string>Website</string>
</property> </property>
<property name="shortcut">
<string>F1</string>
</property>
</action> </action>
<action name="actionGit_Branch"> <action name="actionGit_Branch">
<property name="text"> <property name="text">
@ -3314,6 +3314,19 @@
<string>Toggle Readonly</string> <string>Toggle Readonly</string>
</property> </property>
</action> </action>
<action name="actionSubmit_Issues">
<property name="text">
<string>Submit Issues</string>
</property>
</action>
<action name="actionDocument">
<property name="text">
<string>Document</string>
</property>
<property name="shortcut">
<string>F1</string>
</property>
</action>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>

View File

@ -1034,30 +1034,6 @@
<source>Readonly</source> <source>Readonly</source>
<translation>Apenas leitura</translation> <translation>Apenas leitura</translation>
</message> </message>
<message>
<source>Can&apos;t generate temporary backup file &apos;%1&apos;.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Restore backup</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Backup file &apos;%1&apos; detected.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Continue to save?</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Error occurred at last save.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Do you want to load the backup file?</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Error Load File</source> <source>Error Load File</source>
<translation type="unfinished">Erro ao carregar arquivo</translation> <translation type="unfinished">Erro ao carregar arquivo</translation>
@ -4976,6 +4952,14 @@
<source>Open file in editors</source> <source>Open file in editors</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Submit Issues</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Document</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NewClassDialog</name> <name>NewClassDialog</name>

File diff suppressed because it is too large Load Diff

View File

@ -927,30 +927,6 @@
<source>Readonly</source> <source>Readonly</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Can&apos;t generate temporary backup file &apos;%1&apos;.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Restore backup</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Backup file &apos;%1&apos; detected.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Continue to save?</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Error occurred at last save.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Do you want to load the backup file?</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Error Load File</source> <source>Error Load File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -4789,6 +4765,14 @@
<source>Open file in editors</source> <source>Open file in editors</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Submit Issues</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Document</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NewClassDialog</name> <name>NewClassDialog</name>