- fix: when remove all breakpoints in the debug breakpoint view, debug tags in the opened editors are not correctly updated.

- change: when start debuging, show local view instead of the debug console.
This commit is contained in:
royqh1979@gmail.com 2021-10-27 16:58:30 +08:00
parent 2ceb95e4cc
commit 80b9f2b9e9
7 changed files with 157 additions and 122 deletions

View File

@ -2,6 +2,8 @@ Version 0.7.4
- fix: when debug a project, and have breakpoints that not in opened editors, dev-cpp will crash - fix: when debug a project, and have breakpoints that not in opened editors, dev-cpp will crash
- fix: when a file is parsing in background, exit dev-cpp will crash - fix: when a file is parsing in background, exit dev-cpp will crash
- fix: "tab to spaces" option in the editor general options widget doesn't work - fix: "tab to spaces" option in the editor general options widget doesn't work
- fix: when remove all breakpoints in the debug breakpoint view, debug tags in the opened editors are not correctly updated.
- change: when start debuging, show local view instead of the debug console.
Version 0.7.3 Version 0.7.3
- enhancement: icons in project view - enhancement: icons in project view

Binary file not shown.

View File

@ -2807,11 +2807,11 @@ Are you really want to continue?</source>
</message> </message>
<message> <message>
<location filename="mainwindow.ui" line="371"/> <location filename="mainwindow.ui" line="371"/>
<location filename="mainwindow.cpp" line="3121"/> <location filename="mainwindow.cpp" line="3149"/>
<location filename="mainwindow.cpp" line="3124"/> <location filename="mainwindow.cpp" line="3152"/>
<location filename="mainwindow.cpp" line="3128"/> <location filename="mainwindow.cpp" line="3156"/>
<location filename="mainwindow.cpp" line="3131"/> <location filename="mainwindow.cpp" line="3159"/>
<location filename="mainwindow.cpp" line="4530"/> <location filename="mainwindow.cpp" line="4559"/>
<source>Issues</source> <source>Issues</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3015,8 +3015,8 @@ Are you really want to continue?</source>
<location filename="mainwindow.ui" line="1292"/> <location filename="mainwindow.ui" line="1292"/>
<location filename="mainwindow.cpp" line="1276"/> <location filename="mainwindow.cpp" line="1276"/>
<location filename="mainwindow.cpp" line="1287"/> <location filename="mainwindow.cpp" line="1287"/>
<location filename="mainwindow.cpp" line="2788"/> <location filename="mainwindow.cpp" line="2815"/>
<location filename="mainwindow.cpp" line="2799"/> <location filename="mainwindow.cpp" line="2826"/>
<source>Compile</source> <source>Compile</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3466,7 +3466,7 @@ Are you really want to continue?</source>
</message> </message>
<message> <message>
<location filename="mainwindow.ui" line="1783"/> <location filename="mainwindow.ui" line="1783"/>
<location filename="mainwindow.cpp" line="3948"/> <location filename="mainwindow.cpp" line="3976"/>
<source>Clear all breakpoints</source> <source>Clear all breakpoints</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3567,7 +3567,7 @@ Are you really want to continue?</source>
</message> </message>
<message> <message>
<location filename="mainwindow.ui" line="1934"/> <location filename="mainwindow.ui" line="1934"/>
<location filename="mainwindow.cpp" line="4487"/> <location filename="mainwindow.cpp" line="4516"/>
<source>Rename Symbol</source> <source>Rename Symbol</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3588,13 +3588,13 @@ Are you really want to continue?</source>
</message> </message>
<message> <message>
<location filename="mainwindow.ui" line="1954"/> <location filename="mainwindow.ui" line="1954"/>
<location filename="mainwindow.cpp" line="4609"/> <location filename="mainwindow.cpp" line="4638"/>
<source>Export As RTF</source> <source>Export As RTF</source>
<translation>RTF</translation> <translation>RTF</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.ui" line="1959"/> <location filename="mainwindow.ui" line="1959"/>
<location filename="mainwindow.cpp" line="4631"/> <location filename="mainwindow.cpp" line="4660"/>
<source>Export As HTML</source> <source>Export As HTML</source>
<translation>HTML</translation> <translation>HTML</translation>
</message> </message>
@ -3640,7 +3640,7 @@ Are you really want to continue?</source>
</message> </message>
<message> <message>
<location filename="mainwindow.ui" line="2018"/> <location filename="mainwindow.ui" line="2018"/>
<location filename="mainwindow.cpp" line="4769"/> <location filename="mainwindow.cpp" line="4798"/>
<source>Open Folder</source> <source>Open Folder</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3650,7 +3650,7 @@ Are you really want to continue?</source>
<translation>...</translation> <translation>...</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2231"/> <location filename="mainwindow.cpp" line="2255"/>
<source>File Encoding</source> <source>File Encoding</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3891,15 +3891,15 @@ Are you really want to continue?</source>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1771"/> <location filename="mainwindow.cpp" line="1771"/>
<location filename="mainwindow.cpp" line="4689"/> <location filename="mainwindow.cpp" line="4718"/>
<location filename="mainwindow.cpp" line="4729"/> <location filename="mainwindow.cpp" line="4758"/>
<source>Bookmark Description</source> <source>Bookmark Description</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1772"/> <location filename="mainwindow.cpp" line="1772"/>
<location filename="mainwindow.cpp" line="4690"/> <location filename="mainwindow.cpp" line="4719"/>
<location filename="mainwindow.cpp" line="4730"/> <location filename="mainwindow.cpp" line="4759"/>
<source>Description:</source> <source>Description:</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3940,251 +3940,256 @@ Are you really want to continue?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1938"/> <location filename="mainwindow.cpp" line="1939"/>
<source>Remove Breakpoint</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1962"/>
<source>Rename File</source> <source>Rename File</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1946"/> <location filename="mainwindow.cpp" line="1970"/>
<location filename="mainwindow.cpp" line="1965"/> <location filename="mainwindow.cpp" line="1989"/>
<source>Add Folder</source> <source>Add Folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1962"/> <location filename="mainwindow.cpp" line="1986"/>
<source>New folder</source> <source>New folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1966"/> <location filename="mainwindow.cpp" line="1990"/>
<source>Folder name:</source> <source>Folder name:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1980"/> <location filename="mainwindow.cpp" line="2004"/>
<source>Rename Folder</source> <source>Rename Folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1988"/> <location filename="mainwindow.cpp" line="2012"/>
<source>Remove Folder</source> <source>Remove Folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2013"/> <location filename="mainwindow.cpp" line="2037"/>
<source>Sort By Type</source> <source>Sort By Type</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2018"/> <location filename="mainwindow.cpp" line="2042"/>
<source>Sort alphabetically</source> <source>Sort alphabetically</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2023"/> <location filename="mainwindow.cpp" line="2047"/>
<source>Show inherited members</source> <source>Show inherited members</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2028"/> <location filename="mainwindow.cpp" line="2052"/>
<source>Goto declaration</source> <source>Goto declaration</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2031"/> <location filename="mainwindow.cpp" line="2055"/>
<source>Goto definition</source> <source>Goto definition</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2118"/> <location filename="mainwindow.cpp" line="2142"/>
<source>Open in Editor</source> <source>Open in Editor</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2130"/> <location filename="mainwindow.cpp" line="2154"/>
<source>Open in External Program</source> <source>Open in External Program</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2140"/> <location filename="mainwindow.cpp" line="2164"/>
<source>Open in Terminal</source> <source>Open in Terminal</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2152"/> <location filename="mainwindow.cpp" line="2176"/>
<source>Open in Windows Explorer</source> <source>Open in Windows Explorer</source>
<translation>Windows浏览器中打开</translation> <translation>Windows浏览器中打开</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2197"/> <location filename="mainwindow.cpp" line="2221"/>
<source>Character sets</source> <source>Character sets</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2321"/> <location filename="mainwindow.cpp" line="2345"/>
<source>%1 files autosaved</source> <source>%1 files autosaved</source>
<translation>%1</translation> <translation>%1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2708"/> <location filename="mainwindow.cpp" line="2735"/>
<source>Save project</source> <source>Save project</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2709"/> <location filename="mainwindow.cpp" line="2736"/>
<source>The project &apos;%1&apos; has modifications.</source> <source>The project &apos;%1&apos; has modifications.</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2711"/> <location filename="mainwindow.cpp" line="2738"/>
<source>Do you want to save it?</source> <source>Do you want to save it?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2905"/> <location filename="mainwindow.cpp" line="2932"/>
<location filename="mainwindow.cpp" line="2915"/> <location filename="mainwindow.cpp" line="2942"/>
<location filename="mainwindow.cpp" line="2927"/> <location filename="mainwindow.cpp" line="2954"/>
<source>Save Error</source> <source>Save Error</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3055"/> <location filename="mainwindow.cpp" line="3082"/>
<source>Change Project Compiler Set</source> <source>Change Project Compiler Set</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3056"/> <location filename="mainwindow.cpp" line="3083"/>
<source>Change the project&apos;s compiler set will lose all custom compiler set options.</source> <source>Change the project&apos;s compiler set will lose all custom compiler set options.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3058"/> <location filename="mainwindow.cpp" line="3085"/>
<source>Do you really want to do that?</source> <source>Do you really want to do that?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3949"/> <location filename="mainwindow.cpp" line="3977"/>
<source>Do you really want to clear all breakpoints in this file?</source> <source>Do you really want to clear all breakpoints in this file?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4127"/> <location filename="mainwindow.cpp" line="4156"/>
<source>New project</source> <source>New project</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4128"/> <location filename="mainwindow.cpp" line="4157"/>
<source>Close %1 and start new project?</source> <source>Close %1 and start new project?</source>
<translation>&apos;%1&apos;?</translation> <translation>&apos;%1&apos;?</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4140"/> <location filename="mainwindow.cpp" line="4169"/>
<source>Folder not exist</source> <source>Folder not exist</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4141"/> <location filename="mainwindow.cpp" line="4170"/>
<source>Folder &apos;%1&apos; doesn&apos;t exist. Create it now?</source> <source>Folder &apos;%1&apos; doesn&apos;t exist. Create it now?</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4148"/> <location filename="mainwindow.cpp" line="4177"/>
<source>Can&apos;t create folder</source> <source>Can&apos;t create folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4149"/> <location filename="mainwindow.cpp" line="4178"/>
<source>Failed to create folder &apos;%1&apos;.</source> <source>Failed to create folder &apos;%1&apos;.</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4164"/> <location filename="mainwindow.cpp" line="4193"/>
<source>Save new project as</source> <source>Save new project as</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4166"/> <location filename="mainwindow.cpp" line="4195"/>
<source>Red panda Dev-C++ project file (*.dev)</source> <source>Red panda Dev-C++ project file (*.dev)</source>
<translation>Dev-C++ (*.dev)</translation> <translation>Dev-C++ (*.dev)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4177"/> <location filename="mainwindow.cpp" line="4206"/>
<source>New project fail</source> <source>New project fail</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4178"/> <location filename="mainwindow.cpp" line="4207"/>
<source>Can&apos;t assign project template</source> <source>Can&apos;t assign project template</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4223"/> <location filename="mainwindow.cpp" line="4252"/>
<source>untitled</source> <source>untitled</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4233"/> <location filename="mainwindow.cpp" line="4262"/>
<source>New Project File Name</source> <source>New Project File Name</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4234"/> <location filename="mainwindow.cpp" line="4263"/>
<source>File Name:</source> <source>File Name:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4240"/> <location filename="mainwindow.cpp" line="4269"/>
<source>File Already Exists!</source> <source>File Already Exists!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4241"/> <location filename="mainwindow.cpp" line="4270"/>
<source>File &apos;%1&apos; already exists!</source> <source>File &apos;%1&apos; already exists!</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4260"/> <location filename="mainwindow.cpp" line="4289"/>
<source>Add to project</source> <source>Add to project</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4473"/> <location filename="mainwindow.cpp" line="4502"/>
<source>Rename Error</source> <source>Rename Error</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4474"/> <location filename="mainwindow.cpp" line="4503"/>
<source>Symbol &apos;%1&apos; is defined in system header.</source> <source>Symbol &apos;%1&apos; is defined in system header.</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4488"/> <location filename="mainwindow.cpp" line="4517"/>
<source>New Name</source> <source>New Name</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4554"/> <location filename="mainwindow.cpp" line="4583"/>
<location filename="mainwindow.cpp" line="4564"/> <location filename="mainwindow.cpp" line="4593"/>
<source>Replace Error</source> <source>Replace Error</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4555"/> <location filename="mainwindow.cpp" line="4584"/>
<source>Can&apos;t open file &apos;%1&apos; for replace!</source> <source>Can&apos;t open file &apos;%1&apos; for replace!</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4565"/> <location filename="mainwindow.cpp" line="4594"/>
<source>Contents has changed since last search!</source> <source>Contents has changed since last search!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4611"/> <location filename="mainwindow.cpp" line="4640"/>
<source>Rich Text Format Files (*.rtf)</source> <source>Rich Text Format Files (*.rtf)</source>
<translation>RTF格式文件 (*.rtf)</translation> <translation>RTF格式文件 (*.rtf)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4633"/> <location filename="mainwindow.cpp" line="4662"/>
<source>HTML Files (*.html)</source> <source>HTML Files (*.html)</source>
<translation>HTML文件 (*.html)</translation> <translation>HTML文件 (*.html)</translation>
</message> </message>
@ -4197,13 +4202,13 @@ Are you really want to continue?</source>
<location filename="mainwindow.cpp" line="194"/> <location filename="mainwindow.cpp" line="194"/>
<location filename="mainwindow.cpp" line="831"/> <location filename="mainwindow.cpp" line="831"/>
<location filename="mainwindow.cpp" line="1716"/> <location filename="mainwindow.cpp" line="1716"/>
<location filename="mainwindow.cpp" line="2222"/> <location filename="mainwindow.cpp" line="2246"/>
<location filename="mainwindow.cpp" line="2795"/> <location filename="mainwindow.cpp" line="2822"/>
<location filename="mainwindow.cpp" line="2880"/> <location filename="mainwindow.cpp" line="2907"/>
<location filename="mainwindow.cpp" line="3024"/> <location filename="mainwindow.cpp" line="3051"/>
<location filename="mainwindow.cpp" line="3036"/> <location filename="mainwindow.cpp" line="3063"/>
<location filename="mainwindow.cpp" line="3376"/> <location filename="mainwindow.cpp" line="3404"/>
<location filename="mainwindow.cpp" line="3388"/> <location filename="mainwindow.cpp" line="3416"/>
<source>Error</source> <source>Error</source>
<translation></translation> <translation></translation>
</message> </message>
@ -4213,75 +4218,75 @@ Are you really want to continue?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2789"/> <location filename="mainwindow.cpp" line="2816"/>
<source>File &apos;%1&apos; was changed.</source> <source>File &apos;%1&apos; was changed.</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2789"/> <location filename="mainwindow.cpp" line="2816"/>
<source>Reload its content from disk?</source> <source>Reload its content from disk?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2800"/> <location filename="mainwindow.cpp" line="2827"/>
<source>File &apos;%1&apos; was removed.</source> <source>File &apos;%1&apos; was removed.</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2800"/> <location filename="mainwindow.cpp" line="2827"/>
<source>Keep it open?</source> <source>Keep it open?</source>
<translation>C++</translation> <translation>C++</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="2876"/> <location filename="mainwindow.cpp" line="2903"/>
<source>Open</source> <source>Open</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3208"/> <location filename="mainwindow.cpp" line="3236"/>
<source>Compile Failed</source> <source>Compile Failed</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3213"/> <location filename="mainwindow.cpp" line="3241"/>
<source>Run Failed</source> <source>Run Failed</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3405"/> <location filename="mainwindow.cpp" line="3433"/>
<location filename="mainwindow.cpp" line="3419"/> <location filename="mainwindow.cpp" line="3447"/>
<source>Confirm Convertion</source> <source>Confirm Convertion</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3406"/> <location filename="mainwindow.cpp" line="3434"/>
<location filename="mainwindow.cpp" line="3420"/> <location filename="mainwindow.cpp" line="3448"/>
<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> <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> <translation>使%1&lt;br /&gt;&lt;br /&gt;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3586"/> <location filename="mainwindow.cpp" line="3614"/>
<source>New Watch Expression</source> <source>New Watch Expression</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3587"/> <location filename="mainwindow.cpp" line="3615"/>
<source>Enter Watch Expression (it is recommended to use &apos;this-&gt;&apos; for class members):</source> <source>Enter Watch Expression (it is recommended to use &apos;this-&gt;&apos; for class members):</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3643"/> <location filename="mainwindow.cpp" line="3671"/>
<source>Parsing file %1 of %2: &quot;%3&quot;</source> <source>Parsing file %1 of %2: &quot;%3&quot;</source>
<translation>%1/%2&quot;%3&quot;</translation> <translation>%1/%2&quot;%3&quot;</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3665"/> <location filename="mainwindow.cpp" line="3693"/>
<location filename="mainwindow.cpp" line="3671"/> <location filename="mainwindow.cpp" line="3699"/>
<source>Done parsing %1 files in %2 seconds</source> <source>Done parsing %1 files in %2 seconds</source>
<translation>%1,%2</translation> <translation>%1,%2</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="3668"/> <location filename="mainwindow.cpp" line="3696"/>
<source>(%1 files per second)</source> <source>(%1 files per second)</source>
<translation>(%1</translation> <translation>(%1</translation>
</message> </message>
@ -4363,67 +4368,67 @@ Are you really want to continue?</source>
<translation>&apos;%1&apos;.</translation> <translation>&apos;%1&apos;.</translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="677"/> <location filename="project.cpp" line="675"/>
<source>Error Load File</source> <source>Error Load File</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="786"/> <location filename="project.cpp" line="784"/>
<source>File Exists</source> <source>File Exists</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="787"/> <location filename="project.cpp" line="785"/>
<source>File &apos;%1&apos; is already in the project</source> <source>File &apos;%1&apos; is already in the project</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1152"/> <location filename="project.cpp" line="1150"/>
<source>Project Updated</source> <source>Project Updated</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1153"/> <location filename="project.cpp" line="1151"/>
<source>Your project was succesfully updated to a newer file format!</source> <source>Your project was succesfully updated to a newer file format!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1155"/> <location filename="project.cpp" line="1153"/>
<source>If something has gone wrong, we kept a backup-file: &apos;%1&apos;...</source> <source>If something has gone wrong, we kept a backup-file: &apos;%1&apos;...</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1331"/> <location filename="project.cpp" line="1329"/>
<source>Settings need update</source> <source>Settings need update</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1332"/> <location filename="project.cpp" line="1330"/>
<source>The compiler settings format of Dev-C++ has changed.</source> <source>The compiler settings format of Dev-C++ has changed.</source>
<translation>Dev-C++</translation> <translation>Dev-C++</translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1334"/> <location filename="project.cpp" line="1332"/>
<source>Please update your settings at Project &gt;&gt; Project Options &gt;&gt; Compiler and save your project.</source> <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> <translation> &gt;&gt; &gt;&gt; </translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1370"/> <location filename="project.cpp" line="1368"/>
<source>Compiler not found</source> <source>Compiler not found</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1371"/> <location filename="project.cpp" line="1369"/>
<source>The compiler set you have selected for this project, no longer exists.</source> <source>The compiler set you have selected for this project, no longer exists.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1373"/> <location filename="project.cpp" line="1371"/>
<source>It will be substituted by the global compiler set.</source> <source>It will be substituted by the global compiler set.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1403"/> <location filename="project.cpp" line="1410"/>
<source>Developed using the Red Panda Dev-C++ IDE</source> <source>Developed using the Red Panda Dev-C++ IDE</source>
<translation>使Dev-C++</translation> <translation>使Dev-C++</translation>
</message> </message>
@ -4814,24 +4819,24 @@ Are you really want to continue?</source>
<context> <context>
<name>ProjectModel</name> <name>ProjectModel</name>
<message> <message>
<location filename="project.cpp" line="1903"/> <location filename="project.cpp" line="1910"/>
<source>File exists</source> <source>File exists</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1904"/> <location filename="project.cpp" line="1911"/>
<source>File &apos;%1&apos; already exists. Delete it now?</source> <source>File &apos;%1&apos; already exists. Delete it now?</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1922"/> <location filename="project.cpp" line="1929"/>
<location filename="project.cpp" line="1942"/> <location filename="project.cpp" line="1949"/>
<source>Remove failed</source> <source>Remove failed</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="project.cpp" line="1923"/> <location filename="project.cpp" line="1930"/>
<location filename="project.cpp" line="1943"/> <location filename="project.cpp" line="1950"/>
<source>Failed to remove file &apos;%1&apos;</source> <source>Failed to remove file &apos;%1&apos;</source>
<translation>&apos;%1&apos;</translation> <translation>&apos;%1&apos;</translation>
</message> </message>
@ -5672,12 +5677,12 @@ Are you really want to continue?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="parser/cppparser.cpp" line="887"/> <location filename="parser/cppparser.cpp" line="888"/>
<source>constructor</source> <source>constructor</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="parser/cppparser.cpp" line="894"/> <location filename="parser/cppparser.cpp" line="895"/>
<source>destructor</source> <source>destructor</source>
<translation></translation> <translation></translation>
</message> </message>
@ -6090,7 +6095,7 @@ Are you really want to continue?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4780"/> <location filename="mainwindow.cpp" line="4809"/>
<location filename="settingsdialog/settingsdialog.cpp" line="130"/> <location filename="settingsdialog/settingsdialog.cpp" line="130"/>
<location filename="settingsdialog/settingsdialog.cpp" line="174"/> <location filename="settingsdialog/settingsdialog.cpp" line="174"/>
<location filename="settingsdialog/settingsdialog.cpp" line="178"/> <location filename="settingsdialog/settingsdialog.cpp" line="178"/>
@ -6166,7 +6171,7 @@ Are you really want to continue?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="4781"/> <location filename="mainwindow.cpp" line="4810"/>
<location filename="settingsdialog/settingsdialog.cpp" line="174"/> <location filename="settingsdialog/settingsdialog.cpp" line="174"/>
<source>Program Runner</source> <source>Program Runner</source>
<translation></translation> <translation></translation>

View File

@ -166,6 +166,7 @@ public:
void print(); void print();
void exportAsRTF(const QString& rtfFilename); void exportAsRTF(const QString& rtfFilename);
void exportAsHTML(const QString& htmlFilename); void exportAsHTML(const QString& htmlFilename);
void resetBreakpoints();
const PCppParser &parser(); const PCppParser &parser();
@ -182,7 +183,6 @@ private slots:
private: private:
bool isBraceChar(QChar ch); bool isBraceChar(QChar ch);
void resetBookmarks(); void resetBookmarks();
void resetBreakpoints();
QChar getCurrentChar(); QChar getCurrentChar();
bool handleSymbolCompletion(QChar key); bool handleSymbolCompletion(QChar key);
bool handleParentheseCompletion(); bool handleParentheseCompletion();

View File

@ -1479,7 +1479,7 @@ void MainWindow::prepareDebugger()
// Focus on the debugging buttons // Focus on the debugging buttons
ui->tabInfos->setCurrentWidget(ui->tabWatch); ui->tabInfos->setCurrentWidget(ui->tabWatch);
ui->tabMessages->setCurrentWidget(ui->tabDebug); ui->tabMessages->setCurrentWidget(ui->tabDebug);
ui->debugViews->setCurrentWidget(ui->tabDebugConsole); ui->debugViews->setCurrentWidget(ui->tabLocals);
openCloseBottomPanel(true); openCloseBottomPanel(true);
openCloseLeftPanel(true); openCloseLeftPanel(true);
@ -1926,8 +1926,32 @@ void MainWindow::buildContextMenus()
tr("Remove All Breakpoints"), tr("Remove All Breakpoints"),
ui->tblBreakpoints); ui->tblBreakpoints);
connect(mBreakpointViewRemoveAllAction,&QAction::triggered, connect(mBreakpointViewRemoveAllAction,&QAction::triggered,
[](){ [this](){
pMainWindow->debugger()->deleteBreakpoints(); pMainWindow->debugger()->deleteBreakpoints();
for (int i=0;i<mEditorList->pageCount();i++) {
Editor * e = (*(mEditorList))[i];
if (e) {
e->resetBreakpoints();
}
}
});
mBreakpointViewRemoveAction = createActionFor(
tr("Remove Breakpoint"),
ui->tblBreakpoints);
connect(mBreakpointViewRemoveAction,&QAction::triggered,
[this](){
int index =ui->tblBreakpoints->selectionModel()->currentIndex().row();
PBreakpoint breakpoint = debugger()->breakpointModel()->breakpoint(index);
if (breakpoint) {
Editor * e = mEditorList->getOpenedEditorByFilename(breakpoint->filename);
if (e) {
if (e->hasBreakpoint(breakpoint->line))
e->toggleBreakpoint(breakpoint->line);
} else {
debugger()->breakpointModel()->removeBreakpoint(index);
}
}
}); });
//context menu signal for project view //context menu signal for project view
@ -2354,6 +2378,9 @@ void MainWindow::onBreakpointsViewContextMenu(const QPoint &pos)
QMenu menu(this); QMenu menu(this);
menu.addAction(mBreakpointViewPropertyAction); menu.addAction(mBreakpointViewPropertyAction);
menu.addAction(mBreakpointViewRemoveAllAction); menu.addAction(mBreakpointViewRemoveAllAction);
menu.addAction(mBreakpointViewRemoveAction);
mBreakpointViewPropertyAction->setEnabled(ui->tblBreakpoints->currentIndex().isValid());
mBreakpointViewRemoveAction->setEnabled(ui->tblBreakpoints->currentIndex().isValid());
menu.exec(ui->tblBreakpoints->mapToGlobal(pos)); menu.exec(ui->tblBreakpoints->mapToGlobal(pos));
} }

View File

@ -504,6 +504,7 @@ private:
//actions for breakpoint view //actions for breakpoint view
QAction * mBreakpointViewPropertyAction; QAction * mBreakpointViewPropertyAction;
QAction * mBreakpointViewRemoveAllAction; QAction * mBreakpointViewRemoveAllAction;
QAction * mBreakpointViewRemoveAction;
//actions for project view //actions for project view
QAction * mProject_Add_Folder; QAction * mProject_Add_Folder;

View File

@ -549,7 +549,7 @@
<enum>QTabWidget::North</enum> <enum>QTabWidget::North</enum>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>2</number>
</property> </property>
<widget class="QWidget" name="tabDebugConsole"> <widget class="QWidget" name="tabDebugConsole">
<attribute name="title"> <attribute name="title">
@ -955,7 +955,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>946</width> <width>946</width>
<height>22</height> <height>25</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">