8#include "ksieveui_export.h"
9#include "sieveeditorabstractwidget.h"
11namespace TextAddonsWidgets
15namespace TextCustomEditor
17class TextGoToLineWidget;
18class PlainTextEditFindBar;
20class PlainTextEditorWidget;
24class PurposeMenuMessageWidget;
26#ifdef HAVE_KTEXTADDONS_TEXT_TO_SPEECH_SUPPORT
29class TextToSpeechContainerWidget;
35class SieveEditorWarning;
36class SieveEditorParsingMissingFeatureWarning;
37class SieveEditorTabWidget;
38class SieveTemplateWidget;
50 void setSieveCapabilities(
const QStringList &capabilities);
51 void setReadOnly(
bool b);
53 [[nodiscard]]
QString script()
const;
54 void setScript(
const QString &script,
bool clearUndoRedo =
false);
56 void setDebugScript(
const QString &debug);
58 [[nodiscard]]
QString currentscript()
override;
59 void setImportScript(
const QString &script)
override;
61 void createRulesGraphically();
64 void showEditorWarning();
65 void hideEditorWarning();
67 void showParsingEditorWarning();
69 void setParsingEditorWarningError(
const QString &script,
const QString &error);
81 bool isUndoAvailable()
const;
82 bool isRedoAvailable()
const;
83 bool hasSelection()
const;
92 [[nodiscard]]
QString currentHelpTitle()
const;
93 [[nodiscard]]
QUrl currentHelpUrl()
const;
94 void openBookmarkUrl(
const QUrl &url);
95 void debugSieveScript();
97 void setWordWrap(
bool state);
98 [[nodiscard]]
bool isWordWrap()
const;
101 [[nodiscard]]
bool printSupportEnabled()
const;
102 [[nodiscard]]
bool isTextEditor()
const;
105 void setListOfIncludeFile(
const QStringList &listOfIncludeFile);
106 [[nodiscard]]
QStringList sieveCapabilities()
const;
109 void enableButtonOk(
bool);
110 void switchToGraphicalMode();
112 void undoAvailable(
bool);
113 void redoAvailable(
bool);
114 void copyAvailable(
bool);
115 void sieveEditorTabCurrentChanged();
118 void slotShowGoToLine();
119 void slotShareError(
const QString &message);
120 void slotShareSuccess(
const QString &url);
123 KSIEVEUI_NO_EXPORT
void slotTextChanged();
124 KSIEVEUI_NO_EXPORT
void slotFind();
125 KSIEVEUI_NO_EXPORT
void slotReplace();
126 KSIEVEUI_NO_EXPORT
void slotGoToLine(
int line);
127 KSIEVEUI_NO_EXPORT
void readConfig();
128 KSIEVEUI_NO_EXPORT
void writeConfig();
129 KSIEVEUI_NO_EXPORT
void slotEditRule(
const QString &selectedText);
130 KSIEVEUI_NO_EXPORT
void slotInsertRule();
131 KSIEVEUI_NO_EXPORT
void insertRequires(
const QStringList &needToAddRequire);
139#ifdef HAVE_KTEXTADDONS_TEXT_TO_SPEECH_SUPPORT
144 SieveEditorWarning *mSieveEditorWarning =
nullptr;
145 SieveEditorParsingMissingFeatureWarning *mSieveParsingWarning =
nullptr;
150 SieveTemplateWidget *mSieveTemplateWidget =
nullptr;
151 QWidget *mEditorWidget =
nullptr;
The SieveEditorTextModeWidget class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:30 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.