BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
settingsview.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/settingsview/settingsview.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_SETTINGSVIEW_SETTINGSVIEW_H
16 #define BORNAGAIN_GUI2_SETTINGSVIEW_SETTINGSVIEW_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 class QTabWidget;
22 class QStackedWidget;
23 class QListWidget;
24 
25 namespace gui2 {
26 
27 class ApplicationModels;
28 
29 //! Main settings view, belongs directly to MainWindow.
30 //! For the moment contains QTabWidget with trees representating all application models.
31 //! In the future, might be extended to have any type of settings.
32 
33 class DAREFLCORE_EXPORT SettingsView : public QWidget {
34  Q_OBJECT
35 
36 public:
37  SettingsView(ApplicationModels* models, QWidget* parent = nullptr);
38 
39 private:
40  void init_list_selector();
41  void init_model_settings();
42  void init_other_settings();
43 
44  QListWidget* m_listWidget; //!< selector for specific settings window on the left
45  QStackedWidget* m_stackedWidget{nullptr}; //!< stack with settings widgets
46  QTabWidget* m_tabWidget{nullptr}; //!< application model settings
47 
48  ApplicationModels* m_models{nullptr};
49 };
50 
51 } // namespace gui2
52 
53 #endif // BORNAGAIN_GUI2_SETTINGSVIEW_SETTINGSVIEW_H
Main class to holds all models of GUI session.
Main settings view, belongs directly to MainWindow.
Definition: settingsview.h:33
QListWidget * m_listWidget
selector for specific settings window on the left
Definition: settingsview.h:44
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20