File indexing completed on 2024-04-28 05:52:37
0001 /* 0002 This file is part of the Okteta Gui library, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2021 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef OKTETA_ZOOMPINCHCONTROLLER_HPP 0010 #define OKTETA_ZOOMPINCHCONTROLLER_HPP 0011 0012 class QPinchGesture; 0013 0014 namespace Okteta { 0015 class AbstractByteArrayView; 0016 0017 class ZoomPinchController 0018 { 0019 public: 0020 explicit ZoomPinchController(AbstractByteArrayView* view); 0021 ZoomPinchController(const ZoomPinchController&) = delete; 0022 0023 ~ZoomPinchController() = default; 0024 0025 ZoomPinchController& operator=(const ZoomPinchController&) = delete; 0026 0027 public: 0028 bool handlePinchGesture(QPinchGesture* pinchGesture); 0029 0030 private: 0031 AbstractByteArrayView* mView; 0032 double mOriginalZoomLevel = -1; 0033 }; 0034 0035 } 0036 0037 #endif