BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
SampleView.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/SampleDesigner/SampleView.h
6 //! @brief Defines class SampleView
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_VIEW_SAMPLEDESIGNER_SAMPLEVIEW_H
16 #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SAMPLEVIEW_H
17 
19 #include <QMainWindow>
20 
21 class DocksController;
22 class ProjectDocument;
23 class RealSpacePanel;
24 class SessionItem;
25 class MultiLayerItem;
26 class SampleListView;
27 
28 class SampleView : public QMainWindow {
29  Q_OBJECT
30 public:
32 
33  SampleView(QWidget* parent, ProjectDocument* document);
34 
35  void toggleRealSpaceView();
36  void fillViewMenu(QMenu* menu);
37 
38 protected:
39  void showEvent(QShowEvent*) override;
40 
41 private:
42  void resetLayout();
44 
45  //! Show the item in the real space view
46  //!
47  //! If the real space view is not visible at the moment, it will be shown.
48  void onRequestViewInRealSpace(SampleItem itemToView);
49 
51 
56 };
57 
58 #endif // BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SAMPLEVIEW_H
Defines class SampleItem.
Handles creation and appearance of docked widgets in the context of QMainWindow. It is used for Sampl...
Project document class handles all data related to the opened project (sample, job,...
Panel to show 3D view of sample. Contains toolbar and RealSpaceCanvas.
This can hold any item which belongs to a sample.
Definition: SampleItem.h:33
List view to select one sample (left side of layer-oriented sample editor)
void showEvent(QShowEvent *) override
Definition: SampleView.cpp:187
void onAboutToRemoveItem(SampleItem item)
Definition: SampleView.cpp:136
RealSpacePanel * m_realSpacePanel
Definition: SampleView.h:54
void fillViewMenu(QMenu *menu)
Definition: SampleView.cpp:175
void resetLayout()
Definition: SampleView.cpp:193
SampleListView * m_sampleSelectionView
Definition: SampleView.h:55
void updateSingleSampleMode()
Definition: SampleView.cpp:112
void toggleRealSpaceView()
Definition: SampleView.cpp:170
ProjectDocument * m_document
Definition: SampleView.h:53
SampleView(QWidget *parent, ProjectDocument *document)
Definition: SampleView.cpp:34
void onRequestViewInRealSpace(SampleItem itemToView)
Show the item in the real space view.
Definition: SampleView.cpp:117
@ REALSPACEPANEL
Definition: SampleView.h:31
DocksController * m_docks
Definition: SampleView.h:52
Base class for a GUI data item.
Definition: SessionItem.h:204