BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ProjectSettingsView.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Toplevel/ProjectSettingsView.h
6 //! @brief Defines class ProjectSettingsView
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_TOPLEVEL_PROJECTSETTINGSVIEW_H
16 #define BORNAGAIN_GUI_VIEW_TOPLEVEL_PROJECTSETTINGSVIEW_H
17 
19 #include <QWidget>
20 
21 namespace Ui {
22 
24 }
25 
26 //! Widget to define project settings
27 class ProjectSettingsView : public QWidget {
28  Q_OBJECT
29 
30 public:
31  ProjectSettingsView(QWidget* parentWidget, ProjectDocument* document);
32 
33 protected:
34  void showEvent(QShowEvent*) override;
35 
36 private:
37  //! Write entries in OptionsItem to UI
38  void writeOptionsToUI();
40  void updateInformation();
41  void storeAsDefaults();
42 
43  void onSingleInstrumentRadioToggled(bool newState);
44  void onSingleSampleRadioToggled(bool newState);
46 
47  ProjectDocument::Functionalities functionalities() const;
48 
49 private:
50  Ui::ProjectSettingsView* m_ui;
52 };
53 
54 #endif // BORNAGAIN_GUI_VIEW_TOPLEVEL_PROJECTSETTINGSVIEW_H
Defines class ProjectDocument.
Project document class handles all data related to the opened project (sample, job,...
Widget to define project settings.
void showEvent(QShowEvent *) override
Ui::ProjectSettingsView * m_ui
ProjectDocument::Functionalities functionalities() const
void writeOptionsToUI()
Write entries in OptionsItem to UI.
ProjectDocument * m_document
void onSingleSampleRadioToggled(bool newState)
void onSingleInstrumentRadioToggled(bool newState)
ProjectSettingsView(QWidget *parentWidget, ProjectDocument *document)