Mercurial > hg > octave-lyh
changeset 13643:0281f7082e4f
Added readline adapter class.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 23 Aug 2011 02:41:09 +0200 |
parents | b7d870e9b886 |
children | 8afea6b9e6df |
files | gui/octave-gui.pro gui/src/backend/ReadlineAdapter.cpp gui/src/backend/ReadlineAdapter.h |
diffstat | 3 files changed, 30 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/octave-gui.pro +++ b/gui/octave-gui.pro @@ -81,7 +81,8 @@ src/backend/OctaveMainThread.cpp \ src/qirc/IRCClientImpl.cpp \ src/terminal/TerminalEmulation.cpp \ - src/terminal/LinuxTerminalEmulation.cpp + src/terminal/LinuxTerminalEmulation.cpp \ + src/backend/ReadlineAdapter.cpp HEADERS += \ src/lexer/lexeroctavegui.h \ @@ -109,7 +110,8 @@ src/qirc/IRCClientInterface.h \ src/qirc/IRCClientImpl.h \ src/terminal/TerminalEmulation.h \ - src/terminal/LinuxTerminalEmulation.h + src/terminal/LinuxTerminalEmulation.h \ + src/backend/ReadlineAdapter.h FORMS += \ src/SettingsDialog.ui
new file mode 100644 --- /dev/null +++ b/gui/src/backend/ReadlineAdapter.cpp @@ -0,0 +1,6 @@ +#include "ReadlineAdapter.h" + +ReadlineAdapter::ReadlineAdapter (QObject *parent) : + QObject (parent), command_editor () +{ +}
new file mode 100644 --- /dev/null +++ b/gui/src/backend/ReadlineAdapter.h @@ -0,0 +1,20 @@ +#ifndef READLINEADAPTER_H +#define READLINEADAPTER_H + +#include "octave/config.h" +#include "octave/cmd-edit.h" +#include <QObject> + +class ReadlineAdapter : public QObject, public command_editor +{ + Q_OBJECT +public: + explicit ReadlineAdapter (QObject *parent = 0); + +signals: + +public slots: + +}; + +#endif // READLINEADAPTER_H