- enhancement: redesign charset selection in the project options dialog's file widget
- fix: can't correctly load last open files / project with non-asii characters in path - fix: can't coorectly load last open project
This commit is contained in:
parent
3f310d81af
commit
fac8c10f0c
3
NEWS.md
3
NEWS.md
|
@ -7,6 +7,9 @@ Version 0.2.2
|
|||
- fix: can't correctly get system default encoding name when save file
|
||||
- fix: Tokenizer can't correctly handle array parameters
|
||||
- fix: debug actions enabled states not correct updated when processing debug mouse tooltips
|
||||
- enhancement: redesign charset selection in the project options dialog's file widget
|
||||
- fix: can't correctly load last open files / project with non-asii characters in path
|
||||
- fix: can't coorectly load last open project
|
||||
|
||||
Version 0.2.1
|
||||
- fix: crash when load last opens
|
||||
|
|
Binary file not shown.
|
@ -27,17 +27,17 @@
|
|||
<context>
|
||||
<name>BacktraceModel</name>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="1814"/>
|
||||
<location filename="debugger.cpp" line="1815"/>
|
||||
<source>Function</source>
|
||||
<translation>函数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="1816"/>
|
||||
<location filename="debugger.cpp" line="1817"/>
|
||||
<source>Filename</source>
|
||||
<translation>文件名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="1818"/>
|
||||
<location filename="debugger.cpp" line="1819"/>
|
||||
<source>Line</source>
|
||||
<translation>行</translation>
|
||||
</message>
|
||||
|
@ -45,17 +45,17 @@
|
|||
<context>
|
||||
<name>BreakpointModel</name>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="1683"/>
|
||||
<location filename="debugger.cpp" line="1684"/>
|
||||
<source>Filename</source>
|
||||
<translation>文件名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="1685"/>
|
||||
<location filename="debugger.cpp" line="1686"/>
|
||||
<source>Line</source>
|
||||
<translation>行</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="1687"/>
|
||||
<location filename="debugger.cpp" line="1688"/>
|
||||
<source>Condition</source>
|
||||
<translation>条件</translation>
|
||||
</message>
|
||||
|
@ -2304,7 +2304,7 @@ Are you really want to continue?</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="300"/>
|
||||
<location filename="mainwindow.cpp" line="2551"/>
|
||||
<location filename="mainwindow.cpp" line="2546"/>
|
||||
<source>Issues</source>
|
||||
<translation>编译器</translation>
|
||||
</message>
|
||||
|
@ -2506,10 +2506,10 @@ Are you really want to continue?</source>
|
|||
<location filename="mainwindow.ui" line="965"/>
|
||||
<location filename="mainwindow.ui" line="1110"/>
|
||||
<location filename="mainwindow.ui" line="1113"/>
|
||||
<location filename="mainwindow.cpp" line="1154"/>
|
||||
<location filename="mainwindow.cpp" line="1165"/>
|
||||
<location filename="mainwindow.cpp" line="2265"/>
|
||||
<location filename="mainwindow.cpp" line="2276"/>
|
||||
<location filename="mainwindow.cpp" line="1147"/>
|
||||
<location filename="mainwindow.cpp" line="1158"/>
|
||||
<location filename="mainwindow.cpp" line="2260"/>
|
||||
<location filename="mainwindow.cpp" line="2271"/>
|
||||
<source>Compile</source>
|
||||
<translation>编译</translation>
|
||||
</message>
|
||||
|
@ -2555,7 +2555,7 @@ Are you really want to continue?</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="1181"/>
|
||||
<location filename="mainwindow.cpp" line="1555"/>
|
||||
<location filename="mainwindow.cpp" line="1548"/>
|
||||
<source>Copy</source>
|
||||
<translation>复制</translation>
|
||||
</message>
|
||||
|
@ -2909,7 +2909,7 @@ Are you really want to continue?</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="1598"/>
|
||||
<location filename="mainwindow.cpp" line="3317"/>
|
||||
<location filename="mainwindow.cpp" line="3312"/>
|
||||
<source>Clear all breakpoints</source>
|
||||
<translation>删除所有断点</translation>
|
||||
</message>
|
||||
|
@ -3004,7 +3004,7 @@ Are you really want to continue?</source>
|
|||
<translation>在终端中打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1855"/>
|
||||
<location filename="mainwindow.cpp" line="1848"/>
|
||||
<source>File Encoding</source>
|
||||
<translation>文件编码</translation>
|
||||
</message>
|
||||
|
@ -3014,32 +3014,32 @@ Are you really want to continue?</source>
|
|||
<translation>文件历史</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="462"/>
|
||||
<location filename="mainwindow.cpp" line="464"/>
|
||||
<location filename="mainwindow.cpp" line="494"/>
|
||||
<location filename="mainwindow.cpp" line="496"/>
|
||||
<location filename="mainwindow.cpp" line="523"/>
|
||||
<location filename="mainwindow.cpp" line="525"/>
|
||||
<location filename="mainwindow.cpp" line="455"/>
|
||||
<location filename="mainwindow.cpp" line="457"/>
|
||||
<location filename="mainwindow.cpp" line="487"/>
|
||||
<location filename="mainwindow.cpp" line="489"/>
|
||||
<location filename="mainwindow.cpp" line="516"/>
|
||||
<location filename="mainwindow.cpp" line="518"/>
|
||||
<source>Debugging</source>
|
||||
<translation>正在调试</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="467"/>
|
||||
<location filename="mainwindow.cpp" line="469"/>
|
||||
<location filename="mainwindow.cpp" line="500"/>
|
||||
<location filename="mainwindow.cpp" line="502"/>
|
||||
<location filename="mainwindow.cpp" line="528"/>
|
||||
<location filename="mainwindow.cpp" line="530"/>
|
||||
<location filename="mainwindow.cpp" line="460"/>
|
||||
<location filename="mainwindow.cpp" line="462"/>
|
||||
<location filename="mainwindow.cpp" line="493"/>
|
||||
<location filename="mainwindow.cpp" line="495"/>
|
||||
<location filename="mainwindow.cpp" line="521"/>
|
||||
<location filename="mainwindow.cpp" line="523"/>
|
||||
<source>Running</source>
|
||||
<translation>正在运行</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="472"/>
|
||||
<location filename="mainwindow.cpp" line="474"/>
|
||||
<location filename="mainwindow.cpp" line="506"/>
|
||||
<location filename="mainwindow.cpp" line="508"/>
|
||||
<location filename="mainwindow.cpp" line="533"/>
|
||||
<location filename="mainwindow.cpp" line="535"/>
|
||||
<location filename="mainwindow.cpp" line="465"/>
|
||||
<location filename="mainwindow.cpp" line="467"/>
|
||||
<location filename="mainwindow.cpp" line="499"/>
|
||||
<location filename="mainwindow.cpp" line="501"/>
|
||||
<location filename="mainwindow.cpp" line="526"/>
|
||||
<location filename="mainwindow.cpp" line="528"/>
|
||||
<source>Compiling</source>
|
||||
<translation>正在编译</translation>
|
||||
</message>
|
||||
|
@ -3048,349 +3048,349 @@ Are you really want to continue?</source>
|
|||
<translation type="vanished">行:%1 列:%2 已选择:%3 总行数:%4 总长度:%5</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="667"/>
|
||||
<location filename="mainwindow.cpp" line="660"/>
|
||||
<source>Line:%1 Col:%2 Selected:%3 Lines:%4 Length:%5</source>
|
||||
<translation>行:%1 列:%2 已选择:%3 总行数:%4 总长度:%5</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="685"/>
|
||||
<location filename="mainwindow.cpp" line="678"/>
|
||||
<source>Read Only</source>
|
||||
<translation>只读</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="687"/>
|
||||
<location filename="mainwindow.cpp" line="680"/>
|
||||
<source>Insert</source>
|
||||
<translation>插入</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="689"/>
|
||||
<location filename="mainwindow.cpp" line="682"/>
|
||||
<source>Overwrite</source>
|
||||
<translation>覆写</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="752"/>
|
||||
<location filename="mainwindow.cpp" line="745"/>
|
||||
<source>Close project</source>
|
||||
<translation>关闭项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="753"/>
|
||||
<location filename="mainwindow.cpp" line="746"/>
|
||||
<source>Are you sure you want to close %1?</source>
|
||||
<translation>你确定要关闭'%1'吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="946"/>
|
||||
<location filename="mainwindow.cpp" line="961"/>
|
||||
<location filename="mainwindow.cpp" line="939"/>
|
||||
<location filename="mainwindow.cpp" line="954"/>
|
||||
<source>Confirm</source>
|
||||
<translation>确认</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="947"/>
|
||||
<location filename="mainwindow.cpp" line="955"/>
|
||||
<location filename="mainwindow.cpp" line="1155"/>
|
||||
<location filename="mainwindow.cpp" line="940"/>
|
||||
<location filename="mainwindow.cpp" line="948"/>
|
||||
<location filename="mainwindow.cpp" line="1148"/>
|
||||
<source>Source file is not compiled.</source>
|
||||
<translation>源文件尚未编译。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="948"/>
|
||||
<location filename="mainwindow.cpp" line="1155"/>
|
||||
<location filename="mainwindow.cpp" line="941"/>
|
||||
<location filename="mainwindow.cpp" line="1148"/>
|
||||
<source>Compile now?</source>
|
||||
<translation>现在编译?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="962"/>
|
||||
<location filename="mainwindow.cpp" line="1166"/>
|
||||
<location filename="mainwindow.cpp" line="955"/>
|
||||
<location filename="mainwindow.cpp" line="1159"/>
|
||||
<source>Source file is more recent than executable.</source>
|
||||
<translation>源文件比可执行程序新。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="963"/>
|
||||
<location filename="mainwindow.cpp" line="956"/>
|
||||
<source>Recompile now?</source>
|
||||
<translation>重新编译?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1024"/>
|
||||
<location filename="mainwindow.cpp" line="1017"/>
|
||||
<source>No compiler set</source>
|
||||
<translation>无编译器设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1025"/>
|
||||
<location filename="mainwindow.cpp" line="1018"/>
|
||||
<source>No compiler set is configured.</source>
|
||||
<translation>没有配置编译器设置。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1025"/>
|
||||
<location filename="mainwindow.cpp" line="1018"/>
|
||||
<source>Can't start debugging.</source>
|
||||
<translation>无法启动调试器</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1040"/>
|
||||
<location filename="mainwindow.cpp" line="1123"/>
|
||||
<location filename="mainwindow.cpp" line="1033"/>
|
||||
<location filename="mainwindow.cpp" line="1116"/>
|
||||
<source>Enable debugging</source>
|
||||
<translation>启用调试参数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1041"/>
|
||||
<location filename="mainwindow.cpp" line="1124"/>
|
||||
<location filename="mainwindow.cpp" line="1034"/>
|
||||
<location filename="mainwindow.cpp" line="1117"/>
|
||||
<source>You have not enabled debugging info (-g3) and/or stripped it from the executable (-s) in Compiler Options.<BR /><BR />Do you want to correct this now?</source>
|
||||
<translation>当前编译设置中未启用调试选项(-g3),或启用了信息剥除选项(-s)<br /><br/>是否纠正这一问题?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1060"/>
|
||||
<location filename="mainwindow.cpp" line="1053"/>
|
||||
<source>Project not built</source>
|
||||
<translation>项目尚未构建</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1061"/>
|
||||
<location filename="mainwindow.cpp" line="1054"/>
|
||||
<source>Project hasn't been built. Build it now?</source>
|
||||
<translation>项目尚未构建。是否构建?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1075"/>
|
||||
<location filename="mainwindow.cpp" line="1068"/>
|
||||
<source>Host applcation missing</source>
|
||||
<translation>宿主程序不存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1076"/>
|
||||
<location filename="mainwindow.cpp" line="1069"/>
|
||||
<source>DLL project needs a host application to run.</source>
|
||||
<translation>动态链接库(DLL)需要一个宿主程序来运行。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1078"/>
|
||||
<location filename="mainwindow.cpp" line="1071"/>
|
||||
<source>But it's missing.</source>
|
||||
<translation>但它不存在。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1083"/>
|
||||
<location filename="mainwindow.cpp" line="1076"/>
|
||||
<source>Host application not exists</source>
|
||||
<translation>宿主程序不存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1084"/>
|
||||
<location filename="mainwindow.cpp" line="1077"/>
|
||||
<source>Host application file '%1' doesn't exist.</source>
|
||||
<translation>宿主程序'%1'不存在。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1166"/>
|
||||
<location filename="mainwindow.cpp" line="1159"/>
|
||||
<source>Recompile?</source>
|
||||
<translation>重新编译?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1446"/>
|
||||
<location filename="mainwindow.cpp" line="1472"/>
|
||||
<location filename="mainwindow.cpp" line="1439"/>
|
||||
<location filename="mainwindow.cpp" line="1465"/>
|
||||
<source>Save last open info error</source>
|
||||
<translation>保存上次打开信息失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1447"/>
|
||||
<location filename="mainwindow.cpp" line="1440"/>
|
||||
<source>Can't remove old last open information file '%1'</source>
|
||||
<translation>无法删除旧上次打开信息文件'%1'</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1473"/>
|
||||
<location filename="mainwindow.cpp" line="1466"/>
|
||||
<source>Can't save last open info file '%1'</source>
|
||||
<translation>无法保存上次打开信息文件'%1'</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1488"/>
|
||||
<location filename="mainwindow.cpp" line="1481"/>
|
||||
<source>Load last open info error</source>
|
||||
<translation>载入上次打开信息失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1489"/>
|
||||
<location filename="mainwindow.cpp" line="1482"/>
|
||||
<source>Can't load last open info file '%1'</source>
|
||||
<translation>无法载入上次打开信息文件'%1'</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1568"/>
|
||||
<location filename="mainwindow.cpp" line="1561"/>
|
||||
<source>Copy all</source>
|
||||
<translation>全部复制</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1581"/>
|
||||
<location filename="mainwindow.cpp" line="1574"/>
|
||||
<source>Clear</source>
|
||||
<translation>清除</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1593"/>
|
||||
<location filename="mainwindow.cpp" line="1586"/>
|
||||
<source>Remove this search</source>
|
||||
<translation>清除这次搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1603"/>
|
||||
<location filename="mainwindow.cpp" line="1596"/>
|
||||
<source>Clear all searches</source>
|
||||
<translation>删除所有搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1615"/>
|
||||
<location filename="mainwindow.cpp" line="1608"/>
|
||||
<source>Breakpoint condition...</source>
|
||||
<translation>断点条件...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1627"/>
|
||||
<location filename="mainwindow.cpp" line="1620"/>
|
||||
<source>Break point condition</source>
|
||||
<translation>断点条件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1628"/>
|
||||
<location filename="mainwindow.cpp" line="1621"/>
|
||||
<source>Enter the condition of the breakpoint:</source>
|
||||
<translation>输入当前断点的生效条件:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1637"/>
|
||||
<location filename="mainwindow.cpp" line="1630"/>
|
||||
<source>Remove all breakpoints</source>
|
||||
<translation>清除所有断点</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1649"/>
|
||||
<location filename="mainwindow.cpp" line="1642"/>
|
||||
<source>Rename File</source>
|
||||
<translation>重命名文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1657"/>
|
||||
<location filename="mainwindow.cpp" line="1676"/>
|
||||
<location filename="mainwindow.cpp" line="1650"/>
|
||||
<location filename="mainwindow.cpp" line="1669"/>
|
||||
<source>Add Folder</source>
|
||||
<translation>添加文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1673"/>
|
||||
<location filename="mainwindow.cpp" line="1666"/>
|
||||
<source>New folder</source>
|
||||
<translation>新文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1677"/>
|
||||
<location filename="mainwindow.cpp" line="1670"/>
|
||||
<source>Folder name:</source>
|
||||
<translation>文件夹:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1691"/>
|
||||
<location filename="mainwindow.cpp" line="1684"/>
|
||||
<source>Rename Folder</source>
|
||||
<translation>重命名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1699"/>
|
||||
<location filename="mainwindow.cpp" line="1692"/>
|
||||
<source>Remove Folder</source>
|
||||
<translation>删除文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1724"/>
|
||||
<location filename="mainwindow.cpp" line="1717"/>
|
||||
<source>Sort By Type</source>
|
||||
<translation>按类型排序</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1729"/>
|
||||
<location filename="mainwindow.cpp" line="1722"/>
|
||||
<source>Sort alphabetically</source>
|
||||
<translation>按名称排序</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1734"/>
|
||||
<location filename="mainwindow.cpp" line="1727"/>
|
||||
<source>Show inherited members</source>
|
||||
<translation>显示继承的成员</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1739"/>
|
||||
<location filename="mainwindow.cpp" line="1732"/>
|
||||
<source>Goto declaration</source>
|
||||
<translation>跳转到声明处</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1742"/>
|
||||
<location filename="mainwindow.cpp" line="1735"/>
|
||||
<source>Goto definition</source>
|
||||
<translation>跳转到定义处</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1821"/>
|
||||
<location filename="mainwindow.cpp" line="1814"/>
|
||||
<source>Character sets</source>
|
||||
<translation>字符集</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1934"/>
|
||||
<location filename="mainwindow.cpp" line="1927"/>
|
||||
<source>%1 files autosaved</source>
|
||||
<translation>已自动保存%1个文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2185"/>
|
||||
<location filename="mainwindow.cpp" line="2180"/>
|
||||
<source>Save project</source>
|
||||
<translation>保存项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2186"/>
|
||||
<location filename="mainwindow.cpp" line="2181"/>
|
||||
<source>The project '%1' has modifications.</source>
|
||||
<translation>项目'%1'有改动。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2188"/>
|
||||
<location filename="mainwindow.cpp" line="2183"/>
|
||||
<source>Do you want to save it?</source>
|
||||
<translation>需要保存吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3318"/>
|
||||
<location filename="mainwindow.cpp" line="3313"/>
|
||||
<source>Do you really want to clear all breakpoints in this file?</source>
|
||||
<translation>您真的要清除该文件的所有断点吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3497"/>
|
||||
<location filename="mainwindow.cpp" line="3492"/>
|
||||
<source>New project</source>
|
||||
<translation>新建项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3498"/>
|
||||
<location filename="mainwindow.cpp" line="3493"/>
|
||||
<source>Close %1 and start new project?</source>
|
||||
<translation>关闭'%1'以打开新项目?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3510"/>
|
||||
<location filename="mainwindow.cpp" line="3505"/>
|
||||
<source>Folder not exist</source>
|
||||
<translation>文件夹不存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3511"/>
|
||||
<location filename="mainwindow.cpp" line="3506"/>
|
||||
<source>Folder '%1' doesn't exist. Create it now?</source>
|
||||
<translation>文件夹'%1'不存在。是否创建?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3518"/>
|
||||
<location filename="mainwindow.cpp" line="3513"/>
|
||||
<source>Can't create folder</source>
|
||||
<translation>无法创建文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3519"/>
|
||||
<location filename="mainwindow.cpp" line="3514"/>
|
||||
<source>Failed to create folder '%1'.</source>
|
||||
<translation>创建文件夹'%1'失败。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3534"/>
|
||||
<location filename="mainwindow.cpp" line="3529"/>
|
||||
<source>Save new project as</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3536"/>
|
||||
<location filename="mainwindow.cpp" line="3531"/>
|
||||
<source>Red panda Dev-C++ project file (*.dev)</source>
|
||||
<translation>小熊猫Dev-C++项目文件 (*.dev)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3547"/>
|
||||
<location filename="mainwindow.cpp" line="3542"/>
|
||||
<source>New project fail</source>
|
||||
<translation>新建项目失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3548"/>
|
||||
<location filename="mainwindow.cpp" line="3543"/>
|
||||
<source>Can't assign project template</source>
|
||||
<translation>无法使用模板创建项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3605"/>
|
||||
<location filename="mainwindow.cpp" line="3600"/>
|
||||
<source>Add to project</source>
|
||||
<translation>添加到项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="736"/>
|
||||
<location filename="mainwindow.cpp" line="1846"/>
|
||||
<location filename="mainwindow.cpp" line="2272"/>
|
||||
<location filename="mainwindow.cpp" line="2337"/>
|
||||
<location filename="mainwindow.cpp" line="2357"/>
|
||||
<location filename="mainwindow.cpp" line="2459"/>
|
||||
<location filename="mainwindow.cpp" line="2471"/>
|
||||
<location filename="mainwindow.cpp" line="2781"/>
|
||||
<location filename="mainwindow.cpp" line="2793"/>
|
||||
<location filename="mainwindow.cpp" line="729"/>
|
||||
<location filename="mainwindow.cpp" line="1839"/>
|
||||
<location filename="mainwindow.cpp" line="2267"/>
|
||||
<location filename="mainwindow.cpp" line="2332"/>
|
||||
<location filename="mainwindow.cpp" line="2352"/>
|
||||
<location filename="mainwindow.cpp" line="2454"/>
|
||||
<location filename="mainwindow.cpp" line="2466"/>
|
||||
<location filename="mainwindow.cpp" line="2776"/>
|
||||
<location filename="mainwindow.cpp" line="2788"/>
|
||||
<source>Error</source>
|
||||
<translation>错误</translation>
|
||||
</message>
|
||||
|
@ -3400,75 +3400,75 @@ Are you really want to continue?</source>
|
|||
<translation>项目历史</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2266"/>
|
||||
<location filename="mainwindow.cpp" line="2261"/>
|
||||
<source>File '%1' was changed.</source>
|
||||
<translation>磁盘文件'%1'已被修改。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2266"/>
|
||||
<location filename="mainwindow.cpp" line="2261"/>
|
||||
<source>Reload its content from disk?</source>
|
||||
<translation>是否重新读取它的内容?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2277"/>
|
||||
<location filename="mainwindow.cpp" line="2272"/>
|
||||
<source>File '%1' was removed.</source>
|
||||
<translation>磁盘文件'%1'已被删除。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2277"/>
|
||||
<location filename="mainwindow.cpp" line="2272"/>
|
||||
<source>Keep it open?</source>
|
||||
<translation>是否保持它在小熊猫C++中打开的编辑窗口?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2353"/>
|
||||
<location filename="mainwindow.cpp" line="2348"/>
|
||||
<source>Open</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2629"/>
|
||||
<location filename="mainwindow.cpp" line="2624"/>
|
||||
<source>Compile Failed</source>
|
||||
<translation>编译失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2634"/>
|
||||
<location filename="mainwindow.cpp" line="2629"/>
|
||||
<source>Run Failed</source>
|
||||
<translation>运行失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2810"/>
|
||||
<location filename="mainwindow.cpp" line="2824"/>
|
||||
<location filename="mainwindow.cpp" line="2805"/>
|
||||
<location filename="mainwindow.cpp" line="2819"/>
|
||||
<source>Confirm Convertion</source>
|
||||
<translation>确认转换</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2811"/>
|
||||
<location filename="mainwindow.cpp" line="2825"/>
|
||||
<location filename="mainwindow.cpp" line="2806"/>
|
||||
<location filename="mainwindow.cpp" line="2820"/>
|
||||
<source>The editing file will be saved using %1 encoding. <br />This operation can't be reverted. <br />Are you sure to continue?</source>
|
||||
<translation>当前编辑器中的文件将会使用%1编码保存。<br />这项操作无法被撤回。<br />你确定要继续吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2991"/>
|
||||
<location filename="mainwindow.cpp" line="2986"/>
|
||||
<source>New Watch Expression</source>
|
||||
<translation>新监视表达式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2992"/>
|
||||
<location filename="mainwindow.cpp" line="2987"/>
|
||||
<source>Enter Watch Expression (it is recommended to use 'this->' for class members):</source>
|
||||
<translation>输入监视表达式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3038"/>
|
||||
<location filename="mainwindow.cpp" line="3033"/>
|
||||
<source>Parsing file %1 of %2: "%3"</source>
|
||||
<translation>(%1/%2)正在解析文件"%3"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3060"/>
|
||||
<location filename="mainwindow.cpp" line="3066"/>
|
||||
<location filename="mainwindow.cpp" line="3055"/>
|
||||
<location filename="mainwindow.cpp" line="3061"/>
|
||||
<source>Done parsing %1 files in %2 seconds</source>
|
||||
<translation>完成%1个文件的解析,用时%2秒</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3063"/>
|
||||
<location filename="mainwindow.cpp" line="3058"/>
|
||||
<source>(%1 files per second)</source>
|
||||
<translation>(每秒%1个文件)</translation>
|
||||
</message>
|
||||
|
@ -3813,10 +3813,25 @@ Are you really want to continue?</source>
|
|||
<translation>编码</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="settingsdialog/projectfileswidget.ui" line="157"/>
|
||||
<location filename="settingsdialog/projectfileswidget.ui" line="160"/>
|
||||
<source>Override build command:</source>
|
||||
<translation>自定义构建命令</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="settingsdialog/projectfileswidget.cpp" line="213"/>
|
||||
<source>Auto detect</source>
|
||||
<translation>自动检测</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="settingsdialog/projectfileswidget.cpp" line="214"/>
|
||||
<source>ANSI(System default)</source>
|
||||
<translation>ANSI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="settingsdialog/projectfileswidget.cpp" line="215"/>
|
||||
<source>UTF-8</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectGeneralWidget</name>
|
||||
|
@ -4845,17 +4860,17 @@ Are you really want to continue?</source>
|
|||
<context>
|
||||
<name>RegisterModel</name>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="2120"/>
|
||||
<location filename="debugger.cpp" line="2121"/>
|
||||
<source>Register</source>
|
||||
<translation>寄存器</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="2122"/>
|
||||
<location filename="debugger.cpp" line="2123"/>
|
||||
<source>Value(Hex)</source>
|
||||
<translation>值(HEX)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="2124"/>
|
||||
<location filename="debugger.cpp" line="2125"/>
|
||||
<source>Value(Dec)</source>
|
||||
<translation>值(DEC)</translation>
|
||||
</message>
|
||||
|
@ -5430,12 +5445,12 @@ Are you really want to continue?</source>
|
|||
<context>
|
||||
<name>WatchModel</name>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="2066"/>
|
||||
<location filename="debugger.cpp" line="2067"/>
|
||||
<source>Expression</source>
|
||||
<translation>表达式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="debugger.cpp" line="2068"/>
|
||||
<location filename="debugger.cpp" line="2069"/>
|
||||
<source>Value</source>
|
||||
<translation>值</translation>
|
||||
</message>
|
||||
|
|
|
@ -1488,7 +1488,7 @@ void MainWindow::loadLastOpens()
|
|||
int count = lastOpenIni.GetLongValue("LastOpens","Count",0);
|
||||
for (int i=0;i<count;i++) {
|
||||
QByteArray sectionName = QString("Editor_%1").arg(i).toLocal8Bit();
|
||||
QString editorFilename = lastOpenIni.GetValue(sectionName,"FileName","");
|
||||
QString editorFilename = QString::fromLocal8Bit(lastOpenIni.GetValue(sectionName,"FileName",""));
|
||||
if (!fileExists(editorFilename))
|
||||
continue;
|
||||
bool onLeft = lastOpenIni.GetBoolValue(sectionName,"OnLeft",true);
|
||||
|
@ -1513,9 +1513,9 @@ void MainWindow::loadLastOpens()
|
|||
focusedEditor = editor;
|
||||
pSettings->history().removeFile(editorFilename);
|
||||
}
|
||||
QString projectFilename = lastOpenIni.GetValue("LastOpens", "Project","");
|
||||
QString projectFilename = QString::fromLocal8Bit((lastOpenIni.GetValue("LastOpens", "Project","")));
|
||||
if (fileExists(projectFilename)) {
|
||||
openProject(filename);
|
||||
openProject(projectFilename);
|
||||
} else {
|
||||
updateEditorActions();
|
||||
updateForEncodingInfo();
|
||||
|
@ -2118,7 +2118,6 @@ void MainWindow::onEditorTabContextMenu(const QPoint &pos)
|
|||
|
||||
void MainWindow::disableDebugActions()
|
||||
{
|
||||
qDebug()<<"disabled";
|
||||
ui->actionStep_Into->setEnabled(false);
|
||||
ui->actionStep_Over->setEnabled(false);
|
||||
ui->actionStep_Out->setEnabled(false);
|
||||
|
@ -2129,7 +2128,6 @@ void MainWindow::disableDebugActions()
|
|||
|
||||
void MainWindow::enableDebugActions()
|
||||
{
|
||||
qDebug()<<"enabled";
|
||||
ui->actionStep_Into->setEnabled(true);
|
||||
ui->actionStep_Over->setEnabled(true);
|
||||
ui->actionStep_Out->setEnabled(true);
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
|
||||
CharsetInfoManager* pCharsetInfoManager;
|
||||
|
||||
static void initmCodePages(){
|
||||
}
|
||||
|
||||
QByteArray CharsetInfoManager::getDefaultSystemEncoding()
|
||||
{
|
||||
DWORD acp = GetACP();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "ui_projectfileswidget.h"
|
||||
#include "../mainwindow.h"
|
||||
#include "../systemconsts.h"
|
||||
#include "../platform.h"
|
||||
|
||||
ProjectFilesWidget::ProjectFilesWidget(const QString &name, const QString &group, QWidget *parent) :
|
||||
SettingsWidget(name,group,parent),
|
||||
|
@ -177,10 +178,24 @@ void ProjectFilesWidget::on_txtBuildCommand_textChanged()
|
|||
|
||||
void ProjectFilesWidget::on_cbEncoding_currentTextChanged(const QString &)
|
||||
{
|
||||
PProjectUnit unit = currentUnit();
|
||||
if(!unit)
|
||||
return;
|
||||
unit->setEncoding(ui->cbEncoding->currentText().toLocal8Bit());
|
||||
QString userData = ui->cbEncoding->currentData().toString();
|
||||
if (userData == ENCODING_AUTO_DETECT
|
||||
|| userData == ENCODING_SYSTEM_DEFAULT
|
||||
|| userData == ENCODING_UTF8) {
|
||||
PProjectUnit unit = currentUnit();
|
||||
if(!unit)
|
||||
return;
|
||||
unit->setEncoding(userData.toLocal8Bit());
|
||||
ui->cbEncodingDetail->setVisible(false);
|
||||
ui->cbEncodingDetail->clear();
|
||||
} else {
|
||||
ui->cbEncodingDetail->setVisible(true);
|
||||
ui->cbEncodingDetail->clear();
|
||||
QList<PCharsetInfo> infos = pCharsetInfoManager->findCharsetsByLanguageName(userData);
|
||||
foreach (const PCharsetInfo& info, infos) {
|
||||
ui->cbEncodingDetail->addItem(info->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -193,8 +208,25 @@ void ProjectFilesWidget::init()
|
|||
{
|
||||
ui->spinPriority->setMinimum(0);
|
||||
ui->spinPriority->setMaximum(9999);
|
||||
ui->cbEncodingDetail->setVisible(false);
|
||||
ui->cbEncoding->clear();
|
||||
ui->cbEncoding->addItems(pSystemConsts->codecNames());
|
||||
ui->cbEncoding->addItem(tr("Auto detect"),ENCODING_AUTO_DETECT);
|
||||
ui->cbEncoding->addItem(tr("ANSI"),ENCODING_SYSTEM_DEFAULT);
|
||||
ui->cbEncoding->addItem(tr("UTF-8"),ENCODING_UTF8);
|
||||
foreach (const QString& langName, pCharsetInfoManager->languageNames()) {
|
||||
ui->cbEncoding->addItem(langName,langName);
|
||||
}
|
||||
SettingsWidget::init();
|
||||
}
|
||||
|
||||
|
||||
void ProjectFilesWidget::on_cbEncodingDetail_currentTextChanged(const QString &arg1)
|
||||
{
|
||||
PProjectUnit unit = currentUnit();
|
||||
if(!unit)
|
||||
return;
|
||||
unit->setEncoding(ui->cbEncodingDetail->currentText().toLocal8Bit());
|
||||
ui->cbEncodingDetail->setVisible(false);
|
||||
ui->cbEncodingDetail->clear();
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@ private slots:
|
|||
void on_treeProject_clicked(const QModelIndex &index);
|
||||
|
||||
// SettingsWidget interface
|
||||
void on_cbEncodingDetail_currentTextChanged(const QString &arg1);
|
||||
|
||||
public:
|
||||
void init() override;
|
||||
};
|
||||
|
|
|
@ -135,6 +135,9 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbEncodingDetail"/>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
|
|
Loading…
Reference in New Issue