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

0001 /* This file is part of the KDE project
0002  *
0003  * Copyright (C) 2006, 2008-2009 Thomas Zander <zander@kde.org>
0004  * Copyright (C) 2006 Peter Simonsson <peter.simonsson@gmail.com>
0005  * Copyright (C) 2006, 2009 Thorsten Zachmann <zachmann@kde.org>
0006  * Copyright (C) 2007-2010 Boudewijn Rempt <boud@valdyas.org>
0007  * Copyright (C) 2007 C. Boemann <cbo@boemann.dk>
0008  * Copyright (C) 2006-2008 Jan Hambrecht <jaham@gmx.net>
0009  *
0010  * This library is free software; you can redistribute it and/or
0011  * modify it under the terms of the GNU Library General Public
0012  * License as published by the Free Software Foundation; either
0013  * version 2 of the License, or (at your option) any later version.
0014  *
0015  * This library is distributed in the hope that it will be useful,
0016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0018  * Library General Public License for more details.
0019  *
0020  * You should have received a copy of the GNU Library General Public License
0021  * along with this library; see the file COPYING.LIB.  If not, write to
0022  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0023  * Boston, MA 02110-1301, USA.
0024  */
0025 #ifndef KoCanvasControllerWidget_p_h
0026 #define KoCanvasControllerWidget_p_h
0027 
0028 #include "KoCanvasControllerWidget.h"
0029 
0030 #include "KoCanvasControllerWidgetViewport_p.h"
0031 #include "KoShape.h"
0032 #include "KoViewConverter.h"
0033 #include "KoCanvasBase.h"
0034 #include "KoCanvasObserverBase.h"
0035 #include "KoCanvasSupervisor.h"
0036 #include "KoToolManager_p.h"
0037 
0038 #include <FlakeDebug.h>
0039 #include <QMouseEvent>
0040 #include <QPainter>
0041 #include <QScrollBar>
0042 #include <QEvent>
0043 #include <QDockWidget>
0044 #include <QTimer>
0045 
0046 #include <KoConfig.h>
0047 
0048 class Q_DECL_HIDDEN KoCanvasControllerWidget::Private
0049 {
0050 public:
0051 
0052     Private(KoCanvasControllerWidget *qq)
0053         : q(qq)
0054         , canvas(0)
0055         , ignoreScrollSignals(false)
0056         , zoomWithWheel(false)
0057         , vastScrollingFactor(0)
0058     {
0059     }
0060 
0061     /**
0062      * Gets called by the tool manager if this canvas controller is the current active canvas controller.
0063      */
0064     void setDocumentOffset();
0065 
0066     void resetScrollBars();
0067     void emitPointerPositionChangedSignals(QEvent *event);
0068 
0069     void activate();
0070     void unsetCanvas();
0071 
0072     KoCanvasControllerWidget *q;
0073     KoCanvasBase *canvas;
0074     Viewport *viewportWidget;
0075     bool ignoreScrollSignals;
0076     bool zoomWithWheel;
0077     qreal vastScrollingFactor;
0078 };
0079 
0080 #endif