- enhancement: Add "Help"/"Submit Iusses".
- enhancement: Add "Help"/"Document" for Simplified Chinese users.
This commit is contained in:
parent
73d527318c
commit
8603fa10ee
3
NEWS.md
3
NEWS.md
|
@ -3,7 +3,8 @@ Red Panda C++ Version 2.10
|
|||
- fix: When restored from minimization, info on statusbar not correctly restored.
|
||||
- enhancement: Changes of "auto backup editing contents" is applied immediately.
|
||||
- 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
|
||||
|
||||
|
|
|
@ -414,6 +414,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
this, &MainWindow::updateProjectActions);
|
||||
|
||||
ui->actionEGE_Manual->setVisible(pSettings->environment().language()=="zh_CN");
|
||||
ui->actionDocument->setVisible(pSettings->environment().language()=="zh_CN");
|
||||
|
||||
connect(ui->EditorTabsLeft, &EditorsTabWidget::middleButtonClicked,
|
||||
this, &MainWindow::on_EditorTabsLeft_tabCloseRequested);
|
||||
|
@ -7897,7 +7898,7 @@ void MainWindow::on_actionC_C_Reference_triggered()
|
|||
QDesktopServices::openUrl(QUrl::fromLocalFile(fileInfo.absoluteFilePath()));
|
||||
} else {
|
||||
|
||||
QDesktopServices::openUrl(QUrl("https://qingcms.gitee.io/cppreference/20210212/zh/cpp.html"));
|
||||
QDesktopServices::openUrl(QUrl("https://zh.cppreference.com/w/cpp"));
|
||||
}
|
||||
} else {
|
||||
QDesktopServices::openUrl(QUrl("https://en.cppreference.com/w/cpp"));
|
||||
|
@ -8221,7 +8222,7 @@ void MainWindow::onProblemRunAllCases()
|
|||
void MainWindow::on_actionC_Reference_triggered()
|
||||
{
|
||||
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 {
|
||||
QDesktopServices::openUrl(QUrl("https://en.cppreference.com/w/c"));
|
||||
}
|
||||
|
@ -8757,7 +8758,7 @@ void MainWindow::on_actionGit_Restore_triggered()
|
|||
void MainWindow::on_actionWebsite_triggered()
|
||||
{
|
||||
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 {
|
||||
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/"));
|
||||
}
|
||||
|
||||
|
|
|
@ -771,6 +771,10 @@ private slots:
|
|||
|
||||
void on_actionToggle_Readonly_triggered();
|
||||
|
||||
void on_actionSubmit_Issues_triggered();
|
||||
|
||||
void on_actionDocument_triggered();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
bool mFullInitialized;
|
||||
|
|
|
@ -267,11 +267,14 @@
|
|||
<property name="title">
|
||||
<string>Help</string>
|
||||
</property>
|
||||
<addaction name="actionWebsite"/>
|
||||
<addaction name="actionDocument"/>
|
||||
<addaction name="actionC_Reference"/>
|
||||
<addaction name="actionC_C_Reference"/>
|
||||
<addaction name="actionRaylib_Manual"/>
|
||||
<addaction name="actionEGE_Manual"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionWebsite"/>
|
||||
<addaction name="actionSubmit_Issues"/>
|
||||
<addaction name="actionAbout"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuRefactor">
|
||||
|
@ -3131,9 +3134,6 @@
|
|||
<property name="text">
|
||||
<string>Website</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F1</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionGit_Branch">
|
||||
<property name="text">
|
||||
|
@ -3314,6 +3314,19 @@
|
|||
<string>Toggle Readonly</string>
|
||||
</property>
|
||||
</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>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
|
|
@ -1034,30 +1034,6 @@
|
|||
<source>Readonly</source>
|
||||
<translation>Apenas leitura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Can't generate temporary backup file '%1'.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Restore backup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Backup file '%1' 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>
|
||||
<source>Error Load File</source>
|
||||
<translation type="unfinished">Erro ao carregar arquivo</translation>
|
||||
|
@ -4976,6 +4952,14 @@
|
|||
<source>Open file in editors</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Submit Issues</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Document</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>NewClassDialog</name>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -927,30 +927,6 @@
|
|||
<source>Readonly</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Can't generate temporary backup file '%1'.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Restore backup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Backup file '%1' 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>
|
||||
<source>Error Load File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@ -4789,6 +4765,14 @@
|
|||
<source>Open file in editors</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Submit Issues</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Document</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>NewClassDialog</name>
|
||||
|
|
Loading…
Reference in New Issue