- fix: when press shift, completion popu window will hide

- enhancement: options in debugger setting widget, to skip system/project/custom header&project files when step into
This commit is contained in:
royqh1979@gmail.com 2021-09-28 14:18:51 +08:00
parent 60759cef9b
commit 7c68fc4f75
10 changed files with 323 additions and 210 deletions

View File

@ -1,5 +1,7 @@
Version 0.2.2
- enhancement: support C++ using type alias;
- fix: when press shift, completion popu window will hide
- enhancement: options in debugger setting widget, to skip system/project/custom header&project files when step into
Version 0.2.1
- fix: crash when load last opens

Binary file not shown.

View File

@ -487,31 +487,46 @@ Are you really want to continue?</source>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="20"/>
<source>Skip system header and library files when step into</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="27"/>
<source>Skip project header and library files when step into</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="34"/>
<source>Skip custom header and library files when step into</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="41"/>
<source>Debug Console</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="53"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="74"/>
<source>Font:</source>
<translation>:</translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="63"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="84"/>
<source>Show only monospaced fonts</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="101"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="122"/>
<source>Size:</source>
<translation>:</translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="127"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="148"/>
<source>Show debug logs in the debug console</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="134"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="155"/>
<source>Show full gdb annotations</source>
<translation>gdb输出注解</translation>
</message>
@ -520,27 +535,27 @@ Are you really want to continue?</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="144"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="165"/>
<source>CPU Window</source>
<translation>CPU信息窗口</translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="165"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="186"/>
<source>Disassembly Coding Style:</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="196"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="217"/>
<source>Intel</source>
<translation>Intel</translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="206"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="227"/>
<source>AT&amp;&amp;T</source>
<translation>AT&amp;&amp;T</translation>
</message>
<message>
<location filename="settingsdialog/debuggeneralwidget.ui" line="222"/>
<location filename="settingsdialog/debuggeneralwidget.ui" line="243"/>
<source>Show disassembly code in blend mode</source>
<translation></translation>
</message>
@ -615,71 +630,71 @@ Are you really want to continue?</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="editor.cpp" line="205"/>
<location filename="editor.cpp" line="219"/>
<location filename="editor.cpp" line="287"/>
<location filename="editor.cpp" line="899"/>
<location filename="editor.cpp" line="904"/>
<location filename="editor.cpp" line="922"/>
<location filename="editor.cpp" line="927"/>
<location filename="editor.cpp" line="203"/>
<location filename="editor.cpp" line="217"/>
<location filename="editor.cpp" line="285"/>
<location filename="editor.cpp" line="897"/>
<location filename="editor.cpp" line="902"/>
<location filename="editor.cpp" line="920"/>
<location filename="editor.cpp" line="925"/>
<source>Error</source>
<translation></translation>
</message>
<message>
<location filename="editor.cpp" line="206"/>
<location filename="editor.cpp" line="204"/>
<source>File %1 is not writable!</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="editor.cpp" line="241"/>
<location filename="editor.cpp" line="239"/>
<source>Save As</source>
<translation></translation>
</message>
<message>
<location filename="editor.cpp" line="900"/>
<location filename="editor.cpp" line="898"/>
<source>The text to be copied exceeds count limit!</source>
<translation></translation>
</message>
<message>
<location filename="editor.cpp" line="905"/>
<location filename="editor.cpp" line="903"/>
<source>The text to be copied exceeds character limit!</source>
<translation></translation>
</message>
<message>
<location filename="editor.cpp" line="923"/>
<location filename="editor.cpp" line="921"/>
<source>The text to be cut exceeds count limit!</source>
<translation></translation>
</message>
<message>
<location filename="editor.cpp" line="928"/>
<location filename="editor.cpp" line="926"/>
<source>The text to be cut exceeds character limit!</source>
<translation></translation>
</message>
<message>
<location filename="editor.cpp" line="2156"/>
<location filename="editor.cpp" line="2193"/>
<location filename="editor.cpp" line="2244"/>
<location filename="editor.cpp" line="2161"/>
<location filename="editor.cpp" line="2198"/>
<location filename="editor.cpp" line="2249"/>
<source>Ctrl+click for more info</source>
<translation>Ctrl+</translation>
</message>
<message>
<location filename="editor.cpp" line="2469"/>
<location filename="editor.cpp" line="2499"/>
<location filename="editor.cpp" line="2474"/>
<location filename="editor.cpp" line="2504"/>
<source>Symbol &apos;%1&apos; not found!</source>
<translation>&apos;%1&apos;!</translation>
</message>
<message>
<location filename="editor.cpp" line="2865"/>
<location filename="editor.cpp" line="2872"/>
<source>Break point condition</source>
<translation></translation>
</message>
<message>
<location filename="editor.cpp" line="2866"/>
<location filename="editor.cpp" line="2873"/>
<source>Enter the condition of the breakpoint:</source>
<translation>:</translation>
</message>
<message>
<location filename="editor.cpp" line="3039"/>
<location filename="editor.cpp" line="3046"/>
<source>Readonly</source>
<translation></translation>
</message>
@ -2175,7 +2190,7 @@ Are you really want to continue?</source>
</message>
<message>
<location filename="mainwindow.ui" line="300"/>
<location filename="mainwindow.cpp" line="2396"/>
<location filename="mainwindow.cpp" line="2500"/>
<source>Issues</source>
<translation></translation>
</message>
@ -2377,10 +2392,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="1161"/>
<location filename="mainwindow.cpp" line="1172"/>
<location filename="mainwindow.cpp" line="2124"/>
<location filename="mainwindow.cpp" line="2135"/>
<location filename="mainwindow.cpp" line="1157"/>
<location filename="mainwindow.cpp" line="1168"/>
<location filename="mainwindow.cpp" line="2214"/>
<location filename="mainwindow.cpp" line="2225"/>
<source>Compile</source>
<translation></translation>
</message>
@ -2426,7 +2441,7 @@ Are you really want to continue?</source>
</message>
<message>
<location filename="mainwindow.ui" line="1181"/>
<location filename="mainwindow.cpp" line="1468"/>
<location filename="mainwindow.cpp" line="1558"/>
<source>Copy</source>
<translation></translation>
</message>
@ -2780,7 +2795,7 @@ Are you really want to continue?</source>
</message>
<message>
<location filename="mainwindow.ui" line="1598"/>
<location filename="mainwindow.cpp" line="3179"/>
<location filename="mainwindow.cpp" line="3266"/>
<source>Clear all breakpoints</source>
<translation></translation>
</message>
@ -2885,32 +2900,32 @@ Are you really want to continue?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="463"/>
<location filename="mainwindow.cpp" line="465"/>
<location filename="mainwindow.cpp" line="495"/>
<location filename="mainwindow.cpp" line="467"/>
<location filename="mainwindow.cpp" line="497"/>
<location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="499"/>
<location filename="mainwindow.cpp" line="526"/>
<location filename="mainwindow.cpp" line="528"/>
<source>Debugging</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="468"/>
<location filename="mainwindow.cpp" line="470"/>
<location filename="mainwindow.cpp" line="501"/>
<location filename="mainwindow.cpp" line="472"/>
<location filename="mainwindow.cpp" line="503"/>
<location filename="mainwindow.cpp" line="529"/>
<location filename="mainwindow.cpp" line="505"/>
<location filename="mainwindow.cpp" line="531"/>
<location filename="mainwindow.cpp" line="533"/>
<source>Running</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="473"/>
<location filename="mainwindow.cpp" line="475"/>
<location filename="mainwindow.cpp" line="507"/>
<location filename="mainwindow.cpp" line="477"/>
<location filename="mainwindow.cpp" line="509"/>
<location filename="mainwindow.cpp" line="534"/>
<location filename="mainwindow.cpp" line="511"/>
<location filename="mainwindow.cpp" line="536"/>
<location filename="mainwindow.cpp" line="538"/>
<source>Compiling</source>
<translation></translation>
</message>
@ -2919,317 +2934,343 @@ Are you really want to continue?</source>
<translation type="vanished">:%1 :%2 :%3 :%4 :%5</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="668"/>
<location filename="mainwindow.cpp" line="670"/>
<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="686"/>
<location filename="mainwindow.cpp" line="688"/>
<source>Read Only</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="688"/>
<location filename="mainwindow.cpp" line="690"/>
<source>Insert</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="690"/>
<location filename="mainwindow.cpp" line="692"/>
<source>Overwrite</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="753"/>
<location filename="mainwindow.cpp" line="755"/>
<source>Close project</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="754"/>
<location filename="mainwindow.cpp" line="756"/>
<source>Are you sure you want to close %1?</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="947"/>
<location filename="mainwindow.cpp" line="962"/>
<location filename="mainwindow.cpp" line="949"/>
<location filename="mainwindow.cpp" line="964"/>
<source>Confirm</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="948"/>
<location filename="mainwindow.cpp" line="956"/>
<location filename="mainwindow.cpp" line="1162"/>
<location filename="mainwindow.cpp" line="950"/>
<location filename="mainwindow.cpp" line="958"/>
<location filename="mainwindow.cpp" line="1158"/>
<source>Source file is not compiled.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="949"/>
<location filename="mainwindow.cpp" line="1162"/>
<location filename="mainwindow.cpp" line="951"/>
<location filename="mainwindow.cpp" line="1158"/>
<source>Compile now?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="963"/>
<location filename="mainwindow.cpp" line="1173"/>
<location filename="mainwindow.cpp" line="965"/>
<location filename="mainwindow.cpp" line="1169"/>
<source>Source file is more recent than executable.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="964"/>
<location filename="mainwindow.cpp" line="966"/>
<source>Recompile now?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1025"/>
<location filename="mainwindow.cpp" line="1027"/>
<source>No compiler set</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1026"/>
<location filename="mainwindow.cpp" line="1028"/>
<source>No compiler set is configured.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1026"/>
<location filename="mainwindow.cpp" line="1028"/>
<source>Can&apos;t start debugging.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1041"/>
<location filename="mainwindow.cpp" line="1130"/>
<location filename="mainwindow.cpp" line="1043"/>
<location filename="mainwindow.cpp" line="1126"/>
<source>Enable debugging</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1131"/>
<location filename="mainwindow.cpp" line="1044"/>
<location filename="mainwindow.cpp" line="1127"/>
<source>You have not enabled debugging info (-g3) and/or stripped it from the executable (-s) in Compiler Options.&lt;BR /&gt;&lt;BR /&gt;Do you want to correct this now?</source>
<translation>(-g3)(-s)&lt;br /&gt;&lt;br/&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1061"/>
<location filename="mainwindow.cpp" line="1063"/>
<source>Project not built</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1062"/>
<location filename="mainwindow.cpp" line="1064"/>
<source>Project hasn&apos;t been built. Build it now?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1076"/>
<location filename="mainwindow.cpp" line="1078"/>
<source>Host applcation missing</source>
<translation>宿</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1077"/>
<location filename="mainwindow.cpp" line="1079"/>
<source>DLL project needs a host application to run.</source>
<translation>DLL宿</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1079"/>
<location filename="mainwindow.cpp" line="1081"/>
<source>But it&apos;s missing.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1084"/>
<location filename="mainwindow.cpp" line="1086"/>
<source>Host application not exists</source>
<translation>宿</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1085"/>
<location filename="mainwindow.cpp" line="1087"/>
<source>Host application file &apos;%1&apos; doesn&apos;t exist.</source>
<translation>宿&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1173"/>
<location filename="mainwindow.cpp" line="1169"/>
<source>Recompile?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1481"/>
<location filename="mainwindow.cpp" line="1449"/>
<location filename="mainwindow.cpp" line="1475"/>
<source>Save last open info error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1450"/>
<source>Can&apos;t remove old last open information file &apos;%1&apos;</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1476"/>
<source>Can&apos;t save last open info file &apos;%1&apos;</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1491"/>
<source>Load last open info error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1492"/>
<source>Can&apos;t load last open info file &apos;%1&apos;</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1571"/>
<source>Copy all</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1494"/>
<location filename="mainwindow.cpp" line="1584"/>
<source>Clear</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1506"/>
<location filename="mainwindow.cpp" line="1596"/>
<source>Remove this search</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1516"/>
<location filename="mainwindow.cpp" line="1606"/>
<source>Clear all searches</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1528"/>
<location filename="mainwindow.cpp" line="1618"/>
<source>Breakpoint condition...</source>
<translation>...</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1540"/>
<location filename="mainwindow.cpp" line="1630"/>
<source>Break point condition</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1541"/>
<location filename="mainwindow.cpp" line="1631"/>
<source>Enter the condition of the breakpoint:</source>
<translation>:</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1550"/>
<location filename="mainwindow.cpp" line="1640"/>
<source>Remove all breakpoints</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1562"/>
<location filename="mainwindow.cpp" line="1652"/>
<source>Rename File</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1570"/>
<location filename="mainwindow.cpp" line="1589"/>
<location filename="mainwindow.cpp" line="1660"/>
<location filename="mainwindow.cpp" line="1679"/>
<source>Add Folder</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1586"/>
<location filename="mainwindow.cpp" line="1676"/>
<source>New folder</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1590"/>
<location filename="mainwindow.cpp" line="1680"/>
<source>Folder name:</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1604"/>
<location filename="mainwindow.cpp" line="1694"/>
<source>Rename Folder</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1612"/>
<location filename="mainwindow.cpp" line="1702"/>
<source>Remove Folder</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1637"/>
<location filename="mainwindow.cpp" line="1727"/>
<source>Sort By Type</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1642"/>
<location filename="mainwindow.cpp" line="1732"/>
<source>Sort alphabetically</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1647"/>
<location filename="mainwindow.cpp" line="1737"/>
<source>Show inherited members</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1652"/>
<location filename="mainwindow.cpp" line="1742"/>
<source>Goto declaration</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1655"/>
<location filename="mainwindow.cpp" line="1745"/>
<source>Goto definition</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1793"/>
<location filename="mainwindow.cpp" line="1883"/>
<source>%1 files autosaved</source>
<translation>%1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2044"/>
<location filename="mainwindow.cpp" line="2134"/>
<source>Save project</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2045"/>
<location filename="mainwindow.cpp" line="2135"/>
<source>The project &apos;%1&apos; has modifications.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2047"/>
<location filename="mainwindow.cpp" line="2137"/>
<source>Do you want to save it?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3180"/>
<location filename="mainwindow.cpp" line="3267"/>
<source>Do you really want to clear all breakpoints in this file?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3359"/>
<location filename="mainwindow.cpp" line="3446"/>
<source>New project</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3360"/>
<location filename="mainwindow.cpp" line="3447"/>
<source>Close %1 and start new project?</source>
<translation>&apos;%1&apos;?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3372"/>
<location filename="mainwindow.cpp" line="3459"/>
<source>Folder not exist</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3373"/>
<location filename="mainwindow.cpp" line="3460"/>
<source>Folder &apos;%1&apos; doesn&apos;t exist. Create it now?</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3380"/>
<location filename="mainwindow.cpp" line="3467"/>
<source>Can&apos;t create folder</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3381"/>
<location filename="mainwindow.cpp" line="3468"/>
<source>Failed to create folder &apos;%1&apos;.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3396"/>
<location filename="mainwindow.cpp" line="3483"/>
<source>Save new project as</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3398"/>
<location filename="mainwindow.cpp" line="3485"/>
<source>Red panda Dev-C++ project file (*.dev)</source>
<translation>Dev-C++ (*.dev)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3409"/>
<location filename="mainwindow.cpp" line="3496"/>
<source>New project fail</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3410"/>
<location filename="mainwindow.cpp" line="3497"/>
<source>Can&apos;t assign project template</source>
<translation>使</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3467"/>
<location filename="mainwindow.cpp" line="3554"/>
<source>Add to project</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="737"/>
<location filename="mainwindow.cpp" line="2131"/>
<location filename="mainwindow.cpp" line="2196"/>
<location filename="mainwindow.cpp" line="2216"/>
<location filename="mainwindow.cpp" line="2304"/>
<location filename="mainwindow.cpp" line="2316"/>
<location filename="mainwindow.cpp" line="2643"/>
<location filename="mainwindow.cpp" line="2655"/>
<location filename="mainwindow.cpp" line="739"/>
<location filename="mainwindow.cpp" line="2221"/>
<location filename="mainwindow.cpp" line="2286"/>
<location filename="mainwindow.cpp" line="2306"/>
<location filename="mainwindow.cpp" line="2408"/>
<location filename="mainwindow.cpp" line="2420"/>
<location filename="mainwindow.cpp" line="2730"/>
<location filename="mainwindow.cpp" line="2742"/>
<source>Error</source>
<translation></translation>
</message>
@ -3239,75 +3280,75 @@ Are you really want to continue?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2125"/>
<location filename="mainwindow.cpp" line="2215"/>
<source>File &apos;%1&apos; was changed.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2125"/>
<location filename="mainwindow.cpp" line="2215"/>
<source>Reload its content from disk?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2136"/>
<location filename="mainwindow.cpp" line="2226"/>
<source>File &apos;%1&apos; was removed.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2136"/>
<location filename="mainwindow.cpp" line="2226"/>
<source>Keep it open?</source>
<translation>C++</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2212"/>
<location filename="mainwindow.cpp" line="2302"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2491"/>
<location filename="mainwindow.cpp" line="2578"/>
<source>Compile Failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2496"/>
<location filename="mainwindow.cpp" line="2583"/>
<source>Run Failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2672"/>
<location filename="mainwindow.cpp" line="2686"/>
<location filename="mainwindow.cpp" line="2759"/>
<location filename="mainwindow.cpp" line="2773"/>
<source>Confirm Convertion</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2673"/>
<location filename="mainwindow.cpp" line="2687"/>
<location filename="mainwindow.cpp" line="2760"/>
<location filename="mainwindow.cpp" line="2774"/>
<source>The editing file will be saved using %1 encoding. &lt;br /&gt;This operation can&apos;t be reverted. &lt;br /&gt;Are you sure to continue?</source>
<translation>使%1&lt;br /&gt;&lt;br /&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2853"/>
<location filename="mainwindow.cpp" line="2940"/>
<source>New Watch Expression</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2854"/>
<location filename="mainwindow.cpp" line="2941"/>
<source>Enter Watch Expression (it is recommended to use &apos;this-&gt;&apos; for class members):</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2900"/>
<location filename="mainwindow.cpp" line="2987"/>
<source>Parsing file %1 of %2: &quot;%3&quot;</source>
<translation>%1/%2&quot;%3&quot;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2922"/>
<location filename="mainwindow.cpp" line="2928"/>
<location filename="mainwindow.cpp" line="3009"/>
<location filename="mainwindow.cpp" line="3015"/>
<source>Done parsing %1 files in %2 seconds</source>
<translation>%1,%2</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2925"/>
<location filename="mainwindow.cpp" line="3012"/>
<source>(%1 files per second)</source>
<translation>(%1</translation>
</message>
@ -3364,87 +3405,87 @@ Are you really want to continue?</source>
<context>
<name>Project</name>
<message>
<location filename="project.cpp" line="138"/>
<location filename="project.cpp" line="139"/>
<source>File Not Found</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="139"/>
<location filename="project.cpp" line="140"/>
<source>Project file &apos;%1&apos; can&apos;t be found!</source>
<translation>&apos;%1&apos;!</translation>
</message>
<message>
<location filename="project.cpp" line="234"/>
<location filename="project.cpp" line="235"/>
<source>untitled</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="517"/>
<location filename="project.cpp" line="518"/>
<source>Can&apos;t save file</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="518"/>
<location filename="project.cpp" line="519"/>
<source>Can&apos;t save file &apos;%1&apos;</source>
<translation>&apos;%1&apos;.</translation>
</message>
<message>
<location filename="project.cpp" line="761"/>
<location filename="project.cpp" line="763"/>
<source>File Exists</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="762"/>
<location filename="project.cpp" line="764"/>
<source>File &apos;%1&apos; is already in the project</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="project.cpp" line="1127"/>
<location filename="project.cpp" line="1129"/>
<source>Project Updated</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="1128"/>
<location filename="project.cpp" line="1130"/>
<source>Your project was succesfully updated to a newer file format!</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="1130"/>
<location filename="project.cpp" line="1132"/>
<source>If something has gone wrong, we kept a backup-file: &apos;%1&apos;...</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="project.cpp" line="1306"/>
<location filename="project.cpp" line="1308"/>
<source>Settings need update</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="1307"/>
<location filename="project.cpp" line="1309"/>
<source>The compiler settings format of Dev-C++ has changed.</source>
<translation>Dev-C++</translation>
</message>
<message>
<location filename="project.cpp" line="1309"/>
<location filename="project.cpp" line="1311"/>
<source>Please update your settings at Project &gt;&gt; Project Options &gt;&gt; Compiler and save your project.</source>
<translation> &gt;&gt; &gt;&gt; </translation>
</message>
<message>
<location filename="project.cpp" line="1345"/>
<location filename="project.cpp" line="1347"/>
<source>Compiler not found</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="1346"/>
<location filename="project.cpp" line="1348"/>
<source>The compiler set you have selected for this project, no longer exists.</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="1348"/>
<location filename="project.cpp" line="1350"/>
<source>It will be substituted by the global compiler set.</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="1373"/>
<location filename="project.cpp" line="1375"/>
<source>Developed using the Red Panda Dev-C++ IDE</source>
<translation>使Dev-C++</translation>
</message>
@ -3811,24 +3852,24 @@ Are you really want to continue?</source>
<context>
<name>ProjectModel</name>
<message>
<location filename="project.cpp" line="1853"/>
<location filename="project.cpp" line="1855"/>
<source>File exists</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="1854"/>
<location filename="project.cpp" line="1856"/>
<source>File &apos;%1&apos; already exists. Delete it now?</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="project.cpp" line="1872"/>
<location filename="project.cpp" line="1892"/>
<location filename="project.cpp" line="1874"/>
<location filename="project.cpp" line="1894"/>
<source>Remove failed</source>
<translation></translation>
</message>
<message>
<location filename="project.cpp" line="1873"/>
<location filename="project.cpp" line="1893"/>
<location filename="project.cpp" line="1875"/>
<location filename="project.cpp" line="1895"/>
<source>Failed to remove file &apos;%1&apos;</source>
<translation>&apos;%1&apos;</translation>
</message>
@ -4047,7 +4088,7 @@ Are you really want to continue?</source>
<context>
<name>QApplication</name>
<message>
<location filename="main.cpp" line="104"/>
<location filename="main.cpp" line="106"/>
<source>Error</source>
<translation></translation>
</message>
@ -4378,27 +4419,27 @@ Are you really want to continue?</source>
<translation></translation>
</message>
<message>
<location filename="utils.cpp" line="334"/>
<location filename="utils.cpp" line="347"/>
<source>Index %1 out of range</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="utils.cpp" line="676"/>
<location filename="utils.cpp" line="689"/>
<source>bytes</source>
<translation></translation>
</message>
<message>
<location filename="utils.cpp" line="678"/>
<location filename="utils.cpp" line="691"/>
<source>KB</source>
<translation>KB</translation>
</message>
<message>
<location filename="utils.cpp" line="680"/>
<location filename="utils.cpp" line="693"/>
<source>MB</source>
<translation>MB</translation>
</message>
<message>
<location filename="utils.cpp" line="682"/>
<location filename="utils.cpp" line="695"/>
<source>GB</source>
<translation>GB</translation>
</message>
@ -5256,12 +5297,12 @@ Are you really want to continue?</source>
<context>
<name>SynEditStringList</name>
<message>
<location filename="qsynedit/TextBuffer.cpp" line="483"/>
<location filename="qsynedit/TextBuffer.cpp" line="485"/>
<source>Can&apos;t open file &apos;%1&apos; for read!</source>
<translation>&apos;%1&apos;!</translation>
</message>
<message>
<location filename="qsynedit/TextBuffer.cpp" line="579"/>
<location filename="qsynedit/TextBuffer.cpp" line="573"/>
<source>Can&apos;t open file &apos;%1&apos; for save!</source>
<translation>&apos;%2&apos;!</translation>
</message>

View File

@ -2011,6 +2011,9 @@ bool Editor::onCompletionKeyPressed(QKeyEvent *event)
QString phrase;
BufferCoord pBeginPos,pEndPos;
switch (event->key()) {
case Qt::Key_Shift:
//ignore it
return true;
case Qt::Key_Backspace:
ExecuteCommand(
SynEditorCommand::ecDeleteLastChar,

View File

@ -1109,18 +1109,12 @@ void MainWindow::debug()
for (int i=0;i<mProject->units().count();i++) {
QString file = mProject->units()[i]->fileName();
file.replace('\\','/');
mDebugger->sendCommand("dir", '"'+file+ '"');
}
for (int i=0;i<mProject->options().includes.count();i++) {
QString file = mProject->options().includes[i];
file.replace('\\','/');
mDebugger->sendCommand("dir", '"'+file+ '"');
}
for (int i=0;i<mProject->options().libs.count();i++) {
QString file = mProject->options().libs[i];
file.replace('\\','/');
mDebugger->sendCommand("dir", '"'+file+ '"');
mDebugger->sendCommand("file", '"'+file+ '"');
}
includeOrSkipDirs(mProject->options().includes,
pSettings->debugger().skipProjectLibraries());
includeOrSkipDirs(mProject->options().libs,
pSettings->debugger().skipProjectLibraries());
break;
case CompileTarget::File:
// Check if we enabled proper options
@ -1183,7 +1177,6 @@ void MainWindow::debug()
}
}
prepareDebugger();
mDebugger->setUseUTF8(e->fileEncoding() == ENCODING_UTF8 || e->fileEncoding() == ENCODING_UTF8_BOM);
@ -1197,32 +1190,16 @@ void MainWindow::debug()
updateEditorActions();
// Add library folders
foreach (QString dir,compilerSet->libDirs()) {
mDebugger->sendCommand("dir",
QString("\"%1\"").arg(dir.replace('\\','/')));
}
foreach (QString dir,compilerSet->defaultLibDirs()) {
mDebugger->sendCommand("dir",
QString("\"%1\"").arg(dir.replace('\\','/')));
}
// Add include folders
foreach (QString dir,compilerSet->CIncludeDirs()) {
mDebugger->sendCommand("dir",
QString("\"%1\"").arg(dir.replace('\\','/')));
}
foreach (QString dir,compilerSet->CppIncludeDirs()) {
mDebugger->sendCommand("dir",
QString("\"%1\"").arg(dir.replace('\\','/')));
}
foreach (QString dir,compilerSet->defaultCIncludeDirs()) {
mDebugger->sendCommand("dir",
QString("\"%1\"").arg(dir.replace('\\','/')));
}
foreach (QString dir,compilerSet->defaultCppIncludeDirs()) {
mDebugger->sendCommand("dir",
QString("\"%1\"").arg(dir.replace('\\','/')));
}
includeOrSkipDirs(compilerSet->libDirs(), pSettings->debugger().skipCustomLibraries());
includeOrSkipDirs(compilerSet->CIncludeDirs(), pSettings->debugger().skipCustomLibraries());
includeOrSkipDirs(compilerSet->CppIncludeDirs(), pSettings->debugger().skipCustomLibraries());
//gcc system libraries is auto loaded by gdb
if (pSettings->debugger().skipSystemLibraries()) {
includeOrSkipDirs(compilerSet->defaultCIncludeDirs(),true);
includeOrSkipDirs(compilerSet->defaultCIncludeDirs(),true);
includeOrSkipDirs(compilerSet->defaultCppIncludeDirs(),true);
}
// Add breakpoints and watch vars
// for i := 0 to fDebugger.WatchVarList.Count - 1 do
@ -1376,7 +1353,6 @@ void MainWindow::prepareDebugger()
openCloseBottomPanel(true);
openCloseLeftPanel(true);
// Reset watch vars
// mDebugger->deleteWatchVars(false);
}
@ -1446,6 +1422,24 @@ void MainWindow::scanActiveProject(bool parse)
};
}
void MainWindow::includeOrSkipDirs(const QStringList &dirs, bool skip)
{
Q_ASSERT(mDebugger);
foreach (QString dir,dirs) {
QString dirName = dir.replace('\\','/');
if (skip) {
mDebugger->sendCommand(
"skip",
QString("-gfi \"%1/%2\"")
.arg(dirName,"*.*"));
} else {
mDebugger->sendCommand(
"dir",
QString("\"%1\"").arg(dirName));
}
}
}
void MainWindow::saveLastOpens()
{
QString filename = includeTrailingPathDelimiter(pSettings->dirs().config()) + DEV_LASTOPENS_FILE;

View File

@ -155,7 +155,7 @@ private:
QWidget* parent,
QKeySequence shortcut=QKeySequence());
void scanActiveProject(bool parse=false);
void includeOrSkipDirs(const QStringList& dirs, bool skip);
private slots:
void onAutoSaveTimeout();
void onFileChanged(const QString& path);

