50 #ifndef BLOCKINGWIDGET_HH
51 #define BLOCKINGWIDGET_HH
53 #include "processManagerWidget.hh"
59 void cancelRequested(QString _jobId);
63 void cancelPressed() {
67 emit cancelRequested(button->jobId());
73 int _minSteps,
int _maxSteps, QWidget* _parent = 0) : QWidget(_parent),
80 setWindowModality(Qt::ApplicationModal);
81 setWindowTitle(_jobId);
86 layout_ =
new QVBoxLayout();
87 description_ =
new QLabel(_description);
88 layout_->addWidget(description_);
90 progress_ =
new QProgressBar();
91 progress_->setMinimum(_minSteps);
92 progress_->setMaximum(_maxSteps);
93 progress_->setValue(0);
94 progress_->setTextVisible(
true);
95 layout_->addWidget(progress_);
98 layout_->addWidget(cancelButton_);
103 connect(cancelButton_, SIGNAL(pressed()),
this, SLOT(cancelPressed()));
106 void updateStatus(
int _value) { progress_->setValue(_value); };
108 void setJobId(QString _jobId) { setWindowTitle(_jobId); };
110 void setJobDescription(QString _description) { description_->setText(_description); };
113 QVBoxLayout* layout_;
114 QLabel* description_;
115 QProgressBar* progress_;
119 #endif // BLOCKINGWIDGET_HH