aboutsummaryrefslogtreecommitdiff
path: root/src/gui/conversation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/conversation.h')
-rw-r--r--src/gui/conversation.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/conversation.h b/src/gui/conversation.h
index ff1a847d..4fc7525e 100644
--- a/src/gui/conversation.h
+++ b/src/gui/conversation.h
@@ -41,6 +41,7 @@
#include <QEvent>
#include <QResizeEvent>
#include <QPaintEvent>
+#include <QRegExp>
#include "server.h"
namespace OpenAxiom {
@@ -71,6 +72,11 @@ namespace OpenAxiom {
void add_paragraph(const QString&);
// Add accumulate new text.
void add_text(const QString&);
+ // Current cursor
+ QTextCursor& get_cursor() { return cur; }
+ OutputTextArea& insert_block(const QString&);
+ protected:
+ QTextCursor cur;
};
// ---------------
@@ -188,6 +194,8 @@ namespace OpenAxiom {
Children children;
Exchange* cur_ex;
OutputTextArea* cur_out;
+ QRegExp rx;
+ QRegExp tx;
};
}