78 Q_INVOKABLE
void openEditor(
int row,
int column);
80 Q_INVOKABLE QString
rawText(
int row,
int column);
81 Q_INVOKABLE
void setRawText(
int row,
int column,
const QString& text);
97 void copyRange(
int index1,
int index2)
const;
122 QString
const & selectedText);
162 void timerEvent(QTimerEvent * event)
final override;
165 QFont
font(
int column)
const;
Model that represents the entire text of a given module.
void pixelsPerMMChanged()
Q_INVOKABLE void setRawText(int row, int column, const QString &text)
void scrollToSwordKey(CSwordKey *key)
QString getBibleUrlFromLink(const QString &url)
void backgroundColorChanged()
void contextMenuIndexChanged()
Q_INVOKABLE bool moduleIsWritable(int column)
void dragOccuring(const QString &moduleName, const QString &keyName)
int backgroundHighlightColorIndex
int getContextMenuColumn() const
void setContextMenuColumn(int index)
Q_INVOKABLE void changeReference(int i)
Q_INVOKABLE void setBibleKey(const QString &link)
void setBibleReference(const QString &reference)
int getContextMenuIndex() const
void setMagReferenceByUrl(const QString &url)
void backgroundHighlightColorChanged()
CSwordKey * getMouseClickedKey() const
int m_backgroundHighlightColorIndex
std::optional< Selection > m_selection
int getCurrentModelIndex() const
QML_SINGLETONQColor backgroundColor
QColor getBackgroundColor() const
QColor getForegroundColor() const
Q_INVOKABLE int indexToVerse(int index)
std::optional< Selection > const & selection() const noexcept
void setContextMenuIndex(int index)
std::optional< FindState > m_findState
int getBackgroundHighlightColorIndex() const
int getNumModules() const
~BtQmlInterface() override
QString getRawText(int row, int column)
Q_INVOKABLE void setHoveredLink(QString const &link)
QString getSelectedText() const
void updateReference(const QString &reference)
void foregroundColorChanged()
void setModules(const QStringList &modules)
static void copyVerseRange(CSwordVerseKey const &key1, CSwordVerseKey const &key2)
void timerEvent(QTimerEvent *event) final override
void setHighlightWords(const QString &words, bool caseSensitivy)
void setFilterOptions(FilterOptions filterOptions)
QString const & activeLink() const noexcept
bool isBibleOrCommentary()
QString getReferenceFromUrl(const QString &url)
BtModuleTextModel * textModel()
Q_INVOKABLE void openEditor(int row, int column)
void positionItemOnScreen(int index)
void currentModelIndexChanged()
void findText(bool backward)
BtTextFilter m_textFilter
void contextMenuColumnChanged()
QFont font(int column) const
QColor backgroundHighlightColor
QColor getBackgroundHighlightColor() const
Q_INVOKABLE void setSelection(int column, int startIndex, int endIndex, QString const &selectedText)
bool hasSelectedText() const noexcept
double getPixelsPerMM() const
Q_INVOKABLE void dragHandler(int index)
BtModuleTextModel *const m_moduleTextModel
Q_INVOKABLE QString rawText(int row, int column)
void backgroundHighlightColorIndexChanged()
void getFontsFromSettings()
Q_INVOKABLE void clearSelection() noexcept
BtQmlInterface(QObject *parent=nullptr)
void copyRange(int index1, int index2) const
QStringList m_moduleNames
QString getLemmaFromLink(const QString &url)
This filter provides a method for modifying text generated by BtModuleTextModel.
CSwordKey implementation for Sword's VerseKey.