00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00022
00025 #ifndef BATCHPROGRESSDIALOG_H
00026 #define BATCHPROGRESSDIALOG_H
00027
00028
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 }
00079
00080 #endif // BATCHPROGRESSDIALOG_H