Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 3ff80274 authored by Laurent Montel's avatar Laurent Montel 😁

Initialize plugins

parent e7c64d8e
......@@ -31,6 +31,7 @@
#include "editor/plugininterface/kmailplugineditorcheckbeforesendmanagerinterface.h"
#include "editor/plugininterface/kmailplugineditorinitmanagerinterface.h"
#include "editor/plugininterface/kmailplugineditormanagerinterface.h"
#include "editor/plugininterface/kmailplugineditorconverttextmanagerinterface.h"
#include "editor/potentialphishingemail/potentialphishingemailjob.h"
#include "editor/potentialphishingemail/potentialphishingemailwarning.h"
#include "editor/warningwidgets/incorrectidentityfolderwarning.h"
......@@ -238,6 +239,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
connect(mPluginEditorManagerInterface, &KMailPluginEditorManagerInterface::message, this, &KMComposerWin::slotMessage);
mPluginEditorCheckBeforeSendManagerInterface = new KMailPluginEditorCheckBeforeSendManagerInterface(this);
mPluginEditorInitManagerInterface = new KMailPluginEditorInitManagerInterface(this);
mPluginEditorConvertTextManagerInterface = new KMailPluginEditorConvertTextManagerInterface(this);
connect(mComposerBase, &MessageComposer::ComposerViewBase::disableHtml, this, &KMComposerWin::disableHtml);
connect(mComposerBase, &MessageComposer::ComposerViewBase::enableHtml, this, &KMComposerWin::enableHtml);
......@@ -429,6 +431,9 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
mPluginEditorInitManagerInterface->setParent(this);
mPluginEditorInitManagerInterface->setRichTextEditor(composerEditorNg);
mPluginEditorConvertTextManagerInterface->setParentWidget(this);
mPluginEditorConvertTextManagerInterface->setActionCollection(actionCollection());
setupStatusBar(attachmentView->widget());
setupActions();
setupEditor();
......@@ -1306,6 +1311,7 @@ void KMComposerWin::setupActions(void)
mPluginEditorManagerInterface->initializePlugins();
mPluginEditorCheckBeforeSendManagerInterface->initializePlugins();
mPluginEditorInitManagerInterface->initializePlugins();
mPluginEditorConvertTextManagerInterface->initializePlugins();
mHideMenuBarAction = KStandardAction::showMenubar(this, &KMComposerWin::slotToggleMenubar, actionCollection());
mHideMenuBarAction->setChecked(KMailSettings::self()->composerShowMenuBar());
......
......@@ -73,6 +73,7 @@ class KMailPluginEditorManagerInterface;
class KMailPluginEditorCheckBeforeSendManagerInterface;
class KMailPluginEditorInitManagerInterface;
class IncorrectIdentityFolderWarning;
class KMailPluginEditorConvertTextManagerInterface;
namespace MailTransport {
class Transport;
}
......@@ -659,6 +660,7 @@ private:
KMailPluginEditorManagerInterface *mPluginEditorManagerInterface = nullptr;
KMailPluginEditorCheckBeforeSendManagerInterface *mPluginEditorCheckBeforeSendManagerInterface = nullptr;
KMailPluginEditorInitManagerInterface *mPluginEditorInitManagerInterface = nullptr;
KMailPluginEditorConvertTextManagerInterface *mPluginEditorConvertTextManagerInterface = nullptr;
};
#endif
......@@ -54,3 +54,8 @@ void KMailPluginEditorConvertTextManagerInterface::setActionCollection(KActionCo
{
mActionCollection = actionCollection;
}
void KMailPluginEditorConvertTextManagerInterface::initializePlugins()
{
//TODO
}
......@@ -38,6 +38,8 @@ public:
KActionCollection *actionCollection() const;
void setActionCollection(KActionCollection *actionCollection);
void initializePlugins();
private:
Q_DISABLE_COPY(KMailPluginEditorConvertTextManagerInterface)
QList<MessageComposer::PluginEditorConvertTextInterface *> mListPluginInterface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment