9#include "ksieveui_export.h"
17class SieveImapAccountSettings;
21class SieveEditorTextModeWidget;
22class SieveEditorGraphicalModeWidget;
33 enum EditorMode { Unknown = -1, TextMode = 0, GraphicMode = 1 };
35 void setReadOnly(
bool b);
36 [[nodiscard]]
QString script()
const;
37 [[nodiscard]]
QString originalScript()
const;
38 void setScript(
const QString &script,
bool clearUndoRedo =
false);
39 void setDebugScript(
const QString &debug);
40 void setScriptName(
const QString &name);
44 void setSieveCapabilities(
const QStringList &capabilities);
46 void setListOfIncludeFile(
const QStringList &listOfIncludeFile);
48 void addFailedMessage(
const QString &err);
49 void addOkMessage(
const QString &msg);
50 void addNormalMessage(
const QString &msg);
52 void setModified(
bool b);
53 [[nodiscard]]
bool isModified()
const;
55 [[nodiscard]] EditorMode mode()
const;
57 [[nodiscard]]
bool isRedoAvailable()
const;
58 [[nodiscard]]
bool isUndoAvailable()
const;
59 [[nodiscard]]
bool hasSelection()
const;
69 [[nodiscard]]
QString currentHelpTitle()
const;
70 [[nodiscard]]
QUrl currentHelpUrl()
const;
71 void openBookmarkUrl(
const QUrl &url);
72 void debugSieveScript();
74 bool isWordWrap()
const;
76 void updateOriginalScript();
80 bool printSupportEnabled()
const;
81 bool isTextEditor()
const;
94 void slotCreateRulesGraphically();
95 void slotCheckSyntax();
98 void setWordWrap(
bool state);
102 void enableButtonOk(
bool b);
103 void valueChanged(
bool b);
104 void modeEditorChanged(KSieveUi::SieveEditorWidget::EditorMode);
105 void undoAvailable(
bool);
106 void redoAvailable(
bool);
107 void copyAvailable(
bool);
108 void changeModeEditor(
bool);
109 void sieveEditorTabCurrentChanged();
112 KSIEVEUI_NO_EXPORT
void slotEnableButtonOk(
bool b);
113 KSIEVEUI_NO_EXPORT
void slotGenerateXml();
114 KSIEVEUI_NO_EXPORT
void slotSwitchMode();
115 KSIEVEUI_NO_EXPORT
void slotSwitchTextMode(
const QString &script);
116 KSIEVEUI_NO_EXPORT
void slotSwitchToGraphicalMode();
117 KSIEVEUI_NO_EXPORT
void slotModified();
118 KSIEVEUI_NO_EXPORT
void changeSwitchButtonText();
119 KSIEVEUI_NO_EXPORT
void changeMode(EditorMode mode);
120 KSIEVEUI_NO_EXPORT
void addMessageEntry(
const QString &errorMsg,
const QColor &color);
121 KSIEVEUI_NO_EXPORT
void slotServerInfo();
124 SieveEditorGraphicalModeWidget *mGraphicalModeWidget =
nullptr;
127 QAction *mCheckSyntax =
nullptr;
128 QAction *mSwitchMode =
nullptr;
129 QAction *mCreateRulesGraphically =
nullptr;
131 QAction *mGenerateXml =
nullptr;
132 QAction *mServerInfo =
nullptr;
133 EditorMode mMode = EditorMode::TextMode;
134 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 Fri Oct 11 2024 12:07:48 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.