Mercurial > hg > octave-lojdl
changeset 14306:c3b62d211b80 gui
.m-files can be directly run from the editor again. Autocompletion works again.
* FileEditorMdiSubWindow.cpp: Uncommented commands to send run command.
* MainWindow.cpp: Uncommented lines that initialize the editor with a lexer.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Wed, 01 Feb 2012 11:27:39 +0100 |
parents | f13f4f4360cb |
children | be3e1a14a6de |
files | gui/src/FileEditorMdiSubWindow.cpp gui/src/MainWindow.cpp |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/FileEditorMdiSubWindow.cpp +++ b/gui/src/FileEditorMdiSubWindow.cpp @@ -251,8 +251,8 @@ { if (m_editor->isModified ()) saveFile(m_fileName); - //m_terminalView->sendText (QString ("run \'%1\'\n").arg (m_fileName)); - //m_terminalView->widget ()->setFocus (); + m_terminalView->sendText (QString ("run \'%1\'\n").arg (m_fileName)); + m_terminalView->setFocus (); }
--- a/gui/src/MainWindow.cpp +++ b/gui/src/MainWindow.cpp @@ -97,7 +97,7 @@ } m_lexerAPI->prepare(); // prepare API info ... this make take some time } - //subWindow->initEditor(m_terminalView, m_lexer, this); // init necessary informations for editor + subWindow->initEditor(m_terminalView, m_lexer, this); // init necessary informations for editor if ( fileName.isEmpty() ) subWindow->newFile ();