X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=3efb87a60cd0172c1578cc06b6c3f9bd7146c450;hp=e2876ada8747673ced80883c99b3ad096f05fc5a;hb=79fbcfb49f7cc92a89f0158ebac1a3006a559e8a;hpb=533eaaeda64759c01daa624365b8fc63eeba5ccf diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index e2876ada..3efb87a6 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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