00001 /* ============================================================ 00002 * 00003 * This file is a part of kipi-plugins project 00004 * http://www.kipi-plugins.org 00005 * 00006 * Date : 2004-05-04 00007 * Description : Batch progress dialog 00008 * 00009 * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> 00010 * 00011 * This program is free software; you can redistribute it 00012 * and/or modify it under the terms of the GNU General 00013 * Public License as published by the Free Software Foundation; 00014 * either version 2, or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * ============================================================ */ 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 00033 class KListView; 00034 class KProgress; 00035 00040 namespace KIPI 00041 { 00042 00043 class BatchProgressItem; 00044 00045 enum ActionMessageType 00046 { 00047 StartingMessage = 0, 00048 SuccessMessage, 00049 WarningMessage, 00050 ErrorMessage, 00051 ProgressMessage 00052 }; 00053 00054 class LIBKIPI_EXPORT BatchProgressDialog : public KDialogBase 00055 { 00056 Q_OBJECT 00057 00058 public: 00059 00060 BatchProgressDialog( QWidget *parent=0, const QString &caption=QString::null ); 00061 ~BatchProgressDialog(); 00062 00063 void addedAction(const QString &text, int type); 00064 void reset(); 00065 void setProgress(int current, int total); 00066 00067 protected: 00068 00069 KIPI::BatchProgressItem *m_item; 00070 KListView *m_actionsList; 00071 KProgress *m_progress; 00072 00073 private: 00074 00075 struct Private; 00076 Private* d; 00077 }; 00078 00079 } // NameSpace KIPI 00080 00081 #endif // BATCHPROGRESSDIALOG_H
1.5.5