View File

@ -2726,6 +2726,36 @@ void Settings::Debugger::setBlendMode(bool blendMode)
mBlendMode = blendMode;
}
bool Settings::Debugger::skipSystemLibraries() const
{
return mSkipSystemLibraries;
}
void Settings::Debugger::setSkipSystemLibraries(bool newSkipSystemLibraries)
{
mSkipSystemLibraries = newSkipSystemLibraries;
}
bool Settings::Debugger::skipProjectLibraries() const
{
return mSkipProjectLibraries;
}
void Settings::Debugger::setSkipProjectLibraries(bool newSkipProjectLibraries)
{
mSkipProjectLibraries = newSkipProjectLibraries;
}
bool Settings::Debugger::skipCustomLibraries() const
{
return mSkipCustomLibraries;
}
void Settings::Debugger::setSkipCustomLibraries(bool newSkipCustomLibraries)
{
mSkipCustomLibraries = newSkipCustomLibraries;
}
bool Settings::Debugger::useIntelStyle() const
{
return mUseIntelStyle;
@ -2765,6 +2795,10 @@ void Settings::Debugger::doSave()
saveValue("font_size",mFontSize);
saveValue("use_intel_style",mUseIntelStyle);
saveValue("blend_mode",mBlendMode);
saveValue("skip_system_lib", mSkipSystemLibraries);
saveValue("skip_project_lib", mSkipProjectLibraries);
saveValue("skip_custom_lib", mSkipCustomLibraries);
}
void Settings::Debugger::doLoad()
@ -2776,6 +2810,9 @@ void Settings::Debugger::doLoad()
mFontSize = intValue("font_size",10);
mUseIntelStyle = boolValue("use_intel_style",true);
mBlendMode = boolValue("blend_mode",true);
mSkipSystemLibraries = boolValue("skip_system_lib",true);
mSkipProjectLibraries = boolValue("skip_project_lib",true);
mSkipCustomLibraries = boolValue("skip_custom_lib",false);
}
Settings::History::History(Settings *settings):_Base(settings, SETTING_HISTORY)

