Chatterino
|
#include <HighlightModel.hpp>
Public Types | |
enum | Column { Pattern = 0, ShowInMentions = 1, FlashTaskbar = 2, PlaySound = 3, UseRegex = 4, CaseSensitive = 5, SoundPath = 6, Color = 7, COUNT } |
enum | HighlightRowIndexes { SelfHighlightRow = 0, WhisperRow = 1, SubRow = 2, RedeemedRow = 3, FirstMessageRow = 4, ElevatedMessageRow = 5, ThreadMessageRow = 6 } |
Public Member Functions | |
HighlightModel (QObject *parent) | |
![]() | |
SignalVectorModel (int columnCount, QObject *parent=nullptr) | |
void | initialize (SignalVector< HighlightPhrase > *vec) |
SignalVectorModel< HighlightPhrase > * | initialized (SignalVector< HighlightPhrase > *vec) |
virtual | ~SignalVectorModel () |
int | rowCount (const QModelIndex &parent) const override |
int | columnCount (const QModelIndex &parent) const override |
QVariant | data (const QModelIndex &index, int role) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::DisplayRole) override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QStandardItem * | getItem (int row, int column) |
void | deleteRow (int row) |
bool | moveRows (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override |
bool | removeRows (int row, int count, const QModelIndex &parent) override |
QStringList | mimeTypes () const override |
QMimeData * | mimeData (const QModelIndexList &list) const override |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int, int, const QModelIndex &parent) override |
Qt::DropActions | supportedDropActions () const override |
int | getModelIndexFromVectorIndex (int vectorIndex) const |
Protected Member Functions | |
virtual HighlightPhrase | getItemFromRow (std::vector< QStandardItem *> &row, const HighlightPhrase &original) override |
virtual void | getRowFromItem (const HighlightPhrase &item, std::vector< QStandardItem *> &row) override |
virtual void | afterInit () override |
virtual void | customRowSetData (const std::vector< QStandardItem *> &row, int column, const QVariant &value, int role, int rowIndex) override |
![]() | |
virtual int | beforeInsert (const HighlightPhrase &item, std::vector< QStandardItem * > &row, int proposedIndex) |
virtual void | afterRemoved (const HighlightPhrase &item, std::vector< QStandardItem * > &row, int index) |
void | insertCustomRow (std::vector< QStandardItem * > row, int index) |
void | removeCustomRow (int index) |
std::vector< QStandardItem *> | createRow () |
const std::vector< Row > & | rows () const |
|
explicit |
|
overrideprotectedvirtual |
Reimplemented from chatterino::SignalVectorModel< HighlightPhrase >.
|
overrideprotectedvirtual |
Reimplemented from chatterino::SignalVectorModel< HighlightPhrase >.
|
overrideprotectedvirtual |
Implements chatterino::SignalVectorModel< HighlightPhrase >.
|
overrideprotectedvirtual |
Implements chatterino::SignalVectorModel< HighlightPhrase >.