9#include "ksieveui_export.h"
17class SieveImapAccountSettings;
21class SieveEditorTextModeWidget;
22class SieveEditorGraphicalModeWidget;
39 void setReadOnly(
bool b);
40 [[nodiscard]]
QString script()
const;
41 [[nodiscard]]
QString originalScript()
const;
42 void setScript(
const QString &script,
bool clearUndoRedo =
false);
43 void setDebugScript(
const QString &debug);
44 void setScriptName(
const QString &name);
48 void setSieveCapabilities(
const QStringList &capabilities);
50 void setListOfIncludeFile(
const QStringList &listOfIncludeFile);
52 void addFailedMessage(
const QString &err);
53 void addOkMessage(
const QString &msg);
54 void addNormalMessage(
const QString &msg);
56 void setModified(
bool b);
57 [[nodiscard]]
bool isModified()
const;
59 [[nodiscard]] EditorMode mode()
const;
61 [[nodiscard]]
bool isRedoAvailable()
const;
62 [[nodiscard]]
bool isUndoAvailable()
const;
63 [[nodiscard]]
bool hasSelection()
const;
73 [[nodiscard]]
QString currentHelpTitle()
const;
74 [[nodiscard]]
QUrl currentHelpUrl()
const;
75 void openBookmarkUrl(
const QUrl &url);
76 void debugSieveScript();
78 bool isWordWrap()
const;
80 void updateOriginalScript();
84 bool printSupportEnabled()
const;
85 bool isTextEditor()
const;
98 void slotCreateRulesGraphically();
99 void slotCheckSyntax();
102 void setWordWrap(
bool state);
106 void enableButtonOk(
bool b);
107 void valueChanged(
bool b);
108 void modeEditorChanged(KSieveUi::SieveEditorWidget::EditorMode);
109 void undoAvailable(
bool);
110 void redoAvailable(
bool);
111 void copyAvailable(
bool);
112 void changeModeEditor(
bool);
113 void sieveEditorTabCurrentChanged();
116 KSIEVEUI_NO_EXPORT
void slotEnableButtonOk(
bool b);
117 KSIEVEUI_NO_EXPORT
void slotGenerateXml();
118 KSIEVEUI_NO_EXPORT
void slotSwitchMode();
119 KSIEVEUI_NO_EXPORT
void slotSwitchTextMode(
const QString &script);
120 KSIEVEUI_NO_EXPORT
void slotSwitchToGraphicalMode();
121 KSIEVEUI_NO_EXPORT
void slotModified();
122 KSIEVEUI_NO_EXPORT
void changeSwitchButtonText();
123 KSIEVEUI_NO_EXPORT
void changeMode(EditorMode mode);
124 KSIEVEUI_NO_EXPORT
void addMessageEntry(
const QString &errorMsg,
const QColor &color);
125 KSIEVEUI_NO_EXPORT
void slotServerInfo();
128 SieveEditorGraphicalModeWidget *mGraphicalModeWidget =
nullptr;
131 QAction *mCheckSyntax =
nullptr;
132 QAction *mSwitchMode =
nullptr;
133 QAction *mCreateRulesGraphically =
nullptr;
135 QAction *mGenerateXml =
nullptr;
136 QAction *mServerInfo =
nullptr;
137 EditorMode mMode = EditorMode::TextMode;
138 bool mModified =
false;
The SieveImapAccountSettings class.
The SieveEditorTextModeWidget class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:10 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.