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 / k3bprogressdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.4 KB  |  64 lines

  1. /* 
  2.  *
  3.  * $Id: k3bprogressdialog.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.  
  17. #ifndef _K3B_PROGRESS_DIALOG_H_
  18. #define _K3B_PROGRESS_DIALOG_H_
  19.  
  20. #include <kdialogbase.h>
  21. #include "k3b_export.h"
  22.  
  23. class K3bBusyWidget;
  24. class QLabel;
  25. class KProgress;
  26. class QWidgetStack;
  27.  
  28.  
  29. /**
  30.  * A progressdialog which displays a line of text and a progress
  31.  * bar or a moving dot for tasks that do not provide any progress
  32.  * information.
  33.  */
  34. class LIBK3B_EXPORT  K3bProgressDialog : public KDialogBase
  35. {
  36.   Q_OBJECT
  37.  
  38.  public:
  39.   K3bProgressDialog( const QString& text = QString::null,
  40.              QWidget* parent = 0, 
  41.              const QString& caption = QString::null,
  42.              const char* name = 0 );
  43.   ~K3bProgressDialog();
  44.  
  45.   int exec( bool showProgress );
  46.  
  47.  public slots:
  48.   void setText( const QString& );
  49.   void slotFinished( bool success );
  50.   void setProgress( int p );
  51.  
  52.  private slots:
  53.   void slotCancel();
  54.  
  55.  private:
  56.   QLabel* m_label;
  57.   QWidgetStack* m_stack;
  58.   K3bBusyWidget* m_busyWidget;
  59.   KProgress* m_progressBar;
  60. };
  61.  
  62.  
  63. #endif
  64.