00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqProgressDialog.h 00004 // 00005 // Purpose: Extension of QProgressDialog to add setProgress 00006 // 00007 // Version: $Id: TxqProgressDialog.h,v 1.3 2002/04/08 17:07:35 kgl Exp $ 00008 // 00009 // Copyright (c) 2000 by Tech-X Corporation. All rights reserved. 00010 // 00011 // Author: Kelly G. Luetkemeyer 00012 // 00013 //-------------------------------------------------------------------- 00014 00015 #ifndef TXQ_PROGRESS_DIALOG_H 00016 #define TXQ_PROGRESS_DIALOG_H 00017 00018 // config includes 00019 #if defined(HAVE_CONFIG_H) 00020 #include <config.h> 00021 #endif 00022 00023 // Qt includes 00024 #include <qprogressdialog.h> 00025 00037 class TxqProgressDialog : public QProgressDialog 00038 { 00039 Q_OBJECT 00040 00041 public: 00042 00068 TxqProgressDialog(const QString & labelText, const QString & cancelButtonText, int totalSteps, 00069 QWidget * creator = 0, const char * name = 0, bool modal = FALSE, WFlags f = 0); 00070 00074 virtual ~TxqProgressDialog(); 00075 00081 void setProgress(int p, QString c); 00082 00086 void hideBar(); 00087 00088 public slots: 00089 00093 void setProgress ( int progress ) {QProgressDialog::setProgress(progress);} 00094 00095 protected: 00096 00097 private: 00101 QProgressBar *progressBar; 00102 00103 }; 00104 00105 00106 #endif
Copyright Tech-X Corporation, all rights reserved.