15 #ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SELECTIONCONTAINERFORM_H
16 #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SELECTIONCONTAINERFORM_H
23 #include <QGridLayout>
54 QObject::connect(
m_combo, QOverload<int>::of(&QComboBox::currentIndexChanged),
68 auto* layoutItemOfComboBox =
m_gridLayout->itemAtPosition(1, 0);
71 m_gridLayout->addWidget(layoutItemOfComboBox->widget(), 1, 0);
102 template <
typename T>
Defines classes releted to event filtering.
QList< DoubleDescriptor > DoubleDescriptors
Defines class LayerEditorUtils.
Defines namespace GUI::Util::Layout.
Defines class SampleEditorController.
Class to modify a sample from the layer oriented sample editor.
void setCurrentIndex(AbstractSelectionContainerForm *widget, int index, const AbstractSelectionDescriptor &d)
Describes a selection (various possibilities and the current one).
int currentIndex() const override
Get currently selected option.
function< T()> currentItem
Function to get currently selected item.
QStringList options
List of options, usually presented as combo entries.
static void install(QObject *obj)
void clearLayout(QLayout *layout, bool deleteWidgets=true)
Removes content from box layout.
DoubleDescriptors doubleDescriptorsOfItem(LayerBasicRoughnessItem *item)
void addMultiPropertyToGrid(QGridLayout *m_gridLayout, int firstCol, const DoubleDescriptors &valueDescriptors, SampleEditorController *ec, bool vertically, bool addSpacer)
Create DoubleSpinBoxes for the DoubeDescriptors and connect them to SampleEditorController::setDouble...