00001 00002 // 00003 // BATCHPROGRESSDIALOG.H 00004 // 00005 // Copyright (C) 2004 Gilles Caulier <caulier dot gilles at free.fr> 00006 // 00007 // This program is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU Library General Public License as published by 00009 // the Free Software Foundation; either version 2 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // This program is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU Library General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Library General Public License 00018 // along with this program; if not, write to the Free Software 00019 // Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. 00020 // 00022 00025 #ifndef BATCHPROGRESSDIALOG_H 00026 #define BATCHPROGRESSDIALOG_H 00027 00028 // Include files for KDE 00029 00030 #include <kdialogbase.h> 00031 #include "libkipi/libkipi_export.h" 00032 class KListView; 00033 class KProgress; 00034 00039 namespace KIPI 00040 { 00041 00042 class BatchProgressItem; 00043 00044 enum ActionMessageType 00045 { 00046 StartingMessage = 0, 00047 SuccessMessage, 00048 WarningMessage, 00049 ErrorMessage, 00050 ProgressMessage 00051 }; 00052 00053 class LIBKIPI_EXPORT BatchProgressDialog : public KDialogBase 00054 { 00055 Q_OBJECT 00056 00057 public: 00058 00059 BatchProgressDialog( QWidget *parent=0, const QString &caption=QString::null ); 00060 ~BatchProgressDialog(); 00061 00062 void addedAction(const QString &text, int type); 00063 void reset(); 00064 void setProgress(int current, int total); 00065 00066 protected: 00067 00068 KIPI::BatchProgressItem *m_item; 00069 KListView *m_actionsList; 00070 KProgress *m_progress; 00071 00072 private: 00073 00074 struct Private; 00075 Private* d; 00076 }; 00077 00078 } // NameSpace KIPI 00079 00080 #endif // BATCHPROGRESSDIALOG_H
1.5.3