projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce an id string for the views (provided by MessageFilter); allows storing...
[quassel.git]
/
src
/
qtui
/
chatscene.h
diff --git
a/src/qtui/chatscene.h
b/src/qtui/chatscene.h
index
beeb699
..
8701f69
100644
(file)
--- a/
src/qtui/chatscene.h
+++ b/
src/qtui/chatscene.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
7 by the Quassel IRC Team
*
+ * Copyright (C) 2005-0
8 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,34
+21,48
@@
#ifndef _CHATSCENE_H_
#define _CHATSCENE_H_
#ifndef _CHATSCENE_H_
#define _CHATSCENE_H_
+#include <QAbstractItemModel>
#include <QGraphicsScene>
class AbstractUiMsg;
class Buffer;
#include <QGraphicsScene>
class AbstractUiMsg;
class Buffer;
+class ChatItem;
class ChatLine;
class ChatLine;
+class ColumnHandleItem;
+
class QGraphicsSceneMouseEvent;
class ChatScene : public QGraphicsScene {
Q_OBJECT
public:
class QGraphicsSceneMouseEvent;
class ChatScene : public QGraphicsScene {
Q_OBJECT
public:
- ChatScene(
Buffer *buffer
, QObject *parent);
+ ChatScene(
QAbstractItemModel *model, const QString &idString
, QObject *parent);
virtual ~ChatScene();
Buffer *buffer() const;
virtual ~ChatScene();
Buffer *buffer() const;
+ inline QAbstractItemModel *model() const { return _model; }
public slots:
public slots:
+ void setWidth(qreal);
- pr
otected
slots:
- void
appendMsg(AbstractUiMsg *msg
);
- void
prependMsg(AbstractUiMsg *msg
);
+ pr
ivate
slots:
+ void
rectChanged(const QRectF &
);
+ void
handlePositionChanged(qreal xpos
);
- void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
+ signals:
+ void heightChanged(qreal height);
+
+ protected slots:
+ void rowsInserted(const QModelIndex &, int, int);
private:
private:
- Buffer *_buffer;
- QList<ChatLine*> _lines;
+ QString _idString;
+ qreal _width, _height;
+ QAbstractItemModel *_model;
+ QList<ChatLine *> _lines;
+ ColumnHandleItem *firstColHandle, *secondColHandle;
+ qreal firstColHandlePos, secondColHandlePos;
};
#endif
};
#endif