F:/KPlato/koffice/libs/flake/KoToolProxy.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (c) 2006 Boudewijn Rempt <boud@valdyas.org>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019  */
00020 #ifndef _KO_TOOL_PROXY_H_
00021 #define _KO_TOOL_PROXY_H_
00022 
00023 #include <KoViewConverter.h>
00024 
00025 #include <QPainter>
00026 
00027 #include <KoViewConverter.h>
00028 
00029 class QPaintEvent;
00030 class QMouseEvent;
00031 class QKeyEvent;
00032 class QWheelEvent;
00033 class QTabletEvent;
00034 
00044 class KoToolProxy {
00045 
00046 public:
00047     KoToolProxy() {}
00048     virtual ~KoToolProxy(){}
00049 
00054     virtual void paint( QPainter &painter, KoViewConverter &converter ) = 0;
00055     virtual void repaintDecorations() = 0;
00056     virtual void tabletEvent( QTabletEvent *event, const QPointF &pnt ) = 0;
00057     virtual void mousePressEvent( QMouseEvent *event, const QPointF &pnt  ) = 0;
00058     virtual void mouseDoubleClickEvent( QMouseEvent *event, const QPointF &pnt  ) = 0;
00059     virtual void mouseMoveEvent( QMouseEvent *event, const QPointF &pnt  ) = 0;
00060     virtual void mouseReleaseEvent( QMouseEvent *event, const QPointF &pnt  ) = 0;
00061     virtual void keyPressEvent(QKeyEvent *event) = 0;
00062     virtual void keyReleaseEvent(QKeyEvent *event) = 0;
00063     virtual void wheelEvent ( QWheelEvent * event, const QPointF &pnt  ) = 0;
00064 
00065 };
00066 
00067 
00068 #endif // _KO_TOOL_PROXY_H_

Généré le Wed Nov 22 23:41:00 2006 pour KPlato par  doxygen 1.5.1-p1