Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | File Members

batchprogressdialog.h

Go to the documentation of this file.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 //
00022 
00023 
00024 #ifndef BATCHPROGRESSDIALOG_H
00025 #define BATCHPROGRESSDIALOG_H
00026 
00027 // Include files for KDE
00028 
00029 #include <kdialogbase.h>
00030 
00031 class KListView;
00032 class KProgress;
00033 
00034 namespace KIPI
00035 {
00036 
00037 class BatchProgressItem;
00038 
00039 enum ActionMessageType
00040 {
00041     StartingMessage = 0,
00042     SuccessMessage,
00043     WarningMessage,
00044     ErrorMessage,
00045     ProgressMessage
00046 };
00047 
00048 class BatchProgressDialog : public KDialogBase
00049 {
00050 Q_OBJECT
00051 
00052  public:
00053 
00054    BatchProgressDialog( QWidget *parent=0, const QString &caption=QString::null );
00055    ~BatchProgressDialog();
00056 
00057    void addedAction(const QString &text, int type);
00058    void reset();
00059    void setProgress(int current, int total);
00060    
00061  protected:
00062  
00063    KIPI::BatchProgressItem *m_item;
00064    KListView               *m_actionsList;
00065    KProgress               *m_progress;
00066 
00067  private:
00068  
00069    struct Private;
00070    Private* d;
00071    
00072  private slots:
00073 
00074     void slotHelp( void );
00075 };
00076 
00077 }  // NameSpace KIPI
00078 
00079 #endif  // BATCHPROGRESSDIALOG_H

Generated on Tue Sep 13 05:01:58 2005 for libKipi by  doxygen 1.4.4