- void init(QString net, QString buf, ChatWidgetContents *contents);
-
- public slots:
- void clear();
- void appendMsg(Message);
-
- protected:
- void resizeEvent(QResizeEvent *event);
-
- private:
- QString networkName, bufferName;
- ChatWidgetContents *contents;
-};
-
-class ChatLine;
-
-//!\brief Renders the complete contents of a Buffer.
-/** Usually, this widget is used within a scroll
- * area. Because Qt's rich-text rendering engine is much too slow for our purposes, we do everything
- * except for the actual glyph painting ourselves. While this makes managing text quite cumbersome
- * (we cannot, for example, use any of Qt's text editing, selecting or layouting features), it is
- * also orders of magnitudes faster than any of the usual methods.
- */
-class ChatWidgetContents : public QWidget {
- Q_OBJECT