22#include "../../../backend/models/btmoduletextmodel.h"
91 Q_INVOKABLE
void openEditor(
int row,
int column);
93 Q_INVOKABLE QString
rawText(
int row,
int column);
94 Q_INVOKABLE
void setRawText(
int row,
int column,
const QString& text);
110 void copyRange(
int index1,
int index2)
const;
135 QString
const & selectedText);
175 void timerEvent(QTimerEvent * event)
final override;
178 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
QString const & activeLink() const noexcept
void setContextMenuColumn(int index)
Q_INVOKABLE void changeReference(int i)
void selectionChanged(std::optional< Selection > newSelection)
Q_INVOKABLE void setBibleKey(const QString &link)
void setBibleReference(const QString &reference)
void activeLinkChanged(QString newActiveLink)
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)
void setContextMenuIndex(int index)
std::optional< FindState > m_findState
BtModuleTextModel * textModel()
int getBackgroundHighlightColorIndex() const
int getNumModules() const
std::optional< Selection > const & selection() const noexcept
~BtQmlInterface() override
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)
bool isBibleOrCommentary()
QString getReferenceFromUrl(const QString &url)
Q_INVOKABLE void openEditor(int row, int column)
void positionItemOnScreen(int index)
void currentModelIndexChanged()
void findText(bool backward)
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)
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
void copyRange(int index1, int index2) const
QStringList m_moduleNames
QString getLemmaFromLink(const QString &url)
CSwordKey implementation for Sword's VerseKey.
friend bool operator==(Selection const &lhs, Selection const &rhs)
friend bool operator!=(Selection const &lhs, Selection const &rhs)