Update plugin converter text action

wilder
Laurent Montel 8 years ago
parent 9043f335bf
commit 4898220e57
  1. 2
      CMakeLists.txt
  2. 6
      src/editor/kmcomposerwin.cpp
  3. 1
      src/editor/kmcomposerwin.h
  4. 7
      src/editor/plugininterface/kmailplugineditorconverttextmanagerinterface.cpp
  5. 1
      src/editor/plugininterface/kmailplugineditorconverttextmanagerinterface.h

@ -66,7 +66,7 @@ find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED DBus Network Test Widget
set(LIBGRAVATAR_VERSION_LIB "5.9.40")
set(MAILCOMMON_LIB_VERSION_LIB "5.9.41")
set(KDEPIM_APPS_LIB_VERSION_LIB "5.9.40")
set(MESSAGELIB_LIB_VERSION_LIB "5.9.53")
set(MESSAGELIB_LIB_VERSION_LIB "5.9.55")
set(LIBKLEO_LIB_VERSION_LIB "5.9.40")
set(PIMCOMMON_LIB_VERSION_LIB "5.9.42")
set(LIBKDEPIM_LIB_VERSION_LIB "5.9.40")

@ -2982,6 +2982,12 @@ void KMComposerWin::slotTextModeChanged(MessageComposer::RichTextComposerNg::Mod
} else {
enableHtml();
}
enableDisablePluginActions(mode == MessageComposer::RichTextComposerNg::Rich);
}
void KMComposerWin::enableDisablePluginActions(bool richText)
{
mPluginEditorConvertTextManagerInterface->enableDisablePluginActions(richText);
}
void KMComposerWin::htmlToolBarVisibilityChanged(bool visible)

@ -413,6 +413,7 @@ public: // kmcommand
QList<KToggleAction *> customToolsList() const;
QList<QAction *> pluginToolsActionListForPopupMenu() const;
private:
void enableDisablePluginActions(bool richText);
/**
* Read settings from app's config file.
*/

@ -33,6 +33,13 @@ KMailPluginEditorConvertTextManagerInterface::~KMailPluginEditorConvertTextManag
{
}
void KMailPluginEditorConvertTextManagerInterface::enableDisablePluginActions(bool richText)
{
for (MessageComposer::PluginEditorConvertTextInterface *interface : qAsConst(mListPluginInterface)) {
interface->enableDisablePluginActions(richText);
}
}
void KMailPluginEditorConvertTextManagerInterface::reformatText()
{
for (MessageComposer::PluginEditorConvertTextInterface *interface : qAsConst(mListPluginInterface)) {

@ -53,6 +53,7 @@ public:
void setInitialData(const MessageComposer::PluginEditorConverterInitialData &data);
void setDataBeforeConvertingText(const MessageComposer::PluginEditorConverterBeforeConvertingData &data);
void enableDisablePluginActions(bool richText);
Q_SIGNALS:
void reformatingTextDone();

Loading…
Cancel
Save