From kde-commits Fri Sep 28 20:37:15 2018 From: Laurent Montel Date: Fri, 28 Sep 2018 20:37:15 +0000 To: kde-commits Subject: [kdepim-addons] /: Add share text plugin Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=153822270006765 Git commit d54fe19d6a7e40c5ff4c21e534ee25bde9110057 by Laurent Montel. Committed on 28/09/2018 at 20:37. Pushed by mlaurent into branch 'master'. Add share text plugin M +1 -0 kdepim-addons.categories M +1 -0 kmail/editorplugins/CMakeLists.txt A +19 -0 kmail/editorplugins/sharetext/CMakeLists.txt A +16 -0 kmail/editorplugins/sharetext/autotests/CMakeLists.txt A +43 -0 kmail/editorplugins/sharetext/autotests/sharetextpluginedito= rinterfacetest.cpp [License: GPL (v2+)] A +34 -0 kmail/editorplugins/sharetext/autotests/sharetextpluginedito= rinterfacetest.h [License: GPL (v2+)] A +43 -0 kmail/editorplugins/sharetext/autotests/sharetextpluginedito= rtest.cpp [License: GPL (v2+)] A +35 -0 kmail/editorplugins/sharetext/autotests/sharetextpluginedito= rtest.h [License: GPL (v2+)] A +13 -0 kmail/editorplugins/sharetext/kmail_sharetexteditorplugin.js= on A +47 -0 kmail/editorplugins/sharetext/sharetextplugineditor.cpp = [License: GPL (v2+)] A +39 -0 kmail/editorplugins/sharetext/sharetextplugineditor.h [L= icense: GPL (v2+)] A +60 -0 kmail/editorplugins/sharetext/sharetextplugineditorinterface= .cpp [License: GPL (v2+)] A +36 -0 kmail/editorplugins/sharetext/sharetextplugineditorinterface= .h [License: GPL (v2+)] A +44 -0 kmail/editorplugins/sharetext/sharetextpurposemenuwidget.cpp= [License: LGPL (v2+)] A +38 -0 kmail/editorplugins/sharetext/sharetextpurposemenuwidget.h = [License: LGPL (v2+)] https://commits.kde.org/kdepim-addons/d54fe19d6a7e40c5ff4c21e534ee25bde9110= 057 diff --git a/kdepim-addons.categories b/kdepim-addons.categories index 44943f5f..5e5878de 100644 --- a/kdepim-addons.categories +++ b/kdepim-addons.categories @@ -38,3 +38,4 @@ org.kde.pim.importwizard.nylasmailplugin kdepim-addons (i= mportwizard nylasmail p org.kde.pim.importwizard.operaplugin kdepim-addons (importwizard opera plu= gin) IDENTIFIER [OPERAPLUGIN_LOG] org.kde.pim.kmail_markdownplugin kdepim-addons (kmail markdonw plugin) IDE= NTIFIER [KMAIL_EDITOR_MARKDOWN_PLUGIN_LOG] org.kde.pim.mailtransport_sendmail kdepim-addons (kmailtransport sendmail = plugin) IDENTIFIER [MAILTRANSPORT_PLUGIN_LOG] +org.kde.pim.kmail_sharetexteditorplugin kdepim-addons (share text editor p= lugin) IDENTIFIER [KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG] diff --git a/kmail/editorplugins/CMakeLists.txt b/kmail/editorplugins/CMake= Lists.txt index aab0eb45..d8b065a1 100644 --- a/kmail/editorplugins/CMakeLists.txt +++ b/kmail/editorplugins/CMakeLists.txt @@ -6,3 +6,4 @@ add_subdirectory(nonbreakingspace) add_subdirectory(autocorrection) add_subdirectory(insertemail) add_subdirectory(insertshorturl) +add_subdirectory(sharetext) diff --git a/kmail/editorplugins/sharetext/CMakeLists.txt b/kmail/editorplu= gins/sharetext/CMakeLists.txt new file mode 100644 index 00000000..2d96f39b --- /dev/null +++ b/kmail/editorplugins/sharetext/CMakeLists.txt @@ -0,0 +1,19 @@ +set(kmail_sharetexteditorplugin_SRCS + sharetextplugineditor.cpp + sharetextplugineditorinterface.cpp + sharetextpurposemenuwidget.cpp +) + +ecm_qt_declare_logging_category(kmail_sharetexteditorplugin_SRCS HEADER sh= aretexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG CA= TEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin) + +kcoreaddons_add_plugin(kmail_sharetexteditorplugin JSON kmail_sharetextedi= torplugin.json SOURCES + ${kmail_sharetexteditorplugin_SRCS} INSTALL_NAMESPACE kmail) + +target_link_libraries(kmail_sharetexteditorplugin + KF5::IconThemes KF5::MessageComposer KF5::XmlGui KF5::I18n +) + +if(BUILD_TESTING) + add_subdirectory(autotests) +endif() + diff --git a/kmail/editorplugins/sharetext/autotests/CMakeLists.txt b/kmail= /editorplugins/sharetext/autotests/CMakeLists.txt new file mode 100644 index 00000000..9b63f8f3 --- /dev/null +++ b/kmail/editorplugins/sharetext/autotests/CMakeLists.txt @@ -0,0 +1,16 @@ +set(sharetextplugineditor_common_SRCS) +ecm_qt_declare_logging_category(sharetextplugineditor_common_SRCS HEADER s= haretexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_CHANGECASE_PLUGIN_LOG = CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin) + +macro(add_kmail_editorplugin_unittest _source _additional) + set( _test ${_source} ${_additional} ${sharetextplugineditor_common_SR= CS}) + get_filename_component(_name ${_source} NAME_WE) + add_executable( ${_name} ${_test} ) + add_test(NAME ${_name} COMMAND ${_name} ) + + ecm_mark_as_test(kmail_editorplugin-${_name}) + target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes = KF5::MessageComposer KF5::I18n KF5::PimTextEdit) +endmacro () + +add_kmail_editorplugin_unittest(sharetextplugineditortest.cpp "../sharetex= tplugineditor.cpp;../sharetextplugineditorinterface.cpp;../sharetextpurpose= menuwidget.cpp") + +add_kmail_editorplugin_unittest(sharetextplugineditorinterfacetest.cpp "..= /sharetextplugineditorinterface.cpp;../sharetextpurposemenuwidget.cpp") diff --git a/kmail/editorplugins/sharetext/autotests/sharetextplugineditori= nterfacetest.cpp b/kmail/editorplugins/sharetext/autotests/sharetextplugine= ditorinterfacetest.cpp new file mode 100644 index 00000000..22e347bc --- /dev/null +++ b/kmail/editorplugins/sharetext/autotests/sharetextplugineditorinterfac= etest.cpp @@ -0,0 +1,43 @@ +/* + Copyright (C) 2016-2018 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "sharetextplugineditorinterfacetest.h" +#include "../sharetextplugineditorinterface.h" +#include +#include + +ShareTextPluginEditorInterfaceTest::ShareTextPluginEditorInterfaceTest(QOb= ject *parent) + : QObject(parent) +{ +} + +ShareTextPluginEditorInterfaceTest::~ShareTextPluginEditorInterfaceTest() +{ +} + +void ShareTextPluginEditorInterfaceTest::shouldHaveDefaultValues() +{ + ShareTextPluginEditorInterface interface(nullptr); + interface.createAction(new KActionCollection(this)); + MessageComposer::PluginActionType type =3D interface.actionType(); + QVERIFY(type.action()); + QCOMPARE(type.type(), MessageComposer::PluginActionType::Edit); +} + +QTEST_MAIN(ShareTextPluginEditorInterfaceTest) diff --git a/kmail/editorplugins/sharetext/autotests/sharetextplugineditori= nterfacetest.h b/kmail/editorplugins/sharetext/autotests/sharetextpluginedi= torinterfacetest.h new file mode 100644 index 00000000..7ab4b6e3 --- /dev/null +++ b/kmail/editorplugins/sharetext/autotests/sharetextplugineditorinterfac= etest.h @@ -0,0 +1,34 @@ +/* + Copyright (C) 2016-2018 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef ShareTextPLUGINEDITORINTERFACETEST_H +#define ShareTextPLUGINEDITORINTERFACETEST_H + +#include + +class ShareTextPluginEditorInterfaceTest : public QObject +{ + Q_OBJECT +public: + explicit ShareTextPluginEditorInterfaceTest(QObject *parent =3D nullpt= r); + ~ShareTextPluginEditorInterfaceTest(); +private Q_SLOTS: + void shouldHaveDefaultValues(); +}; + +#endif diff --git a/kmail/editorplugins/sharetext/autotests/sharetextplugineditort= est.cpp b/kmail/editorplugins/sharetext/autotests/sharetextplugineditortest= .cpp new file mode 100644 index 00000000..88cec88d --- /dev/null +++ b/kmail/editorplugins/sharetext/autotests/sharetextplugineditortest.cpp @@ -0,0 +1,43 @@ +/* + Copyright (C) 2018 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "sharetextplugineditortest.h" +#include "../sharetextplugineditor.h" +#include +#include + +ShareTextPluginEditorTest::ShareTextPluginEditorTest(QObject *parent) + : QObject(parent) +{ +} + +ShareTextPluginEditorTest::~ShareTextPluginEditorTest() +{ +} + +void ShareTextPluginEditorTest::shouldHaveDefaultValue() +{ + ShareTextPluginEditor plugin; + QVERIFY(plugin.createInterface(new KActionCollection(this))); + QVERIFY(!plugin.hasPopupMenuSupport()); + QVERIFY(!plugin.hasConfigureDialog()); + QVERIFY(!plugin.hasToolBarSupport()); +} + +QTEST_MAIN(ShareTextPluginEditorTest) diff --git a/kmail/editorplugins/sharetext/autotests/sharetextplugineditort= est.h b/kmail/editorplugins/sharetext/autotests/sharetextplugineditortest.h new file mode 100644 index 00000000..49c1133e --- /dev/null +++ b/kmail/editorplugins/sharetext/autotests/sharetextplugineditortest.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2018 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef ShareTextPLUGINEDITORTEST_H +#define ShareTextPLUGINEDITORTEST_H + +#include + +class ShareTextPluginEditorTest : public QObject +{ + Q_OBJECT +public: + explicit ShareTextPluginEditorTest(QObject *parent =3D nullptr); + ~ShareTextPluginEditorTest(); +private Q_SLOTS: + void shouldHaveDefaultValue(); +}; + +#endif diff --git a/kmail/editorplugins/sharetext/kmail_sharetexteditorplugin.json= b/kmail/editorplugins/sharetext/kmail_sharetexteditorplugin.json new file mode 100644 index 00000000..fe02c39a --- /dev/null +++ b/kmail/editorplugins/sharetext/kmail_sharetexteditorplugin.json @@ -0,0 +1,13 @@ +{ + "KPlugin": { + "Description": "This plugin allows you to change the case of the s= elected text.", + "EnabledByDefault": "false", + "Id": "kmailsharetext", + "Name": "Share Text", + "ServiceTypes": [ + "KMailEditor/Plugin" + ], + "Version": "1.0" + }, + "X-KDE-KMailEditor-Order": "1" +} diff --git a/kmail/editorplugins/sharetext/sharetextplugineditor.cpp b/kmai= l/editorplugins/sharetext/sharetextplugineditor.cpp new file mode 100644 index 00000000..e4eef55f --- /dev/null +++ b/kmail/editorplugins/sharetext/sharetextplugineditor.cpp @@ -0,0 +1,47 @@ +/* + Copyright (C) 2018 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "sharetextplugineditor.h" +#include "sharetextplugineditorinterface.h" +#include + +K_PLUGIN_CLASS_WITH_JSON(ShareTextPluginEditor, "kmail_sharetexteditorplug= in.json") + +ShareTextPluginEditor::ShareTextPluginEditor(QObject *parent, const QList<= QVariant> &) + : MessageComposer::PluginEditor(parent) +{ +} + +ShareTextPluginEditor::~ShareTextPluginEditor() +{ +} + +bool ShareTextPluginEditor::hasPopupMenuSupport() const +{ + return false; +} + +MessageComposer::PluginEditorInterface *ShareTextPluginEditor::createInter= face(KActionCollection *ac, QObject *parent) +{ + ShareTextPluginEditorInterface *interface =3D new ShareTextPluginEdito= rInterface(parent); + interface->createAction(ac); + return interface; +} + +#include "sharetextplugineditor.moc" diff --git a/kmail/editorplugins/sharetext/sharetextplugineditor.h b/kmail/= editorplugins/sharetext/sharetextplugineditor.h new file mode 100644 index 00000000..8097b25a --- /dev/null +++ b/kmail/editorplugins/sharetext/sharetextplugineditor.h @@ -0,0 +1,39 @@ +/* + Copyright (C) 2018 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef SHARETEXTPLUGINEDITOR_H +#define SHARETEXTPLUGINEDITOR_H + +#include + +#include +#include + +class ShareTextPluginEditor : public MessageComposer::PluginEditor +{ + Q_OBJECT +public: + explicit ShareTextPluginEditor(QObject *parent =3D nullptr, const QLis= t & =3D QList()); + ~ShareTextPluginEditor() override; + + MessageComposer::PluginEditorInterface *createInterface(KActionCollect= ion *ac, QObject *parent =3D nullptr) override; + bool hasPopupMenuSupport() const override; +}; + +#endif diff --git a/kmail/editorplugins/sharetext/sharetextplugineditorinterface.c= pp b/kmail/editorplugins/sharetext/sharetextplugineditorinterface.cpp new file mode 100644 index 00000000..f7f853ca --- /dev/null +++ b/kmail/editorplugins/sharetext/sharetextplugineditorinterface.cpp @@ -0,0 +1,60 @@ +/* + Copyright (C) 2018 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "sharetextplugineditorinterface.h" +#include "sharetexteditorplugin_debug.h" +#include "sharetextpurposemenuwidget.h" +#include +#include +#include +#include +#include +#include + +ShareTextPluginEditorInterface::ShareTextPluginEditorInterface(QObject *pa= rent) + : MessageComposer::PluginEditorInterface(parent) +{ + setNeedSelectedText(false); +} + +ShareTextPluginEditorInterface::~ShareTextPluginEditorInterface() +{ +} + +void ShareTextPluginEditorInterface::createAction(KActionCollection *ac) +{ + SharetextPurposeMenuWidget *purposeMenu =3D new SharetextPurposeMenuWi= dget(parentWidget(), this); + if (purposeMenu->menu()) { + QAction *shareAction =3D new QAction(i18n("Share..."), this); + shareAction->setMenu(purposeMenu->menu()); + shareAction->setIcon(QIcon::fromTheme(QStringLiteral("document-sha= re"))); + ac->addAction(QStringLiteral("share_text_menu"), shareAction); + purposeMenu->setEditorWidget(this); + MessageComposer::PluginActionType type(shareAction, MessageCompose= r::PluginActionType::Edit); + setActionType(type); + } else { + delete purposeMenu; + } +} + +void ShareTextPluginEditorInterface::exec() +{ + //Nothing +} + diff --git a/kmail/editorplugins/sharetext/sharetextplugineditorinterface.h= b/kmail/editorplugins/sharetext/sharetextplugineditorinterface.h new file mode 100644 index 00000000..785468e5 --- /dev/null +++ b/kmail/editorplugins/sharetext/sharetextplugineditorinterface.h @@ -0,0 +1,36 @@ +/* + Copyright (C) 2018 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef SHARETEXTPLUGINEDITORINTERFACE_H +#define SHARETEXTPLUGINEDITORINTERFACE_H + +#include + +class ShareTextPluginEditorInterface : public MessageComposer::PluginEdito= rInterface +{ + Q_OBJECT +public: + explicit ShareTextPluginEditorInterface(QObject *parent =3D nullptr); + ~ShareTextPluginEditorInterface() override; + + void createAction(KActionCollection *ac) override; + void exec() override; +}; + +#endif diff --git a/kmail/editorplugins/sharetext/sharetextpurposemenuwidget.cpp b= /kmail/editorplugins/sharetext/sharetextpurposemenuwidget.cpp new file mode 100644 index 00000000..4884c374 --- /dev/null +++ b/kmail/editorplugins/sharetext/sharetextpurposemenuwidget.cpp @@ -0,0 +1,44 @@ +/* + Copyright (C) 2018 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public Licen= se + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#include "sharetextpurposemenuwidget.h" +#include "sharetextplugineditorinterface.h" +#include +#include +SharetextPurposeMenuWidget::SharetextPurposeMenuWidget(QWidget *parentWidg= et, QObject *parent) + : PimCommon::PurposeMenuWidget(parentWidget, parent) +{ + +} + +SharetextPurposeMenuWidget::~SharetextPurposeMenuWidget() +{ +} + +QByteArray SharetextPurposeMenuWidget::text() +{ + if (mInterface) { + return mInterface->richTextEditor()->toPlainText().toUtf8(); + } + return {}; +} + +void SharetextPurposeMenuWidget::setEditorWidget(ShareTextPluginEditorInte= rface *interface) +{ + mInterface =3D interface; +} diff --git a/kmail/editorplugins/sharetext/sharetextpurposemenuwidget.h b/k= mail/editorplugins/sharetext/sharetextpurposemenuwidget.h new file mode 100644 index 00000000..49280a95 --- /dev/null +++ b/kmail/editorplugins/sharetext/sharetextpurposemenuwidget.h @@ -0,0 +1,38 @@ +/* + Copyright (C) 2018 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public Licen= se + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef SHARETEXTPURPOSEMENUWIDGET_H +#define SHARETEXTPURPOSEMENUWIDGET_H + +#include +class ShareTextPluginEditorInterface; +class SharetextPurposeMenuWidget : public PimCommon::PurposeMenuWidget +{ + Q_OBJECT +public: + explicit SharetextPurposeMenuWidget(QWidget *parentWidget, QObject *pa= rent =3D nullptr); + ~SharetextPurposeMenuWidget() override; + + QByteArray text() override; + void setEditorWidget(ShareTextPluginEditorInterface *interface); +private: + ShareTextPluginEditorInterface *mInterface =3D nullptr; +}; + +#endif // SHARETEXTPURPOSEMENUWIDGET_H