BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InstrumentView.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/InstrumentView.h
6 //! @brief Defines class InstrumentView
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_INSTRUMENTVIEW_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTVIEW_H
17 
19 #include <QWidget>
20 
21 class MainWindow;
22 class DetectorItem;
27 class InstrumentModel;
28 
29 class InstrumentView : public QWidget {
30  Q_OBJECT
31 
32 public:
33  InstrumentView(MainWindow* mainWindow);
34 
35 public slots:
37 
38 private slots:
39  void onItemSelectionChanged(SessionItem* instrumentItem);
40 
41 protected:
42  void showEvent(QShowEvent*);
43 
44 private:
50 };
51 
52 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTVIEW_H
Defines class ItemStackPresenter.
Main widget of InstrumentView.
Instrument selector on the left side of InstrumentView.
Collection of actions to add/remove/clone instrument.
Styled tool bar on top of InstrumentView with add/remove/clone instrument buttons.
InstrumentViewToolBar * m_toolBar
void showEvent(QShowEvent *)
void onItemSelectionChanged(SessionItem *instrumentItem)
InstrumentModel * m_instrumentModel
InstrumentViewActions * m_actions
ItemStackPresenter< InstrumentEditorWidget > * m_instrumentEditor
InstrumentView(MainWindow *mainWindow)
InstrumentSelectorWidget * m_instrumentSelector
void onExtendedDetectorEditorRequest(DetectorItem *detectorItem)