+public:
+ BufferViewDelegate(QObject *parent = 0);
+ bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index);
+
+protected:
+ virtual void customEvent(QEvent *event);
+ virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const;
+
+private slots:
+ void colorsChanged();
+ void loadColors();
+
+private:
+ QColor _FgColorInactiveActivity;
+ QColor _FgColorNoActivity;
+ QColor _FgColorHighlightActivity;
+ QColor _FgColorNewMessageActivity;
+ QColor _FgColorOtherActivity;
+
+ bool _updateColors;
+};
+
+
+// ==============================
+// BufferView Dock
+// ==============================
+class BufferViewDock : public QDockWidget {
+ Q_OBJECT
+
+public:
+ BufferViewDock(BufferViewConfig *config, QWidget *parent);
+
+ int bufferViewId() const;
+ BufferViewConfig *config() const;
+ inline BufferView *bufferView() const { return qobject_cast<BufferView *>(widget()); }
+
+public slots:
+ void bufferViewRenamed(const QString &newName);
+};
+
+#endif