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., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 /* 00020 * $Id$ 00021 * 00022 */ 00023 #ifndef _KCURSOR_H 00024 #define _KCURSOR_H 00025 00026 #include <tqcursor.h> 00027 #include <tdelibs_export.h> 00028 00029 class TQWidget; 00030 00045 class TDEUI_EXPORT KCursor : public TQt 00046 { 00047 public: 00053 KCursor(); 00054 00059 static TQCursor handCursor(); 00060 00065 static TQCursor workingCursor(); 00066 00071 static TQCursor arrowCursor(); 00072 00077 static TQCursor upArrowCursor(); 00078 00083 static TQCursor crossCursor(); 00084 00089 static TQCursor waitCursor(); 00090 00095 static TQCursor ibeamCursor(); 00096 00101 static TQCursor sizeVerCursor(); 00102 00107 static TQCursor sizeHorCursor(); 00108 00113 static TQCursor sizeBDiagCursor(); 00114 00119 static TQCursor sizeFDiagCursor(); 00120 00125 static TQCursor sizeAllCursor(); 00126 00130 static TQCursor blankCursor(); 00131 00135 static TQCursor whatsThisCursor(); 00136 00159 static void setAutoHideCursor( TQWidget *w, bool enable ); 00160 00170 static void setAutoHideCursor( TQWidget *w, bool enable, 00171 bool customEventFilter ); 00172 00179 static void setHideCursorDelay( int ms ); 00180 00186 static int hideCursorDelay(); 00187 00217 static void autoHideEventFilter( TQObject *, TQEvent * ); 00218 00219 private: 00220 static TQCursor *s_handCursor; 00221 }; 00222 00223 00224 #endif // _KCURSOR_H