From 72189f0a94d1c1c32e866d2ec5fafb9ed496d395 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 31 May 2023 08:52:59 +0800 Subject: [PATCH] - enhancement: Add various menu items for cursor actions using Home/End/Page Up/Page Down keys. - enhancement: Filter names in the shortcut config page of options dialog. --- NEWS.md | 2 + RedPandaIDE/mainwindow.cpp | 144 ++ RedPandaIDE/mainwindow.h | 32 + RedPandaIDE/mainwindow.ui | 151 ++ .../environmentshortcutwidget.cpp | 11 +- .../environmentshortcutwidget.h | 5 + .../environmentshortcutwidget.ui | 30 +- RedPandaIDE/translations/RedPandaIDE_pt_BR.ts | 72 + RedPandaIDE/translations/RedPandaIDE_zh_CN.ts | 1626 +++++++++-------- RedPandaIDE/translations/RedPandaIDE_zh_TW.ts | 72 + 10 files changed, 1375 insertions(+), 770 deletions(-) diff --git a/NEWS.md b/NEWS.md index 793dad20..842dc987 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,8 @@ Red Panda C++ Version 2.22 - upgrade raylib to 4.5, raygui to 3.6 - enhancement: support -std=c++2d gcc parameter - fix: vertice shader(.vs) and fragment shader(.fs) files can't be openned by double click in the project browser. + - enhancement: Add various menu items for cursor actions using Home/End/Page Up/Page Down keys. + - enhancement: Filter names in the shortcut config page of options dialog. Red Panda C++ Version 2.21 diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index c103f104..9a82755a 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -9776,3 +9776,147 @@ void MainWindow::on_actionNew_Text_File_triggered() newEditor("txt"); } + +void MainWindow::on_actionPage_Up_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::PageUp); + } +} + + +void MainWindow::on_actionPage_Down_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::PageDown); + } +} + + +void MainWindow::on_actionGoto_Line_Start_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::LineStart); + } +} + + +void MainWindow::on_actionGoto_Line_End_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::LineEnd); + } +} + + +void MainWindow::on_actionGoto_File_Start_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::EditorStart); + } +} + + +void MainWindow::on_actionGoto_File_End_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::EditorEnd); + } +} + + +void MainWindow::on_actionPage_Up_and_Select_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::SelPageUp); + } +} + + +void MainWindow::on_actionPage_Down_and_Select_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::SelPageDown); + } +} + + +void MainWindow::on_actionGoto_Page_Start_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::PageTop); + } +} + + +void MainWindow::on_actionGoto_Page_End_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::PageBottom); + } +} + + +void MainWindow::on_actionGoto_Page_Start_and_Select_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::SelPageTop); + } +} + + +void MainWindow::on_actionGoto_Page_End_and_Select_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::SelPageBottom); + } +} + + +void MainWindow::on_actionGoto_Line_Start_and_Select_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::SelLineStart); + } +} + + +void MainWindow::on_actionGoto_Line_End_and_Select_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::SelLineEnd); + } +} + + +void MainWindow::on_actionGoto_File_Start_and_Select_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::SelEditorStart); + } +} + + +void MainWindow::on_actionGoto_File_End_and_Select_triggered() +{ + Editor * editor = mEditorList->getEditor(); + if (editor && editor->hasFocus()) { + editor->processCommand(QSynedit::EditCommand::SelEditorEnd); + } +} + diff --git a/RedPandaIDE/mainwindow.h b/RedPandaIDE/mainwindow.h index 4193bd23..668611a9 100644 --- a/RedPandaIDE/mainwindow.h +++ b/RedPandaIDE/mainwindow.h @@ -809,6 +809,38 @@ private slots: void on_actionNew_Text_File_triggered(); + void on_actionPage_Up_triggered(); + + void on_actionPage_Down_triggered(); + + void on_actionGoto_Line_Start_triggered(); + + void on_actionGoto_Line_End_triggered(); + + void on_actionGoto_File_Start_triggered(); + + void on_actionGoto_File_End_triggered(); + + void on_actionPage_Up_and_Select_triggered(); + + void on_actionPage_Down_and_Select_triggered(); + + void on_actionGoto_Page_Start_triggered(); + + void on_actionGoto_Page_End_triggered(); + + void on_actionGoto_Page_Start_and_Select_triggered(); + + void on_actionGoto_Page_End_and_Select_triggered(); + + void on_actionGoto_Line_Start_and_Select_triggered(); + + void on_actionGoto_Line_End_and_Select_triggered(); + + void on_actionGoto_File_Start_and_Select_triggered(); + + void on_actionGoto_File_End_and_Select_triggered(); + private: Ui::MainWindow *ui; bool mFullInitialized; diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui index d56e9d9f..e666a8bd 100644 --- a/RedPandaIDE/mainwindow.ui +++ b/RedPandaIDE/mainwindow.ui @@ -177,6 +177,19 @@ Edit + + + Move Cursor + + + + + + + + + + @@ -193,6 +206,7 @@ + @@ -344,6 +358,15 @@ + + + + + + + + + @@ -3359,6 +3382,134 @@ New Text File + + + Page Up + + + QAction::TextHeuristicRole + + + + + Page Down + + + QAction::NoRole + + + + + Goto Line Start + + + QAction::NoRole + + + + + Goto Line End + + + QAction::NoRole + + + + + Goto File Start + + + QAction::NoRole + + + + + Goto File End + + + QAction::NoRole + + + + + Page Up and Select + + + QAction::NoRole + + + + + Page Down and Select + + + QAction::NoRole + + + + + Goto Page Start + + + QAction::NoRole + + + + + Goto Page End + + + QAction::NoRole + + + + + Goto Page Start and Select + + + QAction::NoRole + + + + + Goto Page End and Select + + + QAction::NoRole + + + + + Goto Line Start and Select + + + QAction::NoRole + + + + + Goto Line End and Select + + + QAction::NoRole + + + + + Goto File Start and Select + + + QAction::NoRole + + + + + Goto File End and Select + + + QAction::NoRole + + diff --git a/RedPandaIDE/settingsdialog/environmentshortcutwidget.cpp b/RedPandaIDE/settingsdialog/environmentshortcutwidget.cpp index 1c7ad797..d6f6470e 100644 --- a/RedPandaIDE/settingsdialog/environmentshortcutwidget.cpp +++ b/RedPandaIDE/settingsdialog/environmentshortcutwidget.cpp @@ -27,9 +27,12 @@ EnvironmentShortcutWidget::EnvironmentShortcutWidget(const QString& name, const ui(new Ui::EnvironmentShortcutWidget) { ui->setupUi(this); + mFilterProxy = new QSortFilterProxyModel(this); + mFilterProxy->setSourceModel(&mModel); + mFilterProxy->setFilterKeyColumn(0); mDelegate =new EnvironmentShortcutDelegate(this); QItemSelectionModel* m=ui->tblShortcut->selectionModel(); - ui->tblShortcut->setModel(&mModel); + ui->tblShortcut->setModel(mFilterProxy); delete m; ui->tblShortcut->setItemDelegate(mDelegate); connect(&mModel, &EnvironmentShortcutModel::shortcutChanged, @@ -220,3 +223,9 @@ void EnvironmentShortcutDelegate::onEditingFinished(QWidget* editor) emit commitData(editor); emit closeEditor(editor, QAbstractItemDelegate::SubmitModelCache); } + +void EnvironmentShortcutWidget::on_txtKeyword_textChanged(const QString &arg1) +{ + mFilterProxy->setFilterFixedString(arg1); +} + diff --git a/RedPandaIDE/settingsdialog/environmentshortcutwidget.h b/RedPandaIDE/settingsdialog/environmentshortcutwidget.h index d0244925..dd9e20e2 100644 --- a/RedPandaIDE/settingsdialog/environmentshortcutwidget.h +++ b/RedPandaIDE/settingsdialog/environmentshortcutwidget.h @@ -18,6 +18,7 @@ #define ENVIRONMENTSHORTCUTWIDGET_H #include +#include #include #include #include "settingswidget.h" @@ -79,8 +80,12 @@ private: protected: void doLoad() override; void doSave() override; +private slots: + void on_txtKeyword_textChanged(const QString &arg1); + private: EnvironmentShortcutModel mModel; + QSortFilterProxyModel* mFilterProxy; EnvironmentShortcutDelegate* mDelegate; }; diff --git a/RedPandaIDE/settingsdialog/environmentshortcutwidget.ui b/RedPandaIDE/settingsdialog/environmentshortcutwidget.ui index 2d584d1b..d00a3b1c 100644 --- a/RedPandaIDE/settingsdialog/environmentshortcutwidget.ui +++ b/RedPandaIDE/settingsdialog/environmentshortcutwidget.ui @@ -13,7 +13,35 @@ Form - + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Keyword + + + + + + + + + diff --git a/RedPandaIDE/translations/RedPandaIDE_pt_BR.ts b/RedPandaIDE/translations/RedPandaIDE_pt_BR.ts index f78becc7..02db0d72 100644 --- a/RedPandaIDE/translations/RedPandaIDE_pt_BR.ts +++ b/RedPandaIDE/translations/RedPandaIDE_pt_BR.ts @@ -1952,6 +1952,10 @@ Form Configuração + + Keyword + + ExecutableRunner @@ -5195,6 +5199,74 @@ You should recompile after change the compiler set or it's settings. + + Move Cursor + + + + Page Up + + + + Page Down + + + + Goto Line Start + + + + Goto Line End + + + + Goto File Start + + + + Goto File End + + + + Page Up and Select + + + + Page Down and Select + + + + Goto Page Start + + + + Goto Page End + + + + Goto Page Start and Select + + + + Goto Page End and Select + + + + Goto Line Start and Select + + + + Goto Line End and Select + + + + Goto File Start and Select + + + + Goto File End and Select + + MemoryModel diff --git a/RedPandaIDE/translations/RedPandaIDE_zh_CN.ts b/RedPandaIDE/translations/RedPandaIDE_zh_CN.ts index 6bc2ecc3..728a7755 100644 --- a/RedPandaIDE/translations/RedPandaIDE_zh_CN.ts +++ b/RedPandaIDE/translations/RedPandaIDE_zh_CN.ts @@ -193,17 +193,17 @@ p, li { white-space: pre-wrap; } BacktraceModel - + Function 函数 - + Filename 文件名 - + Line @@ -211,37 +211,37 @@ p, li { white-space: pre-wrap; } BookmarkModel - + Save file '%1' failed. 保存文件'%1'失败。 - + Can't open file '%1' for write. 无法写入文件'%1'. - + Error in json file '%1':%2 : %3 JSON文件'%1':%2中存在错误:%3 - + Can't open file '%1' for read. 无法读取文件'%1'. - + Description 描述 - + Line - + Filename 文件名 @@ -249,17 +249,17 @@ p, li { white-space: pre-wrap; } BreakpointModel - + Filename 文件名 - + Line - + Condition 条件 @@ -1390,22 +1390,22 @@ Are you really want to continue? 执行以求值 - + Save file '%1' failed. 保存文件'%1'失败。 - + Can't open file '%1' for write. 无法写入文件'%1'. - + Error in json file '%1':%2 : %3 JSON文件'%1':%2中存在错误:%3 - + Can't open file '%1' for read. 无法读取文件'%1'. @@ -1414,22 +1414,22 @@ Are you really want to continue? 不在当前语境中 - + Compile 编译 - + Source file is more recent than executable. 源文件比程序文件新。 - + Recompile? 重新编译? - + Signal "%1" Received: 收到信号"%1": @@ -2653,27 +2653,27 @@ Are you really want to continue? EnvironmentShortcutModel - + action 动作 - + Error 错误 - + Shortcut "%1" is used by "%2". 快捷键“%1”已经被“%2”使用了。 - + Function 功能 - + Shortcut 快捷键 @@ -2685,6 +2685,11 @@ Are you really want to continue? Form 表单 + + + Keyword + 关键字 + ExecutableRunner @@ -3021,7 +3026,7 @@ Are you really want to continue? Characters: - 字符数: + 字符数: @@ -4319,13 +4324,13 @@ Are you really want to continue? 小熊猫C++ - - - - - - - + + + + + + + Issues 编译器 @@ -4344,8 +4349,8 @@ Are you really want to continue? 工具 - - + + Run 运行 @@ -4355,27 +4360,27 @@ Are you really want to continue? 编辑 - - - + + + Project 项目 - - + + Watch 监视 - - + + Structure 结构 - - + + Files 文件 @@ -4384,69 +4389,69 @@ Are you really want to continue? 资源 - - - - - + + + + + Debug 调试 - + Evaluate: 求值 - + Debug Console 调试主控台 - + Call Stack 调用栈 - + Breakpoints 断点 - + Locals 局部变量 - - - + + + Search 查找 - + History: 历史: - + Search Again 重新查找 - + Replace with: 替换为: - + Replace 替换 - + Close 关闭 @@ -4456,13 +4461,13 @@ Are you really want to continue? 运行 - - + + Code 代码 - + Window 窗口 @@ -4480,71 +4485,71 @@ 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 选择输入文件 @@ -4553,22 +4558,22 @@ Are you really want to continue? ... - + Tool Panels 工具面板 - + Git Git - + Selection 选择 - + F9 F9 @@ -4577,37 +4582,37 @@ Are you really want to continue? F10 - + Undo 恢复 - + Ctrl+Z Ctrl+Z - + Redo 重做 - + Ctrl+Y Ctrl+Y - + Cut 剪切 - + Ctrl+X Ctrl+X - + @@ -4615,85 +4620,85 @@ 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编码 @@ -4702,198 +4707,198 @@ Are you really want to continue? 编译运行 - + 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 期望输出 - + Help 帮助 - + Refactor 重构 - + View 视图 @@ -4902,534 +4907,619 @@ Are you really want to continue? 工具窗口 - + Main 主工具栏 - + Compiler Set 编译器配置集 - + Explorer 管理器 - + - + Import FPS Problem Set 导入FPS试题集 - + - + Export FPS Problem Set 导出FPS试题集 - + Messages 消息 - + Open file in editors 在编辑器中打开文件 - + Choose Expected Output File 选择期望输出文件 - + Ignore Spaces 忽略空格 - + New C/C++ File 新建C/C++文件 - + New Source File 新建源代码文件 - + Ctrl+K, Ctrl+S - + 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 新建项目文件 - + Ctrl+F12 Ctrl+F12 - + F1 F1 - + New GAS File 新建GNU汇编文件 - + GNU Assembler Manual GNU汇编器手册 - + x86 Assembly Language Reference Manual X86汇编语言参考手册 - + IA-32 Assembly Language Reference Manual IA32汇编语言参考手册 - + Add Watchpoint... 添加变量断点... - + Add a watchpoint that's triggered when it's modified. 添加一个变量断点。当该变量的值被改动时程序暂停。 - + New Text File 新建文本文件 - + + Page Up + 向上翻页 + + + + Page Down + 向下翻页 + + + + Goto Line Start + 跳转到行首 + + + + Goto Line End + 跳转到行尾 + + + + Goto File Start + 跳转倒文件开头 + + + + Goto File End + 跳转到文件结尾 + + + + Page Up and Select + 向上翻页并选中 + + + + Page Down and Select + 向下翻页并选中 + + + + Goto Page Start + 跳转到页首 + + + + Goto Page End + 跳转到页尾 + + + + Goto Page Start and Select + 跳转到行首并选中 + + + + Goto Page End and Select + 跳转到页尾并选中 + + + + Goto Line Start and Select + 跳转到行首并选中 + + + + Goto Line End and Select + 跳转到行尾并选中 + + + + Goto File Start and Select + 跳转到文件开头并选中 + + + + Goto File End and Select + 跳转到文件结尾并选中 + + + Move Selection Up 向上移动选中的行 - + + Move Cursor + 移动光标 + + + 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教程 - + Select Word 选中当前单词 - + Go to Line... 跳转到行... - + New Template... 新建模板... - + New Template from Project 从项目创建模板 - + Goto block start 跳转到代码段开始 - + Ctrl+Alt+Up Ctrl+Alt+Up - + Goto block end 跳转到代码段结束 - + Ctrl+Alt+Down Ctrl+Alt+Down - + Switch header/source 切换头文件/源文件 - + Switch Header/Source 切换头文件/源文件 - + Generate Assembly 生成汇编 - + Trim trailing spaces 删除行尾空格 - + Toggle Readonly 切换只读模式 - + Submit Issues 反馈与建议 - + Document 使用说明 @@ -5443,194 +5533,194 @@ Are you really want to continue? 新建文件 - + 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+] @@ -5639,50 +5729,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 新建头文件... @@ -5692,47 +5782,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 删除到行首 @@ -5741,27 +5831,27 @@ Are you really want to continue? C/C++参考 - + EGE Manual EGE图形库手册 - + Add Bookmark 添加书签 - + Remove Bookmark 删除书签 - + Modify Bookmark Description 修改书签说明 - + Locate in Files View 在文件视图中定位 @@ -5770,7 +5860,7 @@ Are you really want to continue? 打开文件夹 - + Running Parameters... 运行参数... @@ -5870,22 +5960,22 @@ Are you really want to continue? - - + + Wrong Compiler Settings 错误的编译器设置 - - + + Compiler is set not to generate executable. 编译器被设置为不生成可执行文件。 - + We need the executabe to run problem case. 我们需要可执行文件来运行试题案例。 @@ -5947,7 +6037,7 @@ Are you really want to continue? - + Please correct this before start debugging 请在调试前改正设置。 @@ -5990,7 +6080,7 @@ Are you really want to continue? - + Correct compile settings for debug 纠正调试用编译设置 @@ -6007,49 +6097,49 @@ Are you really want to continue? - + Or you can manually change the following settings in the options dialog's compiler set page: 您也可以手动在选项对话框的编译器设置页中修正下列选项: - + - Turned on the "Generate debug info (-g3)" option. - 打开“生成调试信息(-g3)"选项. - + - Turned off the "Strip executable (-s)" option. - 关闭"剥除附加信息(-s)"选项. - + - Turned off the "Optimization level (-O)" option or set it to "Debug (-Og)". - 关闭"优化级别(-O)选项,或将其设置为"调试(-Og)"级别. - + You should recompile after change the compiler set or it's settings. 在更换编译器设置集或修改其设置后,需要重新编译. - + Do you want to mannually change the compiler set settings now? 您现在就要手动修改编译器设置集的设置吗? - + Batch Set Cases 批量设置案例 @@ -6064,29 +6154,29 @@ Are you really want to continue? 全部复制 - + Go to Line 跳转到行 - + Line - + Template Exists 模板已存在 - + Template %1 already exists. Do you want to overwrite? 模板%1已存在。是否覆盖? - - - + + + @@ -6105,7 +6195,7 @@ Are you really want to continue? - + Problem Set %1 试题集%1 @@ -6149,12 +6239,12 @@ Are you really want to continue? 试题属性... - + Set Problem Set Name 设置试题集名称 - + Problem Set Name: 试题集名称: @@ -6174,16 +6264,16 @@ Are you really want to continue? 修改描述 - - - + + + Bookmark Description 书签描述 - - - + + + Description: 描述: @@ -6207,12 +6297,12 @@ Are you really want to continue? 断点条件... - + Break point condition 断点条件 - + Enter the condition of the breakpoint: 输入当前断点的生效条件: @@ -6234,18 +6324,18 @@ Are you really want to continue? - + Add Folder 添加文件夹 - - + + New folder 新文件夹 - + Folder name: 文件夹: @@ -6391,7 +6481,7 @@ Are you really want to continue? - + New Folder 新建文件夹 @@ -6402,9 +6492,9 @@ Are you really want to continue? - - - + + + Delete 删除 @@ -6464,47 +6554,47 @@ Are you really want to continue? 选择答案源代码文件 - + Watchpoint hitted 变量断点被触发 - + Value of "%1" has changed: "%1"的值发生了变化: - + New value: %1 新值: %1 - + Project folder removed. 项目文件夹被删除 - + Folder for project '%1' was removed. 项目"%1"的文件夹已被外部程序删除. - + It will be closed. 项目将被关闭. - + Save settings failed! 保存设置失败 - + Watchpoint variable name 被监控的变量 - + Stop execution when the following variable is modified (it must be visible from the currect scope): 当下面的变量被修改时暂停执行(该变量必须可以从当前程序处访问): @@ -6513,17 +6603,17 @@ Are you really want to continue? 中止 - + FPS Problem Set Files (*.fps;*.xml) FPS试题集文件(*.fps;*.xml) - + FPS Problem Set Files (*.fps) FPS试题集文件(*.fps) - + Export Error 导出时出错 @@ -6533,7 +6623,7 @@ Are you really want to continue? C/C++源代码文件 (*.c *.cpp *.cc *.cxx) - + New Folder %1 新建文件夹%1 @@ -6546,12 +6636,12 @@ Are you really want to continue? 无标题%1 - + Do you really want to delete %1? 你真的要删除%1吗? - + Do you really want to delete %1 files? 你真的要删除%1个文件吗? @@ -6564,7 +6654,7 @@ Are you really want to continue? 变量"%1"有改动: - + Old value: %1 旧值: %1 @@ -6573,65 +6663,65 @@ Are you really want to continue? 新值: %1 - + Save project 保存项目 - + The project '%1' has modifications. 项目'%1'有改动。 - - + + Do you want to save it? 需要保存吗? - - + + File Changed 文件已发生变化 - - - + + + New Project File? 新建项目文件? - - - + + + Do you want to add the new file to the project? 您是否要将新建的文件加入项目? - - - - - + + + + + Save Error 保存失败 - + Change Project Compiler Set 改变项目编译器配置集 - + Change the project's compiler set will lose all custom compiler set options. 改变项目的编译器配置集会导致所有的自定义编译器选项被重置。 - - + + Do you really want to do that? 你真的想要那么做吗? @@ -6641,12 +6731,12 @@ Are you really want to continue? 批量设置案例 - + Choose input files 选择输入数据文件 - + Input data files (*.in) 输入数据文件 (*.in) @@ -6655,78 +6745,78 @@ Are you really want to continue? 无标题%1 - + Modify Watch 修改监视表达式 - + Watch Expression 监视表达式 - + Do you really want to clear all breakpoints in this file? 您真的要清除该文件的所有断点吗? - + New project 新建项目 - + Close %1 and start new project? 关闭'%1'以打开新项目? - + Folder not exist 文件夹不存在 - + Folder '%1' doesn't exist. Create it now? 文件夹'%1'不存在。是否创建? - + Can't create folder 无法创建文件夹 - + Failed to create folder '%1'. 创建文件夹'%1'失败。 - + Save new project as - + Folder %1 is not empty. 文件夹%1不是空的。 - + Do you really want to delete it? 你真的要删除它吗? - + 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'? @@ -6735,28 +6825,28 @@ Are you really want to continue? 正在删除试题... - + 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 选择期望输出文件 @@ -6766,61 +6856,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! 提交信息不能为空! @@ -6829,22 +6919,22 @@ Are you really want to continue? 小熊猫Dev-C++项目文件 (*.dev) - + New project fail 新建项目失败 - + Can't assign project template 无法使用模板创建项目 - + Remove file 删除文件 - + Remove the file from disk? 同时从硬盘上删除文件? @@ -6853,27 +6943,27 @@ Are you really want to continue? 无标题 - + New Project File Name 新的项目文件名 - + File Name: 文件名: - + File Already Exists! 文件已存在! - + File '%1' already exists! 文件'%1'已经存在! - + Add to project 添加到项目 @@ -6895,7 +6985,7 @@ Are you really want to continue? C/C++源代码文件 (*.c *.cpp *.cc *.cxx) - + This operation will remove all cases for the current problem. 本操作会删除此试题的所有案例。 @@ -6904,7 +6994,7 @@ Are you really want to continue? 调试失败 - + The executable doesn't have symbol table, and can't be debugged. 可执行文件中没有符号表信息,无法调试。 @@ -6929,88 +7019,88 @@ Are you really want to continue? 您也可以删除所有断点,打开“CPU信息窗口”,然后调试汇编代码。 - + Failed to generate the executable. 未能生成可执行文件。 - + Please check detail info in "Tools Output" panel. 请查看“工具输出”面板中的详细信息。 - + Red Panda C++ project file (*.dev) 小熊猫C++项目文件(*.dev) - + Rename Error 重命名出错 - + Symbol '%1' is defined in system header. 符号'%1'在系统头文件中定义,无法修改。 - + New Name 新名称 - - - - + + + + Replace Error 替换出错 - + Can't open file '%1' for replace! 无法打开文件'%1'进行替换! - + Contents has changed since last search! 内容和上次查找时不一致。 - + 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 @@ -7024,11 +7114,11 @@ Are you really want to continue? - - - - - + + + + + Error 错误 @@ -7063,87 +7153,87 @@ Are you really want to continue? 请在工具栏中选用Debug编译器配置集,或者在选项对话框的编辑器配置集页中勾选“生成调试信息(-g3)"选项。 - + File '%1' was changed. 磁盘文件'%1'已被修改。 - + Reload its content from disk? 是否重新读取它的内容? - + File '%1' was removed. 磁盘文件'%1'已被删除。 - + Keep it open? 是否保持它在小熊猫C++中打开的编辑窗口? - + Open 打开 - - + + Compile Failed 编译失败 - + Run Failed 运行失败 - - - + + + Confirm Convertion 确认转换 - + If you are using the Release compiler set, please use choose the Debug version from toolbar. 如果你正在使用Release版的编译器设置集,请在工具栏中将其改为Debug版本。 - - - + + + 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 />你确定要继续吗? - + New Watch Expression 新监视表达式 - + Enter Watch Expression (it is recommended to use 'this->' for class members): 输入监视表达式 - + Parsing file %1 of %2: "%3" (%1/%2)正在解析文件"%3" - - + + Done parsing %1 files in %2 seconds 完成%1个文件的解析,用时%2秒 - + (%1 files per second) (每秒%1个文件) @@ -7151,17 +7241,17 @@ Are you really want to continue? MemoryModel - + addr: %1 地址: %1 - + dec: %1 十进制: %1 - + oct: %1 八进制: %1 @@ -7170,12 +7260,12 @@ Are you really want to continue? 16进制: %1 - + bin: %1 二进制: %1 - + ascii: '%1' ASCII字符: '%1' @@ -8636,7 +8726,7 @@ Are you really want to continue? 完整兼容特定机器,较少优化(-tune) - + Enable use of specific instructions (-mx) 启用特定指令集(-mx) @@ -8646,7 +8736,7 @@ Are you really want to continue? 优化级别(-Ox) - + Compile with the following pointer size (-mx) 使用下列指针大小编译(-mx) @@ -8659,7 +8749,7 @@ Are you really want to continue? 性能分析 - + Generate debugging information (-g3) 生成调试信息(-g3) @@ -8669,12 +8759,12 @@ Are you really want to continue? 您同意小熊猫C++在PATH路径中寻找gcc编译器吗? - + Generate profiling info for analysis (-pg) 生成性能分析信息(-pg) - + Warnings 代码警告 @@ -8683,12 +8773,12 @@ Are you really want to continue? 当前CPU - + C++ Language standard (-std) C++语言标准 (-std) - + C Language standard (-std) C语言标准 (-std) @@ -8697,32 +8787,32 @@ Are you really want to continue? 启用 - + Check for stack smashing attacks (-fstack-protector) 检查栈溢出(stack smashing)错误 (-fstack-protector) - + Enable Sanitizer (-fsanitize=) 启用地址消毒(-fsanitize=) - + Inhibit all warning messages (-w) 忽略所有警告信息(-w) - + Show most warnings (-Wall) 启用常见问题警告(-Wall) - + Show some more warnings (-Wextra) 启用更多问题警告(-Wextra) - + Check ISO C/C++ conformance (-pedantic) 检查是否严格遵守ISO C/C++标准 @@ -8731,22 +8821,22 @@ Are you really want to continue? 检查ISO C/C++/C++0x语法一致性(-pedantic) - + Only check the code for syntax errors (-fsyntax-only) 只进行语法检查(不编译)(-fsyntax-only) - + Make all warnings into errors (-Werror) 将警告作为错误处理(-Werror) - + Abort compilation on first error (-Wfatal-errors) 遇到第一个错误后立即中止编译(-Wfatal-errors) - + Linker 链接器 @@ -8755,17 +8845,17 @@ Are you really want to continue? 链接Objective-C程序 (-lobjc) - + Do not use standard system libraries (-nostdlib) 不使用标准库和系统启动文件(-nostdlib) - + Do not create a console window (-mwindows) 不产生控制台窗口(-mwindows) - + Strip executable (-s) 剥除附加信息(-s) @@ -8786,7 +8876,7 @@ Are you really want to continue? 仅预处理(-E) - + Use pipes instead of temporary files during compilation (-pipe) 编译时使用管道而不是临时文件(-pipe) @@ -8873,22 +8963,22 @@ Are you really want to continue? 下标"%1"越界 - + bytes 字节 - + KB KB - + MB MB - + GB GB @@ -9240,14 +9330,6 @@ Are you really want to continue? RegisterModel - - - - - - - - @@ -9257,14 +9339,22 @@ Are you really want to continue? - - - - - - - - + + + + + + + + + + + + + + + + 64-bit 64位 @@ -9273,22 +9363,22 @@ Are you really want to continue? 累加器 - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + General purpose 通用 @@ -9297,14 +9387,6 @@ Are you really want to continue? 指令 - - - - - - - - @@ -9314,10 +9396,7 @@ Are you really want to continue? - 32-bit - 32位 - - + @@ -9325,7 +9404,10 @@ Are you really want to continue? - + 32-bit + 32位 + + @@ -9335,10 +9417,7 @@ Are you really want to continue? - lower 16 bits of %1 - %1的低16位 - - + @@ -9346,7 +9425,10 @@ Are you really want to continue? - + lower 16 bits of %1 + %1的低16位 + + @@ -9355,24 +9437,32 @@ Are you really want to continue? - lower 8 bits of %1 - %1的低8位 - - + + + + + lower 8 bits of %1 + %1的低8位 + + + + + + 8 high bits of lower 16 bits of %1 %1的低16位数据中的高8位 - - - - - - + + + + + + 16-bit 16位 @@ -9385,14 +9475,6 @@ Are you really want to continue? 媒体 - - - - - - - - @@ -9400,144 +9482,7 @@ Are you really want to continue? - 128-bit - 128位 - - - - Floating-point control - 浮点运算控制 - - - - - Accumulator for operands and results data - 操作数和结果的累加器 - - - - - Pointer to data in the DS segment - 指向DS段中数据的指针 - - - - - Counter for string and loop operations - 字符串和循环操作计数器 - - - - - I/O pointer - I/O指针 - - - - - Source index for string operations; Pointer to data in the segment pointed to by the DS register - 字符串操作来源下标;指向DS段中数据的指针 - - - - - Destination index for string operations; Pointer to data (or destination) in the segment pointed to by the ES register - 字符串操作目的下标;指向ES段中数据(或目标)的指针 - - - - - Stack pointer (in the SS segment) - 栈指针(在SS段中) - - - - - Pointer to data on the stack (in the SS segment) - 指向(SS段中)栈内数据的指针 - - - - - Instruction pointer - 指令指针 - - - - - Flags - 标志 - - - - Code segment selector - 代码段选择器 - - - - Data segment selector - 数据段选择器 - - - - - - Extra data segment selector - 额外的数据段选择器 - - - - Stack segment selector - 栈段选择器 - - - - - - - - - - - Floating-point data - 浮点运算数据 - - - - Floating-point status - 浮点运算状态 - - - - Floating-point tag word - 浮点运算标签word - - - - Floating-point operation - 浮点运算操作 - - - - Floating-point last instruction segment - 浮点运算上次指令段 - - - - Floating-point last instruction offset - 浮点运算上次指令位移 - - - - Floating-point last operand segment - 浮点运算上次操作数段 - - - - Floating-point last operand offset - 浮点运算上次操作数位移 - - + @@ -9545,7 +9490,144 @@ Are you really want to continue? - + 128-bit + 128位 + + + + Floating-point control + 浮点运算控制 + + + + + Accumulator for operands and results data + 操作数和结果的累加器 + + + + + Pointer to data in the DS segment + 指向DS段中数据的指针 + + + + + Counter for string and loop operations + 字符串和循环操作计数器 + + + + + I/O pointer + I/O指针 + + + + + Source index for string operations; Pointer to data in the segment pointed to by the DS register + 字符串操作来源下标;指向DS段中数据的指针 + + + + + Destination index for string operations; Pointer to data (or destination) in the segment pointed to by the ES register + 字符串操作目的下标;指向ES段中数据(或目标)的指针 + + + + + Stack pointer (in the SS segment) + 栈指针(在SS段中) + + + + + Pointer to data on the stack (in the SS segment) + 指向(SS段中)栈内数据的指针 + + + + + Instruction pointer + 指令指针 + + + + + Flags + 标志 + + + + Code segment selector + 代码段选择器 + + + + Data segment selector + 数据段选择器 + + + + + + Extra data segment selector + 额外的数据段选择器 + + + + Stack segment selector + 栈段选择器 + + + + + + + + + + + Floating-point data + 浮点运算数据 + + + + Floating-point status + 浮点运算状态 + + + + Floating-point tag word + 浮点运算标签word + + + + Floating-point operation + 浮点运算操作 + + + + Floating-point last instruction segment + 浮点运算上次指令段 + + + + Floating-point last instruction offset + 浮点运算上次指令位移 + + + + Floating-point last operand segment + 浮点运算上次操作数段 + + + + Floating-point last operand offset + 浮点运算上次操作数位移 + + @@ -9553,21 +9635,29 @@ Are you really want to continue? + + + + + + + + 256-bit 256位 - + SSE status and control SSE状态和控制 - + Register 寄存器 - + Value @@ -10230,8 +10320,8 @@ Are you really want to continue? - - + + Compiler Set @@ -10239,7 +10329,7 @@ Are you really want to continue? - + Compiler @@ -10251,7 +10341,7 @@ Are you really want to continue? 自动链接 - + @@ -10327,15 +10417,15 @@ Are you really want to continue? 杂项 - - + + Program Runner 程序运行 - + Problem Set 试题集 @@ -10395,7 +10485,7 @@ Are you really want to continue? - + @@ -10875,14 +10965,14 @@ Are you really want to continue? JSON文件'%1':%2中存在错误:%3 - - + + Execute to evaluate 执行以求值 - - + + Not Valid 在当前作用域中无效 @@ -10891,17 +10981,17 @@ Are you really want to continue? 无法读取文件'%1'. - + Expression 表达式 - + Type 类型 - + Value diff --git a/RedPandaIDE/translations/RedPandaIDE_zh_TW.ts b/RedPandaIDE/translations/RedPandaIDE_zh_TW.ts index 5ee7dd8d..9fb34607 100644 --- a/RedPandaIDE/translations/RedPandaIDE_zh_TW.ts +++ b/RedPandaIDE/translations/RedPandaIDE_zh_TW.ts @@ -1785,6 +1785,10 @@ Form + + Keyword + + ExecutableRunner @@ -4920,6 +4924,74 @@ You should recompile after change the compiler set or it's settings. + + Move Cursor + + + + Page Up + + + + Page Down + + + + Goto Line Start + + + + Goto Line End + + + + Goto File Start + + + + Goto File End + + + + Page Up and Select + + + + Page Down and Select + + + + Goto Page Start + + + + Goto Page End + + + + Goto Page Start and Select + + + + Goto Page End and Select + + + + Goto Line Start and Select + + + + Goto Line End and Select + + + + Goto File Start and Select + + + + Goto File End and Select + + MemoryModel