BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
dataselectorwidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/importdataview/dataselectorwidget.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_IMPORTDATAVIEW_DATASELECTORWIDGET_H
16 #define BORNAGAIN_GUI2_IMPORTDATAVIEW_DATASELECTORWIDGET_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 class QTreeView;
22 
23 namespace ModelView {
24 class PropertyTreeView;
25 class CollapsibleListWidget;
26 } // namespace ModelView
27 
28 namespace gui2 {
29 
30 class DataSelectionModel;
31 class DataViewModel;
32 
33 //! Widget to select graphs and look at their properties.
34 //! Occupies the left part of ImportDataEditor.
35 
36 class DAREFLCORE_EXPORT DataSelectorWidget : public QWidget {
37  Q_OBJECT
38 
39 public:
40  DataSelectorWidget(DataViewModel* view_model, QWidget* parent = nullptr);
41 
42  DataSelectionModel* selectionModel() const;
43 
44 signals:
46 
47 private slots:
48  void onSelectionChanged();
49 
50 private:
51  DataViewModel* m_viewModel{nullptr};
52  DataSelectionModel* m_selectionModel{nullptr};
53  QTreeView* m_selectorTree{nullptr};
54  ModelView::PropertyTreeView* m_canvasPropertyEditor{nullptr};
55  ModelView::PropertyTreeView* m_graphPropertyEditor{nullptr};
56  ModelView::CollapsibleListWidget* m_collapsibleWidget{nullptr};
57 };
58 
59 } // namespace gui2
60 
61 #endif // BORNAGAIN_GUI2_IMPORTDATAVIEW_DATASELECTORWIDGET_H
Vertical widget with column of panels displayed one under another.
Widget holding standard QTreeView and intended for displaying all properties of given SessionItem.
Custom selection model for data view model (AbstractViewModel).
Widget to select graphs and look at their properties.
View model for ExperimentalDataModel with drag-and-drop support.
Definition: dataviewmodel.h:31
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20