BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ExtendedDetectorDialog.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/InstrumentWidgets/ExtendedDetectorDialog.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_INSTRUMENTWIDGETS_EXTENDEDDETECTORDIALOG_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_EXTENDEDDETECTORDIALOG_H
17 
18 #include <QDialog>
19 
20 class MaskEditor;
21 class DetectorItem;
23 class InstrumentModel;
24 
25 //! The dialog which shows a MaskEditor
26 
27 class ExtendedDetectorDialog : public QDialog {
28  Q_OBJECT
29 
30 public:
31  ExtendedDetectorDialog(QWidget* parent = nullptr);
32 
33 public slots:
34  void setDetectorContext(InstrumentModel* instrumentModel, DetectorItem* detectorItem);
35 
36 private:
37  void reject();
38 
39 private:
40  void readSettings();
41  void writeSettings();
42 
45 };
46 
47 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_EXTENDEDDETECTORDIALOG_H
The DetectorMaskDelegate class provides synchronization between DetectorItem (defined in InstrumentMo...
The dialog which shows a MaskEditor.
void setDetectorContext(InstrumentModel *instrumentModel, DetectorItem *detectorItem)
DetectorMaskDelegate * m_maskDelegate
ExtendedDetectorDialog(QWidget *parent=nullptr)
Main class to draw masks on top of intensity data map.
Definition: MaskEditor.h:31