X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=dc8b8236b8cfddb63ba9d259fb729ae3ee3e214d;hp=3efb87a60cd0172c1578cc06b6c3f9bd7146c450;hb=9da8a8a14a39bffe74403001978a13cc8b130138;hpb=e19eef8ec30a926e5a847a7570bb966bc86f602e diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 3efb87a6..dc8b8236 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; @@ -44,9 +45,13 @@ public: 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); +public slots: + virtual void setMarkerLine(ChatView *view = 0, bool allowGoingBack = true); private slots: void scrollToHighlight(QGraphicsItem *highlightItem); @@ -54,11 +59,15 @@ private slots: void zoomOut(); void zoomOriginal(); + void setAutoMarkerLine(const QVariant &); + private: Ui::BufferWidget ui; QHash _chatViews; ChatViewSearchController *_chatViewSearchController; + + bool _autoMarkerLine; }; #endif