16 #include <QAbstractListModel>
18 #include <QStringList>
19 #include "../btglobal.h"
20 #include "../drivers/btmodulelist.h"
21 #include "../keys/cswordversekey.h"
22 #include "../keys/cswordtreekey.h"
23 #include "../rendering/cdisplayrendering.h"
135 int columnCount(
const QModelIndex & parent = QModelIndex())
const override;
138 QVariant
data(
const QModelIndex & index,
139 int role = Qt::DisplayRole)
const override;
142 int rowCount(
const QModelIndex & parent = QModelIndex())
const override;
145 virtual bool setData(
const QModelIndex &index,
146 const QVariant &value,
int role = Qt::EditRole)
override;
182 QString
bookData(
const QModelIndex & index,
int role = Qt::DisplayRole)
const;
183 QString
verseData(
const QModelIndex & index,
int role = Qt::DisplayRole)
const;
184 QString
lexiconData(
const QModelIndex & index,
int role = Qt::DisplayRole)
const;
QList< CSwordModuleInfo const * > BtConstModuleList
virtual QString processText(const QString &text)=0
virtual ~BtModuleTextFilter()=0
Model that represents the entire text of a given module.
QString bookData(const QModelIndex &index, int role=Qt::DisplayRole) const
CSwordKey * indexToKey(int index, int moduleNum) const
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void setDisplayOptions(const DisplayOptions &displayOptions)
int firstEntryIndex() const noexcept
std::optional< FindState > m_findState
int verseKeyToIndex(const CSwordVerseKey &key) const
int columnCount(const QModelIndex &parent=QModelIndex()) const override
CSwordTreeKey indexToBookKey(int index) const
BtConstModuleList m_moduleInfoList
BtModuleTextModel(QObject *parent=nullptr)
QString lexiconData(const QModelIndex &index, int role=Qt::DisplayRole) const
bool isCommentary() const
void setModules(const QStringList &modules)
void setHighlightWords(const QString &highlightWords, bool caseSensitive)
int keyToIndex(CSwordKey const &key) const
bool isSelected(int index) const
int indexToVerse(int index) const
void setFilterOptions(FilterOptions filterOptions)
CSwordVerseKey indexToVerseKey(int index) const
QString verseData(const QModelIndex &index, int role=Qt::DisplayRole) const
QString indexToKeyName(int index) const
void setTextFilter(BtModuleTextFilter *textFilter)
QHash< int, QByteArray > roleNames() const override
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
BtModuleTextFilter * m_textFilter
Rendering::CDisplayRendering m_displayRendering
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
void setFindState(std::optional< FindState > findState)
CSwordKey implementation for Sword's TreeKey.
CSwordKey implementation for Sword's VerseKey.
Rendering for the html display widget.