BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ProjectionsPropertyPanel.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/JobWidgets/ProjectionsPropertyPanel.cpp
6 //! @brief Implements class ProjectionsPropertyPanel
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 
17 #include <QVBoxLayout>
18 
20  : SessionItemWidget(parent), m_componentEditor(new ComponentEditor)
21 {
22  setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
23 
24  QVBoxLayout* mainLayout = new QVBoxLayout;
25  mainLayout->setMargin(0);
26  mainLayout->setSpacing(0);
27 
28  mainLayout->addWidget(m_componentEditor);
29  setLayout(mainLayout);
30 }
31 
33 {
34  return QSize(230, 256);
35 }
36 
38 {
39  return QSize(230, 64);
40 }
41 
43 {
45 }
46 
48 {
49  m_componentEditor->setItem(nullptr);
50 }
Defines ComponentEditor class.
Defines class ProjectionsPropertyPanel.
Component editor for SessionItem.
void setItem(SessionItem *item)
ProjectionsPropertyPanel(QWidget *parent=nullptr)
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.
SessionItem * currentItem()