work save
This commit is contained in:
parent
d89866803c
commit
8ed76c06e3
|
@ -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);
|
||||
|
|
|
@ -806,6 +806,11 @@ void MainWindow::prepareDebugger()
|
|||
// mDebugger->deleteWatchVars(false);
|
||||
}
|
||||
|
||||
Debugger *MainWindow::debugger() const
|
||||
{
|
||||
return mDebugger;
|
||||
}
|
||||
|
||||
CPUDialog *MainWindow::cpuDialog() const
|
||||
{
|
||||
return mCPUDialog;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue