projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing a typo in an include and properly making qwebkit optional
[quassel.git]
/
src
/
qtui
/
bufferwidget.h
diff --git
a/src/qtui/bufferwidget.h
b/src/qtui/bufferwidget.h
index
089d498
..
75027cb
100644
(file)
--- a/
src/qtui/bufferwidget.h
+++ b/
src/qtui/bufferwidget.h
@@
-18,48
+18,41
@@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#ifndef
_
BUFFERWIDGET_H_
-#define
_
BUFFERWIDGET_H_
+#ifndef BUFFERWIDGET_H_
+#define BUFFERWIDGET_H_
#include "ui_bufferwidget.h"
#include "ui_bufferwidget.h"
-#include "abstractitemview.h"
-#include "chatview.h"
-#include "types.h"
+#include "abstractbuffercontainer.h"
-class
Network
;
-class ChatView;
-class Chat
Widget
;
+class
QGraphicsItem
;
+class ChatView
SearchBar
;
+class Chat
ViewSearchController
;
-#include "buffermodel.h"
-
-//! Displays the contents of a Buffer.
-/**
-*/
-class BufferWidget : public AbstractItemView {
+class BufferWidget : public AbstractBufferContainer {
Q_OBJECT
public:
Q_OBJECT
public:
- BufferWidget(QWidget *parent = 0);
- virtual ~BufferWidget();
- void init();
+ BufferWidget(QWidget *parent);
+ ~BufferWidget();
+
+ inline ChatViewSearchBar *searchBar() const { return ui.searchBar; }
+
+protected:
+ virtual AbstractChatView *createChatView(BufferId);
+ virtual void removeChatView(BufferId);
- inline BufferId currentBuffer() const { return _currentBuffer; }
-
protected slots:
protected slots:
- virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
- virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
+ virtual void showChatView(BufferId);
private slots:
private slots:
- void removeBuffer(BufferId bufferId);
- void setCurrentBuffer(BufferId bufferId);
+ void scrollToHighlight(QGraphicsItem *highlightItem);
private:
Ui::BufferWidget ui;
private:
Ui::BufferWidget ui;
- QHash<BufferId, ChatWidget *> _chatWidgets;
- QHash<BufferId, ChatView *> _chatViews;
+ QHash<BufferId, QWidget *> _chatViews;
-
BufferId _currentBuff
er;
+
ChatViewSearchController *_chatViewSearchControll
er;
};
#endif
};
#endif