BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
JobProgressAssistant.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/JobWidgets/JobProgressAssistant.cpp
6 //! @brief Implements class JobProgressAssistant
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
19 #include <QProgressBar>
20 
22  : QObject(mainWindow), m_mainWindow(mainWindow)
23 {
26 }
27 
29 {
31  if (progress < 0 || progress >= 100)
32  m_mainWindow->progressBar()->hide();
33  else {
34  m_mainWindow->progressBar()->show();
35  m_mainWindow->progressBar()->setValue(progress);
36  }
37 }
#define ASSERT(condition)
Definition: Assert.h:31
Defines class MainWindow.
Defines class JobModel.
Defines class JobProgressAssistant.
Defines class JobQueueData.
void globalProgress(int)
void onGlobalProgress(int progress)
JobProgressAssistant(MainWindow *mainWindow)
QProgressBar * progressBar()
Definition: mainwindow.cpp:169
JobModel * jobModel()
Definition: mainwindow.cpp:154