Mercurial > jwe > qt-gui-with-push-parser
comparison gui-main.h @ 1:08df60a01bc1
debug flag, handle input with signal
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 20 May 2019 13:45:58 -0400 |
parents | dff751fb985c |
children | b97ffa8e4019 |
comparison
equal
deleted
inserted
replaced
0:dff751fb985c | 1:08df60a01bc1 |
---|---|
32 | 32 |
33 void redisplay (void); | 33 void redisplay (void); |
34 | 34 |
35 void insert_at_end (const std::string& text); | 35 void insert_at_end (const std::string& text); |
36 | 36 |
37 void emit_error (const std::string& msg); | |
38 | |
37 void emit_result (double value); | 39 void emit_result (double value); |
38 | 40 |
39 signals: | 41 signals: |
40 | 42 |
43 void input_char_available (int key); | |
44 | |
41 void result_available (double value); | 45 void result_available (double value); |
42 | 46 |
43 public slots: | 47 public slots: |
48 | |
49 void handle_input_char (int key); | |
44 | 50 |
45 void handle_result (double value); | 51 void handle_result (double value); |
46 | 52 |
47 protected: | 53 protected: |
48 | 54 |
75 int prompt_mark; | 81 int prompt_mark; |
76 }; | 82 }; |
77 | 83 |
78 extern int main (int argc, char **argv); | 84 extern int main (int argc, char **argv); |
79 | 85 |
86 extern void emit_error (const std::string& msg); | |
87 | |
80 extern void emit_result (double value); | 88 extern void emit_result (double value); |
81 } | 89 } |
82 | 90 |
83 #endif | 91 #endif |