diff --git a/NEWS.md b/NEWS.md
index 0ed85353..959b00ce 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -6,6 +6,9 @@ Red Panda C++ Version 1.1.3
- enhancement: delete the whole folded code block
- fix: correctly update the folding state of code block, when deleted
- change: just show one function hint for overloaded functions
+ - update raylib to 4.2-dev
+ - update raylib-drawing to 1.1
+ - add "raylib manual" in the help menu
Red Panda C++ Version 1.1.2
- enhancement: use different color to differenciate folder and headers in completion popup window
diff --git a/RedPandaIDE/RedPandaIDE_pt.ts b/RedPandaIDE/RedPandaIDE_pt.ts
index 4b86a0b3..3c21cc45 100644
--- a/RedPandaIDE/RedPandaIDE_pt.ts
+++ b/RedPandaIDE/RedPandaIDE_pt.ts
@@ -85,6 +85,10 @@
Header already exists.
+
+ UTF-8
+
+
BacktraceModel
@@ -4492,6 +4496,10 @@
Ignore Spaces
+
+ Raylib Manual
+
+
NewClassDialog
diff --git a/RedPandaIDE/RedPandaIDE_zh_CN.ts b/RedPandaIDE/RedPandaIDE_zh_CN.ts
index 904ea77b..7e8095d1 100644
--- a/RedPandaIDE/RedPandaIDE_zh_CN.ts
+++ b/RedPandaIDE/RedPandaIDE_zh_CN.ts
@@ -160,22 +160,27 @@ p, li { white-space: pre-wrap; }
AutolinkModel
-
+
Header
头文件
-
+
+ UTF-8
+ UTF-8
+
+
+
Link options
链接参数
-
+
Header exists
头文件已存在
-
+
Header already exists.
头文件已存在。
@@ -614,7 +619,7 @@ p, li { white-space: pre-wrap; }
[说明]
-
+
The compiler process for '%1' failed to start.
无法启动编译器进程'%1'。
@@ -623,27 +628,27 @@ p, li { white-space: pre-wrap; }
无法启动编译进程。
-
+
The compiler process crashed after starting successfully.
编译进程启动后崩溃。
-
+
The last waitFor...() function timed out.
waitFor()函数等待超时。
-
+
An error occurred when attempting to write to the compiler process.
在向编译进程输入内容时出错。
-
+
An error occurred when attempting to read from the compiler process.
在从编译进程读取内容时出错。
-
+
An unknown error occurred.
发生了未知错误。
@@ -681,7 +686,7 @@ p, li { white-space: pre-wrap; }
...
-
+
Save failed.
保存失败。
@@ -1264,13 +1269,13 @@ Are you really want to continue?
失败
-
-
-
-
-
-
-
+
+
+
+
+
+
+
Error
错误
@@ -1279,44 +1284,44 @@ Are you really want to continue?
无法写入文件"%1"
-
+
Save As
另存为
-
+
File %1 already openned!
文件%1已经被打开!
-
+
The text to be copied exceeds count limit!
要复制的内容超过了行数限制!
-
+
The text to be copied exceeds character limit!
要复制的内容超过了字符数限制!
-
+
The text to be cut exceeds count limit!
要剪切的内容超过了行数限制!
-
+
The text to be cut exceeds character limit!
要剪切的内容超过了字符数限制!
-
+
Print Document
打印文档
-
-
-
+
+
+
Ctrl+click for more info
Ctrl+单击以获取更多信息
@@ -1325,27 +1330,27 @@ Are you really want to continue?
未找到符号'%1'!
-
+
astyle not found
找不到astyle程序
-
+
Can't find astyle in "%1".
找不到astyle程序"%1".
-
+
Break point condition
断点条件
-
+
Enter the condition of the breakpoint:
输入当前断点的生效条件:
-
+
Readonly
只读
@@ -3835,8 +3840,8 @@ Are you really want to continue?
小熊猫C++
-
-
+
+
@@ -3860,8 +3865,8 @@ Are you really want to continue?
工具
-
-
+
+
Run
运行
@@ -3872,26 +3877,26 @@ Are you really want to continue?
-
-
+
+
Project
项目
-
-
+
+
Watch
监视
-
-
+
+
Structure
结构
-
-
+
+
Files
文件
@@ -3900,69 +3905,69 @@ Are you really want to continue?
资源
-
-
-
-
-
+
+
+
+
+
Debug
调试
-
+
Evaluate:
求值
-
+
Debug Console
调试主控台
-
+
Call Stack
调用栈
-
+
Breakpoints
断点
-
+
Locals
局部变量
-
-
+
+
Search
查找
-
+
History:
历史:
-
+
Search Again
重新查找
-
+
Replace with:
替换为:
-
+
Replace
替换
-
+
Close
关闭
@@ -3973,7 +3978,7 @@ Are you really want to continue?
-
+
Code
代码
@@ -3996,133 +4001,133 @@ 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
选项
-
-
-
+
+
+
Compile
编译
-
-
+
+
Tools Output
工具输出
-
-
+
+
Choose Input File
选择输入文件
-
+
...
...
-
+
Tool Panels
工具面板
-
+
Git
Git
-
+
F9
F9
-
+
F10
F10
-
+
Undo
恢复
-
+
Ctrl+Z
Ctrl+Z
-
+
Redo
重做
-
+
Ctrl+Y
Ctrl+Y
-
+
Cut
剪切
-
+
Ctrl+X
Ctrl+X
-
+
@@ -4130,264 +4135,264 @@ Are you really want to continue?
复制
-
+
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
单步进入
-
-
-
+
+
+
Problem Set
试题集
-
-
-
+
+
+
New Problem Set
新建试题集
-
-
+
+
Add Problem
添加试题
-
-
+
+
Remove Problem
删除试题
-
-
-
+
+
+
Save Problem Set
保存试题集
-
-
-
+
+
+
Load Problem Set
载入试题集
-
+
Memory
内存
-
+
Address Expression:
Address:
地址表达式:
-
+
Cancel
取消
-
-
+
+
TODO
TODO
-
-
+
+
Bookmark
书签
-
-
-
+
+
+
Problem
试题
-
-
+
+
Add Probem Case
添加试题案例
-
-
+
+
Remove Problem Case
Remove Problem Set
删除试题集
-
-
+
+
Open Anwser Source File
打开答案源代码文件
-
-
+
+
Run All Cases
Run Current Case
运行所有案例
-
+
Problem Cases Validation Options
测试案例验证选项
-
+
%v/%m
%v/%m
-
+
Output
输出
-
+
Input
输入
-
+
Expected
期望输出
@@ -4397,12 +4402,12 @@ Are you really want to continue?
帮助
-
+
Refactor
重构
-
+
View
视图
@@ -4411,578 +4416,583 @@ Are you really want to continue?
工具窗口
-
+
Main
主工具栏
-
+
Compiler Set
编译器配置集
-
+
Explorer
管理器
-
+
Messages
消息
-
+
Ignore Spaces
忽略空格
-
-
+
+
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 Watches
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
跳转到声明处
-
+
Ctrl+Shift+G
Ctrl+Shift+G
-
+
Goto Definition
跳转到定义处
-
+
Ctrl+G
Ctrl+G
-
+
Find references
查找符号的引用
-
+
Open containing folder
打开所在的文件夹
-
+
Ctrl+B
Ctrl+B
-
+
Open a terminal here
打开命令行窗口
-
+
File Properties...
文件属性...
-
+
Close Project
关闭项目
-
+
Project options
项目属性
-
+
New Project...
新建项目...
-
-
+
+
New Project File
新建项目文件
-
+
F1
F1
-
+
Move Selection Up
向上移动选中的行
-
+
Ctrl+Shift+Up
Ctrl+Shift+Up
-
+
Move Selection Down
向下移动选中的行
-
+
Ctrl+Shift+Down
Ctrl+Shift+Down
-
+
Convert to UTF-8 BOM
转换为UTF-8 BOM编码
-
+
Encode in UTF-8 BOM
使用UTF-8 BOM编码
-
+
Compiler Options...
编译器选项...
-
+
Toggle Explorer Panel
切换管理器面板
-
+
Ctrl+F9
Ctrl+F9
-
+
Toggle Messages Panel
切换消息面板
-
+
Ctrl+F10
Ctrl+F10
+
+
+ Raylib Manual
+ Raylib教程
+
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++ Reference
C++参考手册
-
+
C Reference
C参考手册
-
+
Show Tool Panels
显示全部工具面板
-
+
Create Git Repository
Create Repository
创建Git仓库
-
+
Commit
提交(Commit)
-
+
Revert
撤销(Revert)
-
+
Reset
回滚(Reset)
-
+
Add Files
添加文件
-
+
Restore
还原(Restore)
-
+
Website
官方网站
-
+
Branch/Switch
分支切换(Switch)
-
+
Merge
合并(Merge)
-
-
+
+
Show Log
Log
显示日志(Log)
-
+
Remotes...
远程仓库...
-
+
Fetch
取回(Fetch)
-
+
Pull
拉取(Pull)
-
+
Push
推送(Push)
-
+
Hide Non Support Files
隐藏不支持的文件
-
+
Toggle Block Comment
切换块注释
-
+
Alt+Shift+A
Alt+Shift+A
-
+
Match Bracket
匹配当前括号
-
+
Ctrl+]
Ctrl+]
@@ -4991,50 +5001,50 @@ Are you really want to continue?
工具窗口栏
-
+
Status Bar
状态栏
-
+
Ctrl+Backspace
Ctrl+Backspace
-
+
Interrupt
中断
-
-
+
+
Delete To Word Begin
删除到单词开头
-
+
Ctrl+Shift+B
Ctrl+Shift+B
-
+
Delete to Word End
删除到单词结尾
-
+
Ctrl+Shift+E
Ctrl+Shift+E
-
+
New Class...
Add Class...
新建类...
-
-
+
+
New Header...
New Header
新建头文件...
@@ -5044,47 +5054,47 @@ Are you really want to continue?
插入行
-
+
Delete Line
删除当前行
-
+
Ctrl+D
Ctrl+D
-
+
Duplicate Line
复制当前行
-
+
Ctrl+E
Ctrl+E
-
+
Delete Word
删除当前单词
-
+
Ctrl+Shift+D
Ctrl+Shift+D
-
+
Delete to EOL
删除到行尾
-
+
Ctrl+Del
Ctrl+Del
-
+
Delete to BOL
删除到行首
@@ -5093,27 +5103,27 @@ Are you really want to continue?
C/C++参考
-
+
EGE Manual
EGE图形库手册
-
+
Add Bookmark
添加书签
-
+
Remove Bookmark
删除书签
-
+
Modify Bookmark Description
修改书签说明
-
+
Locate in Files View
在文件视图中定位
@@ -5122,7 +5132,7 @@ Are you really want to continue?
打开文件夹
-
+
Running Parameters...
运行参数...
@@ -5346,9 +5356,9 @@ Are you really want to continue?
全部复制
-
-
-
+
+
+
@@ -5367,7 +5377,7 @@ Are you really want to continue?
-
+
Problem Set %1
试题集%1
@@ -5441,15 +5451,15 @@ Are you really want to continue?
-
-
+
+
Bookmark Description
书签描述
-
-
+
+
Description:
描述:
@@ -5675,7 +5685,7 @@ Are you really want to continue?
-
+
Do you want to save it?
需要保存吗?
@@ -5699,7 +5709,7 @@ Are you really want to continue?
-
+
Save Error
保存失败
@@ -5794,44 +5804,44 @@ Are you really want to continue?
你真的要删除它吗?
-
+
Change working folder
改变工作文件夹
-
+
File '%1' is not in the current working folder.
File '%1' is not in the current working folder
文件'%1'不在当前工作文件夹中。
-
+
Do you want to change working folder to '%1'?
是否将工作文件夹改设为'%1'?
-
+
Can't Commit
无法提交
-
+
Git needs user info to commit.
Git需要用信息进行提交。
-
+
Choose Input Data File
选择输入数据文件
-
-
+
+
All files (*.*)
所有文件 (*.*)
-
+
Choose Expected Output Data File
Choose Expected Input Data File
选择期望输出文件
@@ -5841,61 +5851,61 @@ Are you really want to continue?
第%1行
-
-
-
+
+
+
Choose Working Folder
选择工作文件夹
-
-
+
+
Header Exists
头文件已存在
-
-
+
+
Header file "%1" already exists!
头文件"%1"已存在!
-
+
Source Exists
源文件已存在!
-
+
Source file "%1" already exists!
源文件"%1"已存在!
-
+
Can't commit!
无法提交!
-
+
The following files are in conflicting:
下列文件处于冲突状态,请解决后重新添加和提交:
-
+
Commit Message
提交信息
-
+
Commit Message:
提交信息:
-
+
Commit Failed
提交失败
-
+
Commit message shouldn't be empty!
提交信息不能为空!
@@ -6000,39 +6010,39 @@ Are you really want to continue?
内容和上次查找时不一致。
-
+
Rich Text Format Files (*.rtf)
RTF格式文件 (*.rtf)
-
+
HTML Files (*.html)
HTML文件 (*.html)
-
+
The current problem set is not empty.
当前的试题集不是空的。
-
+
Problem %1
试题%1
-
-
+
+
Problem Set Files (*.pbs)
试题集文件 (*.pbs)
-
+
Load Error
载入失败
-
+
Problem Case %1
试题案例%1
@@ -6052,7 +6062,7 @@ Are you really want to continue?
-
+
Error
错误
@@ -6117,7 +6127,7 @@ Are you really want to continue?
-
+
Confirm Convertion
确认转换
@@ -6125,7 +6135,7 @@ Are you really want to continue?
-
+
The editing file will be saved using %1 encoding. <br />This operation can't be reverted. <br />Are you sure to continue?
当前编辑器中的文件将会使用%1编码保存。<br />这项操作无法被撤回。<br />你确定要继续吗?
@@ -6468,83 +6478,83 @@ Are you really want to continue?
无法保存文件'%1'.
-
+
Error Load File
载入文件错误
-
+
File Exists
文件已存在
-
+
File '%1' is already in the project
文件'%1'已在项目中
-
+
Project Updated
项目已升级
-
+
Your project was succesfully updated to a newer file format!
已成功将项目升级到新的格式
-
+
If something has gone wrong, we kept a backup-file: '%1'...
旧项目文件备份在'%1'。
-
+
Headers
头文件
-
+
Sources
源文件
-
+
Others
其他文件
-
+
Settings need update
设置需要更新
-
+
The compiler settings format of Red Panda C++ has changed.
The compiler settings format of Dev-C++ has changed.
小熊猫C++的编译器设置格式已发生改变。
-
+
Please update your settings at Project >> Project Options >> Compiler and save your project.
请在项目 >> 项目属性 >> 编译器设置中修改您的设置并保存您的项目
-
+
Compiler not found
未找到编译器
-
+
The compiler set you have selected for this project, no longer exists.
您为该项目设置的编译器不存在。
-
+
It will be substituted by the global compiler set.
它将会被全局编译器设置代替。
-
+
Developed using the Red Panda C++ IDE
Developed using the Red Panda Dev-C++ IDE
使用小熊猫C++编辑器开发
@@ -6981,32 +6991,32 @@ Are you really want to continue?
ProjectModel
-
+
File exists
文件已存在
-
+
File '%1' already exists. Delete it now?
文件'%1'已存在。是否删除?
-
+
Remove failed
删除失败
-
+
Failed to remove file '%1'
无法删除文件'%1'
-
+
Rename failed
改名失败
-
+
Failed to rename file '%1' to '%2'
无法将文件'%1'改名为'%2'
@@ -8391,14 +8401,14 @@ Are you really want to continue?
性能
-
+
Compiler Set
编译器配置集
-
+
Compiler
@@ -8410,7 +8420,7 @@ Are you really want to continue?
自动链接
-
+
@@ -8486,15 +8496,15 @@ Are you really want to continue?
杂项
-
-
+
+
Program Runner
程序运行
-
+
Problem Set
试题集
diff --git a/RedPandaIDE/RedPandaIDE_zh_TW.ts b/RedPandaIDE/RedPandaIDE_zh_TW.ts
index 4b7f5302..4823e9a9 100644
--- a/RedPandaIDE/RedPandaIDE_zh_TW.ts
+++ b/RedPandaIDE/RedPandaIDE_zh_TW.ts
@@ -85,6 +85,10 @@
Header already exists.
+
+ UTF-8
+
+
BacktraceModel
@@ -4492,6 +4496,10 @@
Ignore Spaces
+
+ Raylib Manual
+
+
NewClassDialog
diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp
index 388bba90..d1a984a8 100644
--- a/RedPandaIDE/mainwindow.cpp
+++ b/RedPandaIDE/mainwindow.cpp
@@ -7967,3 +7967,13 @@ void MainWindow::on_chkIgnoreSpaces_stateChanged(int /*arg1*/)
}
+
+void MainWindow::on_actionRaylib_Manual_triggered()
+{
+ if (pSettings->environment().language()=="zh_CN") {
+ QDesktopServices::openUrl(QUrl("https://zhuanlan.zhihu.com/p/458335134"));
+ } else {
+ QDesktopServices::openUrl(QUrl("https://www.raylib.com/"));
+ }
+}
+
diff --git a/RedPandaIDE/mainwindow.h b/RedPandaIDE/mainwindow.h
index 0596abca..5f6ec7d2 100644
--- a/RedPandaIDE/mainwindow.h
+++ b/RedPandaIDE/mainwindow.h
@@ -691,6 +691,8 @@ private slots:
void on_chkIgnoreSpaces_stateChanged(int arg1);
+ void on_actionRaylib_Manual_triggered();
+
private:
Ui::MainWindow *ui;
EditorList *mEditorList;
diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui
index 0fabf49d..b4141010 100644
--- a/RedPandaIDE/mainwindow.ui
+++ b/RedPandaIDE/mainwindow.ui
@@ -266,6 +266,7 @@
+
@@ -3159,6 +3160,11 @@
Ctrl+F10
+
+
+ Raylib Manual
+
+