projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bring back dynamic backlog fetching (move scrollbar slider to the very top to get...
[quassel.git]
/
src
/
qtui
/
chatview.h
diff --git
a/src/qtui/chatview.h
b/src/qtui/chatview.h
index
7ae7c8d
..
b9c1892
100644
(file)
--- a/
src/qtui/chatview.h
+++ b/
src/qtui/chatview.h
@@
-29,11
+29,13
@@
class AbstractUiMsg;
class Buffer;
class ChatLine;
class ChatScene;
class Buffer;
class ChatLine;
class ChatScene;
+class MessageFilter;
class ChatView : public QGraphicsView, public AbstractChatView {
Q_OBJECT
public:
class ChatView : public QGraphicsView, public AbstractChatView {
Q_OBJECT
public:
+ ChatView(MessageFilter *, QWidget *parent = 0);
ChatView(Buffer *, QWidget *parent = 0);
~ChatView();
ChatView(Buffer *, QWidget *parent = 0);
~ChatView();
@@
-43,18
+45,22
@@
class ChatView : public QGraphicsView, public AbstractChatView {
void clear();
void clear();
- void prependMsg(AbstractUiMsg *);
- void appendMsg(AbstractUiMsg *);
+ void setBufferForBacklogFetching(BufferId buffer);
- void prependChatLine(ChatLine *);
- void appendChatLine(ChatLine *);
- void prependChatLines(QList<ChatLine *>);
- void appendChatLines(QList<ChatLine *>);
+ protected:
+ virtual void resizeEvent(QResizeEvent *event);
- void setContents(const QList<AbstractUiMsg *> &);
+ protected slots:
+ virtual void sceneHeightChanged(qreal height);
+ virtual void verticalScrollbarChanged(int);
+ virtual void sliderPressed();
+ virtual void sliderReleased();
private:
private:
+ void init(MessageFilter *filter);
+
ChatScene *_scene;
};
ChatScene *_scene;
};
+
#endif
#endif