BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DistributionEditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/InfoWidgets/DistributionEditor.h
6 //! @brief Defines class DistributionEditor
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_COREGUI_VIEWS_INFOWIDGETS_DISTRIBUTIONEDITOR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INFOWIDGETS_DISTRIBUTIONEDITOR_H
17 
19 
20 class QGroupBox;
21 class GroupItem;
22 class DistributionWidget;
23 class ComponentFlatView;
24 class DistributionItem;
25 
26 //! The DistributionEditor class, being a child of DistributionDialog, contains a widget
27 //! to show Distribution1D and property editor to change distribution parameters.
28 
30  Q_OBJECT
31 public:
32  DistributionEditor(QWidget* parent = nullptr);
33 
34  void setNameOfEditor(QString name);
35 
36 protected:
37  void subscribeToItem();
38 
39 private:
40  void onPropertyChanged(const QString& property_name);
43 
47  QString m_nameOfEditor;
48  QGroupBox* m_box;
49 };
50 
51 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INFOWIDGETS_DISTRIBUTIONEDITOR_H
Defines class ItemComboWidget.
Component property widget for SessionItems.
The DistributionEditor class, being a child of DistributionDialog, contains a widget to show Distribu...
void onPropertyChanged(const QString &property_name)
ComponentFlatView * m_propertyEditor
void setNameOfEditor(QString name)
DistributionWidget * m_plotwidget
DistributionItem * distributionItem()
DistributionEditor(QWidget *parent=nullptr)
The DistributionWidget class plots 1d functions corresponding to domain's Distribution1D.
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.
QString const & name(EShape k)
Definition: particles.cpp:21