BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DistributionDialog.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/DistributionDialog.h
6 //! @brief Defines class DistributionDialog
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_DISTRIBUTIONDIALOG_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INFOWIDGETS_DISTRIBUTIONDIALOG_H
17 
18 #include <QDialog>
19 class DistributionEditor;
20 class SessionItem;
21 
22 //! The dialog which shows an editor to change parameters of DistributionItem
23 class DistributionDialog : public QDialog {
24  Q_OBJECT
25 
26 public:
27  DistributionDialog(QWidget* parent = 0);
28  virtual ~DistributionDialog() {}
29 
30  void setItem(SessionItem* item);
31  void setNameOfEditor(const QString& name);
32 
33 private:
35 };
36 
37 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INFOWIDGETS_DISTRIBUTIONDIALOG_H
The dialog which shows an editor to change parameters of DistributionItem.
void setNameOfEditor(const QString &name)
DistributionEditor * m_editor
DistributionDialog(QWidget *parent=0)
void setItem(SessionItem *item)
The DistributionEditor class, being a child of DistributionDialog, contains a widget to show Distribu...
QString const & name(EShape k)
Definition: particles.cpp:21