BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SampleWidgetBox Class Reference

widget box and tool window on the left side of SampleView More...

Inheritance diagram for SampleWidgetBox:
[legend]
Collaboration diagram for SampleWidgetBox:
[legend]

Public Member Functions

 SampleWidgetBox (SampleDesignerInterface *core, QWidget *parent)
 
QSize minimumSizeHint () const override
 

Private Attributes

SampleDesignerInterfacem_core
 
QDesignerWidgetBoxInterface * m_widgetBox
 

Detailed Description

widget box and tool window on the left side of SampleView

Definition at line 24 of file SampleWidgetBox.h.

Constructor & Destructor Documentation

◆ SampleWidgetBox()

SampleWidgetBox::SampleWidgetBox ( SampleDesignerInterface core,
QWidget *  parent 
)
explicit

Definition at line 23 of file SampleWidgetBox.cpp.

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 }
SampleDesignerInterface * m_core
QDesignerWidgetBoxInterface * m_widgetBox

References m_core, and m_widgetBox.

Member Function Documentation

◆ minimumSizeHint()

QSize SampleWidgetBox::minimumSizeHint ( ) const
inlineoverride

Definition at line 28 of file SampleWidgetBox.h.

28 { return QSize(300, 300); }

Member Data Documentation

◆ m_core

SampleDesignerInterface* SampleWidgetBox::m_core
private

Definition at line 31 of file SampleWidgetBox.h.

Referenced by SampleWidgetBox().

◆ m_widgetBox

QDesignerWidgetBoxInterface* SampleWidgetBox::m_widgetBox
private

Definition at line 32 of file SampleWidgetBox.h.

Referenced by SampleWidgetBox().


The documentation for this class was generated from the following files: