File indexing completed on 2025-01-05 04:49:30
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 class ZoomLabel; 0011 class ZoomTextPluginEditorInterface : public MessageComposer::PluginEditorInterface 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit ZoomTextPluginEditorInterface(QObject *parent = nullptr); 0016 ~ZoomTextPluginEditorInterface() override; 0017 0018 void createAction(KActionCollection *ac) override; 0019 void exec() override; 0020 0021 Q_SIGNALS: 0022 void zoomFactorChanged(int val); 0023 0024 private: 0025 void slotZoomOut(); 0026 void slotZoomIn(); 0027 void slotZoomReset(); 0028 0029 void zoomReset(); 0030 void zoomIn(); 0031 void zoomOut(); 0032 enum ZoomTextType { 0033 Unknown = -1, 0034 ZoomReset = 0, 0035 ZoomIn, 0036 ZoomOut, 0037 }; 0038 ZoomTextType mType = Unknown; 0039 ZoomLabel *mZoomLabelWidget = nullptr; 0040 };