aboutsummaryrefslogtreecommitdiff
path: root/src/gui/conversation.h
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-06-29 17:36:31 +0000
committerdos-reis <gdr@axiomatics.org>2013-06-29 17:36:31 +0000
commitb70114addd4c3e195c87d44b02d23fef7c75c8e9 (patch)
tree3483a04f112298e08a5fdb656949b73d56ffdc72 /src/gui/conversation.h
parent50ec7502934e4632348f4c3c8e060181f199dfc8 (diff)
downloadopen-axiom-b70114addd4c3e195c87d44b02d23fef7c75c8e9.tar.gz
* gui/conversation.cc (accumulate_paragraphs): Remove.
(read_output): Remove. (OutputTextArea::add_paragraph): Rewrite. (Conversation::read_reply): Likewise.
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;
};
}