projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
even faster backlog replay
[quassel.git]
/
src
/
qtui
/
chatview.h
diff --git
a/src/qtui/chatview.h
b/src/qtui/chatview.h
index
cc627c7
..
832d151
100644
(file)
--- a/
src/qtui/chatview.h
+++ b/
src/qtui/chatview.h
@@
-18,8
+18,8
@@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#ifndef
_
CHATVIEW_H_
-#define
_
CHATVIEW_H_
+#ifndef CHATVIEW_H_
+#define CHATVIEW_H_
#include <QGraphicsView>
#include <QGraphicsView>
@@
-29,32
+29,34
@@
class AbstractUiMsg;
class Buffer;
class ChatLine;
class ChatScene;
class Buffer;
class ChatLine;
class ChatScene;
+class MessageFilter;
class ChatView : public QGraphicsView, public AbstractChatView {
Q_OBJECT
class ChatView : public QGraphicsView, public AbstractChatView {
Q_OBJECT
-
public:
-
ChatView(Buff
er *, QWidget *parent = 0);
-
~ChatView(
);
+public:
+
ChatView(MessageFilt
er *, QWidget *parent = 0);
+
ChatView(BufferId bufferId, QWidget *parent = 0
);
- ChatScene *scene() const;
+ virtual MsgId lastMsgId() const;
+ inline ChatScene *scene() const { return _scene; }
- public slots:
+public slots:
+ inline virtual void clear() {}
- void clear();
+protected:
+ virtual void resizeEvent(QResizeEvent *event);
- void prependMsg(AbstractUiMsg *);
- void appendMsg(AbstractUiMsg *);
+protected slots:
+ virtual void sceneHeightChanged(qreal dh);
+ virtual void verticalScrollbarChanged(int);
- void prependChatLine(ChatLine *);
- void appendChatLine(ChatLine *);
- void prependChatLines(QList<ChatLine *>);
- void appendChatLines(QList<ChatLine *>);
+private:
+ void init(MessageFilter *filter);
- void setContents(const QList<AbstractUiMsg *> &);
-
- private:
- ChatScene *_scene;
+ ChatScene *_scene;
+ int _lastScrollbarPos;
};
};
+
#endif
#endif