typos
[quassel.git] / src / qtui / bufferwidget.h
index e2876ad..3efb87a 100644 (file)
@@ -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  *
 
 #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<BufferId, QWidget *> _chatViews;
 
-  private:
-    Ui::BufferWidget ui;
-    QHash<BufferId, QWidget *> _chatViews;
+  ChatViewSearchController *_chatViewSearchController;
 };
 
 #endif