| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# 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
    00084   KAnimWidget( QWidget *parent = 0L, const char *name = 0L );
    00085
    00089   virtual ~KAnimWidget();
    00090
    00094   void start();
    00095
    00099   void stop();
    00100
    00106   void setSize( int size );
    00107
    00114   void setIcons( const QString& icons );
    00115
    00116 signals:
    00117   void clicked();
    00118
    00119 protected:
    00120   virtual void drawContents( QPainter *p );
    00121   virtual void leaveEvent( QEvent *e );
    00122   virtual void enterEvent( QEvent *e );
    00123   virtual void hideEvent( QHideEvent *e);
    00124   virtual void showEvent( QShowEvent *e);
    00125   virtual void mousePressEvent( QMouseEvent *e );
    00126   virtual void mouseReleaseEvent( QMouseEvent *e );
    00127
    00128 protected slots:
    00129   void slotTimerUpdate();
    00130   void updateIcons();
    00131
    00132 protected:
    00133   virtual void virtual_hook( int id, void* data );
    00134 private:
    00135   KAnimWidgetPrivate *d;
    00136 };
    00137
    00138 #endif // _KANIMWIDGET_H

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:56:11 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001