15 #ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_FORMLAYOUTER_H
16 #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_FORMLAYOUTER_H
20 #include <QFormLayout>
70 int addRow(
const QString& label, QWidget* w);
75 void insertRow(
int row, QString label, QWidget* w);
161 template <
typename T>
162 T
widgetAt(
int row, QFormLayout::ItemRole role);
169 template <
typename T>
176 template <
typename T>
179 return qobject_cast<T>(
m_formLayout->itemAt(row, role)->widget());
QList< DoubleDescriptor > DoubleDescriptors
Defines class SelectionDescriptor.
Describes properties of a double value which are necessary to allow GUI representation,...
Class to modify a sample from the layer oriented sample editor.
Describes a selection (various possibilities and the current one).
QString label
A label text (short, no trailing colon)
Describes properties of a uint value which are necessary to allow GUI representation,...
Describes properties of a 3D vector, consisting of three double values.