kcursor.h
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 1998 Kurt Granroth (granroth@kde.org) 00003 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 version 2 as published by the Free Software Foundation. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 00018 */ 00019 /* 00020 * $Id: kcursor.h,v 1.15 2001/12/11 12:19:15 lunakl Exp $ 00021 * 00022 */ 00023 #ifndef _KCURSOR_H 00024 #define _KCURSOR_H 00025 00026 #include <qcursor.h> 00027 00028 class QWidget; 00029 00043 class KCursor : public Qt 00044 { 00045 public: 00051 KCursor(); 00052 00057 static QCursor handCursor(); 00058 00063 static QCursor workingCursor(); 00064 00069 static QCursor arrowCursor(); 00070 00075 static QCursor upArrowCursor(); 00076 00081 static QCursor crossCursor(); 00082 00087 static QCursor waitCursor(); 00088 00093 static QCursor ibeamCursor(); 00094 00099 static QCursor sizeVerCursor(); 00100 00105 static QCursor sizeHorCursor(); 00106 00111 static QCursor sizeBDiagCursor(); 00112 00117 static QCursor sizeFDiagCursor(); 00118 00123 static QCursor sizeAllCursor(); 00124 00128 static QCursor blankCursor(); 00129 00133 static QCursor whatsThisCursor(); 00134 00157 static void setAutoHideCursor( QWidget *w, bool enable ); 00158 00168 static void setAutoHideCursor( QWidget *w, bool enable, 00169 bool customEventFilter ); 00170 00177 static void setHideCursorDelay( int ms ); 00178 00184 static int hideCursorDelay(); 00185 00215 static void autoHideEventFilter( QObject *, QEvent * ); 00216 00217 private: 00218 static QCursor *s_handCursor; 00219 }; 00220 00221 00222 #endif // _KCURSOR_H