- editors that not in the editing panel shouldn't trigger switch breakpoint
- editors that not in the editing panel shouldn't show context menu
This commit is contained in:
parent
798607fba0
commit
0018ed5d7d
6
NEWS.md
6
NEWS.md
|
@ -1,3 +1,9 @@
|
||||||
|
Red Panda C++ Version 2.1
|
||||||
|
|
||||||
|
- editors that not in the editing panel shouldn't trigger switch breakpoint
|
||||||
|
- editors that not in the editing panel shouldn't show context menu
|
||||||
|
|
||||||
|
|
||||||
Red Panda C++ Version 2.0
|
Red Panda C++ Version 2.0
|
||||||
|
|
||||||
- redesign the project parser, more efficient and correct
|
- redesign the project parser, more efficient and correct
|
||||||
|
|
|
@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
|
||||||
}
|
}
|
||||||
|
|
||||||
isEmpty(APP_VERSION) {
|
isEmpty(APP_VERSION) {
|
||||||
APP_VERSION = 2.0
|
APP_VERSION = 2.1
|
||||||
}
|
}
|
||||||
|
|
||||||
macos: {
|
macos: {
|
||||||
|
|
|
@ -147,7 +147,9 @@ Editor::Editor(QWidget *parent, const QString& filename,
|
||||||
//mLineAfterTabStop = "";
|
//mLineAfterTabStop = "";
|
||||||
|
|
||||||
connect(this,&SynEdit::statusChanged,this,&Editor::onStatusChanged);
|
connect(this,&SynEdit::statusChanged,this,&Editor::onStatusChanged);
|
||||||
connect(this,&SynEdit::gutterClicked,this,&Editor::onGutterClicked);
|
|
||||||
|
if (mParentPageControl)
|
||||||
|
connect(this,&SynEdit::gutterClicked,this,&Editor::onGutterClicked);
|
||||||
|
|
||||||
onStatusChanged(QSynedit::StatusChange::scOpenFile);
|
onStatusChanged(QSynedit::StatusChange::scOpenFile);
|
||||||
|
|
||||||
|
@ -159,7 +161,9 @@ Editor::Editor(QWidget *parent, const QString& filename,
|
||||||
this, &Editor::onLinesInserted);
|
this, &Editor::onLinesInserted);
|
||||||
|
|
||||||
setContextMenuPolicy(Qt::CustomContextMenu);
|
setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
connect(this, &QWidget::customContextMenuRequested,
|
|
||||||
|
if (mParentPageControl)
|
||||||
|
connect(this, &QWidget::customContextMenuRequested,
|
||||||
pMainWindow, &MainWindow::onEditorContextMenu);
|
pMainWindow, &MainWindow::onEditorContextMenu);
|
||||||
|
|
||||||
mCanAutoSave = false;
|
mCanAutoSave = false;
|
||||||
|
@ -171,19 +175,23 @@ Editor::Editor(QWidget *parent, const QString& filename,
|
||||||
mCanAutoSave = true;
|
mCanAutoSave = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!isNew && parentPageControl!=nullptr) {
|
if (!isNew && parentPageControl) {
|
||||||
resetBookmarks();
|
resetBookmarks();
|
||||||
resetBreakpoints();
|
resetBreakpoints();
|
||||||
}
|
}
|
||||||
|
|
||||||
mStatementColors = pMainWindow->statementColors();
|
mStatementColors = pMainWindow->statementColors();
|
||||||
if (mParentPageControl!=nullptr) {
|
if (mParentPageControl) {
|
||||||
mParentPageControl->addTab(this,"");
|
mParentPageControl->addTab(this,"");
|
||||||
updateCaption();
|
updateCaption();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mParentPageControl==nullptr) {
|
if (mParentPageControl==nullptr) {
|
||||||
setExtraKeystrokes();
|
setExtraKeystrokes();
|
||||||
}
|
}
|
||||||
connect(&mFunctionTipTimer, &QTimer::timeout,
|
|
||||||
|
if (mParentPageControl)
|
||||||
|
connect(&mFunctionTipTimer, &QTimer::timeout,
|
||||||
this, &Editor::onFunctionTipsTimer);
|
this, &Editor::onFunctionTipsTimer);
|
||||||
|
|
||||||
connect(horizontalScrollBar(), &QScrollBar::valueChanged,
|
connect(horizontalScrollBar(), &QScrollBar::valueChanged,
|
||||||
|
|
|
@ -33,7 +33,7 @@ RedPandaIDE.depends += redpanda-git-askpass
|
||||||
|
|
||||||
APP_NAME = RedPandaCPP
|
APP_NAME = RedPandaCPP
|
||||||
|
|
||||||
APP_VERSION = 2.0
|
APP_VERSION = 2.1
|
||||||
|
|
||||||
linux: {
|
linux: {
|
||||||
isEmpty(PREFIX) {
|
isEmpty(PREFIX) {
|
||||||
|
|
Loading…
Reference in New Issue