X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=1d70c2727bd556388d789223cfcfbbd9f4da6c1e;hp=4d9bf5644eb40f6e33be399c465f1f5e71f5c177;hb=99934fe47293f61e1e62ecc0f0d49f958a992c32;hpb=1ef542382777aa0af9f9d1d6835bf6b1af880089 diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 4d9bf564..1d70c272 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -25,23 +25,39 @@ #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(); + + virtual bool eventFilter(QObject *watched, QEvent *event); + + inline ChatViewSearchBar *searchBar() const { return ui.searchBar; } + +protected: + virtual AbstractChatView *createChatView(BufferId); + virtual void removeChatView(BufferId); + +protected slots: + virtual void showChatView(BufferId); - protected: - virtual AbstractChatView *createChatView(BufferId); - virtual void removeChatView(BufferId); +private slots: + void scrollToHighlight(QGraphicsItem *highlightItem); + void zoomIn(); + void zoomOut(); + void zoomNormal(); - protected slots: - virtual void showChatView(BufferId); +private: + Ui::BufferWidget ui; + QHash _chatViews; - private: - Ui::BufferWidget ui; - QHash _chatViews; + ChatViewSearchController *_chatViewSearchController; }; #endif