X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=4eb8b6d99a59332793db97fd64ac74efedc34187;hb=c351c94e52a01571c34a18ddb5947b9e1f771d8c;hp=3efb87a60cd0172c1578cc06b6c3f9bd7146c450;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c;p=quassel.git diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 3efb87a6..4eb8b6d9 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -26,6 +26,7 @@ #include "abstractbuffercontainer.h" class QGraphicsItem; +class ChatView; class ChatViewSearchBar; class ChatViewSearchController; @@ -41,11 +42,17 @@ public: inline ChatViewSearchBar *searchBar() const { return ui.searchBar; } void addActionsToMenu(QMenu *, const QPointF &pos); +public slots: + virtual void setMarkerLine(ChatView *view = 0, bool allowGoingBack = true); + virtual void jumpToMarkerLine(ChatView *view = 0, bool requestBacklog = true); + protected: virtual AbstractChatView *createChatView(BufferId); virtual void removeChatView(BufferId); + virtual inline bool autoMarkerLine() const { return _autoMarkerLine; } protected slots: + virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); virtual void showChatView(BufferId); private slots: @@ -54,11 +61,15 @@ private slots: void zoomOut(); void zoomOriginal(); + void setAutoMarkerLine(const QVariant &); + private: Ui::BufferWidget ui; QHash _chatViews; ChatViewSearchController *_chatViewSearchController; + + bool _autoMarkerLine; }; #endif