summaryrefslogtreecommitdiff
path: root/src/gui_htmlattrtext.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-07-23 03:45:40 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-07-23 03:45:40 +0200
commitff8e353290c0b443c0ec68ee3fc4e137a7025f27 (patch)
treec19b6c228fe57be695863bef54e9d4f3b4893e95 /src/gui_htmlattrtext.hh
parenta66d21a1fd7b53997c27279f6269e9226f06fb6b (diff)
Add proxy log window
Both GTK and QT log windows will scroll down to the last row whenever a new row is appended.
Diffstat (limited to 'src/gui_htmlattrtext.hh')
-rw-r--r--src/gui_htmlattrtext.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui_htmlattrtext.hh b/src/gui_htmlattrtext.hh
index 91e1cc1..96b0447 100644
--- a/src/gui_htmlattrtext.hh
+++ b/src/gui_htmlattrtext.hh
@@ -7,10 +7,23 @@
class HtmlAttributedText : public AttributedText {
public:
+ class Listener {
+ public:
+ virtual ~Listener() {}
+
+ virtual void changed(HtmlAttributedText* text) = 0;
+
+ protected:
+ Listener() {}
+ };
+
static HtmlAttributedText* create();
virtual std::string html() const = 0;
+ virtual void add_listener(Listener* listener) = 0;
+ virtual void remove_listener(Listener* listener) = 0;
+
protected:
HtmlAttributedText() {}
};