X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatview.h;h=7d84e6ad342da767558d24a3530a1ac2d4e9019d;hb=e1b6d538b7c4cc279f9218614e23adb5d8a81fe5;hp=cc627c766bb0fb928aab673e1bcfdc3240b40555;hpb=2684aa5295d12e4f7c66b3011fc8b1819f3d1cbb;p=quassel.git diff --git a/src/qtui/chatview.h b/src/qtui/chatview.h index cc627c76..7d84e6ad 100644 --- a/src/qtui/chatview.h +++ b/src/qtui/chatview.h @@ -18,8 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _CHATVIEW_H_ -#define _CHATVIEW_H_ +#ifndef CHATVIEW_H_ +#define CHATVIEW_H_ #include @@ -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,17 +45,15 @@ class ChatView : public QGraphicsView, public AbstractChatView { void clear(); - void prependMsg(AbstractUiMsg *); - void appendMsg(AbstractUiMsg *); + protected: + virtual void resizeEvent(QResizeEvent *event); - void prependChatLine(ChatLine *); - void appendChatLine(ChatLine *); - void prependChatLines(QList); - void appendChatLines(QList); - - void setContents(const QList &); + protected slots: + virtual void sceneHeightChanged(qreal height); private: + void init(MessageFilter *filter); + ChatScene *_scene; };