X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=5e1af508d0811c974225cd21351ccc0c6ddbf027;hb=dc9de5af386f61e6dc5537d04ccc8aceb8126b21;hp=e2876ada8747673ced80883c99b3ad096f05fc5a;hpb=533eaaeda64759c01daa624365b8fc63eeba5ccf;p=quassel.git diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index e2876ada..5e1af508 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -25,22 +25,40 @@ #include "abstractbuffercontainer.h" +class QGraphicsItem; +class ChatViewSearchBar; +class ChatViewSearchController; + class BufferWidget : public AbstractBufferContainer { Q_OBJECT - public: - BufferWidget(QWidget *parent); +public: + BufferWidget(QWidget *parent); + ~BufferWidget(); + + virtual bool eventFilter(QObject *watched, QEvent *event); + + inline ChatViewSearchBar *searchBar() const { return ui.searchBar; } + void addActionsToMenu(QMenu *, const QPointF &pos); + +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 zoomOriginal(); - protected slots: - virtual void showChatView(BufferId); +private: + Ui::BufferWidget ui; + QHash _chatViews; - private: - Ui::BufferWidget ui; - QHash _chatViews; + ChatViewSearchController *_chatViewSearchController; }; #endif