- 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
|
||||
|
||||
- redesign the project parser, more efficient and correct
|
||||
|
|
|
@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
|
|||
}
|
||||
|
||||
isEmpty(APP_VERSION) {
|
||||
APP_VERSION = 2.0
|
||||
APP_VERSION = 2.1
|
||||
}
|
||||
|
||||
macos: {
|
||||
|
|
|
@ -147,6 +147,8 @@ Editor::Editor(QWidget *parent, const QString& filename,
|
|||
//mLineAfterTabStop = "";
|
||||
|
||||
connect(this,&SynEdit::statusChanged,this,&Editor::onStatusChanged);
|
||||
|
||||
if (mParentPageControl)
|
||||
connect(this,&SynEdit::gutterClicked,this,&Editor::onGutterClicked);
|
||||
|
||||
onStatusChanged(QSynedit::StatusChange::scOpenFile);
|
||||
|
@ -159,6 +161,8 @@ Editor::Editor(QWidget *parent, const QString& filename,
|
|||
this, &Editor::onLinesInserted);
|
||||
|
||||
setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
|
||||
if (mParentPageControl)
|
||||
connect(this, &QWidget::customContextMenuRequested,
|
||||
pMainWindow, &MainWindow::onEditorContextMenu);
|
||||
|
||||
|
@ -171,18 +175,22 @@ Editor::Editor(QWidget *parent, const QString& filename,
|
|||
mCanAutoSave = true;
|
||||
}
|
||||
}
|
||||
if (!isNew && parentPageControl!=nullptr) {
|
||||
if (!isNew && parentPageControl) {
|
||||
resetBookmarks();
|
||||
resetBreakpoints();
|
||||
}
|
||||
|
||||
mStatementColors = pMainWindow->statementColors();
|
||||
if (mParentPageControl!=nullptr) {
|
||||
if (mParentPageControl) {
|
||||
mParentPageControl->addTab(this,"");
|
||||
updateCaption();
|
||||
}
|
||||
|
||||
if (mParentPageControl==nullptr) {
|
||||
setExtraKeystrokes();
|
||||
}
|
||||
|
||||
if (mParentPageControl)
|
||||
connect(&mFunctionTipTimer, &QTimer::timeout,
|
||||
this, &Editor::onFunctionTipsTimer);
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ RedPandaIDE.depends += redpanda-git-askpass
|
|||
|
||||
APP_NAME = RedPandaCPP
|
||||
|
||||
APP_VERSION = 2.0
|
||||
APP_VERSION = 2.1
|
||||
|
||||
linux: {
|
||||
isEmpty(PREFIX) {
|
||||
|
|
Loading…
Reference in New Issue