Warning, file /office/calligra/libs/widgets/KoZoomInput.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* Copyright 2008  Peter Simonsson <peter.simonsson@gmail.com>
0002  *
0003  * This library is free software; you can redistribute it and/or
0004  * modify it under the terms of the GNU Library General Public
0005  * License as published by the Free Software Foundation; either
0006  * version 2 of the License, or (at your option) any later version.
0007  *
0008  * This library is distributed in the hope that it will be useful,
0009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0011  * Library General Public License for more details.
0012  *
0013  * You should have received a copy of the GNU Library General Public License
0014  * along with this library; see the file COPYING.LIB.  If not, write to
0015  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0016  * Boston, MA 02110-1301, USA.
0017  */
0018 
0019 #ifndef KOZOOMINPUT_H
0020 #define KOZOOMINPUT_H
0021 
0022 #include <QStackedWidget>
0023 
0024 class KoZoomInput : public QStackedWidget
0025 {
0026     Q_OBJECT
0027     public:
0028         explicit KoZoomInput(QWidget* parent = nullptr);
0029         ~KoZoomInput() override;
0030 
0031         void setZoomLevels(const QStringList& levels);
0032         void setCurrentZoomLevel(const QString& level);
0033 
0034         bool eventFilter(QObject* watched, QEvent* event) override;
0035 
0036     Q_SIGNALS:
0037         void zoomLevelChanged(const QString& level);
0038 
0039     protected:
0040         void enterEvent(QEvent* event) override;
0041         void leaveEvent(QEvent* event) override;
0042         void keyPressEvent(QKeyEvent* event) override;
0043 
0044     private:
0045         class Private;
0046         Private* const d;
0047 };
0048 
0049 #endif //KOZOOMINPUT_H