mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Added basic module support for the UICodeEditor.
Code Editor auto-complete support WIP.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "codeeditor.hpp"
|
||||
#include "autocompletemodule.hpp"
|
||||
#include <algorithm>
|
||||
#include <args/args.hxx>
|
||||
|
||||
@@ -498,9 +499,12 @@ void App::onTextDropped( String text ) {
|
||||
}
|
||||
}
|
||||
|
||||
App::App() {}
|
||||
|
||||
App::~App() {
|
||||
saveConfig();
|
||||
eeSAFE_DELETE( mEditorSplitter );
|
||||
eeSAFE_DELETE( mAutoCompleteModule );
|
||||
eeSAFE_DELETE( mConsole );
|
||||
}
|
||||
|
||||
@@ -1044,6 +1048,10 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
|
||||
editor->getKeyBindings().reset();
|
||||
editor->getKeyBindings().addKeybindsString( mKeybindings );
|
||||
}
|
||||
|
||||
if ( !mAutoCompleteModule )
|
||||
mAutoCompleteModule = eeNew( AutoCompleteModule, () );
|
||||
editor->registerModule( mAutoCompleteModule );
|
||||
}
|
||||
|
||||
void App::createSettingsMenu() {
|
||||
|
||||
Reference in New Issue
Block a user