work save
This commit is contained in:
parent
60a4e8c468
commit
2fb476edd9
|
@ -26,6 +26,7 @@ SOURCES += \
|
||||||
qsynedit/SearchRegex.cpp \
|
qsynedit/SearchRegex.cpp \
|
||||||
settingsdialog/debuggeneralwidget.cpp \
|
settingsdialog/debuggeneralwidget.cpp \
|
||||||
widgets/classbrowser.cpp \
|
widgets/classbrowser.cpp \
|
||||||
|
widgets/codecompletionview.cpp \
|
||||||
widgets/cpudialog.cpp \
|
widgets/cpudialog.cpp \
|
||||||
debugger.cpp \
|
debugger.cpp \
|
||||||
editor.cpp \
|
editor.cpp \
|
||||||
|
@ -89,6 +90,7 @@ HEADERS += \
|
||||||
qsynedit/SearchRegex.h \
|
qsynedit/SearchRegex.h \
|
||||||
settingsdialog/debuggeneralwidget.h \
|
settingsdialog/debuggeneralwidget.h \
|
||||||
widgets/classbrowser.h \
|
widgets/classbrowser.h \
|
||||||
|
widgets/codecompletionview.h \
|
||||||
widgets/cpudialog.h \
|
widgets/cpudialog.h \
|
||||||
debugger.h \
|
debugger.h \
|
||||||
editor.h \
|
editor.h \
|
||||||
|
@ -137,6 +139,7 @@ HEADERS += \
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
settingsdialog/debuggeneralwidget.ui \
|
settingsdialog/debuggeneralwidget.ui \
|
||||||
|
widgets/codecompletionview.ui \
|
||||||
widgets/cpudialog.ui \
|
widgets/cpudialog.ui \
|
||||||
mainwindow.ui \
|
mainwindow.ui \
|
||||||
settingsdialog/compilersetdirectorieswidget.ui \
|
settingsdialog/compilersetdirectorieswidget.ui \
|
||||||
|
|
|
@ -92,6 +92,10 @@ bool EditorList::closeEditor(Editor* editor, bool transferFocus, bool force) {
|
||||||
|
|
||||||
//editor->deleteLater();
|
//editor->deleteLater();
|
||||||
delete editor;
|
delete editor;
|
||||||
|
|
||||||
|
editor = getEditor();
|
||||||
|
if (!force)
|
||||||
|
pMainWindow->updateClassBrowserForEditor(editor);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -394,6 +394,7 @@ void MainWindow::updateClassBrowserForEditor(Editor *editor)
|
||||||
if (!editor) {
|
if (!editor) {
|
||||||
mClassBrowserModel.setParser(nullptr);
|
mClassBrowserModel.setParser(nullptr);
|
||||||
mClassBrowserModel.setCurrentFile("");
|
mClassBrowserModel.setCurrentFile("");
|
||||||
|
mClassBrowserModel.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mQuitting)
|
if (mQuitting)
|
||||||
|
@ -520,12 +521,8 @@ void MainWindow::checkSyntaxInBack(Editor *e)
|
||||||
return;
|
return;
|
||||||
if (mCompilerManager->compiling())
|
if (mCompilerManager->compiling())
|
||||||
return;
|
return;
|
||||||
// if not Assigned(devCompilerSets.CompilationSet) then
|
if (!pSettings->compilerSets().defaultSet())
|
||||||
// Exit;
|
return;
|
||||||
// if fCompiler.Compiling then
|
|
||||||
// Exit;
|
|
||||||
// if fSyntaxChecker.Compiling then
|
|
||||||
// Exit;
|
|
||||||
if (mCheckSyntaxInBack)
|
if (mCheckSyntaxInBack)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTreeView" name="classBrowser">
|
<widget class="QTreeView" name="classBrowser">
|
||||||
<property name="rootIsDecorated">
|
<property name="rootIsDecorated">
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="headerVisible">
|
<attribute name="headerVisible">
|
||||||
<bool>false</bool>
|
<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