comparison qt-interpreter.h @ 5:54edd85237ab

use signal to send input to qt interpreter object
author John W. Eaton <jwe@octave.org>
date Wed, 22 May 2019 18:07:37 -0400
parents 0e154787183d
children 1b575145197e
comparison
equal deleted inserted replaced
4:0e154787183d 5:54edd85237ab
1 #if ! defined (calc_qt_interpreter_h) 1 #if ! defined (calc_qt_interpreter_h)
2 #define calc_qt_interpreter_h 1 2 #define calc_qt_interpreter_h 1
3 3
4 #include <QObject> 4 #include <QObject>
5 #include <QString>
5 6
6 namespace calc 7 namespace calc
7 { 8 {
8 class qt_interpreter : public QObject 9 class qt_interpreter : public QObject
9 { 10 {
20 qt_interpreter& operator = (const qt_interpreter&) = delete; 21 qt_interpreter& operator = (const qt_interpreter&) = delete;
21 22
22 public slots: 23 public slots:
23 24
24 void execute (void); 25 void execute (void);
26
27 void accept_input_line (const QString& line);
25 }; 28 };
26 } 29 }
27 30
28 #endif 31 #endif