BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
SaveThread.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Project/SaveThread.h
6 //! @brief Defines SaveThread classes
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 
15 #ifndef BORNAGAIN_GUI_VIEW_PROJECT_SAVETHREAD_H
16 #define BORNAGAIN_GUI_VIEW_PROJECT_SAVETHREAD_H
17 
18 #include <QObject>
19 #include <QThread>
20 
21 class ProjectDocument;
22 
23 //! Performs saving of heavy intensity data in a thread.
24 
25 class SaveThread : public QThread {
26  Q_OBJECT
27 public:
28  explicit SaveThread(QObject* parent = nullptr);
29  ~SaveThread() override;
30 
31  void run() override;
32 
33  void setSaveContext(ProjectDocument* document, const QString& project_file_name);
34 
35 signals:
36  void saveReady();
37 
38 private:
40  QString m_projectFile;
41 };
42 
43 #endif // BORNAGAIN_GUI_VIEW_PROJECT_SAVETHREAD_H
Project document class handles all data related to the opened project (sample, job,...
Performs saving of heavy intensity data in a thread.
Definition: SaveThread.h:25
ProjectDocument * m_document
Definition: SaveThread.h:39
QString m_projectFile
Definition: SaveThread.h:40
void run() override
Definition: SaveThread.cpp:30
void saveReady()
SaveThread(QObject *parent=nullptr)
Definition: SaveThread.cpp:19
void setSaveContext(ProjectDocument *document, const QString &project_file_name)
Definition: SaveThread.cpp:37
~SaveThread() override
Definition: SaveThread.cpp:25