- 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 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: 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
- enhancement: icons in project view

Binary file not shown.

View File

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

View File

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

View File

@ -1479,7 +1479,7 @@ void MainWindow::prepareDebugger()
// Focus on the debugging buttons
ui->tabInfos->setCurrentWidget(ui->tabWatch);
ui->tabMessages->setCurrentWidget(ui->tabDebug);
ui->debugViews->setCurrentWidget(ui->tabDebugConsole);
ui->debugViews->setCurrentWidget(ui->tabLocals);
openCloseBottomPanel(true);
openCloseLeftPanel(true);
@ -1926,8 +1926,32 @@ void MainWindow::buildContextMenus()
tr("Remove All Breakpoints"),
ui->tblBreakpoints);
connect(mBreakpointViewRemoveAllAction,&QAction::triggered,
[](){
[this](){
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
@ -2354,6 +2378,9 @@ void MainWindow::onBreakpointsViewContextMenu(const QPoint &pos)
QMenu menu(this);
menu.addAction(mBreakpointViewPropertyAction);
menu.addAction(mBreakpointViewRemoveAllAction);
menu.addAction(mBreakpointViewRemoveAction);
mBreakpointViewPropertyAction->setEnabled(ui->tblBreakpoints->currentIndex().isValid());
mBreakpointViewRemoveAction->setEnabled(ui->tblBreakpoints->currentIndex().isValid());
menu.exec(ui->tblBreakpoints->mapToGlobal(pos));
}

View File

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

View File

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