Mercurial > jwe > qt-gui-with-push-parser
comparison gui-main.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 | 04867eba6428 |
comparison
equal
deleted
inserted
replaced
4:0e154787183d | 5:54edd85237ab |
---|---|
26 | 26 |
27 virtual ~command_window (void) = default; | 27 virtual ~command_window (void) = default; |
28 | 28 |
29 // Accept an input line, parse and possibly execute it. | 29 // Accept an input line, parse and possibly execute it. |
30 | 30 |
31 void accept (const std::string& line); | 31 void accept_line (const std::string& line); |
32 | 32 |
33 // Redisplay current command line. | 33 // Redisplay current command line. |
34 | 34 |
35 void redisplay (void); | 35 void redisplay (void); |
36 | 36 |
43 signals: | 43 signals: |
44 | 44 |
45 void input_char_available (int key); | 45 void input_char_available (int key); |
46 | 46 |
47 void result_available (double value); | 47 void result_available (double value); |
48 | |
49 void accept_line_signal (const QString& line); | |
48 | 50 |
49 public slots: | 51 public slots: |
50 | 52 |
51 void handle_input_char (int key); | 53 void handle_input_char (int key); |
52 | 54 |
88 extern int main (int argc, char **argv); | 90 extern int main (int argc, char **argv); |
89 | 91 |
90 extern void emit_error (const std::string& msg); | 92 extern void emit_error (const std::string& msg); |
91 | 93 |
92 extern void emit_result (double value); | 94 extern void emit_result (double value); |
93 | |
94 extern int available_char; | |
95 extern command_window *calc_interaction_window; | |
96 } | 95 } |
97 | 96 |
98 #endif | 97 #endif |