From 62a081d83070776045fbdf1264d56e2ba5644ee2 Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Fri, 15 Oct 2021 12:17:14 +0800 Subject: [PATCH] - enhancement: add link to cppreference in the help menu --- NEWS.md | 3 + RedPandaIDE/RedPandaIDE_zh_CN.qm | Bin 94900 -> 94978 bytes RedPandaIDE/RedPandaIDE_zh_CN.ts | 319 ++++++++++++++++--------------- RedPandaIDE/mainwindow.cpp | 15 ++ RedPandaIDE/mainwindow.h | 2 + RedPandaIDE/mainwindow.ui | 14 +- RedPandaIDE/systemconsts.h | 2 +- 7 files changed, 196 insertions(+), 159 deletions(-) diff --git a/NEWS.md b/NEWS.md index d91c8f2a..c598d9da 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +Version 0.6.8 + - enhancement: add link to cppreference in the help menu + Version 0.6.7 - fix: messages send to the gdb process's standard error are not received - adjust: the max value of the debug console's vertical scrollbar. diff --git a/RedPandaIDE/RedPandaIDE_zh_CN.qm b/RedPandaIDE/RedPandaIDE_zh_CN.qm index c156fffc7e42d7784e27c88e2ae068740ad765cf..4f3ba61de8246971ce8f17950a33f91aef53671f 100644 GIT binary patch delta 6628 zcmXY#d0b8T8^@pTz31F}&t0eWR@AMu2$d|E5+S6rhCz{5V~GrgVP?9>SR))EJ7X_O zNfQZ`#30!jVl0IWBl|M?eY*Gehu6E~o_p^1`#hiL^E}^k_%T1fj$i3y>_NndM92Dq zYrsihCb$w@3l@Uwz}w(@unEi}DscnziP;u`jl>+>iFiw5Ef#=XiBd+J$U14kLBv{W zz-XfO3r%FbKtFu8YO`JVT`Qu{okUIt%>2&6MAjpfC=Ba6dJ*giz5{z<4NgSic>bnz zGdFhvD~JkLu4>X7ONd6564hYAQPYTS;vvz?h&KL3G`5_WhnhIgQTW_QT*7Rkf0kpP z*i1N2+^$_jIa=a&Ty zOZ+$lXuv2ltNIh4vXyB49^#kf5?v@JUd%w?h7!O2G||8~GcT_*kvZ$cK~h`gTP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eQ*0)hGY} diff --git a/RedPandaIDE/RedPandaIDE_zh_CN.ts b/RedPandaIDE/RedPandaIDE_zh_CN.ts index 1ef27b88..f3a4fadb 100644 --- a/RedPandaIDE/RedPandaIDE_zh_CN.ts +++ b/RedPandaIDE/RedPandaIDE_zh_CN.ts @@ -2696,29 +2696,29 @@ Are you really want to continue? 编译日志 - + File 文件 - + Tools 工具 - - + + Run 运行 - + Edit 编辑 - + Project 项目 @@ -2742,81 +2742,81 @@ Are you really want to continue? - - - + + + Debug 调试 - + Evaluate: 求值 - + Debug Console 调试主控台 - + Call Stack 调用栈 - + Breakpoints 断点 - + Locals 本地变量 - - + + Search 查找 - + History: 历史: - + Search Again 重新查找 - + Replace with: 替换为: - + Replace 替换 - + Close 关闭 - + Execute 运行 - - + + Code 代码 - + Window 窗口 @@ -2834,59 +2834,59 @@ Are you really want to continue? 新建 - + Ctrl+N Ctrl+N - + Open... 打开... - + Ctrl+O Ctrl+O - + Save 保存 - + Ctrl+S Ctrl+S - + Save As... 另存为... - + Save As 另存为 - + Save All 全部保存 - + Ctrl+Shift+S Ctrl+Shift+S - + Options 选项 - - - + + + @@ -2895,587 +2895,592 @@ Are you really want to continue? 编译 - + F9 F9 - + F10 F10 - + Undo 恢复 - + Ctrl+Z Ctrl+Z - + Redo 重做 - + Ctrl+Y Ctrl+Y - + Cut 剪切 - + Ctrl+X Ctrl+X - + Copy 复制 - + Ctrl+C Ctrl+C - + Paste 粘贴 - + Ctrl+V Ctrl+V - + Select All 选择全部 - + Ctrl+A Ctrl+A - + Indent 缩进 - + UnIndent 取消缩进 - + Toggle Comment 切换注释 - + Ctrl+/ Ctrl+/ - + Collapse All 全部收起 - + Uncollapse All 全部展开 - + Encode in ANSI 使用ANSI编码 - + Encode in UTF-8 使用UTF-8编码 - + Auto Detect 自动检测 - + Convert to ANSI 转换为ANSI编码 - + Convert to UTF-8 转换为UTF-8编码 - - + + Compile & Run 编译运行 - + F11 F11 - - + + Rebuild All 全部重编译 - + F12 F12 - + Stop Execution 停止执行 - + F6 F6 - + F5 F5 - + Step Over 单步跳过 - + F7 F7 - + Step Into 单步进入 - + Memory 内存 - + Address Expression: Address: 地址表达式: - + Cancel 取消 - + TODO TODO - + Help 帮助 - + Refactor 重构 - + Main 主工具栏 - + Compiler Set 编译器配置集 - - + + New Source File 新建源代码文件 - + Tab Tab - + Shift+Tab Shift+Tab - + F8 F8 - + Step Out 单步跳出 - + Ctrl+F8 Ctrl+F8 - + Run To Cursor 执行到光标处 - + Ctrl+F5 Ctrl+F5 - + Continue 继续执行 - + F4 F4 - + Add Watch... 添加监视 - + View CPU Window... 打开CPU信息窗口... - + Exit 退出 - + Find... 查找... - + Ctrl+F Ctrl+F - + Find in Files... 在文件中查找... - + Ctrl+Shift+F Ctrl+Shift+F - + Replace... 替换 - + Ctrl+R Ctrl+R - + Find Next 查找下一个 - + F3 F3 - + Find Previous 查找前一个 - + Shift+F3 Shift+F3 - + Remove Watch 删除监视 - + Remove All 清除全部监视 - + Modify Watch... 修改监视值 - + Reformat Code 对代码重新排版 - + Ctrl+Shift+A Ctrl+Shift+A - + Go back 前一次编辑位置 - + Ctrl+Alt+Left Ctrl+Alt+Left - + Forward 后一次编辑位置 - + Ctrl+Alt+Right Ctrl+Alt+Right - + Ctrl+W Ctrl+W - + Close All 全部关闭 - + Ctrl+Shift+W Ctrl+Shift+W - + Maximize Editor 最大化编辑器 - + Ctrl+F11 Ctrl+F11 - + Next 下一窗口 - + Ctrl+Tab Ctrl+Tab - + Previous 前一窗口 - + Ctrl+Shift+Tab Ctrl+Shift+Tab - + Toggle breakpoint 切换断点 - + Ctrl+F4 Ctrl+F4 - + Clear all breakpoints 删除所有断点 - + Breakpoint property... 设置断点条件... - + Goto Declaration 跳转到声明处 - + Goto Definition 跳转到定义处 - + Find references 查找符号的引用 - + Open containing folder 打开所在的文件夹 - + Ctrl+B Ctrl+B - + Open a terminal here 打开命令行窗口 - + File Properties... 文件属性... - + Close Project 关闭项目 - + Project options 项目属性 - + New Project... 新建项目... - + New File 新建项目文件 - + Add to project... 添加到项目... - + Remove from project 从项目删除 - + View Makefile 查看Makefile - + Clean 清理构建文件 - + Open Folder in Explorer 在浏览器中打开 - + Open In Terminal 在终端中打开 - + About 关于 - + Rename Symbol 重命名符号 - + Shift+F6 Shift+F6 - + Print... 打印... - + Ctrl+P Ctrl+P - + Export As RTF 导出为RTF - + Export As HTML 导出为HTML - + Move To Other View 移动到其他视图 - + Ctrl+M Ctrl+M + + + C/C++ Reference + C/C++参考 + File Encoding @@ -3522,8 +3527,8 @@ Are you really want to continue? - Line: %1 Col: %2 Selected: %3 Lines: %4 Length: %5 - Line:%1 Col:%2 Selected:%3 Lines:%4 Length:%5 + Line:%1 Col:%2 Selected:%3 Lines:%4 Length:%5 + Line: %1 Col: %2 Selected: %3 Lines: %4 Length: %5 行: %1 列: %2 已选择 :%3 总行数: %4 总长度: %5 diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index bb0e2abf..e5947d35 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -4262,3 +4262,18 @@ void MainWindow::on_actionMove_To_Other_View_triggered() } } + +void MainWindow::on_actionC_C_Reference_triggered() +{ + if (pSettings->environment().language()=="zh_CN") { + QFileInfo fileInfo(includeTrailingPathDelimiter(pSettings->dirs().app())+"cppreference-zh.chm"); + if (fileInfo.exists()) { + QDesktopServices::openUrl(QUrl::fromLocalFile(fileInfo.absoluteFilePath())); + } else { + QDesktopServices::openUrl(QUrl("https://zh.cppreference.com/w/cpp")); + } + } else { + QDesktopServices::openUrl(QUrl("https://en.cppreference.com/w/cpp")); + } +} + diff --git a/RedPandaIDE/mainwindow.h b/RedPandaIDE/mainwindow.h index 872b7c6a..ae78fe6f 100644 --- a/RedPandaIDE/mainwindow.h +++ b/RedPandaIDE/mainwindow.h @@ -403,6 +403,8 @@ private slots: void on_actionMove_To_Other_View_triggered(); + void on_actionC_C_Reference_triggered(); + private: Ui::MainWindow *ui; EditorList *mEditorList; diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui index 6cfc87ac..3eb3509b 100644 --- a/RedPandaIDE/mainwindow.ui +++ b/RedPandaIDE/mainwindow.ui @@ -85,7 +85,7 @@ QTabWidget::West - 0 + 1 true @@ -387,6 +387,9 @@ Debug + + 7 + 0 @@ -404,6 +407,9 @@ Qt::Horizontal + + 3 + QFrame::StyledPanel @@ -956,6 +962,7 @@ Help + @@ -1840,6 +1847,11 @@ Ctrl+M + + + C/C++ Reference + + diff --git a/RedPandaIDE/systemconsts.h b/RedPandaIDE/systemconsts.h index d0748ad4..8af44fda 100644 --- a/RedPandaIDE/systemconsts.h +++ b/RedPandaIDE/systemconsts.h @@ -3,7 +3,7 @@ #include -#define DEVCPP_VERSION "0.6.7" +#define DEVCPP_VERSION "0.6.8" #ifdef Q_OS_WIN #define APP_SETTSINGS_FILENAME "redpandacpp.ini"