27 Q_PROPERTY(
bool searchSupport READ searchSupport WRITE setSearchSupport)
28 Q_PROPERTY(
bool spellCheckingSupport READ spellCheckingSupport WRITE setSpellCheckingSupport)
29 Q_PROPERTY(
bool textToSpeechSupport READ textToSpeechSupport WRITE setTextToSpeechSupport)
30 Q_PROPERTY(
bool webShortcutSupport READ webShortcutSupport WRITE setWebShortcutSupport)
31 Q_PROPERTY(
bool emojiSupport READ emojiSupport WRITE setEmojiSupport)
46 void setSearchSupport(
bool b);
47 [[nodiscard]]
bool searchSupport()
const;
49 [[nodiscard]]
bool spellCheckingSupport()
const;
50 void setSpellCheckingSupport(
bool check);
52 virtual void setReadOnly(
bool readOnly);
54 void setTextToSpeechSupport(
bool b);
55 [[nodiscard]]
bool textToSpeechSupport()
const;
57 void setWebShortcutSupport(
bool b);
58 [[nodiscard]]
bool webShortcutSupport()
const;
60 virtual void createHighlighter();
63 [[nodiscard]]
bool activateLanguageMenu()
const;
64 void setActivateLanguageMenu(
bool activate);
66 [[nodiscard]]
bool checkSpellingEnabled()
const;
67 void setCheckSpellingEnabled(
bool check);
68 void setSpellCheckingConfigFileName(
const QString &_fileName);
69 [[nodiscard]]
QString spellCheckingConfigFileName()
const;
70 [[nodiscard]]
const QString &spellCheckingLanguage()
const;
71 void setSpellCheckingLanguage(
const QString &_language);
73 void setEmojiSupport(
bool b);
74 [[nodiscard]]
bool emojiSupport()
const;
77 void slotDisplayMessageIndicator(
const QString &message);
78 void slotCheckSpelling();
83 virtual void addExtraMenuEntry(
QMenu *menu,
QPoint pos);
85 [[nodiscard]]
bool event(
QEvent *ev)
override;
86 void keyPressEvent(
QKeyEvent *event)
override;
87 [[nodiscard]]
bool overrideShortcut(
QKeyEvent *event);
88 [[nodiscard]]
bool handleShortcut(
QKeyEvent *event);
94 virtual void updateHighLighter();
95 virtual void clearDecorator();
100 void spellCheckerAutoCorrect(
const QString ¤tWord,
const QString &autoCorrectWord);
101 void checkSpellingChanged(
bool);
102 void languageChanged(
const QString &);
103 void spellCheckStatus(
const QString &);
107 TEXTCUSTOMEDITOR_NO_EXPORT
void slotUndoableClear();
108 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerMisspelling(
const QString &text,
int pos);
109 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerCorrected(
const QString &,
int,
const QString &);
110 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerAutoCorrect(
const QString &,
const QString &);
111 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerCanceled();
112 TEXTCUSTOMEDITOR_NO_EXPORT
void slotSpellCheckerFinished();
114 TEXTCUSTOMEDITOR_NO_EXPORT
void slotLanguageSelected();
115 TEXTCUSTOMEDITOR_NO_EXPORT
void slotToggleAutoSpellCheck();
116 TEXTCUSTOMEDITOR_NO_EXPORT
void addIgnoreWordsToHighLighter();
117 TEXTCUSTOMEDITOR_NO_EXPORT
void deleteWordBack();
118 TEXTCUSTOMEDITOR_NO_EXPORT
void deleteWordForward();
119 TEXTCUSTOMEDITOR_NO_EXPORT
void highlightWord(
int length,
int pos);
120 TEXTCUSTOMEDITOR_NO_EXPORT
void deleteEndOfLine();
121 TEXTCUSTOMEDITOR_NO_EXPORT
void moveLineUpDown(
bool moveUp);
122 TEXTCUSTOMEDITOR_NO_EXPORT
void moveCursorBeginUpDown(
bool moveUp);
123 TEXTCUSTOMEDITOR_NO_EXPORT
void regenerateColorScheme();
124 TEXTCUSTOMEDITOR_NO_EXPORT
void updateReadOnlyColor();
125 TEXTCUSTOMEDITOR_NO_EXPORT
void slotInsertEmoticon(
const QString &str);
126 class PlainTextEditorPrivate;
127 std::unique_ptr<PlainTextEditorPrivate>
const d;
The PlainTextEditor class.