home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bbusywidget.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.1 KB  |  55 lines

  1. /* 
  2.  *
  3.  * $Id: k3bbusywidget.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef K3B_BUSY_WIDGET_H
  17. #define K3B_BUSY_WIDGET_H
  18.  
  19.  
  20. #include <qframe.h>
  21. #include "k3b_export.h"
  22.  
  23. class QPainter;
  24. class QTimer;
  25.  
  26.  
  27. class LIBK3B_EXPORT K3bBusyWidget : public QFrame
  28. {
  29.   Q_OBJECT
  30.  
  31.  public:
  32.   K3bBusyWidget( QWidget* parent = 0, const char* name = 0 );
  33.   ~K3bBusyWidget();
  34.  
  35.   void showBusy( bool b );
  36.  
  37.   QSize sizeHint() const;
  38.   QSize minimumSizeHint() const;
  39.  
  40.  protected:
  41.   void drawContents( QPainter* p );
  42.  
  43.  private slots:
  44.   void animateBusy();
  45.  
  46.  private:
  47.   bool m_bBusy;
  48.   int m_iBusyPosition;
  49.  
  50.   QTimer* m_busyTimer;
  51. };
  52.  
  53.  
  54. #endif
  55.