kdeui Library API Documentation

kanimwidget.h

00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2000 Kurt Granroth <granroth@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00016 Boston, MA 02111-1307, USA. 00017 */ 00018 #ifndef _KANIMWIDGET_H 00019 #define _KANIMWIDGET_H 00020 00021 #include <qframe.h> 00022 00023 class QStringList; 00024 class QPainter; 00025 class QMouseEvent; 00026 00027 class KAnimWidgetPrivate; 00056 class KAnimWidget : public QFrame 00057 { 00058 Q_OBJECT 00059 public: 00074 KAnimWidget( const QString& icons, int size = 0, 00075 QWidget *parent = 0L, const char *name = 0L ); 00076 00080 virtual ~KAnimWidget(); 00081 00085 void start(); 00086 00090 void stop(); 00091 00097 void setSize( int size ); 00098 00105 void setIcons( const QString& icons ); 00106 00107 signals: 00108 void clicked(); 00109 00110 protected: 00111 virtual void drawContents( QPainter *p ); 00112 virtual void leaveEvent( QEvent *e ); 00113 virtual void enterEvent( QEvent *e ); 00114 virtual void hideEvent( QHideEvent *e); 00115 virtual void showEvent( QShowEvent *e); 00116 virtual void mousePressEvent( QMouseEvent *e ); 00117 virtual void mouseReleaseEvent( QMouseEvent *e ); 00118 00119 protected slots: 00120 void slotTimerUpdate(); 00121 void updateIcons(); 00122 00123 protected: 00124 virtual void virtual_hook( int id, void* data ); 00125 private: 00126 KAnimWidgetPrivate *d; 00127 }; 00128 00129 #endif // _KANIMWIDGET_H
KDE Logo
This file is part of the documentation for kdeui Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:43:26 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003