23 #include <QFormLayout>
26 : QGroupBox(
"Inclination angles [deg]", parent)
29 setProperty(
"subgroup",
true);
31 auto* hLayout =
new QHBoxLayout(
this);
32 hLayout->setSpacing(50);
33 auto* gform =
new QFormLayout;
35 hLayout->addLayout(gform);
41 auto* typeComboBox =
new QComboBox(
this);
42 typeComboBox->addItem(
"Uniform axis");
43 typeComboBox->addItem(
"Non-uniform axis");
44 gform->addRow(
"Axis type:", typeComboBox);
45 connect(typeComboBox, qOverload<int>(&QComboBox::currentIndexChanged),
this,
52 if (idx != typeComboBox->currentIndex())
53 typeComboBox->setCurrentIndex(idx);
59 m_plot->setFixedSize(280, 170);
61 hLayout->addWidget(
m_plot);
62 hLayout->setAlignment(
m_plot, Qt::AlignTop);
63 hLayout->addStretch(1);
A widget for selecting a distribution and setting its parameters.
Defines class DistributionPlot.
Defines class GroupBoxCollapser.
Defines class InclinationAnglesEditor.
Defines pointwise axis item.
Declares the class SpecularBeamInclinationItem.
Defines class SphericalAxisEditor.
DistributionItem * distribution() const
The DistributionPlot class plots 1d functions corresponding to domain's Distribution1D.
void setShowMouseCoords(bool b)
void setItem(DistributionItem *item)
Widget for selecting a distribution (combo box) and input of the corresponding values with respect to...
void distributionChanged()
BeamDistributionItem * item() const
static GroupBoxCollapser * installIntoGroupBox(QGroupBox *groupBox, bool expanded=true)
SphericalAxisForm * m_form
SpecularBeamInclinationItem * m_item
InclinationAnglesEditor(QWidget *parent, SpecularBeamInclinationItem *item)
DistributionPlot * m_plot
void onAxisTypeSelected(int index)
DistributionSelector * m_selector
BeamInclinationAxisItem contains inclination angle axis for specular/off-specular simulations and als...
void selectPointwiseAxis()
BasicAxisItem * alphaAxis() const
The currently selected axis.
bool pointwiseAlphaAxisDefined() const
True if a pointwise axis was defined.
bool pointwiseAlphaAxisSelected() const
True if pointwise axis is selected.