BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
mainwindow.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/mainwindow/mainwindow.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_MAINWINDOW_MAINWINDOW_H
16 #define BORNAGAIN_GUI2_MAINWINDOW_MAINWINDOW_H
17 
18 #include "darefl_export.h"
19 #include <QMainWindow>
20 #include <memory>
21 
22 namespace gui2 {
23 
24 class WelcomeView;
25 class ImportDataView;
26 class SimulationView;
27 class MainBarWidget;
28 class ApplicationModels;
29 class ActionManager;
30 class SettingsView;
31 
32 //! Application main window.
33 
34 class DAREFLCORE_EXPORT MainWindow : public QMainWindow {
35  Q_OBJECT
36 
37 public:
38  MainWindow();
40 
41 protected:
42  void closeEvent(QCloseEvent* event);
43 
44 private:
45  void init_application();
46  void init_components();
47  void init_connections();
48  void write_settings();
49 
50  std::unique_ptr<ApplicationModels> m_models;
51  ActionManager* m_actionManager{nullptr};
52  WelcomeView* m_welcomeView{nullptr};
53  ImportDataView* m_importDataView{nullptr};
54  SimulationView* m_simView{nullptr};
55  SettingsView* m_settingsView{nullptr};
56  MainBarWidget* m_barWidget{nullptr};
57 };
58 
59 } // namespace gui2
60 
61 #endif // BORNAGAIN_GUI2_MAINWINDOW_MAINWINDOW_H
Class to handle MainWindow's menu and corresponding actions.
Definition: actionmanager.h:28
The ImportDataView class is a main view for importing experimental data.
Actions for MainWindow.
Definition: actionmanager.h:31
Main window to import user data.
Widget container with functionality similar to QTabWidget.
Definition: mainbarwidget.h:33
Application main window.
Definition: mainwindow.h:34
std::unique_ptr< ApplicationModels > m_models
Definition: mainwindow.h:50
Main settings view, belongs directly to MainWindow.
Definition: settingsview.h:33
Main simulation window with all components for quick sample editing and simulations.
Welcome view. Main widget on first tab of MainWindow.
Definition: welcomeview.h:32
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20