Warning, file /office/calligra/libs/flake/KoToolProxy_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 * Copyright (C) 2006-2010 Thomas Zander <zander@kde.org> 0003 * 0004 * This library is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU Library General Public 0006 * License as published by the Free Software Foundation; either 0007 * version 2 of the License, or (at your option) any later version. 0008 * 0009 * This library is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 * Library General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU Library General Public License 0015 * along with this library; see the file COPYING.LIB. If not, write to 0016 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 0020 #ifndef KOTOOLPROXYPRIVATE_P 0021 #define KOTOOLPROXYPRIVATE_P 0022 0023 #include <QTimer> 0024 #include <QTime> 0025 #include <QPointF> 0026 0027 class KoPointerEvent; 0028 class KoToolBase; 0029 class KoCanvasController; 0030 class KoToolProxy; 0031 0032 class KoToolProxyPrivate 0033 { 0034 public: 0035 explicit KoToolProxyPrivate(KoToolProxy *p); 0036 0037 void timeout(); // Auto scroll the canvas 0038 0039 void checkAutoScroll(const KoPointerEvent &event); 0040 0041 void selectionChanged(bool newSelection); 0042 0043 bool isActiveLayerEditable(); 0044 0045 /// the toolManager tells us which KoCanvasController this toolProxy is working for. 0046 void setCanvasController(KoCanvasController *controller); 0047 0048 KoToolBase *activeTool; 0049 bool tabletPressed; 0050 bool hasSelection; 0051 QTimer scrollTimer; 0052 QPoint widgetScrollPoint; 0053 KoCanvasController *controller; 0054 KoToolProxy *parent; 0055 0056 // used to determine if the mouse-release is after a drag or a simple click 0057 QPoint mouseDownPoint; 0058 0059 // up until at least 4.3.0 we get a mouse move event when the tablet leaves the canvas. 0060 bool mouseLeaveWorkaround; 0061 0062 // for multi clicking (double click or triple click) we need the following 0063 int multiClickCount; 0064 Qt::MouseButton multiClickButton; 0065 QPointF multiClickGlobalPoint; 0066 QTime multiClickTimeStamp; 0067 }; 0068 0069 #endif