BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
quicksimeditortoolbar.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/quicksimeditor/quicksimeditortoolbar.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI2_QUICKSIMEDITOR_QUICKSIMEDITORTOOLBAR_H
16 #define BORNAGAIN_GUI2_QUICKSIMEDITOR_QUICKSIMEDITORTOOLBAR_H
17 
18 #include "darefl_export.h"
19 #include <QToolBar>
20 
21 class QProgressBar;
22 class QCheckBox;
23 
24 namespace gui2 {
25 
26 //! Toolbar for QuickSimEditor.
27 //! Contains live simulation button, cancel button, simulation progress bar and settings buttons.
28 
29 class DAREFLCORE_EXPORT QuickSimEditorToolBar : public QToolBar {
30  Q_OBJECT
31 
32 public:
33  explicit QuickSimEditorToolBar(QWidget* parent = nullptr);
34 
35 signals:
36  void realTimeRequest(bool);
38  void cancelPressed();
42 
43 public slots:
44  void onProgressChanged(int value);
45 
46 private:
47  void add_wide_separator();
48  void setup_simulation_elements();
49  void setup_plot_elements();
50 
51  QCheckBox* m_liveCheckbox{nullptr};
52  QProgressBar* m_progressBar{nullptr}; //! Simulation progressbar.
53 };
54 
55 } // namespace gui2
56 
57 #endif // BORNAGAIN_GUI2_QUICKSIMEDITOR_QUICKSIMEDITORTOOLBAR_H
Toolbar for QuickSimEditor.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20