Column handles (but not yet the columns themselves) are now movable
[quassel.git] / src / qtui / chatscene.h
index 5f8057a..9d8a565 100644 (file)
@@ -28,6 +28,8 @@ class AbstractUiMsg;
 class Buffer;
 class ChatItem;
 class ChatLine;
 class Buffer;
 class ChatItem;
 class ChatLine;
+class ColumnHandleItem;
+
 class QGraphicsSceneMouseEvent;
 
 class ChatScene : public QGraphicsScene {
 class QGraphicsSceneMouseEvent;
 
 class ChatScene : public QGraphicsScene {
@@ -41,21 +43,24 @@ class ChatScene : public QGraphicsScene {
     inline QAbstractItemModel *model() const { return _model; }
 
   public slots:
     inline QAbstractItemModel *model() const { return _model; }
 
   public slots:
-    void setWidth(int);
+    void setWidth(qreal);
+
+  private slots:
+    void rectChanged(const QRectF &);
 
   signals:
 
   signals:
-    void heightChanged(int height);
+    void heightChanged(qreal height);
 
   protected slots:
     void rowsInserted(const QModelIndex &, int, int);
 
   protected slots:
     void rowsInserted(const QModelIndex &, int, int);
-    void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
 
   private:
 
   private:
-    int _width, _height;
-    int _timestampWidth, _senderWidth;
+    qreal _width, _height;
     QAbstractItemModel *_model;
     QList<ChatLine *> _lines;
 
     QAbstractItemModel *_model;
     QList<ChatLine *> _lines;
 
+    ColumnHandleItem *firstColHandle, *secondColHandle;
+    qreal firstColHandlePos, secondColHandlePos;
 };
 
 #endif
 };
 
 #endif