projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shift up/down scrolls up and down little bit.
[quassel.git]
/
src
/
qtui
/
chatview.h
diff --git
a/src/qtui/chatview.h
b/src/qtui/chatview.h
index
88a7e23
..
11bd417
100644
(file)
--- a/
src/qtui/chatview.h
+++ b/
src/qtui/chatview.h
@@
-29,38
+29,39
@@
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 zoomIn();
+ void zoomOut();
+ void zoomNormal();
- void clear();
+protected:
+ virtual void resizeEvent(QResizeEvent *event);
- void prependMsg(AbstractUiMsg *);
- void appendMsg(AbstractUiMsg *);
+protected slots:
+ void lastLineChanged(QGraphicsItem *chatLine, qreal offset);
+ virtual inline void sceneRectChanged(const QRectF &rect) { setSceneRect(rect); }
+ 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 *> &);
-
- protected:
- virtual void resizeEvent(QResizeEvent *event);
-
- protected slots:
- virtual void sceneHeightChanged(qreal height);
-
- private:
- ChatScene *_scene;
+ ChatScene *_scene;
+ int _lastScrollbarPos;
+ qreal _currentScaleFactor;
};
};
+
#endif
#endif