27 #include "../../../core/translator/Translator.h" 35 #include <QtCore/QCoreApplication> 36 #include <QApplication> 40 QWidget* parent,
bool hideToolBar, std::string message)
55 m_button->setIcon(
m_button->style()->standardIcon(QStyle::SP_TitleBarCloseButton));
112 QCoreApplication::processEvents();
141 double currentStep = 0;
147 double aux =
static_cast<double>(currentStep) / static_cast<double>(
m_totalSteps);
149 int val =
static_cast<int>(100.0 * aux);
157 QCoreApplication::processEvents();
170 QCoreApplication::processEvents();
197 m_progressBar->setValue(static_cast<ProgressSetValueEvent*>(e)->m_value);
206 m_label->setText(static_cast<ProgressSetMessageEvent*>(e)->m_value.c_str());
The ProgressSetValueEvent is a custom event used to set a new value into a progress bar...
This class can be used to inform the progress of a task.
A custom event used to set a new message into a progress bar.
const std::string & getMessage() const
Get the task message.
int getId() const
Get the task identification.
void cancel()
Cancel task, set the task active FALSE.
int getCurrentStep() const
Get the task current step.
The ProgressResetEvent is a custom event used to reset a progress bar.
int getTotalSteps() const
Get the task total stepes.