BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
JobProgressAssistant Class Reference

The JobProgressAssistant class helps JobView to visualize current progress. More...

Inheritance diagram for JobProgressAssistant:
[legend]
Collaboration diagram for JobProgressAssistant:
[legend]

Public Member Functions

 JobProgressAssistant (MainWindow *mainWindow)
 

Private Slots

void onGlobalProgress (int progress)
 

Private Attributes

MainWindowm_mainWindow
 

Detailed Description

The JobProgressAssistant class helps JobView to visualize current progress.

Definition at line 24 of file JobProgressAssistant.h.

Constructor & Destructor Documentation

◆ JobProgressAssistant()

JobProgressAssistant::JobProgressAssistant ( MainWindow mainWindow)

Definition at line 21 of file JobProgressAssistant.cpp.

22  : QObject(mainWindow), m_mainWindow(mainWindow)
23 {
26 }
void globalProgress(int)
void onGlobalProgress(int progress)
JobModel * jobModel()
Definition: mainwindow.cpp:154

References JobModel::globalProgress(), MainWindow::jobModel(), m_mainWindow, and onGlobalProgress().

Here is the call graph for this function:

Member Function Documentation

◆ onGlobalProgress

void JobProgressAssistant::onGlobalProgress ( int  progress)
privateslot

Definition at line 28 of file JobProgressAssistant.cpp.

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
QProgressBar * progressBar()
Definition: mainwindow.cpp:169

References ASSERT, m_mainWindow, and MainWindow::progressBar().

Referenced by JobProgressAssistant().

Here is the call graph for this function:

Member Data Documentation

◆ m_mainWindow

MainWindow* JobProgressAssistant::m_mainWindow
private

Definition at line 33 of file JobProgressAssistant.h.

Referenced by JobProgressAssistant(), and onGlobalProgress().


The documentation for this class was generated from the following files: