kdeui Library API Documentation

kcursor_private.h

00001 /* This file is part of the KDE libraries
00002 
00003    Copyright (c) 2000 Carsten Pfeiffer <pfeiffer@kde.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 (LGPL) 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., 59 Temple Place - Suite 330,
00018    Boston, MA 02111-1307, USA.
00019 */
00020 
00021 #ifndef KCURSOR_PRIVATE_H
00022 #define KCURSOR_PRIVATE_H
00023 
00024 #include <qcursor.h>
00025 #include <qobject.h>
00026 
00027 class QPoint;
00028 class QTimer;
00029 class QWidget;
00030 
00037 class KCursorPrivate : public QObject
00038 {
00039     friend class KCursor; // to shut up the compiler
00040     Q_OBJECT
00041 
00042 public:
00043     static KCursorPrivate *self();
00044     void start();
00045     void stop();
00046     void hideCursor( QWidget * );
00047     void unhideCursor( QWidget * );
00048     virtual bool eventFilter( QObject *o, QEvent *e );
00049 
00050     int hideCursorDelay;
00051 
00052 private slots:
00053     void slotHideCursor();
00054     void slotWidgetDestroyed();
00055 
00056 private:
00057     KCursorPrivate();
00058     ~KCursorPrivate();
00059 
00060     bool insideWidget( const QPoint&, QWidget * );
00061 
00062     int count;
00063     bool isCursorHidden;
00064     bool isOwnCursor;
00065     bool enabled;
00066     QCursor oldCursor;
00067     QTimer *autoHideTimer;
00068     QWidget *hideWidget;
00069     static KCursorPrivate *s_self;
00070 };
00071 
00072 
00073 
00074 #endif // KCURSOR_PRIVATE_H
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:20:58 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001