27 #ifndef MULTIPROGRESSDIALOG_H
28 #define MULTIPROGRESSDIALOG_H
30 #include "scribusapi.h"
31 #include "ui_multiprogressdialog.h"
33 #include <QProgressBar>
38 #include <QPushButton>
39 #include <QStringList>
58 MultiProgressDialog(
const QString& titleText,
const QString & cancelButtonText, QWidget* parent=0);
64 void removeExtraProgressBars();
76 bool addExtraProgressBars(
const QStringList &barsList,
const QStringList &barsTexts,
const QList<bool>& barsNumerical);
81 int overallProgress()
const;
87 int progress(
const QString &barName)
const;
94 bool setLabel(
const QString &barName,
const QString & newLabel);
100 bool setBusyIndicator(
const QString &barName);
107 bool setTotalSteps(
const QString &barName,
int totalSteps);
114 bool setProgress(
const QString &barName,
int progress);
122 bool setProgress(
const QString &barName,
int progress,
int totalSteps);
127 void setOverallTotalSteps(
int totalSteps);
132 void setOverallProgress(
int progress);
138 void setOverallProgress(
int progress,
int totalSteps);
147 bool setupBar(
const QString &barName,
const QString &barText,
int progress,
int totalSteps);
152 void setCancelButtonText(
const QString & cancelButtonText);
158 QStringList progressBarTitles;
159 QMap<QString, QProgressBar*> progressBars;
160 QMap<QString, QLabel*> progressLabels;
Definition: multiprogressdialog.h:44