BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SampleWidgetBox.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SampleDesigner/SampleWidgetBox.cpp
6 //! @brief Implements class SampleWidgetBox
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 
19 #if QT_VERSION < 0x050000
20 #define QStringLiteral QString
21 #endif
22 
24  : QWidget(parent), m_core(core), m_widgetBox(0)
25 {
26  setWindowTitle(QLatin1String("Widget Box"));
27  setObjectName(QLatin1String("WidgetBox"));
28 
29  setWindowTitle("Items Toolbox");
30 
32  m_widgetBox->setFileName(":/widgetbox/widgetbox.xml");
33  m_widgetBox->load();
34 
35  QVBoxLayout* layout = new QVBoxLayout;
36  layout->setMargin(0);
37  layout->setSpacing(0);
38  // layout->addWidget(bar);
39  layout->addWidget(m_widgetBox);
40  setLayout(layout);
41 }
Defines class SampleWidgetBox.
sample designer interface
SampleDesignerInterface * m_core
QDesignerWidgetBoxInterface * m_widgetBox
SampleWidgetBox(SampleDesignerInterface *core, QWidget *parent)