work save
This commit is contained in:
parent
60a4e8c468
commit
2fb476edd9
|
@ -26,6 +26,7 @@ SOURCES += \
|
|||
qsynedit/SearchRegex.cpp \
|
||||
settingsdialog/debuggeneralwidget.cpp \
|
||||
widgets/classbrowser.cpp \
|
||||
widgets/codecompletionview.cpp \
|
||||
widgets/cpudialog.cpp \
|
||||
debugger.cpp \
|
||||
editor.cpp \
|
||||
|
@ -89,6 +90,7 @@ HEADERS += \
|
|||
qsynedit/SearchRegex.h \
|
||||
settingsdialog/debuggeneralwidget.h \
|
||||
widgets/classbrowser.h \
|
||||
widgets/codecompletionview.h \
|
||||
widgets/cpudialog.h \
|
||||
debugger.h \
|
||||
editor.h \
|
||||
|
@ -137,6 +139,7 @@ HEADERS += \
|
|||
|
||||
FORMS += \
|
||||
settingsdialog/debuggeneralwidget.ui \
|
||||
widgets/codecompletionview.ui \
|
||||
widgets/cpudialog.ui \
|
||||
mainwindow.ui \
|
||||
settingsdialog/compilersetdirectorieswidget.ui \
|
||||
|
|
|
@ -92,6 +92,10 @@ bool EditorList::closeEditor(Editor* editor, bool transferFocus, bool force) {
|
|||
|
||||
//editor->deleteLater();
|
||||
delete editor;
|
||||
|
||||
editor = getEditor();
|
||||
if (!force)
|
||||
pMainWindow->updateClassBrowserForEditor(editor);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -394,6 +394,7 @@ void MainWindow::updateClassBrowserForEditor(Editor *editor)
|
|||
if (!editor) {
|
||||
mClassBrowserModel.setParser(nullptr);
|
||||
mClassBrowserModel.setCurrentFile("");
|
||||
mClassBrowserModel.clear();
|
||||
return;
|
||||
}
|
||||
if (mQuitting)
|
||||
|
@ -520,12 +521,8 @@ void MainWindow::checkSyntaxInBack(Editor *e)
|
|||
return;
|
||||
if (mCompilerManager->compiling())
|
||||
return;
|
||||
// if not Assigned(devCompilerSets.CompilationSet) then
|
||||
// Exit;
|
||||
// if fCompiler.Compiling then
|
||||
// Exit;
|
||||
// if fSyntaxChecker.Compiling then
|
||||
// Exit;
|
||||
if (!pSettings->compilerSets().defaultSet())
|
||||
return;
|
||||
if (mCheckSyntaxInBack)
|
||||
return;
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
<item>
|
||||
<widget class="QTreeView" name="classBrowser">
|
||||
<property name="rootIsDecorated">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
#include "codecompletionview.h"
|
||||
#include "ui_codecompletionview.h"
|
||||
|
||||
CodeCompletionView::CodeCompletionView(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::CodeCompletionView)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
CodeCompletionView::~CodeCompletionView()
|
||||
{
|
||||
delete ui;
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef CODECOMPLETIONVIEW_H
|
||||
#define CODECOMPLETIONVIEW_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui {
|
||||
class CodeCompletionView;
|
||||
}
|
||||
|
||||
class CodeCompletionView : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CodeCompletionView(QWidget *parent = nullptr);
|
||||
~CodeCompletionView();
|
||||
|
||||
private:
|
||||
Ui::CodeCompletionView *ui;
|
||||
};
|
||||
|
||||
#endif // CODECOMPLETIONVIEW_H
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>CodeCompletionView</class>
|
||||
<widget class="QWidget" name="CodeCompletionView">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QListView" name="listView"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
Loading…
Reference in New Issue