Introduce QtUiStyleSettings and make highlight color configurable again
[quassel.git] / src / qtui / chatview.h
index 9799142..7d84e6a 100644 (file)
@@ -29,11 +29,13 @@ class AbstractUiMsg;
 class Buffer;
 class ChatLine;
 class ChatScene;
+class MessageFilter;
 
 class ChatView : public QGraphicsView, public AbstractChatView {
   Q_OBJECT
 
   public:
+    ChatView(MessageFilter *, QWidget *parent = 0);
     ChatView(Buffer *, QWidget *parent = 0);
     ~ChatView();
 
@@ -43,20 +45,15 @@ class ChatView : public QGraphicsView, public AbstractChatView {
 
     void clear();
 
-    void prependMsg(AbstractUiMsg *);
-    void appendMsg(AbstractUiMsg *);
-
-    void prependChatLine(ChatLine *);
-    void appendChatLine(ChatLine *);
-    void prependChatLines(QList<ChatLine *>);
-    void appendChatLines(QList<ChatLine *>);
-
-    void setContents(const QList<AbstractUiMsg *> &);
-
   protected:
     virtual void resizeEvent(QResizeEvent *event);
 
+  protected slots:
+    virtual void sceneHeightChanged(qreal height);
+
   private:
+    void init(MessageFilter *filter);
+
     ChatScene *_scene;
 };