Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

owait.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (C) 2003 Maximilian Reiss <harlekin@handhelds.org>
00005               =.
00006             .=l.
00007            .>+-=
00008  _;:,     .>    :=|.         This program is free software; you can
00009 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00010 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00011 .="- .-=="i,     .._         License as published by the Free Software
00012  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00013      ._= =}       :          or (at your option) any later version.
00014     .%`+i>       _;_.
00015     .i_,=:_.      -<s.       This program is distributed in the hope that
00016      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00017     : ..    .:,     . . .    without even the implied warranty of
00018     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00019   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00020 ..}^=.=       =       ;      Library General Public License for more
00021 ++=   -.     .`     .:       details.
00022     :     =  ...= . :.=-
00023  -.   .:....=;==+<;          You should have received a copy of the GNU
00024   -_. . .   )=.  =           Library General Public License along with
00025     --        :-=`           this library; see the file COPYING.LIB.
00026                              If not, write to the Free Software Foundation,
00027                              Inc., 59 Temple Place - Suite 330,
00028                              Boston, MA 02111-1307, USA.
00029 */
00030 
00031 #ifndef OWAIT_H
00032 #define OWAIT_H
00033 
00034 /* QT */
00035 #include <qdialog.h>
00036 #include <qlabel.h>
00037 #include <qpixmap.h>
00038 #include <qtimer.h>
00039 
00040 
00041 namespace Opie {
00042 namespace Ui   {
00049 class OWait : public QDialog
00050 {
00051     Q_OBJECT
00052 
00053   public:
00054     OWait( QWidget *parent = 0, const char* name = 0, bool dispIcon = TRUE );
00055     ~OWait();
00056 
00060     void show();
00061 
00067     void setTimerLength( int length );
00068 
00069   public slots:
00073     void hide();
00074 
00075   private:
00076     void timerEvent( QTimerEvent * );
00077     void paintEvent( QPaintEvent * );
00078 
00079     QPixmap m_pix;
00080     QLabel *m_lb;
00081     QTimer *m_waitTimer;
00082     int m_timerLength;
00083     int m_aniSize;
00084     class Private;
00085     Private *d;
00086 };
00087 }
00088 }
00089 #endif

Generated on Sat Nov 5 16:16:28 2005 for OPIE by  doxygen 1.4.2