ChatView now asks the scene if scrolling is ok on message appending
[quassel.git] / src / qtui / chatscene.h
index 78ba341..0c9329e 100644 (file)
@@ -44,6 +44,16 @@ public:
     CutoffRight
   };
 
+  enum ItemType {
+    ChatLineType = QGraphicsItem::UserType + 1,
+    ChatItemType,
+    TimestampChatItemType,
+    SenderChatItemType,
+    ContentsChatItemType,
+    SearchHighlightType,
+    WebPreviewType
+  };
+
   ChatScene(QAbstractItemModel *model, const QString &idString, qreal width, QObject *parent);
   virtual ~ChatScene();
 
@@ -62,6 +72,8 @@ public:
   inline CutoffMode senderCutoffMode() const { return _cutoffMode; }
   inline void setSenderCutoffMode(CutoffMode mode) { _cutoffMode = mode; }
 
+  bool isScrollingAllowed() const;
+
   virtual bool event(QEvent *e);
 
  public slots:
@@ -81,6 +93,8 @@ public:
 
 signals:
   void lastLineChanged(QGraphicsItem *item, qreal offset);
+  void layoutChanged(); // indicates changes to the scenerect due to resizing of the contentsitems
+  void mouseMoveWhileSelecting(const QPointF &scenePos);
 
 protected:
   virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);