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
();
39
~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
ActionManager
Class to handle MainWindow's menu and corresponding actions.
Definition:
actionmanager.h:28
ApplicationModels
Definition:
ApplicationModels.h:31
ImportDataView
The ImportDataView class is a main view for importing experimental data.
Definition:
ImportDataView.h:26
SimulationView
Definition:
SimulationView.h:24
WelcomeView
Definition:
WelcomeView.h:30
gui2::ActionManager
Actions for MainWindow.
Definition:
actionmanager.h:31
gui2::ImportDataView
Main window to import user data.
Definition:
importdataview.h:27
gui2::MainBarWidget
Widget container with functionality similar to QTabWidget.
Definition:
mainbarwidget.h:33
gui2::MainWindow
Application main window.
Definition:
mainwindow.h:34
gui2::MainWindow::m_models
std::unique_ptr< ApplicationModels > m_models
Definition:
mainwindow.h:50
gui2::MainWindow::~MainWindow
~MainWindow()
gui2::SettingsView
Main settings view, belongs directly to MainWindow.
Definition:
settingsview.h:33
gui2::SimulationView
Main simulation window with all components for quick sample editing and simulations.
Definition:
simulationview.h:33
gui2::WelcomeView
Welcome view. Main widget on first tab of MainWindow.
Definition:
welcomeview.h:32
gui2
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition:
app_constants.h:20
gui2
mainwindow
mainwindow.h
Generated by
1.9.1