28 Q_PROPERTY(
bool searchSupport READ searchSupport WRITE setSearchSupport)
29 Q_PROPERTY(
bool spellCheckingSupport READ spellCheckingSupport WRITE setSpellCheckingSupport)
30 Q_PROPERTY(
bool textToSpeechSupport READ textToSpeechSupport WRITE setTextToSpeechSupport)
31 Q_PROPERTY(
bool activateLanguageMenu READ activateLanguageMenu WRITE setActivateLanguageMenu)
32 Q_PROPERTY(
bool tabSupport READ allowTabSupport WRITE setAllowTabSupport)
33 Q_PROPERTY(
bool webShortcutSupport READ webShortcutSupport WRITE setWebShortcutSupport)
34 Q_PROPERTY(
bool emojiSupport READ emojiSupport WRITE setEmojiSupport)
44 AllowWebShortcut = 16,
49 void setSearchSupport(
bool b);
50 [[nodiscard]]
bool searchSupport()
const;
52 [[nodiscard]]
bool spellCheckingSupport()
const;
53 void setSpellCheckingSupport(
bool check);
55 void setSpellCheckingConfigFileName(
const QString &_fileName);
57 [[nodiscard]]
bool checkSpellingEnabled()
const;
58 void setCheckSpellingEnabled(
bool check);
60 void setSpellCheckingLanguage(
const QString &_language);
61 [[nodiscard]]
const QString &spellCheckingLanguage()
const;
63 virtual void setReadOnly(
bool readOnly);
64 virtual void createHighlighter();
66 [[nodiscard]]
bool textToSpeechSupport()
const;
67 void setTextToSpeechSupport(
bool b);
70 [[nodiscard]]
bool activateLanguageMenu()
const;
71 void setActivateLanguageMenu(
bool activate);
73 void setAllowTabSupport(
bool b);
74 [[nodiscard]]
bool allowTabSupport()
const;
76 void setShowAutoCorrectButton(
bool b);
77 [[nodiscard]]
bool showAutoCorrectButton()
const;
79 void forceSpellChecking();
80 [[nodiscard]]
QString spellCheckingConfigFileName()
const;
82 void setWebShortcutSupport(
bool b);
83 [[nodiscard]]
bool webShortcutSupport()
const;
88 virtual void forceAutoCorrection(
bool selectedText =
false);
90 void setDefaultFontSize(
int val);
91 [[nodiscard]]
int zoomFactor()
const;
92 void setEmojiSupport(
bool b);
93 [[nodiscard]]
bool emojiSupport()
const;
96 void slotDisplayMessageIndicator(
const QString &message);
98 void slotCheckSpelling();
102 virtual void addExtraMenuEntry(
QMenu *menu,
QPoint pos);
105 [[nodiscard]]
bool event(
QEvent *ev)
override;
106 void keyPressEvent(
QKeyEvent *event)
override;
113 virtual void updateHighLighter();
114 virtual void clearDecorator();
120 void spellCheckerAutoCorrect(
const QString ¤tWord,
const QString &autoCorrectWord);
121 void checkSpellingChanged(
bool);
122 void languageChanged(
const QString &);
123 void spellCheckStatus(
const QString &);
124 void spellCheckingFinished();
125 void spellCheckingCanceled();
128 TEXTCUSTOMEDITOR_NO_EXPORT
void slotUndoableClear();
129 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerMisspelling(
const QString &text,
int pos);
130 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerCorrected(
const QString &,
int,
const QString &);
131 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerAutoCorrect(
const QString &,
const QString &);
132 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerCanceled();
133 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerFinished();
134 TEXTCUSTOMEDITOR_NO_EXPORT
void slotToggleAutoSpellCheck();
135 TEXTCUSTOMEDITOR_NO_EXPORT
void slotLanguageSelected();
136 TEXTCUSTOMEDITOR_NO_EXPORT
void slotAllowTab();
138 TEXTCUSTOMEDITOR_NO_EXPORT
void addIgnoreWordsToHighLighter();
139 TEXTCUSTOMEDITOR_NO_EXPORT
bool handleShortcut(
QKeyEvent *event);
140 TEXTCUSTOMEDITOR_NO_EXPORT
bool overrideShortcut(
QKeyEvent *event);
141 TEXTCUSTOMEDITOR_NO_EXPORT
void deleteWordBack();
142 TEXTCUSTOMEDITOR_NO_EXPORT
void deleteWordForward();
143 TEXTCUSTOMEDITOR_NO_EXPORT
void highlightWord(
int length,
int pos);
144 TEXTCUSTOMEDITOR_NO_EXPORT
void checkSpelling(
bool force);
145 TEXTCUSTOMEDITOR_NO_EXPORT
void moveLineUpDown(
bool moveUp);
146 TEXTCUSTOMEDITOR_NO_EXPORT
void moveCursorBeginUpDown(
bool moveUp);
147 TEXTCUSTOMEDITOR_NO_EXPORT
void regenerateColorScheme();
148 TEXTCUSTOMEDITOR_NO_EXPORT
void updateReadOnlyColor();
149 TEXTCUSTOMEDITOR_NO_EXPORT
void slotInsertEmoticon(
const QString &str);
150 class RichTextEditorPrivate;
151 std::unique_ptr<RichTextEditorPrivate>
const d;
The RichTextEditor class.