2018-07-05 15:58:20 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "common/SignalVectorModel.hpp"
|
|
|
|
#include "controllers/highlights/HighlightPhrase.hpp"
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class HighlightController;
|
|
|
|
|
|
|
|
class UserHighlightModel : public SignalVectorModel<HighlightPhrase>
|
|
|
|
{
|
|
|
|
explicit UserHighlightModel(QObject *parent);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// vector into model row
|
2018-08-06 21:17:03 +02:00
|
|
|
virtual HighlightPhrase getItemFromRow(
|
|
|
|
std::vector<QStandardItem *> &row,
|
|
|
|
const HighlightPhrase &original) override;
|
2018-07-05 15:58:20 +02:00
|
|
|
|
|
|
|
virtual void getRowFromItem(const HighlightPhrase &item,
|
|
|
|
std::vector<QStandardItem *> &row) override;
|
|
|
|
|
|
|
|
friend class HighlightController;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|