File indexing completed on 2025-02-16 04:49:27
0001 /* 0002 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <MessageComposer/PluginEditorInterface> 0010 #include <QPointer> 0011 #include <TextAddonsWidgets/SelectSpecialCharDialog> 0012 0013 class InsertSpecialCharacterPluginEditorInterface : public MessageComposer::PluginEditorInterface 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit InsertSpecialCharacterPluginEditorInterface(QObject *parent = nullptr); 0018 ~InsertSpecialCharacterPluginEditorInterface() override; 0019 0020 void createAction(KActionCollection *ac) override; 0021 void exec() override; 0022 0023 private: 0024 void charSelected(QChar c); 0025 void slotActivated(); 0026 QPointer<TextAddonsWidgets::SelectSpecialCharDialog> mSelectSpecialChar; 0027 };