30#include <qwhatsthis.h>
32#include <qhgroupbox.h>
33#include <qvgroupbox.h>
40#include <qpushbutton.h>
48#include <kapplication.h>
50#include <kdialogbase.h>
51#include <kiconloader.h>
53#include <kstandarddirs.h>
54#include <kapplication.h>
55#include <kaboutdata.h>
57#include <kiconloader.h>
58#include <kpopupmenu.h>
67#include "batchprogressdialog.moc"
75 BatchProgressItem(KListView * parent, QListViewItem *after,
const QString &message,
int messageType)
76 : KListViewItem( parent, after), m_messagetype(messageType)
80 switch( m_messagetype )
83 setPixmap( 0, SmallIcon(
"run" ) );
86 setPixmap( 0, SmallIcon(
"ok" ) );
89 setPixmap( 0, SmallIcon(
"flag" ) );
92 setPixmap( 0, SmallIcon(
"stop" ) );
95 setPixmap( 0, SmallIcon(
"info" ) );
98 setPixmap( 0, SmallIcon(
"info" ) );
109 void paintCell (QPainter *p,
const QColorGroup &cg,
int column,
int width,
int alignment)
111 QColorGroup _cg( cg );
115 _cg.setColor( QColorGroup::Text, Qt::red );
116 KListViewItem::paintCell( p, _cg, column, width, alignment );
122 _cg.setColor( QColorGroup::Text, Qt::darkYellow );
123 KListViewItem::paintCell( p, _cg, column, width, alignment );
127 KListViewItem::paintCell( p, cg, column, width, alignment );
139 : KDialogBase( parent,
"KIPIBatchProgressDialog", true ,
143 QWidget* box = makeVBoxMainWidget();
154 QWhatsThis::add(
m_actionsList, i18n(
"<p>This is the current processing status.</p>" ) );
158 m_progress =
new KProgress( box,
"Progress" );
161 QWhatsThis::add(
m_progress, i18n(
"<p>This is the batch job progress in percentage.</p>") );
void reset()
Definition batchprogressdialog.cpp:186
void setProgress(int current, int total)
Definition batchprogressdialog.cpp:193
KListView * m_actionsList
Definition batchprogressdialog.h:70
void addedAction(const QString &text, int type)
Definition batchprogressdialog.cpp:176
KProgress * m_progress
Definition batchprogressdialog.h:71
~BatchProgressDialog()
Definition batchprogressdialog.cpp:168
KIPI::BatchProgressItem * m_item
Definition batchprogressdialog.h:69
BatchProgressDialog(QWidget *parent=0, const QString &caption=QString::null)
Definition batchprogressdialog.cpp:138
Definition batchprogressdialog.cpp:73
BatchProgressItem(KListView *parent, QListViewItem *after, const QString &message, int messageType)
Definition batchprogressdialog.cpp:75
Definition batchprogressdialog.cpp:70
@ StartingMessage
Definition batchprogressdialog.h:47
@ ProgressMessage
Definition batchprogressdialog.h:51
@ SuccessMessage
Definition batchprogressdialog.h:48
@ ErrorMessage
Definition batchprogressdialog.h:50
@ WarningMessage
Definition batchprogressdialog.h:49
Definition batchprogressdialog.cpp:132