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();
void clear();
- void prependMsg(AbstractUiMsg *);
- void appendMsg(AbstractUiMsg *);
+ protected:
+ virtual void resizeEvent(QResizeEvent *event);
- void prependChatLine(ChatLine *);
- void appendChatLine(ChatLine *);
- void prependChatLines(QList<ChatLine *>);
- void appendChatLines(QList<ChatLine *>);
-
- void setContents(const QList<AbstractUiMsg *> &);
+ protected slots:
+ virtual void sceneHeightChanged(qreal height);
private:
+ void init(MessageFilter *filter);
+
ChatScene *_scene;
};