Warning, file /office/calligra/libs/widgets/KoZoomWidget.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 Copyright (C) 2004 Ariya Hidayat <ariya@kde.org> 0003 Copyright (C) 2006 Peter Simonsson <peter.simonsson@gmail.com> 0004 Copyright (C) 2006-2007 C. Boemann <cbo@boemann.dk> 0005 Copyright (C) 2014 Sven Langkamp <sven.langkamp@gmail.com> 0006 0007 This library is free software; you can redistribute it and/or 0008 modify it under the terms of the GNU Library General Public 0009 License version 2 as published by the Free Software Foundation. 0010 0011 This library is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 Library General Public License for more details. 0015 0016 You should have received a copy of the GNU Library General Public License 0017 along with this library; see the file COPYING.LIB. If not, write to 0018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0019 Boston, MA 02110-1301, USA. 0020 */ 0021 0022 #ifndef KOZOOMWIDGET_H 0023 #define KOZOOMWIDGET_H 0024 0025 #include <QWidget> 0026 #include "KoZoomAction.h" 0027 #include <QScopedPointer> 0028 0029 class KoZoomWidget : public QWidget 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 KoZoomWidget(QWidget* parent, KoZoomAction::SpecialButtons specialButtons, int maxZoom); 0035 ~KoZoomWidget() override; 0036 0037 Q_SIGNALS: 0038 /** 0039 * Signal sliderValueChanged is triggered when the user moves the slider 0040 * @param value value of the slider 0041 */ 0042 void sliderValueChanged(int value); 0043 0044 /** 0045 * Signal zoomLevelChanged is triggered when the user changes the KoZoomInput combobox widget 0046 * @param level value of the slider 0047 */ 0048 void zoomLevelChanged(const QString& level); 0049 0050 /** 0051 * Signal aspectModeChanged is triggered when the user toggles the widget. 0052 * Nothing else happens except that this signal is emitted. 0053 * @param status Whether the special aspect mode is on 0054 */ 0055 void aspectModeChanged( bool status ); 0056 0057 /** 0058 * Signal is triggered when the user clicks the zoom to selection button. 0059 * Nothing else happens except that this signal is emitted. 0060 */ 0061 void zoomedToSelection(); 0062 0063 /** 0064 * Signal is triggered when the user clicks the zoom to all button. 0065 * Nothing else happens except that this signal is emitted. 0066 */ 0067 void zoomedToAll(); 0068 0069 public Q_SLOTS: 0070 void setZoomLevels(const QStringList &values); 0071 void setCurrentZoomLevel(const QString &valueString); 0072 void setSliderValue(int value); 0073 0074 /** 0075 * Change status of "Use same aspect as pixels" button 0076 */ 0077 void setAspectMode(bool status); 0078 private: 0079 class Private; 0080 QScopedPointer<Private> const d; 0081 }; 0082 0083 #endif // KOZOOMWIDGET_H