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
1ce9304
..
8701f69
100644
(file)
--- a/
src/qtui/chatscene.h
+++ b/
src/qtui/chatscene.h
@@
-21,38
+21,48
@@
#ifndef _CHATSCENE_H_
#define _CHATSCENE_H_
#ifndef _CHATSCENE_H_
#define _CHATSCENE_H_
+#include <QAbstractItemModel>
#include <QGraphicsScene>
#include <QGraphicsScene>
-#include "messagemodel.h"
-
class AbstractUiMsg;
class Buffer;
class ChatItem;
class ChatLine;
class AbstractUiMsg;
class Buffer;
class ChatItem;
class ChatLine;
+class ColumnHandleItem;
+
class QGraphicsSceneMouseEvent;
class ChatScene : public QGraphicsScene {
Q_OBJECT
public:
class QGraphicsSceneMouseEvent;
class ChatScene : public QGraphicsScene {
Q_OBJECT
public:
- ChatScene(
MessageModel *model
, QObject *parent);
+ ChatScene(
QAbstractItemModel *model, const QString &idString
, QObject *parent);
virtual ~ChatScene();
Buffer *buffer() const;
virtual ~ChatScene();
Buffer *buffer() const;
- inline
Message
Model *model() const { return _model; }
+ inline
QAbstractItem
Model *model() const { return _model; }
public slots:
public slots:
+ void setWidth(qreal);
- protected slots:
+ private 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
;
-
Message
Model *_model;
- QList<Chat
Item *> _item
s;
+
QString _idString
;
+
qreal _width, _height
;
+
QAbstractItem
Model *_model;
+ QList<Chat
Line *> _line
s;
+ ColumnHandleItem *firstColHandle, *secondColHandle;
+ qreal firstColHandlePos, secondColHandlePos;
};
#endif
};
#endif