work save

This commit is contained in:
royqh1979@gmail.com 2021-08-01 09:13:38 +08:00
parent d89866803c
commit 8ed76c06e3
3 changed files with 20 additions and 15 deletions

View File

@ -22,6 +22,7 @@
#include <QClipboard>
#include <QPainter>
#include "iconsmanager.h"
#include "debugger.h"
using namespace std;
@ -1173,13 +1174,10 @@ void Editor::toggleBreakpoint(int line)
{
if (hasBreakpoint(line)) {
mBreakpointLines.remove(line);
//todo
// MainForm.Debugger.RemoveBreakPoint(Line, self)
pMainWindow->debugger()->removeBreakpoint(line,this);
} else {
mBreakpointLines.insert(line);
//todo
// MainForm.Debugger.AddBreakPoint(Line, self);
pMainWindow->debugger()->addBreakpoint(line,this);
}
invalidateGutterLine(line);

View File

@ -806,6 +806,11 @@ void MainWindow::prepareDebugger()
// mDebugger->deleteWatchVars(false);
}
Debugger *MainWindow::debugger() const
{
return mDebugger;
}
CPUDialog *MainWindow::cpuDialog() const
{
return mCPUDialog;

View File

@ -67,6 +67,8 @@ public:
CPUDialog *cpuDialog() const;
Debugger *debugger() const;
protected:
void openFiles(const QStringList& files);
void openFile(const QString& filename);
@ -168,16 +170,16 @@ private:
private:
Ui::MainWindow *ui;
EditorList* mEditorList;
QLabel* mFileInfoStatus;
QLabel* mFileEncodingStatus;
QLabel* mFileModeStatus;
QMenu * mMenuEncoding;
QMenu * mMenuEncodingList;
QComboBox* mCompilerSet;
CompilerManager* mCompilerManager;
Debugger* mDebugger;
CPUDialog* mCPUDialog;
EditorList *mEditorList;
QLabel *mFileInfoStatus;
QLabel *mFileEncodingStatus;
QLabel *mFileModeStatus;
QMenu *mMenuEncoding;
QMenu *mMenuEncodingList;
QComboBox *mCompilerSet;
CompilerManager *mCompilerManager;
Debugger *mDebugger;
CPUDialog *mCPUDialog;
bool mMessageControlChanged;
bool mTabMessagesTogglingState;