View File

@ -828,6 +828,13 @@ public:
bool blendMode() const;
void setBlendMode(bool blendMode);
bool skipSystemLibraries() const;
void setSkipSystemLibraries(bool newSkipSystemLibraries);
bool skipProjectLibraries() const;
void setSkipProjectLibraries(bool newSkipProjectLibraries);
bool skipCustomLibraries() const;
void setSkipCustomLibraries(bool newSkipCustomLibraries);
private:
bool mShowCommandLog;
bool mShowAnnotations;
@ -836,6 +843,9 @@ public:
int mFontSize;
bool mUseIntelStyle;
bool mBlendMode;
bool mSkipSystemLibraries;
bool mSkipProjectLibraries;
bool mSkipCustomLibraries;
// _Base interface
protected:

View File

@ -28,6 +28,9 @@ void DebugGeneralWidget::doLoad()
ui->rbATT->setChecked(true);
}
ui->chkBlendMode->setChecked(pSettings->debugger().blendMode());
ui->chkSkipSystemLib->setChecked(pSettings->debugger().skipSystemLibraries());
ui->chkSkipProjectLib->setChecked(pSettings->debugger().skipProjectLibraries());
ui->chkSkipCustomLib->setChecked(pSettings->debugger().skipCustomLibraries());
}
void DebugGeneralWidget::doSave()
@ -39,7 +42,9 @@ void DebugGeneralWidget::doSave()
pSettings->debugger().setShowAnnotations(ui->chkShowFullAnnotation->isChecked());
pSettings->debugger().setUseIntelStyle(ui->rbIntel->isChecked());
pSettings->debugger().setBlendMode(ui->chkBlendMode->isChecked());
pSettings->debugger().setSkipSystemLibraries(ui->chkSkipSystemLib->isChecked());
pSettings->debugger().setSkipProjectLibraries(ui->chkSkipProjectLib->isChecked());
pSettings->debugger().setSkipCustomLibraries(ui->chkSkipCustomLib->isChecked());
pSettings->debugger().save();
pMainWindow->updateDebuggerSettings();
}

View File

@ -14,6 +14,27 @@
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="chkSkipSystemLib">
<property name="text">
<string>Skip system header and library files when step into</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkSkipProjectLib">
<property name="text">
<string>Skip project header and library files when step into</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkSkipCustomLib">
<property name="text">
<string>Skip custom header and library files when step into</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">