X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=75027cbfbff6414eb5b22ae78f32cede1ce176bd;hb=e178f81f44f5e305315f7755ca404c2a5f992711;hp=17e939dcbeb97dc48f21a4084b2c200397fff822;hpb=2684aa5295d12e4f7c66b3011fc8b1819f3d1cbb;p=quassel.git diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 17e939dc..75027cbf 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -25,23 +25,34 @@ #include "abstractbuffercontainer.h" +class QGraphicsItem; +class ChatViewSearchBar; +class ChatViewSearchController; + class BufferWidget : public AbstractBufferContainer { Q_OBJECT - public: - BufferWidget(QWidget *parent); - virtual ~BufferWidget(); +public: + BufferWidget(QWidget *parent); + ~BufferWidget(); + + inline ChatViewSearchBar *searchBar() const { return ui.searchBar; } + +protected: + virtual AbstractChatView *createChatView(BufferId); + virtual void removeChatView(BufferId); - protected: - virtual AbstractChatView *createChatView(BufferId); - virtual void removeChatView(AbstractChatView *view); +protected slots: + virtual void showChatView(BufferId); - protected slots: - virtual void showChatView(AbstractChatView *view); +private slots: + void scrollToHighlight(QGraphicsItem *highlightItem); - private: - Ui::BufferWidget ui; +private: + Ui::BufferWidget ui; + QHash _chatViews; + ChatViewSearchController *_chatViewSearchController; }; #endif